News for hackers. Stuff that matters.
Re:Apple agrees to settle potential class action suit by U.S... by mynegation on Thursday August 26, 2021 @10:03PM (#28323515)
Lol, few things trigger my OCD more than misspelled words in identifiers. I legit missed important use case while amending legacy system just because someone decided to have “priveleges” in the variable name. I hope all those ways to spell number 90 are part of the joke.
Re:Apple agrees to settle potential class action suit by U.S... by gambiting on Friday August 27, 2021 @04:05AM (#28325401)
In a triple A game I worked on, the PlayStation button enums were CROSS, SQUARE, TRIANGLE, and...... CRIRCLE.

Would drive me absolutely livid. But of course no one was allowed to fix is since it was already in a few different games, countless script files, network-controlled configs etc.....

Re:Apple agrees to settle potential class action suit by U.S... by hnlmorg on Friday August 27, 2021 @06:27AM (#28326091)
I feel your pain. A company I work for has a weird name that doesn't follow the rules of English spelling correctly (I can't say more without giving away the company name). This was an intentional decision and poses enough of a problem for guests visiting the company. But the absurd thing is this company decides to double down on it's troubles by naming all of it's projects using the same broken rule as the company title. Often these projects will be common English words re-spelt in the style of the company name. So now I'm often finding myself misspelling common words because of this stupid company name. And all of this is intentional too! Drives me nuts.
Re:Apple agrees to settle potential class action suit by U.S... by mastazi on Friday August 27, 2021 @08:13AM (#28326794)
I see what you did here...

> it's troubles

> it's projects

> So now I'm often finding myself misspelling common words

> And all of this is intentional too!

:-D

Re:Apple agrees to settle potential class action suit by U.S... by ndonnellan on Friday August 27, 2021 @08:37AM (#28327016)
You mean like Optimizely? I thought most startups these days had absurd adjectiverbnoun names.
Re:Apple agrees to settle potential class action suit by U.S... by etrautmann on Friday August 27, 2021 @06:37AM (#28326148)
Googol?
Re:Apple agrees to settle potential class action suit by U.S... by ballenf on Friday August 27, 2021 @07:53AM (#28326645)
At this point most students learning about that number assume it's misspelled when first introduced and incorrect the teacher.
Re:Apple agrees to settle potential class action suit by U.S... by gambiting on Friday August 27, 2021 @08:21AM (#28326865)
>>incorrect the teacher.

Did you just use incorrect as a verb?

Re:Apple agrees to settle potential class action suit by U.S... by bombcar on Friday August 27, 2021 @10:03AM (#28327917)
A favorite pastime of HN is users incorrecting each other on topics they know nothing about. ;)
Re:Apple agrees to settle potential class action suit by U.S... by allwein on Friday August 27, 2021 @10:56AM (#28328659)
Re:Apple agrees to settle potential class action suit by U.S... by majormajor on Friday August 27, 2021 @12:39PM (#28329912)
Verbing weirds language.

Beaten by ten years: https://www.gocomics.com/calvinandhobbes/1993/01/25 :)

Re:Apple agrees to settle potential class action suit by U.S... by ffhhj on Friday August 27, 2021 @08:31AM (#28326972)
That's so discorrect.
Re:Apple agrees to settle potential class action suit by U.S... by tenebrisalietum on Friday August 27, 2021 @11:26AM (#28329053)
Reminds me of the occasional encounter with "deinstall" versus "uninstall."
Re:Apple agrees to settle potential class action suit by U.S... by hirvi74 on Saturday August 28, 2021 @12:46AM (#28335701)
That distinction is a little unrelevant, don't you think? Irregardlessly, you make a good point.
Re:Apple agrees to settle potential class action suit by U.S... by dkersten on Friday August 27, 2021 @09:03AM (#28327277)
unpossible!
Re:Apple agrees to settle potential class action suit by U.S... by gota on Friday August 27, 2021 @09:45AM (#28327730)
postposterous!
Re:Apple agrees to settle potential class action suit by U.S... by ant6n on Friday August 27, 2021 @11:01AM (#28328726)
I think we're way beyond postposterous. Think postpostposterous.
Re:Apple agrees to settle potential class action suit by U.S... by bluedino on Friday August 27, 2021 @09:45AM (#28327731)
A very long time ago we outsourced our Wordpress development and customization to a developer we found on a website who was from Moldova. He did pretty decent work and we got a great deal, but the HTML/CSS was a bane to work with. Almost half the DIV id's and such were spelled slightly wrong. Didn't affect the operation of the site but was very annoying to work with.
Re:Apple agrees to settle potential class action suit by U.S... by indigochill on Friday August 27, 2021 @08:30AM (#28326958)
CROSS = 1

CRIRCLE = 2

CIRCLE = CRIRCLE

Re:Apple agrees to settle potential class action suit by U.S... by bluedino on Friday August 27, 2021 @10:33AM (#28328301)
I remember Allegro used to have double functions for Palette and Pallet.

  You may notice that a lot of the code in Allegro spells 'palette' as 'pallete'. This is because the headers from my old Mark Williams compiler on the Atari spelt it with two l's, so that is what I'm used to.
Re:Apple agrees to settle potential class action suit by U.S... by jrockway on Thursday August 26, 2021 @10:45PM (#28323778)
The key is to write out the enums to long-term storage as the names instead of the numbers, that way nobody can ever fix your spelling mistakes.
Re:Apple agrees to settle potential class action suit by U.S... by dhosek on Thursday August 26, 2021 @11:57PM (#28324137)
There are lots of ways for spelling errors to get reified. They can also end up in a data interchange XML schema (I bumped into that one at a previous job where it seemed like an obvious and trivial fix to correct the spelling of a class name and discovered that it had ended up in a company-wide data interchange schema which could not be practically fixed).
Re:Apple agrees to settle potential class action suit by U.S... by btilly on Friday August 27, 2021 @01:19AM (#28324529)
The most important example of that class of error is REFERER. It should have been spelled REFERRER. But nobody caught it, and you really can't change something that is part of the HTTP standard...
Re:Apple agrees to settle potential class action suit by U.S... by chrisweekly on Friday August 27, 2021 @08:16AM (#28326821)
Tangent: this reminds me of the _aptly_ named "mod_speling" module.
Re:Apple agrees to settle potential class action suit by U.S... by mixmastamyk on Friday August 27, 2021 @01:41AM (#28324635)
Early header compression.
Re:Apple agrees to settle potential class action suit by U.S... by saagarjha on Friday August 27, 2021 @02:39AM (#28324966)
Took a leaf out of the UNIX creat/umount handbook, clearly.
Re:Apple agrees to settle potential class action suit by U.S... by int_19h on Friday August 27, 2021 @03:36AM (#28325281)
umount() is actually legit - early C limited extern identifiers to 6 chars (or rather it would allow more than that, but the rest would be silently ignored for linking purposes), hence why we also have strlen() etc.

creat() is weird because create() would fit that constraint just fine, so there's no obvious reason as to why it had to be shortened. The 1978 K&R C book actually notes it with [sic].

Re:Apple agrees to settle potential class action suit by U.S... by mike_hock on Friday August 27, 2021 @05:01AM (#28325675)
When you're dumping loads of short, generic, common words into the global namespace (well ... the only namespace in C), it's nice to have them misspelled so user code is still free to use the real word.
Re:Apple agrees to settle potential class action suit by U.S... by guerrilla on Friday August 27, 2021 @07:23AM (#28326388)
> well ... the only namespace in C

Technically there are several namespaces since you can, for example, name a struct the name as its type.

Re:Apple agrees to settle potential class action suit by U.S... by dhosek on Friday August 27, 2021 @09:22AM (#28327472)
After many years in Javaworld, seeing this sort of thing in C++ really freaked me out.
Re:Apple agrees to settle potential class action suit by U.S... by ant6n on Friday August 27, 2021 @11:03AM (#28328765)
> The most important example of that class of error is REFERER. It should have been spelled REFERRER.

I thought it was supposed to be REEFERER.

Re:Apple agrees to settle potential class action suit by U.S... by Razengan on Friday August 27, 2021 @06:35AM (#28326134)
At this point I think it may be question whether the problem lies with English itself. Such an error prone language.
Re:Apple agrees to settle potential class action suit by U.S... by dhosek on Friday August 27, 2021 @09:30AM (#28327559)
You don't know the half of it. Many contemporary and common words are the results of misspellings.

“a nickname” was originally “an ekename” (eke being an old English word meaning also)

conversely, “an apron” was originally “a napron.”

English is a weird agglomeration of different languages, with things like the application of French-style plurals (-s) to Anglo-Saxon words (but not always, cf. ox -> oxen) and a generally Germanic syntax with a large fraction of Romance root words.

As part of my Dewey Decimal Project¹ https://www.dahosek.com/category/dewey-decimal-project/ I ended up reading some interesting books on English linguistics (scroll down to the 500s for those).

———

1. I’m not quite done. I have two read books to blog about before I read the last book in the series which will be the book my local library has at its highest Dewey Decimal call number. Alas, it's not a 999 Extraterrestial Worlds book, but I think it's either Antarctica or Australia (I looked when I first started on this seven years ago, but I've since forgotten).

Re:Apple agrees to settle potential class action suit by U.S... by sls on Friday August 27, 2021 @11:27AM (#28329061)
It's not really misspellings, it's reanalysis, and it's not at all particular to English.
Re:Apple agrees to settle potential class action suit by U.S... by diggernet on Friday August 27, 2021 @10:47AM (#28328525)
Also, "a narang" -> "an orange".
Re:Apple agrees to settle potential class action suit by U.S... by chovybizzass on Thursday August 26, 2021 @11:57PM (#28324139)
Or get your typo into a spec like "referer"
Re:Apple agrees to settle potential class action suit by U.S... by banana_giraffe on Thursday August 26, 2021 @10:39PM (#28323745)
Re:Apple agrees to settle potential class action suit by U.S... by jrockway on Thursday August 26, 2021 @10:42PM (#28323767)
That's a good one. Since legacy code is less likely to change than the English language, I just call it a "referer" in writing unrelated to HTTP. That way, I'm never confused. (Everyone else? Good luck.)
Re:Apple agrees to settle potential class action suit by U.S... by dhosek on Friday August 27, 2021 @12:05AM (#28324177)
I used to do technical writing and for some software that I wrote the manual and help system for, one of the menu items was misspelled. I spelled the word correctly in the text describing its functionality, but whenever I referred (so to speak) to it directly as the menu item to be selected, I kept the misspelling (this was the early 90s, the days of people saying non-ironically that they couldn't find the "any" key on their computer).
Re:Apple agrees to settle potential class action suit by U.S... by grenoire on Friday August 27, 2021 @12:59AM (#28324452)
Pretty sure people still can't find the any key, we just stopped asking them to!
Re:Apple agrees to settle potential class action suit by U.S... by curryst on Friday August 27, 2021 @09:53AM (#28327812)
Yep, I get some prompts now that say "Press the $X key" (often space), but will actually proceed if you hit any key. It always give me a touch of chuckles when I think about why they named a specific key then.
Re:Apple agrees to settle potential class action suit by U.S... by inopinatus on Thursday August 26, 2021 @11:40PM (#28324056)
I once saw this implemented as a regex. Unfortunately the regex was refer*er.

“Tests pass, ship it”

Re:Apple agrees to settle potential class action suit by U.S... by exikyut on Thursday August 26, 2021 @11:46PM (#28324094)
The tests clearly did not include spinning up an HTTP server and actually using the correctly-spelled header (as per correct English), then.
Re:Apple agrees to settle potential class action suit by U.S... by dqv on Thursday August 26, 2021 @11:47PM (#28324098)
I don't know enough about overflows, but that could theoretically be exploited, right? referrrrrrrrrrrrrrrrrrrrrrrrrrrer
Re:Apple agrees to settle potential class action suit by U.S... by zeusk on Thursday August 26, 2021 @11:56PM (#28324135)
inb4 refeer (should've used referr?er)
Re:Apple agrees to settle potential class action suit by U.S... by xmprt on Friday August 27, 2021 @01:32AM (#28324594)
I also feel like this is a buffer overflow waiting to happen. If somehow someone makes the header length way longer than expected (eg. referrrrrrrrrrrrrrer).
Re:Apple agrees to settle potential class action suit by U.S... by jsjohnst on Friday August 27, 2021 @08:55AM (#28327192)
? is 0 or 1 instances of the preceding character, so referrrrrrrrrrrrrrer wouldn’t match /referr?er/, only referer or referrer.

Proof: https://regex101.com/r/s56ebD/1

Re:Apple agrees to settle potential class action suit by U.S... by xmprt on Friday August 27, 2021 @03:40PM (#28332143)
I'm replying to the grandparent comment. I said "Also" meaning I was adding onto your comment.
Re:Apple agrees to settle potential class action suit by U.S... by dhosek on Friday August 27, 2021 @12:01AM (#28324161)
Lets not forget the misspelling of guillemet as guillemot that is now firmly embedded into PostScript and Adobe software with no chance of ever being fixed.

Unicode sidestepped the issue by naming the characters RIGHT/LEFT-POINTING DOUBLE ANGLE QUOTATION MARK.

Re:Apple agrees to settle potential class action suit by U.S... by Someone on Friday August 27, 2021 @03:03AM (#28325109)
Unicode also documents its mistakes in technote 27 “Known Anomalies in Unicode Character Names” (https://unicode.org/notes/tn27/), with remarks such as

“U+034F COMBINING GRAPHEME JOINER

The name does not describe the function of this character. Despite its name, it does not join graphemes”

“The use of the spelling lamda derives from ISO 10646. This does not mean that it is more correct than lambda, merely that the spelling without the 'b' is the one used in the formal character names”

“A spelling error: "brakcet" should be "bracket". A formal alias correcting this error has been defined”

Re:Apple agrees to settle potential class action suit by U.S... by mananaysiempre on Friday August 27, 2021 @08:17AM (#28326833)
I’ve heard Greeks insist that lamda is indeed correct (as a non-misleading approximation of something like [lamða], not necessarily as an English spelling), so that part might have been a deliberate result of the ISO process.

(There’s also the name caron for the haček, apparently not used by anyone before the 80s; per the official FAQ:

Q: Why is the haček accent called “caron” in Unicode?

A: Nobody knows.)

Re:Apple agrees to settle potential class action suit by U.S... by Someone on Friday August 27, 2021 @10:19AM (#28328096)
Re:Apple agrees to settle potential class action suit by U.S... by asddubs on Friday August 27, 2021 @06:52AM (#28326227)
Why can't unicode change the names of the glyphs?
Re:Apple agrees to settle potential class action suit by U.S... by Someone on Friday August 27, 2021 @07:13AM (#28326340)
From that page:

“Because Unicode Standard is a character encoding standard and not the Universal Encyclopedia of Writing Systems and Character Identity, the stability and uniqueness of published character names is far more important than the correctness of the name. The published character names are normative for the purposes of the Unicode standard and the large number of other IT standards that reference it. These standards require stable identifiers and character names must therefore be immutable — any change of character names is almost as disruptive of the standards as changing code points for characters would be. Accordingly, the Unicode Consortium has adopted the Name Stability Policy, preventing changes in character names. As a result, errors in character names cannot be corrected. Instead, important character name anomalies anomalies (SIC) are documented with annotations in the Unicode Character Code Charts.”

Also because somebody, somewhere, might have used those names to look up Unicode code points.

Part of each Unicode release is a file named “UnicodeData.txt” (https://unicode.org/Public/13.0.0/ucd/UnicodeData.txt), so those strings are public information.

Re:Apple agrees to settle potential class action suit by U.S... by jfk13 on Friday August 27, 2021 @09:29AM (#28327555)
Just a note in passing: Unicode doesn't name glyphs; it names characters.
Re:Apple agrees to settle potential class action suit by U.S... by UglyToad on Friday August 27, 2021 @07:49AM (#28326609)
This reminds me when I was learning to code I was working through the Project Euler problems in python, one of them has you write code to do something with the English words for numbers.

I wrote my code and was fairly confident it was correct, submit the answer and it is rejected, spend the next few hours trying to find the logic error. Of course it's because English is ridiculous and it's "forty" instead of "fourty".

Re:Apple agrees to settle potential class action suit by U.S... by layer8 on Friday August 27, 2021 @12:53PM (#28330136)
What about twoty, threety, fivety and eightty?
Re:Apple agrees to settle potential class action suit by U.S... by UglyToad on Friday August 27, 2021 @01:38PM (#28330739)
I think it's the amount of prefix that gets me with forty. Plus fifth / fourth versus fifty / forty
Re:Apple agrees to settle potential class action suit by U.S... by monocasa on Friday August 27, 2021 @04:04AM (#28325398)
As a dev with dyslexia, I apologize. I've for sure committed some sins there in places that are nasty to fix.
Re:Apple agrees to settle potential class action suit by U.S... by hurflmurfl on Friday August 27, 2021 @05:14AM (#28325725)
Well, pasting the enum example into IntelliJ highlighted the spelling mistakes and suggested replacing NINTEY and NINETEY with NINETY. I think this is how my dyslexic colleague works too - copy pasting instead of writing and looking for various wiggly lines in code editor.
Re:Apple agrees to settle potential class action suit by U.S... by monocasa on Friday August 27, 2021 @01:49PM (#28330884)
Yeah, spell check in editor is killer, and I work in strongly typed languages so it's a compiler error if I misspell a variable name is another big one.

It doesn't catch everything however.

Re:Apple agrees to settle potential class action suit by U.S... by InitialLastName on Friday August 27, 2021 @08:49AM (#28327128)
I worked with a (home-rolled at the company, but long before my time with no compilation documentation) comms library that had functions named "receive" and functions named "recieve".

Even better, the library was called into as a COM object by a Visual Basic Script script, and the misspelled corner case only got hit rarely. Figuring out that the problem was the correctly spelled function call was a joy.

Re:Apple agrees to settle potential class action suit by U.S... by chopin on Friday August 27, 2021 @09:54AM (#28327830)
I rarely work with Excel. A couple of days ago I had the joy to need to apply a function with multiple parameters. The formula parser complained with an error message which meant nothing to me. I finally figured out that I needed to use semicolons as separator for the function arguments (I am from Germany). Who in his right mind does THIS? I tried to change the separator in Windows setting, to no avail.
Re:Apple agrees to settle potential class action suit by U.S... by simlevesque on Thursday August 26, 2021 @10:19PM (#28323625)
I feel like being proactive about these things is one of the most important parts of my job.
Re:Apple agrees to settle potential class action suit by U.S... by bradleyankrom on Friday August 27, 2021 @08:29AM (#28326947)
In an old code base I worked in, someone misspelled “params” as “parms.” Always made me want a sandwich.
Re:Apple agrees to settle potential class action suit by U.S... by maxwell on Friday August 27, 2021 @08:48AM (#28327119)
Re:Apple agrees to settle potential class action suit by U.S... by croddin on Friday August 27, 2021 @12:20AM (#28324270)
I was just trying to debug something today and noticed how the referer HTTP header is spelled wrong and that is the spec while there are several other headers that spell it referrer. Crazy!
Re:Apple agrees to settle potential class action suit by U.S... by alfalfasprout on Thursday August 26, 2021 @10:15PM (#28323598)
Oh yeah it's especially wonderful if it's too late to fix the spelling mistake lol.
Re:Apple agrees to settle potential class action suit by U.S... by tambourine_man on Friday August 27, 2021 @09:15AM (#28327419)
Magento 1.9X used to have a typo in the database that lasted for years because so much stuff already relied on it and it wasn't user facing. I do not miss those days.
Re:Apple agrees to settle potential class action suit by U.S... by sgerenser on Friday August 27, 2021 @01:42PM (#28330799)
Even worse than misspelled is when it’s inverted polarity! Like uninitialized=true means that it IS initialized. I’ve seen something similar to that in multiple jobs.
Re:Apple agrees to settle potential class action suit by U.S... by mikey_p on Friday August 27, 2021 @11:21AM (#28328983)
I once fat-fingered a `rails new APPNAME` command and didn't catch it for several months. Not impossible to change, but also not really critical either.
Re:Apple agrees to settle potential class action suit by U.S... by dehrmann on Friday August 27, 2021 @03:00AM (#28325091)
Have fun naming the variable you use for referer.
Re:Apple agrees to settle potential class action suit by U.S... by BitwiseFool on Friday August 27, 2021 @10:47AM (#28328527)
You're going to love this: U+FE18 ︘ PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRAKCET: bracket is spelled incorrectly.

https://en.wikipedia.org/wiki/Unicode#Anomalies

Re:Apple agrees to settle potential class action suit by U.S... by wiether on Friday August 27, 2021 @04:32AM (#28325543)
That's what code reviews are for :)
Re:Apple agrees to settle potential class action suit by U.S... by aroman on Friday August 27, 2021 @03:33AM (#28325272)
do you actually have OCD or are you just using this as a figure of speech?
Re:Apple agrees to settle potential class action suit by U.S... by hashkb on Friday August 27, 2021 @01:01AM (#28324456)
And everyone saying "backslash" is on the inside of an awesome joke too.
Re:Apple agrees to settle potential class action suit by U.S... by JadeNB on Friday August 27, 2021 @02:26PM (#28331328)
Could you elaborate?
Re:Apple agrees to settle potential class action suit by U.S... by hashkb on Sunday August 29, 2021 @10:33PM (#28352327)
Many TV and radio commercials still say "backslash" in URLs. They're just wrong, it's never been a backslash. I was being mean.