DEV Community

Cover image for June 17th, 2021: What did you learn this week?
Nick Taylor
Nick Taylor

Posted on

June 17th, 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.

![A picture it a dog waving their paw with the caption “Learning, cool at school or at home”](https://media.giphy.com/media/1xpm1nTQiRL96Di3Q6/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.

Top comments (11)

Collapse
 
skidragon profile image
Simon Davis • Edited

Another great week of learning and discoveries. :D I learned about the basics of webpack, how to make it use loaders, and find the files to use those loaders by using a test regex and include path. I had to use it for storybook to understand scss modules. At the next.js conference, the new features like placeholder="blur" and using it in conjunction with a dataUrl. Also the live editing & collaboration seems pretty awesome. Also using getStaticPath and getStaticProp, now I can start using it for the e-commerce site project once I pick out a headless CMS. I read about clean architecture:
blog.cleancoder.com/uncle-bob/2012...
In summary, it is about what de-coupling enterprise and business rules from the implementation details which the implementation could be using a framework like React. Sometimes tools can create "certain standards" of how we should architect our app and that is something we should be careful of.
For CSS, there is this awesome pseudo-selector called ::selection. This is great for changing the highlighting of text in a page. Also every-layout.dev/ talks about how we should use composition to create layouts, it uses the idea of having layout primitives (our building blocks) to create organized and DRY CSS. Last but not least, concreting my understand of generics and utility types in typescript and the usage of keyof property. I'm watching this series called "No BS TS" on youtube which is so awesome! I recommend checking it out. By next week, I plan to get Stripe and a headless CMS connected to my e-commerce app.

Collapse
 
nickytonline profile image
Nick Taylor

That's awesome! 🔥

Yes, that's awesome!

Collapse
 
kirkcodes profile image
Kirk Shillingford

A bit late, but I spent a bit of time getting more familiar with the javascript languages properties. Reviewing the behaviour of 'this' and scope, and also made the wonderful discovery of syntactic sugar for nested functions, and by extension, partial functions.

// instead of
const f = (x) =>
    const g = (y) =>
        x + y
// we can just write 

const f = x => y => x + y
Enter fullscreen mode Exit fullscreen mode

Had not seen the latter syntax before yesterday.

Collapse
 
nickytonline profile image
Nick Taylor

Hot Rod saying Cool beans!

Collapse
 
electronshot profile image
weezy20

I learned how row major traversals are faster than column major traversals because of how the memory is fetched and read. For those who are curious, here's the talk : youtube.com/watch?v=WDIkqP4JbkE

Collapse
 
kinarokihara profile image
Kinaro • Edited

Working with:

  • localStorage
  • Fetch API

Demo link

Got to try out OpenBSD and set up httpd server

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

Nice

Collapse
 
chuckzokoye profile image
Okoye Emmanuel

Needed to do some queries in metabase, only to find out I was lacking in my SQL knowledge.
Had to take a short postgreSQL course.
Now I can query like a pro😎

Collapse
 
nickytonline profile image
Nick Taylor

Noice!

Noice!

Collapse
 
geektrovert profile image
Samnan Rahee

It was a really productive week.

  • Learnt how to git rebase
  • Learnt some css stuff like columns
  • learnt drag and drop, implemented a somewhat complex drop interaction
Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar