4 ms·
I've had the opposite complaints on my similar but verbose library. Some want short names and some want full explicit names. I'm not sure which way is more pop
by ludocode 6y ago
I've had the opposite complaints on my similar but verbose library. Some want short names and some want full explicit names.
I'm not sure which way is more popular. Paul Graham has mentioned in several essays how programmers are lazy and want to type the minimum number of characters possible. On the other hand Elon Musk has loudly complained about acronyms and contractions.
In the end you can't please everyone, so the developer just has to pick a style and go with it. If you dislike the short names, it's easy enough to put a comment above the template instantiation explaining what's going on.
- saurik 6y agoI mean, one can (and I will argue "should", though I appreciate many people will be angry about this) used macros to change the names to whatever they want... but this makes a lot more sense if libraries stick with full names and the contractions are house style.
- deleted 6y ago[deleted]
- joshocar 6y agoI think a lot of this has to do with what people develop with. If they are a vim person then typing long names is annoying, but if they use any type of IDE, the autocomplete removes that hassle and the benefits of having a clearer naming convention can shine.
- spijdar 6y agoIn case anyone reading doesn't realize, Vim can do keyword completions. It isn't automatic, but out of the box, you can press ctrl+n to move through a list of possible completions. Not as elegant as some IDEs I'm sure, but if typing is stopping you from using longer names, this could help.
- ori_b 6y agoAlso, for IDE style completion: https://github.com/ycm-core/YouCompleteMe https://github.com/ycm-core/YouCompleteMe
- ori_b 6y agoPeople confuse 'verbose' and 'clear'. Long names make my eyes glaze over as a reader.
- coliveira 6y agoVim has autocomplete too. This is not an argument about vim since I have seen vim users employing both conventions.
- bee_rider 6y agoGraham seems like he'd be much more authoritative on this topic than Musk.