DEV Community

Cover image for August 26th, 2021: What did you learn this week?

August 26th, 2021: What did you learn this week?

Nick Taylor on August 27, 2021

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. ![Image of t...
Collapse
 
djuber profile image
Daniel Uber

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.

Collapse
 
nickytonline profile image
Nick Taylor

Hot Rod saying Cool beans!

Collapse
 
mardiya profile image
Mardiya Zubairu

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😅.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

A kangaroo playing an electric guitar

Collapse
 
bglamadrid profile image
Benjamin La Madrid

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.

Collapse
 
nickytonline profile image
Nick Taylor

Nice!

Nice

Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

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.

Collapse
 
nickytonline profile image
Nick Taylor

Nice! You should do a write up on forem.dev about it once you get it done.😎

Actor from Game of Thrones saying Nice!

Collapse
 
cerchie profile image
Lucia Cerchie

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 :)

Collapse
 
nickytonline profile image
Nick Taylor

Awesome!

Hackerman from Kung Fury putting on a Nintendo Power glove

Collapse
 
bhumit070 profile image
Bhoomit Ganatra

Contuning my go journey with
writing apis in go lang with database connection

Collapse
 
huhu08 profile image
huhu08

I learnt that I can divide angular apps using module instead of components with seperate models and routes folder