The Elements of Style in Programming
summary
Compares Strunk & White to programming and claims a short curated style reduces trivial decisions, citing a 56-rule "Elements of Style for Programmers" and concrete Ruby fixes: replace !! boolean hacks with explicit checks, prefer format over printf and %d %d, and choose clearer iterations instead of micro-optimized loops; measure before optimizing — one colleague’s blind tweaks produced 500%–10,000% regressions. Recommends enforced linters and formatters (use gofmt, PEP8/autoformatters or the Airbnb style guide), company-wide style, and regular revisits after language releases.
AI-written summary · about
chapters (38)
- 0:00Intro
- 0:35About Bozhidar
- 3:05Why am I here
- 4:10Languages are hard
- 4:38Language usage is easy
- 4:54Language usage is difficult
- 7:30Active voice
- 8:18Everything is personal
- 10:59Similar rules apply
- 11:10Example in English
- 12:49Example in Ruby
- 13:56Example in Emacs
- 14:19Examples in Ruby
- 14:40Paragraphs
- 15:16No needless words
- 16:10Drop it
- 17:45Consistency
- 18:16Consistency in Ruby
- 19:06Be Clear
- 19:31Croatian Punk
- 19:49DNA
- 20:26Ambiguity
- 22:06Ruby is a huge language
- 23:18The Element of Style and Programming
- 25:07Performance Optimization
- 26:00Dont Make It Faster
- 26:55Measure
- 28:08Variable names
- 29:26Dont repeat yourself
- 29:55Avoid ambiguity
- 30:20Comments
- 31:19The Greatest Comment
- 32:05Style Guides
- 34:51Language Evolution
- 36:33Style Consistency
- 37:08Takeaways
- 38:50Style separates good from grid
- 39:03Questions
