Home/Clean Code

Any fool can write code that a computer can understand. Good programmers write code that humans can understand – Martin Fowler

Writing clean code is an art that needs to be mastered but unfortunately is never taught to us in the university. Most of us write code daily that will rot overtime and will haunt us a couple of years from now when we are asked to modify it. Working in a team of professional developers, it is essential that we write code that our team members can understand and modify. We want to write code that will make us proud and its readers would love to read it through just like a well written poem.

26 06, 2020

Open Closed Principle Demystified

By |2020-06-26T11:14:15+08:00June 26th, 2020|C#, Clean Code, Design Principles & Patterns|Comments Off on Open Closed Principle Demystified

If you are a developer, learning about SOLID Principles will enable you to write loosely coupled and maintainable code. In this video, I will cover the open-closed principle and show how we can use Strategy and Factory design patterns to solve the violation of this principle.

2 03, 2015

First rule for writing clean code – Naming

By |2019-04-18T17:11:35+08:00March 2nd, 2015|C#, Clean Code|Comments Off on First rule for writing clean code – Naming

Writing clean code is an art, it takes lot of discipline to write code that can be read by other developers. The most comprehensive book on this topic is by Robert C. Martin (Uncle Bob) and if you have not read his Clean Code book, then that is definitely the next book you should read! Initially I thought of writing a single post and cover some of the things that Robert Martin mentioned in his legendary book, but then [...]

Go to Top