Items of the week
TypeScript - const assertion can prevent literal types from being treated as more general types, e.g.
const config = {light: "ON"} as const;
will havelight
as the literal type"ON"
instead ofstring
, making it compatible with type{light: "ON" | "OFF"}
. It'll also makelight
readonly. More explanation can be found on the official documentation page.JWT - it can be signed asymmetrically with a key pair or symmetrically with a shared secret. The latter means all parties involved use one secret for both signing and signature verification, which means any party with the shared secret could have signed the JWS - something to be taken into consideration during implementation.
Design & storytelling - good stories are engaging and help build empathy, adapting them to your audience and backing up the points with data could be helpful in getting buy-in during a design process. NN/g has an article on 6 rules for persuasive storytelling.
Note of the week
On the week 41 of 2021, I found out about a portable game console powered by a microcontroller - PicoSystem, an interesting product considering it is sporting the RP2040 just like a Raspberry Pi Pico. That's all for this week's post, thank you for reading and if you have got any feedback, do let me know by leaving a comment. Have a nice day!
Top comments (0)