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

🔥 Weird one: Any HTML element can be visible and editable with display:block; and contenteditable - including style tags!

14K2.1K1502.8K
81K4.1K435729K

🔥 You don't need a library to format money in JavaScript!

Use Intl.NumberFormat() to format all currencies and locales around the world.

1.6K24319395
77313K
1.6K412727K

🔥 TypeScript's never is great for making sure you hit every scenario when coding an if/else or switch statement

1.7K17738293
3.5K1047081K

🔥 You can create a Type Guard in TypeScript by using the is keyword in a functions return type.

455441084
801153120K

🔥 The difference between any and unknown in TypeScript:

394451268
57111K
368328.1K

🔥 Text Pastry is a super handy plugin for inserting incremental numbers at each cursor.

Available for VS Code, Sublime + more

29625856
56713K
1.2K301721K

🔥 TypeScript has a bunch of super handy commands for refactoring your codebase - made available in most editors

5857418112
42592011K
92115K

🔥 Quickly add all properties to a typed object in TypeScript with the ts-quickfixes extension

6577920146
1.3K20K
2.8K984861K

Using machine learning to detect a hotdog with typescript

184555.3K

I turned every 4,100 Benjamin Moore paint colours into CSS variables.

Copy + Paste from https://bm.wesbos.com

5977825122
22412165.2K