This, I think, would be totally fair enough, but I think you'd get a disparity between the 'standard' and the implementation.
You mention arguments. In PHP, for example, you have `mkdir`, and `rmdir`, and all that. You supply the file or directory string as the first argument, and a limited subset of options as the rest.
In Unix you have `mkdir`, but you supply the flags before the name of the directory to create.
Further to this, it's all more verbose, so you don't set the `-R` (or `-r`) argument to true to make it recursive in the PHP equivalent.
So there's no real standard being implemented per se, and your JS function 'ls()' or 'cp()' is a JS function in all but name. When it comes to using it you still have to read the doc to figure out what on earth you're supposed to do with it.
I'm not seeing how function name familiarity reduces confusion. Because it's evident the arguments aren't the same, and you can't tell people to look at Unix man pages to figure out how to work a totally unrelated lib.
>>> You mention arguments. In PHP, for example, you have `mkdir`, and `rmdir`, and all that. You supply the file or directory string as the first argument, and a limited subset of options as the rest.
In this case, the POSIX/C function accepts only one argument. So does PHP, for common usage.
>>> In Unix you have `mkdir`, but you supply the flags before the name of the directory to create.
I think you might be confusing the programs mkdir and rmdir (which don't care much about argument order) with the functions mkdir and rmdir (which, similar to filer.js functions, are part of the API).
You mention arguments. In PHP, for example, you have `mkdir`, and `rmdir`, and all that. You supply the file or directory string as the first argument, and a limited subset of options as the rest.
In Unix you have `mkdir`, but you supply the flags before the name of the directory to create.
Further to this, it's all more verbose, so you don't set the `-R` (or `-r`) argument to true to make it recursive in the PHP equivalent.
So there's no real standard being implemented per se, and your JS function 'ls()' or 'cp()' is a JS function in all but name. When it comes to using it you still have to read the doc to figure out what on earth you're supposed to do with it.
I'm not seeing how function name familiarity reduces confusion. Because it's evident the arguments aren't the same, and you can't tell people to look at Unix man pages to figure out how to work a totally unrelated lib.