This Week in Code, October 17th
Tags: twic, yarn, gitlab
Published: 2016-10-17 14:31:17

---
title: This Week in Code, October 17th
published: true
description: Facebook releases package manager, GitHub and GitLab expose ethical grey area of censoring information, and so much more!
cover_image: http://i.imgur.com/IbmVSrr.png
tags: twic, yarn, gitlab
---

In case you missed any of it, here are some of the most noteworthy links for the past week.

[Facebook released Yarn package manager for JavaScript](https://code.facebook.com/posts/1840075619545360) It's dubbed as a fast, reliable, and secure alternative npm client. It is compatable with the npm registry. Here is a [statement](http://blog.npmjs.org/post/151660845210/hello-yarn) from npm and here is some [initial impressions](https://dev.to/bugsnag/replacing-npm-with-yarn) from a Bugsnag.

Here are the performance numbers from Bugsnag's testing

|command|time (in seconds)|
|---|---|
| `npm install`| 155s |
| `yarn` (cold cache)  | 53s |
| `yarn` (warm cache) | 13s |

[GitHub and GitLab censor developer's research data](https://gwillem.gitlab.io/2016/10/14/github-censored-research-data/) The developer's list of websites containing Javascript malware. GitLab later issued a [statement](https://about.gitlab.com/2016/10/15/gitlab-reinstates-list-of-servers-that-have-malware/) acknowledging that removing the list was an ill-advised move, and reinstated the list.

[Visual Studio Code 1.6 released](https://code.visualstudio.com/updates/v1_6) This was a pretty extensive release, including language improvements for JavaScript and TypeScript.

[Becoming a CTO](https://juokaz.com/blog/becoming-a-cto) A great overview of what the title of CTO entails, and what it takes to do the job well. Everything here is subjective, but this acts as a conceptual roadmap for getting into this position.

[Tesseract.js](https://github.com/naptha/tesseract.js) Pure Javascript OCR for 62 Languages

### A couple Tesseract.js examples:
```javascript
// simple example
Tesseract.recognize(myImage)
.then(function(result){
    console.log(result)
})

// if we know our image is of spanish words without the letter 'e':
Tesseract.recognize(myImage, {
    lang: 'spa',
    tessedit_char_blacklist: 'e'
})
.then(function(result){
    console.log(result)
})
```

[Ada Lovelace Day: Who she was - and why we should remember her](http://www.independent.co.uk/news/people/news/ada-lovelace-day-who-she-was-and-why-we-should-remember-her-a6692051.html) Tuesday was Ada Lovelace day, a celebration of one of computation's pioneers and all the contributions from women in STEM.

[Bots are Playing a Bigger Role in the Election than People Realize](https://dev.to/ben/bots-are-playing-a-bigger-role-in-the-election-than-people-realize) A look at how software is influencing the dialogue in this election cycle.

[How to be a compiler — make a compiler with JavaScript](https://medium.com/@kosamari/how-to-be-a-compiler-make-a-compiler-with-javascript-4a8a13d473b4#.43l9klzm4) Learnings from making a compiler, both parts fun and informative.

[Say Cheese: a snapshot of the massive DDoS attacks coming from IoT cameras](https://blog.cloudflare.com/say-cheese-a-snapshot-of-the-massive-ddos-attacks-coming-from-iot-cameras/) Data from Cloudflare on two attacks DDoS, which act as perfect examples of the new trends in DDoS.

[Taking PHP Seriously](https://slack.engineering/taking-php-seriously-cf7a60065329#.kxl9lcmnx) Why did Slack choose to build a new project in this language? Should you?

## Great podcast episodes from this week

[Kubernetes, Containers, and Go with Kelsey Hightower](https://dev.to/gotime/20-kubernetes-containers-and-go-with-kelsey-hightower)

[Orchestrating and automating deployments with Octopus Deploy and Damian Brady](https://dev.to/hanselminutes/orchestrating-and-automating-deployments-with-octopus-deploy-and-damian-brady)

[DevOps Handbook with Gene Kim](https://dev.to/sedaily/devops-handbook-with-gene-kim)

## #DevDiscuss

This week's [#DevDiscuss](https://twitter.com/hashtag/DevDiscuss) Twitter chat was about "Getting into Go", [here are the highlights](https://twitter.com/i/moments/786024650660716545).

The poll for this week's topic is [still open](https://twitter.com/ThePracticalDev/status/787820175387230208) and the choice is tight. The discussion will take place Tuesday (tomorrow), at 9pm EDT(UTC-0400).