Home
About
  • 1002: Keep Files Smaller Than You

    Mar 31, 2021 coding strategy code smell

    Think about it when you are writing your code. You do not want to deal with building-sized Filesaurus. The creature with laser-eyes, poisonous breath, invisibility, and teleportation. How To Avoid It No file is large from the beginning. All files are created empty. However, over their existence, they slowly grow. If …

    Read More
  • 1003: Follow Naming Convention

    Mar 31, 2021 coding code smell

    Each codebase is using some naming conventions. Either explicitly by following some document, or implicitly by following patterns already used. It should always look like the file was written by a single person. In the example below you can see how it should not look like: 1num_legs = 6 2wings = 2 3number_of_stings = 1 …

    Read More
  • 0013: Be Aware of Bikeshedding

    Mar 18, 2021 strategy bias productivity teamwork coding

    Law of triviality is C. Northcote Parkinson's 1957 argument that people within an organization commonly or typically give disproportionate weight to trivial issues. "The time spent on any item of the agenda will be in inverse proportion to the sum [of money] involved." A reactor is so vastly expensive and …

    Read More
  • 1000: Use Search-oriented Programming

    Feb 12, 2021 coding strategy

    The idea of search-oriented programming is based on two premises: Every useful class, method, or attribute has been used at least once. If nobody is using it, do not use it either. Every line in mature software has been checked by multiple people. Therefore every class, method, or variable has a descriptive and …

    Read More
  • 1001: Keep Methods Smaller Than Your Head

    Feb 11, 2021 coding strategy

    Discussions about ideal function lengths are never-ending. My rule of thumb is that the ideal function should fit into your head. If it is longer, it will not fit there, and therefore you cannot reason about it. To determine if the function is too long, place your head next to the screen, and compare its length with …

    Read More

Martin Majlis

Technologist, perpetual student, continual incremental improvement.
Read More

Recent Posts

  • 1002: Keep Files Smaller Than You
  • 1003: Follow Naming Convention
  • 0013: Be Aware of Bikeshedding
  • 0012: Have Confidence Boosters in your Back Pocket
  • 0011: Make Small Steps
  • 1000: Use Search-oriented Programming
  • 1001: Keep Methods Smaller Than Your Head
  • 0007: Don't Be Blocked

Tags

STRATEGY 11 TEAMWORK 8 COMMUNICATION 6 CODING 5 PRODUCTIVITY 3 CODE-SMELL 2 MORALE 2 BIAS 1

Copyright DEV RULE BOOK. All Rights Reserved