Duoas wrote: |
---|
Re: Simonyi
I misunderstood his article the first time I read it too. |
Just quickly: I read Joel Spolsky's article quite awhile ago. Sure combating unsafe strings is a good idea, but the tags used by Simonyi are insufferably bad IMO. At least they don't seem to conform to a [my?] reasonable concept of how things should be abbreviated. e.g
sz
to me means size,
us
means unsigned. Presumably pointer to
us
is
pus
couldn't resist a little joke
With the tags, I would still prefer a longer variable name over something that might cause confusion. Even if it is
UnSafeUserName
, or something even longer.
These days I am sure nearly everyone is over HN, but hopefully someone new reading Simonyi's article
won't think that the code at the end is a good idea. In the horrible names section, maybe there could some short comment about the wise intention of Simonyi's system, but for the love of sanity - don't write code like that. I mean, it's a bit like using the
vi editor to write brainf@!k code :+)
another joke We should protect ourselves from beginners posting their own variations using Simonyi's naming system.
Hope all is well at your end, and you are enjoying a stress free weekend - cheers :+)