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.
Oldest comments (29)
(Re)learning some PHP for a side project. It's been a few years and I never really knew PHP well in the first place. Getting reused to the syntax and learning about PHP 8 changes.
I dug into signed exchanges a bit today. I was vaguely familiar before, but it clicked.
crap i didn't learn anything new this week.
😮
No worries friend!
Thanks Nick ;)
I learned there is a computer out there I can still be excited about. M1 Max MBP 🏎
I learned how to provision the whole CI/CD pipeline with AWS CDK in less than 40 lines of Typescript code :)
Thanks for asking, here's something interesting I learned this week
dev.to/godswillumukoro/css-is-awes...
I used xargs this week.
It looks like the
open
command can't take data from the standard input, so I ended up using something like this.For those who don't know,
xargs
(with the right arguments) can act like themap
method on javascript arrays. So you can imagine the above doing something like this:Nice!
xargs
can come in handy in a pinch, but it's usually unnecessary and the way it generates arguments can cause some complications. I can't think of a case wherexargs
would be more appropriate than Command Substitution or awhile read
loop, e.g.:or
With process substitution and the
mapfile
builtin, you can even populate an array and iterate over that:In progress learning about conventional commits! github.com/open-sauced/open-sauced...
Nice! You might also be interested in Conventional Comments! I gave a lightning talk about them last year as part of my Virtual Coffee group's lightning talk series.
I'm on at this point.
SvelteKit and Strapi. They're really cool. Gonna start a pet project to get deeper.
Learned about HSL for color in css. Seems way more intutive than RGB or hex codes and I'm going to incorporate it into my front end design more.
Yeah!