Photo by Rainier Ridao on Unsplash
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
And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿
Top comments (12)
Yesterday, I finally nailed the technique for breast stroke at my swimming lessons. It was also the first time that I pretty much did laps non-stop.
For seasoned swimmers, probably not a big deal, but as a kid who did not learn this properly, it took a while to get it right as an adult.
I've always liked regular expressions, but due to my tendency in the past to focus on what I needed for tasks primarily, I never fully grasped look-ahead or look-behind. During this week I saw the simple thing I overlooked and saw how much it potentially opened up for me in the future.
I learned a thing or two (and I'm still studying this) about XorShift RNG, manily an algorithm called XorWow, by George Marsaglia. Their article can be found here.
It's a pretty interesting and uber fast algorithm for generating random numbers
This week, I learnt Angular testing and coverage reports. Seeing a coverage of 86% made me happy even though I know that won't prevent my code from breaking. It's a cool number to welcome me to Javascript testing :)
Learned how to wire up Firebase auth/db, netlify functions, and stripe payments. My brain is full.
Nice!
Managing client side state is hard. But a lot of times it worth the efforts
Also I learned a hacky way to stop page janking while image loading even if you don't know images height.
Sounds like it would make for a great post on DEV! 😎
Yeah, I'm procrastinating it from a few days. But I will let you know once completed.
GRAPH QL! (Well, I kinda knew it, but this week I actually buckled down to learn it and Apollo). GraphiQL in the browser made me happy.
Setting up a CSP for headers security isn't just a pain on its own, but even more so via Lambda@edge