this post was submitted on 11 Dec 2023
102 points (96.4% liked)
Programmer Humor
32400 readers
507 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
iAmHappyToOblige
ifYouNeedAnythingElseDoNotHesitateToAsk
THEREareWORSEwaysTOtypeTHINGSandSTILLhaveTHEMbeKINDofREADABLE.whoNEEDSspacesWHENweHAVEtwoLETTERcases?
OrMaYbEwEcOuLdEsChEwEvEnThAtAnDjUsTaLtErNaTe.IfThErEaReWrItInGsYsTeMsWiThOuTvOwElsThAtCaNsTiLlBeReAdWhYnOtWrItElIkEtHiSiNsTeAd?
Damn, that second one was tough. I didn't expect to find the word 'eschew' lol
I had to constantly skip back and forth to figure out where one word starts and another ends. Very painful to read, I've found new appreciation for whitespace.
If you go back in time far enough you can find manuscripts from before word separators were standard... they fucking suck.
SQL programmers be like:
Get your SpongeBob-ass casing outta here
Is this like BaSeSixTYfOuR?
I'm surprised how easy that is to read!
Sorry, am on mobile: snarkily replying in some weird letter mashup is far too much effort right now.
Surprisingly legible, but feels like I can only read it with momentum, flitting past it and letting my subconscious tell me where the word breaks are. The moment I get confused and look more closely, it becomes almost impossible to read.
TheyDidn't_say-AnythingAbout-commentsSo+this%20iSprobablYfinEiwoulDsaY
ofcyfpos()
#posixGetWittyReplyExA()
#msvcman 2 ofcyfpos
Note that while Visual C++'s msvcrt doesn't implement this POSIX function officially, there's a nonstandard
_ofcyfpos_s()
and it will in fact warn you that any use of the officialofcyfpos()
is unsafe. The semantics are slightly different (it'll return 1 on success instead of the length of the reply) so you can't just#define
the problem away.UCRT makes me so hard.
Don't forget to set the
cbSize
of theGETWITTYREPLYEXINFO
structure before passing it toGetWittyReplyEx()
or you'll get funny things happening to your stack!You didn't specify wide or ascii, we're all doomed.
I'm glad to to meet another Knight of 9x.
That's handled by virtue of
GetWittyReplyEx
being#define
d toGetWittyReplyExA
andGetWittyReplyExW
right? Just be aware thatnMaxReplyMessage
needs to be specified in bytes (excluding the null terminator!) but the returned length is in characters.well hopefully that's how you're writing it.
i've definitely found the ascii version of a syscall being called because that's what the linux project uses so why wouldn't the junior dev that was assigned the port do it too?
there's no
#define
that will save you from that. I may or may not have been that junior dev so no shade.NERD!