by makecheck · 10y ago · 0 comments
Rather than promoting multiple interfaces, pick one correct name and force people to use it. And this isn’t just for typos; in Subversion for instance, it is ridiculous that "svn blame", "svn praise" and "svn annotate" all refer to exactly the same operation. Which probably means that someone has to make sure "man" page queries with any of those names will all work, etc. Useless extra effort.
I set up shell aliases for typos that I find myself making frequently, which are probably not the same typos that other people make. In the case of "npm install", there are probably a series of equally-probable ways to make a mistake: "onstall", "nistall", "unstall" or heck even "instal". Therefore, don’t cater to any of them. Let me fix my own typos in my own shell, and don’t give people a chance to introduce those things into scripts.