🔥 There are 446 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.

Three CSS tips for working with inconsistently sized logos

120K5.2K5591.5M
19K2.8K2676.6K

File this under CSS you probably shouldn't write, but can:

p[style="text-align: center"] {
  text-align: left !important;
}
636503795
981262918K

These AI based text-to-CLI commands are starting to pop up in lots of tools. Warp, Fig, Github Co-pilot + more

What do you think? Helpful? Or dumb idea to run commands from smart sand?

133101425
498241814K

🔥 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!

5.3K10813689K

🔥 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