Principles of Code design

Last updated on 2024-07-30 | Edit this page

Overview

Questions

  • How to write maintainable, readable, resusable and scalable code?

Objectives

  • Be familiar with standard principles of code design
  • Understand what they mean and how to apply them

Don’t repeat yourself (DRY) - Rule of three


Keep it simple, Stupid (KISS) & Curly’s Law - Do one Thing


You aren’t gonna need it (YAGNI)


Principle of least astonishment (POLA)


Code for the maintainer