Tag Archives: Clean Code

Two-man, Four-eyes Principle

4 eyes rule

WHAT is the Four-eyes Principle?

The four-eyes principle is a working rule that any work must at least go through two individuals for some form of actions before it is deployed. In a business context, the four eyes required for approval are often those of the CEO (Chief Executive Officer) and the CFO (Chief Financial Officer), who must both sign off on any significant business decision. Continue reading

Clean Code Matters

Clean Code Matters

I have to admit that the idea of Clean Code is something new for me, and it felt like something that I never knew before! That fact changed when I got to know about Scrum; the Agile development framework. After I attended the Test-Driven Development (TDD) Workshop from Odd-E, someone recommended a book called ‘Clean Code’ that changed my perspective on how to write codes!

As Martin Fowler once said: “Any fool can write code that machine can understand.GOOD programmers write code that humans can understand.

Ever since then, I always try to pay more attention when writing codes. Here are a few points that I keep in mind:

  1. DON’T write any production codes without having any unit testing
  2. DON’T add anymore duplicate codes
  3. DO improve the code base so it is better than before

But, are these helping me to write a clean code? Not exactly… but it certainly made me care more about the code that I write, at least more than before!

Continue reading