Some words are hard to spell

Found this in some code for a TFT. It was the only color that was redefined like this. Obviously something about one name was an issue.

#define VGA_HOTPINK VGA_FUCHSIA

It's only used in some of the code. Older parts use the VGA_FUCHSIA name. You can literally see the point in development where the guy got tired of compile errors and said, "Screw it, I ain't learning to spell that one right."

I can speel gud. The real problem is the typing - so I avoid underscores :slight_smile:

...R

#define color23 #ff69b4

easier. OR IS IT

Qdeathstar:
easier. OR IS IT

Only if you automatically associate color23 with fuchsia :slight_smile:

...R

All that was required was to add each mispelling to the list. The list might get a bit long after a while but eventually every possible mispelling would be there.

#define VGA_FUSCHIA VGA_FUCHSIA
#define VGA_FUSHIA  VGA_FUCHSIA
#define VGA_FUCSHIA VGA_FUCHSIA
#define VGA_HOTPINK VGA_FUCHSIA

Isn't this why #define was originally specified in the C preprocessor? :grin:

Pete

el_supremo:
All that was required was to add each mispelling to the list. The list might get a bit long after a while but eventually every possible mispelling would be there.

#define VGA_FUSCHIA VGA_FUCHSIA

#define VGA_FUSHIA  VGA_FUCHSIA
#define VGA_FUCSHIA VGA_FUCHSIA
#define VGA_HOTPINK VGA_FUCHSIA

Ah F**k it, I'll just use Green :slight_smile:

...R

@Robin2: Don'tcha mean "Ah Fuchsia it!" ?

Pete

Yeah, and why is dyslexia so hard to spell?

AWOL:
Yeah, and why is dyslexia so hard to spell?

Don't you mean dylsexia?

...R

Dailysex, you say?

AWOL:
Dailysex, you say?

Not while I'm typing.

...R

DYSLEXICS UNTIE!

Delta_G:
DYSLEXICS UNTIE!

LOL. Best one so far.

...R

Some words start to look strange if you stare at them too long.

weird

is one of them

INTP:
Some words start to look strange if you stare at them too long.

weird

is one of them

Perhaps because you are wired?

...R

Well, you could choose your colors from http://c0ffee.surge.sh/
But the "names" are not very descriptive.

why the ghuck does laugh end with an F sound

"GHOTI" spells "fish" - pronounce the "gh" like in Laugh, the "O" like in "women", and the "TI" like in "nation." :slight_smile:

travis_farmer:
the word looks fine, but the walls started breathing while staring at the word... :wink:

~Travis

indeed.

INTP:
why the ghuck does laugh end with an F sound

There once was a young man from Slough,
Whose rhymes were exceedingly rough,
The critics all said,
That his style was too staid,
But at least all his spelling was thorough.