Marian Kostadinov

Results 8 comments of Marian Kostadinov

Hello lsjwzh, when I test on my IE6, I have no JavaScript errors. What is the exact exception that you get?

My proposal is that you should always try to inject all such dependencies, no matter how (in)convenient this is. In most of the cases constructor injection works great but in...

(= @stochnagara) So from what I see, if we have let's say AddSpot, ChangeSpot, DisableSpot and maybe a few more, then all of them would have the very same function...

On the other side if you are using PHP 8 you can also shorten it a little bit this way: ```php final class AddSpot { public function __construct( private string...

> > > That indeed is another discussion. Personally I never regard this code duplication. It is the same code technically. But I to prefer to look at the contexts...

So I think the only question remaining is "what happens if you have an invalid value in any of the properties (e.g. spotId) and the VO initialization fails?

> > > > So I think the only question remaining is "what happens if you have an invalid value in any of the properties (e.g. spotId) and the VO...

It is so interesting how everybody finds a different approach. This is one of the beautiful things in our job - the creativity! About the validation - so we have...