Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.
Page 21 of 46
Using web assembly with a c based library to detect the QR codes.
Iโm able to interface via JS!
Typescript gas price converter
๐ฅ This will save your butt: VS Code has a timeline feature that lets you revert and compare changes between git commits
๐ฅ Depcheck will show you unused dependencies in your package.json
Handy for clean up after a big refactor
npm i -g depcheck
๐ฅ Here is a neat one! Since arrays are objects, we can destructure their indexes to easily grab the first and last items.
๐ฅ Use Intl.Collator() to easily sort or group strings regardless of their case or accent
๐ฅ New in ES2019, we have a .flat() method to flatten these types of chunked arrays.
๐ฅ When working with an API, I often need to chunk up a list of users and send them in batches.
Array.from() is a great way to chunk up arrays because of the secondary argument being a map function.
๐ฅ Use Intl.PluralRules() to easily find the ordinal for numbers - 1st, 2nd, 3rd, 4th...
๐ฅ Use Intl.DateTimeFormat() to create nicely formatted date and time strings
I Turned My Office into an Interactive 3D Model with AI