News for hackers. Stuff that matters.
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"