Coding
Coding
Searchable
Readable
Understandable
How We Accomplish Our Objectives
How ●
●
Limiting parameters
DRY
● Avoid side effects
● NO GLOBALS
Code Like a Pro:
Comments
Overview ●
Principle
I - Interface Segregation
Principle
● D - Dependency Inversion
Principle
Who/Where?
Robert C. Martin
● Introduced in 2000 paper
on Design Principles and
Design Patterns
● Clean Code
OOP Agile
● Designed for OOP ● Testing & TDD
Goals
● Understandable code
● Maintainable code
● Flexible code
Single ‘A class should have one, and
Responsibility only one, reason to change.’
Principle
Open Closed
‘You should be able to extend a
classes behaviour, without