Bartosz Krajka

Bartosz Krajka

Ruby on Rails. React. Test automation. Clean code. ... and rock n' roll and heavy metal.

The benefits of over-communicating

Recently I've given an internal presentation about so-called over-communication. What's that? It's a methodology (spirit, philosophy, doctrine...) that tries to help you with one of the ancient problems in IT - lack of communication. (Hold on, is it a problem, really? - you may think right now. The answer is...

Builder pattern in Node.js

In this post, I'm going to explain the builder pattern in Node.js. I'll use the code constructed in my previous posts - see the repo. Because the changes are not compatible with the previous version, they are committed to builder-pattern branch Builder is useful whenever you need to build...

Adapter pattern in Node.js

In my previous posts I explained the idea of Service Objects, and how to test them. I also prepared the repository with the working code on GitHub - check it out if you feel like it. The code contains also another fascinating design pattern - adapter for Facebook API. Let's...

Service objects in Node.js

In MVC frameworks it’s usual that controllers contain a lot of code and are the hardest part to understand; in consequence - to debug and refactor. Why? One of the answers would be: controllers don’t respect Single Responsibility Principle. Their job starts when they receive an HTTP request,...