52 points · by uyoakaoma · 9y ago · 67 comments
What a strange approach. Why not create a function with the correct name, put the code in it and redirect the misspelled function to it?
Mark the bad function deprecated, warn the teams and after a few release cycles, remove it.
Scrolling through logs on Linux and macOS shows a few 'deprecated' warnings here and there, and looking those up show that on average they have a few major release lifespans, and sometimes never even get removed because there is no cost to keeping it and no benefit to removing it. Often, programs have a fix in whatever update comes next and the owner often fixes those deprecation issues as a side-effect.
It's strange that Microsoft is so very good at constantly shooting themselves in the foot with this type of never ending backwards compatibility. (that often turns out to be not-so-compatible after all)
(The real key to fixing this would be layers of frozen-in-time compatibility sandboxes, allowing code written in 1995 to get a 1995-era synthetic environment, while the frameworks of today can forget about 1995. But that means dropping the ability to fix security flaws in any of that old code; or extend it with accessibility-device support that didn't exist back then; etc. The choice is obvious, and yet extremely unpalatable as well.)
Public API contracts are NEVER intentionally broken.
No they don't, unless you're somehow running Windows 10 on a 32 bit machine.
Been bitten a few times by programs bundled using ancient 16-bit InstallShield. It _does not_ work on Windows 10.
32-bit Windows still exists.
The explanation made no sense to me.
Go figure why Raymond Chen decided to do a blog post on this though, since apparently that is a verboten topic which leads to a weirdly sparse article that doesn't answer its title question, and a censored comment thread.
It's annoying, but given that it's nearly a decade old it's probably not worth getting upset over it.
So he teases a significant detail of the answer, then notes that not only won't he explain but he will not allow anyone else to explain either - no reason given. Then, when people unsurprisingly do discuss it, he gets mad and deletes the comments.
That's in addition to a lot of aggressive or condescending answers I've read to what seem quite reasonable questions.
If commenters are such a problem, wouldn't it by now be better to simply close comments completely?
It's a different type of aggression than e.g. Linus or Theo, whom one can often find themselves agreeing with.
https://linux.die.net/man/3/creat
It goes way back to the murky beginnings of Unix.
Ken Thompson was once asked what he would do differently if he were redesigning the UNIX system. His reply: "I'd spell creat with an e."
But I do wish they had used one abbreviation for control rather than two - fcntl vs ioctl.
Naming is hard.
"This program was designed to maximize the bother function for structured programmers. This program takes goto statements to their logical conclusion. The layout and choice of names are classic."
So, I wonder now, what are the exact criteria according to which MS documented APIs? Why would they want to keep these criteria secret?
https://blogs.msdn.microsoft.com/oldnewthing/20100804-00/?p=...
https://blogs.msdn.microsoft.com/oldnewthing/20161104-00/?p=...
It now says that "First-time commenters will be moderated." BTW. The feature the 2016 blog post talked about was invented in 2011 or so as part of Win8 BTW.
Do people say "nemonic", or "me-nemonic" or "em-nemonic"? If I really try to avoid an implicit vowel, I could say "hmmm-nemonic", but that sounds weird, and there is still a vowel in there.
I once heard the suggestion to join the "impossible" consonant to the previous word, so "the mnemonic" would be "them nemonic". It came up with "chtonic" and "chtulu" (the chtonic gods = "theχ tonic gods" / "thek tonic gods"). I like that idea, although it seems highly nonstandard.
If the consonants in the cluster are unvoiced, it is even easier to avoid an implicit vowel by simply not voicing anything and pronouncing the individual consonants in fast succession, just like "ch" is formed from "t" and "sh".
I think of it a bit like fourier analysis. Like you automatically have higher frequency components when you have a rectangular wave form. Turning on the "m" out of nothing looks or sounds like an "e". I think you could make a recording of "mmmm", cut of the beginning or the end, and the transition from/to silence would still constitute a vowel.
You can choose to have the vowel before, or after the m. Most often I've heard "m(e)nemonic".
The rest of the world doesn't seem to have such a hard time with these sounds.
If you aren't serious about actually removing a bad API at some point, don't change anything. Otherwise, you create two things that need to be tested/supported/kept binary-compatible/etc. instead of one, raising technical debt when you were supposed to lower it.
I found some answers about exactly when US and UK English differ on this point, though none of them is comprehensive: https://english.stackexchange.com/questions/9192/cancelled-o...
I thought all of Microsoft's code was in one giant repo anyway, so it would literally just be 1 commit to update this.