TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why is the function SHStripMneumonic misspelled?

52 pointsby uyoakaomaalmost 8 years ago

16 comments

hota_mazialmost 8 years ago
&gt; so there would have to be some coordination among the teams so everybody fixed their spelling at the same time.<p>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?<p>Mark the bad function deprecated, warn the teams and after a few release cycles, remove it.
评论 #14632621 未加载
评论 #14632745 未加载
评论 #14632835 未加载
dTalalmost 8 years ago
Okay so the ultimate cause is apparently &quot;because Microsoft was <i>legally</i> compelled to publicly document poorly-designed internal functions as part of the DOJ anti-trust suit&quot;.<p>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&#x27;t answer its title question, and a censored comment thread.<p>It&#x27;s annoying, but given that it&#x27;s nearly a decade old it&#x27;s probably not worth getting upset over it.
评论 #14634998 未加载
评论 #14635788 未加载
xg15almost 8 years ago
Raymond Chen&#x27;s blog post are always interesting and enlightening to read and we should be grateful that he takes the time and effort to write them - but his people skills appatently could use a good bit of improvement.<p>So he teases a significant detail of the answer, then notes that not only won&#x27;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.<p>That&#x27;s in addition to a lot of aggressive or condescending answers I&#x27;ve read to what seem quite reasonable questions.<p>If commenters are such a problem, wouldn&#x27;t it by now be better to simply close comments completely?
评论 #14632984 未加载
johan_larsonalmost 8 years ago
See also: creat()<p><a href="https:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;3&#x2F;creat" rel="nofollow">https:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;3&#x2F;creat</a><p>It goes way back to the murky beginnings of Unix.<p>Ken Thompson was once asked what he would do differently if he were redesigning the UNIX system. His reply: &quot;I&#x27;d spell creat with an e.&quot;
评论 #14633508 未加载
cytzolalmost 8 years ago
For anyone wanting to see the linked IOCCC program (now-broken link in the third paragraph), here it is: <a href="http:&#x2F;&#x2F;ioccc.org&#x2F;1987&#x2F;hines&#x2F;hines.c" rel="nofollow">http:&#x2F;&#x2F;ioccc.org&#x2F;1987&#x2F;hines&#x2F;hines.c</a><p>&quot;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.&quot;
yuhongalmost 8 years ago
The order they are referring to is probably the DOJ settlement in 2002. There used to be a page called &quot;Settlement Program Interfaces&quot; in MSDN. This was also when winternl.h was invented.
评论 #14635304 未加载
评论 #14632652 未加载
评论 #14633022 未加载
Vanitalmost 8 years ago
Not sure why they couldn&#x27;t rename it, make the previous function an alias of the new one, and deprecate it.
评论 #14633012 未加载
评论 #14632566 未加载
userbinatoralmost 8 years ago
I pronounce &quot;mnemonic&quot; without any &quot;u&quot; sound, and I&#x27;ve almost never heard otherwise, so this particular misspelling is a little puzzling --- unless the original author was thinking of &quot;pneumonic&quot;. I wonder if it is a UK vs. US difference.
评论 #14635237 未加载
评论 #14633201 未加载
raldialmost 8 years ago
This story just teases that there will be an answer and then doesn&#x27;t really give one. To paraphrase the ending: &quot;We had to. To those writing in to explain that we didn&#x27;t have to, trust me, we had to.&quot;
makecheckalmost 8 years ago
Deprecation is a really good solution for fixing things &quot;eventually&quot; but <i>only</i> if you pair it with a plan for making the old one go away forever (a plan <i>that you stick to</i>!).<p>If you aren&#x27;t serious about <i>actually</i> removing a bad API at some point, don&#x27;t change anything. Otherwise, you create <i>two</i> things that need to be tested&#x2F;supported&#x2F;kept binary-compatible&#x2F;etc. instead of one, raising technical debt when you were supposed to lower it.
desdivalmost 8 years ago
TIL that &quot;referer&quot; is a misspelling of &quot;referrer&quot; (from the top comment).
paulsutteralmost 8 years ago
For the same reason the Referer header is misspelled in HTTP - because life can sometimes be that way.<p><a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;HTTP_referer" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;HTTP_referer</a>
评论 #14634988 未加载
mrkgnaoalmost 8 years ago
The correct link to the IOCCC entry is:<p><a href="http:&#x2F;&#x2F;www0.us.ioccc.org&#x2F;1987&#x2F;hines&#x2F;hines.c" rel="nofollow">http:&#x2F;&#x2F;www0.us.ioccc.org&#x2F;1987&#x2F;hines&#x2F;hines.c</a>
mchahnalmost 8 years ago
I hate it when people misspell functions and commands to save one letter. umount comes to mind.
评论 #14634835 未加载
jjgreenalmost 8 years ago
See also Adobe&#x27;s amusing apology in the PostScript Red book for &quot;guillemot&quot;.
jstanleyalmost 8 years ago
&gt; The effort required to fix the spelling was a bit more than usual, since the function was used by multiple teams, so there would have to be some coordination among the teams so everybody fixed their spelling at the same time.<p>I thought all of Microsoft&#x27;s code was in one giant repo anyway, so it would literally just be 1 commit to update this.