The Art of Clean Code

The Art of Clean Code: Best Practices to Eliminate Complexity and Simplify Your Life
by Christian Mayer (Author)
@ Amazon | Bookshop | IndieBound

Booktalk: Learn eight principles to simplify your code and become a more effective (and successful) programmer with real-world examples:

  • Concentrate on the important stuff with the 80/20 principle — focus on the 20% of your code that matters most
  • Avoid coding in isolation: create a minimum viable product to get early feedback
  • Write code cleanly and simply to eliminate clutter
  • Avoid premature optimization that risks over-complicating code
  • Balance your goals, capacity, and feedback to achieve the productive state of Flow
  • Apply the Do One Thing Well philosophy to vastly improve functionality
  • Design efficient user interfaces with the Less is More principle
  • Tie your new skills together into one unifying principle: Focus

Snippet: Large companies like International Business Machines Corporation (IBM), Microsoft, and Apple employ the Pareto principle to build faster, more user-friendly computers by channeling their focus on the vital few; that is, by repeatedly optimizing the 20 percent of the code that was executed most often by the average user. Not all code is created equal. A minority of code has a dominating impact on the user experience, while much of the code has little impact. You might double-click the File Explorer icon multiple times per day, but you seldom change the access rights of a file. The 80/20 principle tells you where to focus your optimization efforts!

It’s STEM Friday! (STEM is Science, Technology, Engineering, and Mathematics)

Copyright © 2022 Anastasia Suen All Rights Reserved.