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 19 of 45
🔥 Weird one: Any HTML element can be visible and editable with display:block; and contenteditable - including style tags!
🔥 You don't need a library to format money in JavaScript!
Use Intl.NumberFormat() to format all currencies and locales around the world.
Intl.NumberFormat()
🔥 TypeScript's never is great for making sure you hit every scenario when coding an if/else or switch statement
never
🔥 You can create a Type Guard in TypeScript by using the is keyword in a functions return type.
is
🔥 The difference between any and unknown in TypeScript:
any
unknown
🔥 Text Pastry is a super handy plugin for inserting incremental numbers at each cursor.
Available for VS Code, Sublime + more
🔥 TypeScript has a bunch of super handy commands for refactoring your codebase - made available in most editors
🔥 Quickly add all properties to a typed object in TypeScript with the ts-quickfixes extension
Using machine learning to detect a hotdog with typescript
I turned every 4,100 Benjamin Moore paint colours into CSS variables.
Copy + Paste from https://bm.wesbos.com
Does Code Quality Matter Anymore?