As of short variable names, I'd argue that they are actually more readable than long ones when they're the iterator of a loop:
while... XNextEvent(... &e)
What else can "e" stand for in the body of this loop?Longer lifetimes and not-as-obvious scopes do deserve longer names.
Finally, I strongly dislike this kind of reversed conditions:
if (const == var)
To paraphrase your own words, we're in 2025 and we should not be limited by our fear of forgetting one "=".I understand that you might not like that style but I think you're comming a bit too strong on this, especially considering how carefully I worded my message in terms of not hurting any feeling and being clear about this being MY preference.
I guess I shouldn't probably even answer but it saddens me and makes me a bit angry to get a reminder of why I don't usually participate in social media.
Please don't stop participating in social media just because a halfwit like me hasn't agree with you once!
I would've loved to engage in a conversation about coding styles such as MISRA, CERTs or even the small tweaks such as the one that offended you so deeply but you wasted the opportunity to engage in a constructive convesartion and instead chose to nitpick the "reformatting" thing (seriously, I just moved things around slightly, it's the same thing) or the nothing-burger "bug"...
I don't know, maybe I misinterpreted you and if that's the case then I apologize but when I saw that code and felt the urge to play/doodle I thought it could be a fun way to connect with someone over something silly and I just got disappointed.
It's painfully verbose but I think it's worth it considering that we're in 2025 and we're not limited to one character variable names.
https://gist.github.com/leonardo-albertovich/984fff0825ff8fe...