Category: Refactoring

SOLID Principles : Guidelines for software development :: ISP 0

SOLID Principles : Guidelines for software development :: ISP

The SOLID principles provide five guidelines that, when followed, can dramatically enhance the maintainability of software. Interface Segregation Principle Intro Download Examples Interface Segregation Principle Intro The ISP specifies that clients should not be...

SOLID Principles : Guidelines for software development :: LSP 0

SOLID Principles : Guidelines for software development :: LSP

The SOLID principles provide five guidelines that, when followed, can dramatically enhance the maintainability of software. Liskov Substitution Principle Intro Download Examples Liskov Substitution Principle Intro The LSP specifies that functions that use pointers...

SOLID Principles : Guidelines for software development :: OCP 0

SOLID Principles : Guidelines for software development :: OCP

The SOLID principles provide five guidelines that, when followed, can dramatically enhance the maintainability of software. Open / Closed Principle Intro Download Examples Open / Closed Principle Intro The OCP states that all classes...

Clean Code : Keep code clean :: Class and Method Name 0

Clean Code : Keep code clean :: Class and Method Name

Developers are authors. And one thing about authors is that they have readers. Class and Method Name Class and Method Name Class Names Classes and objects should have noun or noun phrase names like...

Clean Code : Keep code clean :: Variable Declarations 0

Clean Code : Keep code clean :: Variable Declarations

Developers are authors. And one thing about authors is that they have readers. Variable Declarations Variable Declarations Variables should be declared as close to their usage as possible. Because our functions are very short....

Clean Code : Keep code clean :: Method – Argument 0

Clean Code : Keep code clean :: Method – Argument

Developers are authors. And one thing about authors is that they have readers. Method – Argument Method – Argument The ideal number of arguments for a function is zero (niladic). Next comes one (monadic),...

formatting.png 0

Clean Code : Keep code clean :: Formatting

Developers are authors. And one thing about authors is that they have readers. Formatting Formatting First of all, let’s be clear. Code formatting is important. It is too important to ignore and it is...