DEV Community 👩‍💻👨‍💻

Cover image for Feb. 14, 2020: What did you learn this week?
Nick Taylor
Nick Taylor

Posted on

Feb. 14, 2020: What did you learn this week?

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

Learn new things

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.


Summarize a concept that is new to you.

And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

Johnny Rose from Shitt's Creek giving a high-five

Top comments (18)

richardeschloss profile image
Richard Schloss • Edited on

I learned that in 2020, in NodeJS, the thing to use now for streams is the built-in pipeline. Previously we dealt with streams like this:

res.pipe(outStream) // Pipe an http response to a destination

A few years ago, we were told to use pump, a separate module in npm. But now, pipeline is built into NodeJS and you can just use that!

So, pipelining can now look like this:

pipeline(res, outStream)
.then(handleDone) // .then if you promisified "pipeline"

This way, you can have an array of streams that might be conditionally set:

const streams = [res]
if (res.headers['content-encoding'] === 'gzip') {

pipeline(...streams) // We can now use the spread syntax with pipeline. 

(FYI: it's also a good idea to read about Backpressuring in Node)

pp profile image
Paweł Ludwiczak

I've been having some issues with my GIT repo and this is my lesson of the week: When in troubles, use --force.

patryktech profile image

When in troubles, use --force.

Battling a git repo

lauragift21 profile image
Gift Egwuenu

Nice I learned about CSS :focus-within pseudo-class even wrote a post on it.

jannikwempe profile image
Jannik Wempe

Same here, thanks ;)

tringakrasniqi profile image
Tringa Krasniqi

I learned different ways of adding CSS to React components (inline, in global css file and using Radium). :)

nickytonline profile image
Nick Taylor

Nice! Just FYI, Radium from Formidable is a little older in the CSS in JS space. If you're new to the CSS in JS space, styled-components and Emotion are great libraries to check out as well and provide more functionality.

Keep learning! 🔥

tringakrasniqi profile image
Tringa Krasniqi

Yeah I'm really new to CSS in JS, I'm switching from Angular to React so they're quite different in this aspect. I will definitely try them out. Thanks a lot for letting me know ^_^

torianne02 profile image
Victoria Crawford • Edited on

I dove deep into the data structure hash tables. I learned about which instances they should and shouldn't be used for in regards to code efficiency.

jannikwempe profile image
Jannik Wempe

I learned how (and why) to combine .editorconfig and Prettier.

Prettier uses some of editorconfigs config.

vaibhavkhulbe profile image
Vaibhav Khulbe

I got to know about creating a server with Express thanks to Brian Holt's Intro to Web Development .v2 course on Frontend Masters.

lewiskori profile image
Lewis kori

I learned jwt authentication using vue.js and django rest framework this week

zaynaib profile image
Zaynaib (Ola) Giwa

I learned the shortcut to find and replace in VS Code shift + H

highcenburg profile image
Vicente Reyes

I learned React & Rails this week!

fardeen9983 profile image
Fardeen Khan

Made a parking finder app on android native using the good old maps sdk and firebase realtime database

noelie_roux profile image

I learn how to let go stuff I have no control on.

nickytonline profile image
Nick Taylor

Félicitations, puis moins stressant. A+

junlow profile image

I'm learning about how to build a design system and how it works 🎨

All DEV content is created by the community!

Hey, if you're landing here for the first time, you should know that this website is a global community of folks who blog about their experiences to help folks like you out.

Sign up now if you're curious. It's free!