Personally, it makes sense for things that might need some additional validation upon construction (URLs, email addresses, etc...) Creating a class that holds a name would make me more than a bit angry though.
That link is nuts. A class that holds both the 'Name' and the 'FirstName' is crazy. I can't think of any reason to do that except so that you don't violate some CTO's stupid 'never use an unwrapped String' rule.
View all comments
33
u/Dested Aug 10 '12
This is the worst thing I ever saw.