Should I use specifications for simple validation logic?
I have been reading about specifications lately and I am really keen on using them. However, I am afraid to overdo it.

For example, if I have a User entity with a phone number property, do I need to put the phone number specification test in the setter, or is the validation logic in the setter enough?

Thanks,
Phil
Should I use specifications for simple validation logic?
===

I have been reading about specifications lately and I am really keen on using them. However, I am afraid to overdo it.

For example, if I have a User entity with a phone number property, do I need to put the phone number specification test in the setter, or is the validation logic in the setter enough?

Thanks,
Phil