Hasty Treat - Bike Shedding

Published: April 1, 2019, 1 p.m.

b'

In this Hasty Treat, Scott and Wes talk about bike shedding - issues that are hotly debated, but may not matter that much in the long run.

LogRocket - Sponsor

LogRocket\\xa0lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It\\u2019s an exception tracker, a session re-player and a performance monitor. Get 14 days free at\\xa0https://logrocket.com/syntax.

Show Notes

3:03 - What is Bike Shedding?

  • Technical disputes over minor, marginal issues conducted while more serious ones are being overlooked. The implied image is of people arguing over what color to paint the bike shed while the house is not finished.

4:39 - Tabs vs spaces

  • Two spaces

5:50 - Single vs double quotes

  • Single in JS, double in HTML

7:05 - Semicolons or not

  • Semicolons

9:01 - Grouping/ordering CSS properties

  • Wes: Format
  • Scott: Alphabetical

12:35 -\\xa0var\\xa0vs\\xa0let\\xa0vs\\xa0const

  • Scott:\\xa0const\\xa0for life \\u2014\\xa0let\\xa0when needed
  • Wes:\\xa0const\\xa0by default \\u2014 change to\\xa0let\\xa0when needed

14:24 - Default vs named exports

  • Use both
  • Mix-n-match

15:58 - Should designers code?

  • If interested, sure

17:58 - Which front-end framework

  • Whichever one best suits your needs

19:30 - Vim/Emacs vs Atom/VS Code/Sublime

  • VS Code

21:53 - Small perf wins

  • Micro optimization often aren\\u2019t needed

25:14 - Browser support

  • If you\\u2019re required to support it, then support it

25:47 - Block formatting

  • Function block
  • Else on a new line vs else after block

29:07 - Trailing comma

Links

Tweet us your tasty treats!

'