Mar 8 2011

Episode 111: Programming Rules of Thumb Part 2 (Don’t cut it)

Play

Faceoff teaches you to keep it simple so you don’t cut your thumb off.

News and Follow/Ups – 01:17

Geek Tools – 10:35

Webapps – 13:13

Programming Rules of Thumb Part 2 – 20:51

  • DRY
    • Don’t Repeat yourself
    • Duplication is Evil (DIE)
    • Once and Only Once (OAOO)
    • Single Point of Truth (SPoT)
    • Single Source Of Truth (SSOT)
  • YAGNI
    • Principle in extreme programming that programmers should not add functionality until it is necessary
    • Reasons
      • The time spent is taken from adding, testing or improving necessary functionality.
      • It leads to code bloat; the software becomes larger and more complicated.
      • The new features must be debugged, documented, and supported.
  • KISS
    • Keep it simple stupid
  • Broken Windows
  • 90-90 rule
    • “The first 90 percent of the code accounts for the first 90 percent of the development time. The remaining 10 percent of the code accounts for the other 90 percent of the development time.” – Tom Cargill
    • That the total development time sums to 180%
  • Rule of three
    • You are allowed to copy and paste the code once, but that when the same code is replicated three times, it should be extracted into a new procedure
    • The rule was introduced by Martin Fowler in Refactoring
  • No Silver Bullet
    • “There is no single development, in either technology or management technique, which by itself promises even one order of magnitude (tenfold) improvement within a decade in productivity, in reliability, in simplicity.”