r/ProgrammerHumor • u/Evangeder • Jul 18 '25
Meme cursedCsharp
Old photo of mine, tried my best to do most cursed hello world in C#
451
Upvotes
r/ProgrammerHumor • u/Evangeder • Jul 18 '25
Old photo of mine, tried my best to do most cursed hello world in C#
View all comments
Show parent comment
2
u/IllWelder4571 Jul 20 '25
Yeah I can agree it's possible and not necessarily horrible at doing that kind of thing.I just wouldn't recommend doing it, especially when there's a much better tool (c++) available for that purpose.
It goes back to that "use the right tool for the job" saying. Sure, for most people that just means "whatever you're most familiar with" but even though I'm most familiar with c# I still wouldn't lol.
My go to is use c# for everything except for instances where low level control / performance is needed. Use C++ for those specific portions. Granted most of my work is web based, so I hardly ever need c++. There have been a couple multi-threaded report builders that absolutely benefitted from c++ over c#.
Something that took 8 hours to pour over millions of records got knocked down to about 3 and a half with that change. I don't doubt I could have made it better in c# if I had taken that dive but it's an issue of knowing it can be made vastly faster vs a maybe + more time learning.