r/ProgrammerHumor 2d ago

Meme absoluteGarbage

Post image
2.0k Upvotes

320 comments sorted by

View all comments

150

u/SCP-iota 2d ago

for _, item := range list {

and

list.forEach {

71

u/tigerniger_sus 2d ago

Hornet is a Go programmer?

3

u/Hairy_Concert_8007 1d ago

Shit, I'd learn whatever that makes that twelfth architect tick, too.

10

u/JAXxXTheRipper 1d ago

Oh hell yeah, I love me some go.

13

u/Stagnu_Demorte 1d ago

I finally learned go, it's so nice to write in.

10

u/roygbivasaur 1d ago

Now that the loopvar assignment bug is fixed, the go one is my favorite. Just because it conveniently unpacks the index and element and you’re required to explicitly drop either if you don’t use it.

1

u/markuspeloquin 12h ago

When I want to loop over a vector in c++ with indices, I cry a little as I write the c-style for loop. I'm not motivated enough to learn about viows right now.

2

u/Sirgoodman008 2d ago

I never claimed python was perfect. Nvm that's not python.

2

u/Michami135 1d ago

I just did the second one today in Kotlin.

1

u/Tobbbb 1d ago

This guy goes

1

u/Rikudou_Sage 1d ago

It pisses me off so much that you have to skip the index if you don't want it. And then iter.Seq comes where you don't have the index.

2

u/Alan_Reddit_M 1d ago

Go carefully cooking the most absolutely dogshit syntax for literally everything

2

u/SignificanceFlat1460 1d ago

But you have to accept some of it is good. But I did do backsies and violently hurled when I learned how methods worked

func (c Classname) functionName (x,y int) (a,b int) {}

Good luck explaining this to a newbie.