Skip to Content
Code That Fits in Your Head: Heuristics for Software Engineering
book

Code That Fits in Your Head: Heuristics for Software Engineering

by Mark Seemann
November 2021
Intermediate to advanced
416 pages
9h 26m
English
Addison-Wesley Professional
Content preview from Code That Fits in Your Head: Heuristics for Software Engineering

A List of Practices

This appendix contains a list of various methods and heuristics that are described throughout the book, including where to find them.

A.1 The 50/72 Rule

Write conventional Git commit messages.

  • Write a summary in the imperative, no wider than 50 characters.

  • If you add more text, leave the next line blank.

  • You can add as much extra text as you’d like, but format it no wider than 72 characters.

Apart from the summary, focus on explaining why a change was made, since what constitutes the change is already visible via Git’s diff view. See subsection 9.1.1.

A.2 The 80/24 Rule

Write small blocks of code.

In C-based languages like C#, Java, C++, or JavaScript, consider staying within a 80 × 24 character box. That corresponds ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern Software Engineering: Doing What Works to Build Better Software Faster

Modern Software Engineering: Doing What Works to Build Better Software Faster

David Farley
Head First Software Architecture

Head First Software Architecture

Raju Gandhi, Mark Richards, Neal Ford
Coding with AI: The End of Software Development as We Know It

Coding with AI: The End of Software Development as We Know It

Tim O'Reilly, Addy Osmani, Gergely Orosz, Kent Beck, Camille Fournier, Avi Flombaum, Maxi Ferreira, Harper Reed, Jay Parikh, Birgitta Böckeler, Angie Jones, Craig McLuckie, Patty O’Callaghan, Chip Huyen, swyx, Andrew Stellman, Phillip Carter, Nikola Balic, Brett Smith, Chelsea Troy, Lili Jiang

Publisher Resources

ISBN: 9780137464302