Refactoring process is very important and should not be underestimated by any software company.
Today i will try to extend my refactoring techniques knowledge and describe it here.
Read moreSOLID is a popular group of design principles and if you are a developer, for sure you had contact with it.
It is must if you want to get a nice job, but still many programmers have a problem to deal with this in 100%.
This is my explanation what is SOLID about in Ruby ecosystem.
Read moreIn simple words CQRS is dividing the reading part of the model from the writing part.
Instead of one, we have 2 models with different responsibilities.
Read moreValue Object is quite popular design pattern, but it can be messy to implement it well.
This is my implementation of value objects.
Read moreSometimes raising error is not enough. As probably you know, you can use command like this:
raise ActiveModel::StrictValidationFailed, "Some message"
This command will return 500 error on your website + it will log into your console the name of the error and message you passed in.
But it won't give you any context. This is big problem if for example you call API and your response is bad.
You want to know, what is happening there directly.
Fortunately there is some solution for it.
Read more