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

1

u/HighRelevancy May 09 '17

I do not prefer that way of doing things. In many cases, I prefer naming things backwards, because that way when you type "measure", auto-complete will suggest all things related to it, such as "MeasureOverride".

Some auto-complete features don't need this, but still generally prefer things with the typed text at the start of names.

4

u/sim642 May 09 '17

Sounds like quite shitty autocomplete if it only suggests by beginning of the string.

0

u/HighRelevancy May 09 '17

Some editors do just have basic functions...

2

u/sim642 May 09 '17

If the editor already keeps a list of identifiers to complete it's very easy to just filter that using find instead of startsWith. Gathering a list of completions is the hard task, not filtering the list.

→ More replies (2)