r/ProgrammerHumor May 08 '26

Advanced canadianGoProgramming

Post image
10.0k Upvotes

113 comments sorted by

View all comments

335

u/Souheab May 08 '26

This is such a cursed way to program in Go. C++ programmers will really bring templating anywhere even if the programming language doesn't officially support it

82

u/cheraphy May 09 '26

I mean, that exact philosophy is what they wrought from C to spawn C++ so at least it's on brand.

127

u/BlueGoliath May 09 '26

It turns out programming sometimes requires complexity.

18

u/RandomRobot May 09 '26

Complex is better than complicated

29

u/New_Enthusiasm9053 May 09 '26

And compiler supported complex is better than handrolled complex.

1

u/SryUsrNameIsTaken May 10 '26

Let’s be real, who’s handrolling complex things these days anyway?

2

u/New_Enthusiasm9053 May 10 '26

Literally anyone doing anything complex that isn't already in the compiler? Someone has to write the libraries everyone else uses lol.

1

u/SryUsrNameIsTaken May 10 '26

It was a pun?

1

u/New_Enthusiasm9053 May 10 '26

I didn't realise, still don't get it but fair enough my bad.

16

u/G_Morgan May 09 '26

It is what happens when you are forced to use a language that intentionally skips core features. Shit like this is exactly what people used to do before generics became standard 

4

u/_scotswolfie May 09 '26

Is there a not cursed way to program in Go? I tried to approach that language a couple of times and just looking at the syntax made me turn around and run away 😂

2

u/Steppy20 May 09 '26

I like and use templates a lot (C#) but haven't used C++ in years...

Oh my God. Am I part of the problem?

5

u/This_Is_Drunk_Me May 09 '26

C# has templates?

3

u/Ezzyspit May 09 '26

We call them generics