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.👇👇🏻👇🏼👇🏽👇🏾👇🏿
![The DEV Team](https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F1%2Fd908a186-5651-4a5a-9f76-15200bc6801f.jpg)
![](https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F342975%2F98b7a8ed-aa91-48a3-bcc0-ebe2c13b5893.png)
Top comments (12)
This week I learned about pre- and post- scripts in npm (and yarn).
If you have a script in your package.json like "foo", you can add another script "prefoo" and it automatically runs before foo does.
This week I learnt about redux. Initially I thought it was associated with react but it wasn’t. It is a standalone state manager but can be used with react. Had an intro to it with explanation on the keywords like Actions with their payload and keys, Reducer functions and how it’s advisable to creat a main function linking all reducer functions. Still confused but I feel I’m off to a great start.
Been seeing posts on Twitter about NFTs, I was wondering why those game characters cost so much when advertised on posts tagged nfts apparently they aren’t just images😅.
Nice!
I learned I can track the root of any raised exception within Spring Web MVC by bypassing filters with the use of a class annotated with @ControllerAdvice and a corresponding method annotated with @ExceptionHandler and the desired exception to catch.
In the end, the issue's root cause was myself, sending invalid JSON (took me a whole hour to realize it! I blame Postman though).
Still, using said annotations helped me unveil how and where did my tests fail.
Nice!
WIth Terraform you can write your own custom providers for anything.
So this is a tutorial on how to create a IaC to provision a spotify playlist
learn.hashicorp.com/tutorials/terr...
I've been learning Terraform for a few reasons. One is so I can setup a golden image pipeline for my Forem server so I can safely extend it with custom features.
Nice! You should do a write up on forem.dev about it once you get it done.😎
I got a good start on learning how to use oclif to create cli tools this week-- am learning by making a cli quiz game :)
Awesome!
Contuning my go journey with
writing apis in go lang with database connection
I learnt that I can divide angular apps using module instead of components with seperate models and routes folder