[Tutor] Good approach regarding classes attributes
Brian van den Broek
brian.van.den.broek at gmail.com
Thu Sep 11 09:19:02 CEST 2014
On 7 September 2014 21:01, Danny Yoo <dyoo at hashcollision.org> wrote:
<snip>
> Let's use a concrete example: say that we'd like to make sure a
> Person's name is always capitalized. We might try to enforce this
> capitalization property in the constructor.
Hi all,
<rant on>
I've just again experienced a new employer that tells my students my
name is 'Van Den Broek' when I tell them that it is 'van den Broek.'
This is the third time this week I've encountered this as a
programming example. Perhaps the use of the example is responsible for
the false belief amongst programmers that a surname always starts with
a captial letter. (Also delightful is the view that no name can
contain spaces.)
For the love of puppies, can people please stop using this example?!
</rant off>
(Apologies to Danny; as the other two cases I saw recently were in
books, it was easiest to lash out against this example.)
notVanDenly yours,
Brian vdB
More information about the Tutor
mailing list