Category Archives for Clean Code

SLAP Your Methods and Don’t Make Me Think!

In my recent post about creating a blogging platform I posted a piece of code like this: public MarkdownPost(Resource resource)

Continue reading

To Interface or Not To Interface

How do you decide if a class should be hidden behind an interface or not? What has to happen to make you think “Oh, I should create an interface here”? Quick googling and we land on a StackOverflow

Continue reading

Dependency Inversion in Java

Begineer guide to using the power of Dependency Inversion with examples in Java. Introduction Dependency Inversion allows us to make low-level details depend on high-level policies, opposing the flow of

Continue reading