Tags » Single Responsibility Principle

Single Responsibility Principle

This is episode 1 on my SOLID design principle series. Single Responsibility Principle is the S of SOLID principles.

Uncle Bob says,

A class should have only one reason to change…

220 more words
Design Principles

Url-shortener: a demo and more refactoring

A demo instance of my url-shortener project is now available here:


Usually, URL shorteners are deployed under a short domain name (for example: goo.gl… 583 more words


Changes in url-shortener

When I introduced my URL shortener project, I already had a working version and I thought I only needed to improve its front-end to be able to release the first stable version of the application. 1,656 more words


Code Review - takeaways and dependency injections

Our second weekend challenge was to build a program that allows a customer to order a takeaway. The customer needed to be able to view a menu, add items off the menu to their basket, view a summary of their basket and checkout their order. 502 more words


Week 2 - the Oyster and the Mega-Class

Dear Week Two,

It’s hard for me to comprehend the path our relationship has taken. It started out so well, so bright. Two young hearts…

475 more words

[Fake it ‘til you make it] SOLID OOP - S stands for "Not my fucking job"

You’re knee-deep into your interview now, with your interviewer absolutely wowed by your grasp of the Liskov Substitution Principle. You allow yourself to breathe and think “I’ve got it, this job’s mine”. 892 more words


Does DDD promote large Aggregates?

Recently, we had a presentation at my workplace about Domain-Driven Design concepts, given by my team member. He tried to explain the main thoughts behind it and gave some real world examples to make it easier for the spectators to grasp them. 1,279 more words

Domain-Driven Design