r/programminghorror • u/RiuBert • Aug 03 '25
r/programminghorror • u/Sufficient-Garage-85 • Aug 05 '25
Github pr pages seem to be down
r/programminghorror • u/YohJny • Aug 03 '25
c My first quiz in C
It's just macros behind this In the future I want to make this read the questions from a .txt file If someone wants to see the macros https://github.com/Junaiyo/JustANormalQuizInC.git
r/programminghorror • u/Nathan2222234 • Aug 01 '25
C# CSX: Helping C(++) Devs transition to C Sharp one macro at a time
Have you ever felt like C# lacked the essential features from c++, like I don't know.. macros?
Fear no more, for CSX is a 'transpiler' which translates CSXTM code to C# code.
Above is some CSX code translated to C# code, I hope this helps you c++ devs who are struggling to cope with the lack of macros present in c sharp.
Find CSX here
Inspiration
r/programminghorror • u/detroitmatt • Jul 31 '25
C# (names changed to protect the guilty)
we were returning ZABINGA when we weren't expecting to and I had to figure out why
if ((isQux
&& foo.IsBar
&& foo.IsZorp
&& isBaz)
|| foo.BarAction.Equals(ZOUNDS)
|| (self.IsStatusCodeIn(ZORTCH, ZINGO)
&& isBaz
&& (fooDocument.DocumentInformation
.DocumentFailedRules
.All(rule => !rule.IsCritical
|| rule.IsOverride)
|| foo.IsFake))
|| (target.IsStatusCodeIn(qux.Code, ZORTCH, ZINGO)
&& activeDocument != null
&& activeDocument.IsNew))
return ZABINGA;r/programminghorror • u/Mysterious-Car771 • Jul 30 '25
Typescript is this programming horror or am I just shit ?
r/programminghorror • u/Sea_Duty_5725 • Jul 30 '25
c++ I created some better syntax for c++
Sooooooooo... I used a bit of macros to make arguably the best syntax for c++ there ever was and will ever be, take a look:
r/programminghorror • u/IosevkaNF • Jul 26 '25
regex Yeah an optimization (Out of context)
r/programminghorror • u/matheus7774 • Jul 28 '25
Python Guys, is there anything I can do to improve my code?
r/programminghorror • • Jul 25 '25
Other Matlab coders are on another level
I found this in my company's old matlab code. Ok I guess:
ok = 1
if condition
ok = true;
if ok
// code
end
else
ok = 0
continue
end
end
r/programminghorror • u/AnGlonchas • Jul 21 '25
Python Didnt know this existed in my code hahahahahahah
r/programminghorror • u/Nathan2222234 • Jul 20 '25
C# Also got inspired by a post, c sharp code with unsafe shenanigans.
Saw this post and also this one and got inspired to check back on a old project I done for fun. Made some additions and now there is this unholy mess of code that 50/50 leaks memory honestly lol. ;w;
full repo in comments whenever I can be bothered to push to github for anyone interested xD
(if anyone has stories or pics of unsafe code in c sharp do share, it's quite interesting on unsafeness in c sharp imo)
r/programminghorror • u/sierra_whiskey1 • Jul 22 '25
I hope this doesn't break
created the objective class for my game. the only way I could think of doing the waypoint locations was accepting a lambda function that returns a list of vectors. seemed horrific to me


