Previous blog post about Value Objects generated quite a lot of questions about validation in context of VO:
should be the VO responsible for validating its state?
how we should handle this validation?
how to interact with users?
And in this post I will try to answer these questions and show some code samples.
Read more
TL;DR: adding @mixin annotation to your specifications you will give you SUS auto-completion.
Read more
Dealing with resource-consuming tasks in PHP can affect performance or even make you lose money because of poor user experience. Fortunately there are strategies for dealing with such problems and one of these is queueing.
In this session we will focus on what RabbitMQ is, how it works, how we can use it with PHP and integrate it with Symfony2 applications. After this talk you will have an idea of where you can apply queues in your system, and then make them fly and scale!
Read more
Value Object is an object that represents a concept from your problem Domain. It is important in DDD that Value Objects support and enrich Ubiquitous Language of your Domain. They are not just primitives that represent some values - they are domain citizens that model behaviour of your application.
Read more
Long time ago – while learning PHP – I found the following piece of code:
echo intval((0.1+0.7)*10); // int(7)
and then I forgot about it. And while I can understand that the above code returns the number 7 instead of 8, the knowledge and memory of this is critically important while performing any arithmetic calculations.
Read more