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

🔥 Express' res.format() is a nice way to handle both HTML form submits and JSON API requests in a single request

1635230

🔥 2 neat things about <img> when src fails. You can:

  1. Style alt text
  2. Display :before/:after pseudo elements

👉

29185120

🔥 Use object-fit:cover; on <img> and <video> to get that background-size: cover; effect

27463130

🔥 JavaScript Coding Challenge!

Filter this list of homes for the ones that match the list of needs.

12921450

🔥 Git Tip: Use git add -p to review and add changes hunk-by-hunk. Handy when you want to break a single file's changes into two commits

465249171

🔥 Text Pastry + Sublime Multiple Cursors is one of my favourite combos

1924040

🔥 Sublime HyperClick lets you open ES6 + CommonJS modules right from their import statement

410149140

🔥 How to destructure and rename variables in a single shot

34820

🔥 Setting Default Values with JavaScript’s Destructuring

👉

331800

🔥 Wrap curly brackets around your console.log arguments to see the variable name and value when logged.

This[ab]uses JavaScript’s object shorthand

68913K
1.6K394227K
2.4K1.3K3618