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.
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.👇👇🏻👇🏼👇🏽👇🏾👇🏿
Oldest comments (39)
jest and hudson ! loving both !
I learned that javascript has a built-in keyword "debugger" so that wherever you write that word, the debugger will stop at that point in code (if you have a debugger, such as the Chrome dev tools debugger). This can be useful if your runtime code is uglified, as in this article's cover image, in which case it would be a timely process to find the exact line you want to set a breakpoint on. Instead, a dev can simply do:
debugggerwill for sure bless your life 👌If you're looking for some more great debugging tips, give @umaar a follow. He's not really active on DEV, but he has links to his Twitter and website/newsletter. I mention this in my post on frontend tools.
Frontend Developer Resources
Nick Taylor (he/him) ・ Jan 6 ・ 11 min read
I was using a
console.log()for the millionth time this week when I remembereddebuggerwas a thing.Side note, but there are also logpoints if you don’t want to clutter your actual code.
Nice post. Definitely some great console methods to know!
Logpoints are also pretty useful depending on your debugging style.
They've been available in VS Code since June of last year, but they also got introduced in Chrome 73, and added in FireFox 67.
I rewrote the entire stack of one of our applications - built with serverless framework - using the AWS CDK. It is AWESOME!!!

SDK
no. it´s AWS CDK - Cloud Development Kit - It´s a relatively new tool to write Cloud Formation Templates using typescript/nodejs or other languages :-)
Finally learned Docker :D
Still testing stuff in the Docker Compose file but yeah, the concept and the Dockerfile are pretty clear to me!!!
are you running docker natively or in a vm ?
Installed it natively for Windows, making my tests with Linux containers though (hyperV still needed :/). I'm getting hyped to install Ubuntu in my computer (into another partition).
hehe :) dont use a partition and dont use ubuntu for docker try xubuntu in a virtualbox vm :)
Thanks for your guidance :D
just install ubuntu as your overall "f me help me stackoverflow" experience will be much better
To call it "learn" is a big word, but I realized that Gatsby is a powerful piece of tech for a number of use cases, and that (as a static site generator) it can largely replicate the features of SSR but in a much simpler way; definitely worthwhile spending some time on it.
I learned about memoization!
Started out researching React hooks, came across useMemo, couldn't make sense of the definition, then finally found this article to explain it.
Optimize the hell out of your Javascript programs with Memoization.
Ola' John Ajiboye ・ Jul 23 '19 ・ 4 min read
And some day I'll finish reading up on useMemo 😝
Best is to know the why..
en.wikipedia.org/wiki/Memoization
then on why/how
github.com/reduxjs/reselect
I learned how to use Phabricator to collaborate on software. It's wonderful!
I learned about the power of the Hooks in React
I learned that some Olsen timezone names are different in the browser that officially documented / available.
I read up on how to write unit tests for python via unittest! Also learnt how to get docker images running.
Completely off-topic and weirdly I finally sought out why my keyboard keeps correcting "learned" to "learner" and whether it actually is a word (vs. learnt) after being inspired by this thread while typing out the actual comment 🤣🤣🤣
Good job, test are important! Checkout pytest as well, it's a great python unit testing framework