Extending a class using fluent interface

Fluent Interface is a way to concatenate method calls that is particularly useful with builders because it allows for a very concise and self explanatory syntax: To write a fluent interface enabled method all you need to do is to return the object itself (this): This builder can be called like this: The problem isContinue reading “Extending a class using fluent interface”

The importance of comments

Some years ago I thought very high of code comments because they were a mean to explain the obscurities of code and, even more, because Joshua Bloch advised in their favor! Then I start being interested into agile techniques mainly as a mean to gain efficiency and productivity with my team. The agile technique isContinue reading “The importance of comments”