πŸ”₯ There are 433 Hot Tips!!

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.

πŸ”₯ Forgot to add a file to your .gitignore?

Heres how to remove that file from your git repo after the fact

3955512133
1K262228K

Yesterday I renamed a file from File.jpg β†’ file.jpg, but it didn't trigger any changes in my git repo, which means I wasn't able to deploy it.

Had to use git mv to rename the file in my git repo as well.

4327198.8K
478533186

Your language isn’t broken, it’s just doing floating point math!

πŸ”₯ CLI Bracket Expansion! Super handy when you need to create, install or rename multiple files in a single go.

touch store-{products,cart,coupons,utils}.js
14420714
2632106.2K

πŸ”₯ take big, but nicely formatted, dumps in your console with console.table()

33635731
28710116.7K

πŸ”₯ use Promise.allSettled() to wait until all promises have either been fulfilled or rejected.

Handy for when a promise rejects, but you still want the data of the successful ones.

1.7K263237K
6188217128
320

πŸ”₯ Pretty excited about the new JavaScript non-mutating array methods. Currently in stage 3.

.toReversed()

.toSorted()

.toSpliced() - remove items

.with() - replace items

1.3K20124191
1016
703341815K

πŸ”₯ Format large numbers in your JavaScript with numeric separators.

const milly = 1_000_000;

This doesn't affect how the number works or is displayed - just helpful for reading large values quickly.

329501440
5219258.4K

Running a Node / npm app in Deno - does it work?

414101310K

πŸ”₯ Why do you sometimes see !!double bang in front of variables in JavaScript?

3603213100
151195.2K