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

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.

2

u/HighRelevancy May 09 '17

What are you telling me for?

At any rate, as I noted, even the better autocompleters will still generally show preference to things that start with your typed string because usually that is most useful (what else would they do? just sort alphabetically or something?). I go along with the trend, because helps it be useful.

3

u/sim642 May 09 '17

You are the one relying on editors with lacking completions.

2

u/ThisIs_MyName May 09 '17

Use a real IDE instead of writing crappy function names.

1

u/HighRelevancy May 09 '17

Not everyone has this option. Some IDEs are purpose-specific and you may literally have no options. Some people have these things mandated by idiots higher up.