Data Transfer Objects (DTOs) and Value Objects (VOs) are particularly useful when working with dynamically typed languages like PHP, where switchin...
For further actions, you may consider blocking this person and/or reporting abuse
omg dude why are you checking things like this
this is crazy 😭 just use
ifThe answer is in the article's title image. It's tidier / more concise, when extend by additional conditions.
Stacked if/else clauses are ugly to look at. And though, here, it's only one condition, the author obviously prefers to use one style always. As I would.
VO example?
I asked GPT for that:
gist.github.com/graceman9/4335154c...
This is not a VO, at all.
Yes, you are right! But I did some research and I think I finally got the concept of VO. If someone interested I think this is a good explanation:
dev.to/ianrodrigues/writing-value-...