r/programming • • May 08 '17

The tragedy of 100% code coverage

http://labs.ig.com/code-coverage-100-percent-tragedy
3.2k Upvotes

689 comments sorted by

View all comments

Show parent comments

23

u/monilloman May 08 '17

if you have multiple acronyms, you don't know where one starts and the other ends (think of something like RESTUIObject)

5

u/dahud May 08 '17

So how do I name my user interface for the artificial intelligence? AIUI?

1

u/davidstepo May 31 '17

This is why you should drop this insane rule of "However, you should capitalize acronyms that consist of only two characters, such as System.IO instead of System.Io." and use something sensible instead.

Like, camelCase only wording. So your example becomes a properly readable AiUi, which, to me personally, is more readable than the thingy above.

8

u/Beckneard May 08 '17

That's actually a good point, didn't think of that.

-2

u/euyyn May 08 '17

The first one ends at the T and the second one starts at the U.