DEV Community

Cover image for April 9th, 2021: What did you learn this week?
Nick Taylor
Nick Taylor Subscriber

Posted on

April 9th, 2021: 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.

![It’s time to get your learn on](https://media.giphy.com/media/a7NBvg3Ss8UYo/giphy.gif)

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

#todayilearned

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.👇👇🏻👇🏼👇🏽👇🏾👇🏿

![Someone feeling like "Yaaas!"](https://media.giphy.com/media/zBhZiVNNQjfTG/giphy.gif)

Latest comments (30)

Collapse
 
sunilkumarvalmiki profile image
g.sunilkumar

this week, i learnt 3 new courses :
1) Express REST API
2) Introduction into micro-services
3) mind mapping techniques for better learning.

Collapse
 
nickytonline profile image
Nick Taylor

Lego astronaut saying awesome!

Collapse
 
voralagas profile image
Pravin Poudel

This week I learned about React Hook, more about reference and reference forwarding in React.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

Actor from Game of Thrones saying Nice!

Collapse
 
leob profile image
leob • Edited

I learned something yesterday which for me was a pretty "weird" discovery:

If you use CSS Flex and you want to (for example) right-align one particular item (while leaving the rest "default"), then guess what you can use ... "margin-left: auto"!

Pretty surprising, to me at least. More info here:

dev.to/samanthaming/flexbox-aligni...

Well so that wasn't what I expected really, I was looking for something like "align-self" or "justify-self" or whatever ...

Speaking of which - I can never remember which is which ("align-items" or "justify-content"), and I finally came across a way to somewhat easily remember which is which:

css-tricks.com/a-quick-way-to-reme...

Collapse
 
nickytonline profile image
Nick Taylor

Captain America saluting

Collapse
 
djuber profile image
Daniel Uber

I learned that ruby ships with a .gdbinit file in the source repo, that permits inspecting the class/objects in the internals, basically handling the unpacking of the tagged ids for you, and saving the results as history items.

Of course I learned that after searching a few locations for "how to debug ruby" and finding a mix of snippets, most attributing a blog that's been offline for a year or two as the source, and a lot of two paragraph "here's how to start gdb" tutorials.

Kind of handy to have the tooling to debug the vm ship with the language sources!

Collapse
 
nickytonline profile image
Nick Taylor

Jean-Luc Picard from Star Trek TNG saying Well done!

Collapse
 
matthewbdaly profile image
Matthew Daly

Today I started using Snowpack. I'm seeing really fast build times for React applications with it - even on a creaky old laptop adding a new Tailwind class is basically instantaneous.

Collapse
 
nickytonline profile image
Nick Taylor

A puppet Yeti clapping their hands saying congratulations

Collapse
 
pranavbaburaj profile image
Pranav Baburaj

I've been trying to learn some zig

Collapse
 
nickytonline profile image
Nick Taylor

Actor Zach Galifianakis giving a thumbs up in a convertible car

Collapse
 
kirkcodes profile image
Kirk Shillingford • Edited

I learn about using graph theory to solve problems!

dev.to/kirkcodes/solving-the-domin...

Collapse
 
nickytonline profile image
Nick Taylor

Charlie from It's Always Sunny in Philadelphia talking in front of a board with all kinds of strings and arrows depicting something very complicated

Collapse
 
nickytonline profile image
Nick Taylor

BB-8 giving a thumbs up

Collapse
 
stephanieopala profile image
Stephanie Opala

I learned state management in React, useState to be specific.

Collapse
 
voralagas profile image
Pravin Poudel

Same here, It was interesting to learn that, and now the state is available on functional component too. I found it quite easy handling with a hook rather than in-state in-class component. I haven't done much but I hope I am not wrong.

Collapse
 
stephanieopala profile image
Stephanie Opala

Me too, so far I find it easier to use hooks rather than in-state in class components.

Collapse
 
nickytonline profile image
Nick Taylor

Pam from The Office saying Nice!

Collapse
 
juniordevforlife profile image
Jason F • Edited

I used the !! operator for the first time. I used it in a ternary and it looks something like this:

const myValue = !!thing.val ? thing.val : '';

Collapse
 
nickytonline profile image
Nick Taylor • Edited

Boolean magic!

Shia LeBoeuf in character saying "Magic!"