Do You Follow These 10 Principles for Good Programmers?

10 principles from KISS and DRY to SOC and YAGNI and smart ass code

Arnold Abraham
Next Level Source Code

--

source: Magda Ehlers by pexels (CC0)

I bet you can write code, but do you accept the bet about you writing good code?

Spaghetti Code, huge if-else-chains and entire programs that break after changing a variable, functions that are hundreds of lines large, and irritating names for variables and classes? Those are only a few common flaws to name here. Those flaws are the product of converting a deadline to a shippable working product. But behind the curtains, there is the code that lacks and smells a lot more than it should.

Try to write code that aims for maintainability instead of just code that works in the first place. Anybody should understand your code (anybody that knows to program), and anybody should be able to maintain it!

Following 10 principles for becoming a good programmer that brings your code to the next level!

Principles

  1. KISS
  2. DRY
  3. OPEN/CLOSED
  4. COMPOSITION > INHERITANCE
  5. SINGLE RESPONSIBILITY
  6. SEPARATION OF CONCERNS

--

--

Arnold Abraham
Next Level Source Code

JavaScript, TypeScript and C#/.NET Tutorials/News/Best Practices by a German Software Engineer - Fun helps you to learn on the fly --> arnoldcode.com