99 Oops - Notes
Notes from 99 Bottles OOPs
Created Aug 4, 2024 - Last updated: Nov 20, 2024
🟧
WIP
Code should be concrete enough to be understood, but abstract enough to allow
for change.
Methods are send messages, NOT methods are called. This is since OOPs means that
implementation would not be visible to whoever sends the messages.
Consistency -
eg: Use the same structure across - if vs tertiary.
Duplication -
- Logic
- Data
Names -
Concepts should be named clearly; take the effort to make the naming obvious
Judging Code
- How difficult was it to write? - lines of code; maybe something else.
- How difficult is it to understand?
- How expensive will it be to change?