News for hackers. Stuff that matters.
Re:Annoyances of API Design by Gibbon1 on Thursday January 28, 2016 @08:18PM (#10992830)
Course those come from a primordial age when max symbol sizes and file names were limited. Circa 1975 you were asking for trouble with a file name like string_copy.c or file_control.c
Re:Annoyances of API Design by annnnd on Friday January 29, 2016 @03:31AM (#10994162)
Also, I kind of like the short versions. They are not any more difficult to remember ("Hmm, was it CopyFile of FileCopy?") and you need to search for them the first time around anyway. And it does save the effort when typing.
Re:Annoyances of API Design by ucho on Friday January 29, 2016 @09:42AM (#10995416)
I still don't remember if it is useradd or adduser - one is core linux command, other is script that also set ups home directory and stuff like that.
Re:Annoyances of API Design by timlyo on Friday January 29, 2016 @03:58AM (#10994249)
Maybe it's just me but I find the short ones much harder. Was it strnCopy or strCopy etc.

And I mostly use some form of auto complete so I'm not worried about the effort saved from typing.

Re:Annoyances of API Design by dkersten on Friday January 29, 2016 @07:49AM (#10994890)
Also, if you glance at them, strcpy and strncpy look identical, which I find can be problematic.