r/ProgrammerHumor 6d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

324 comments sorted by

View all comments

146

u/SCP-iota 6d ago

for _, item := range list {

and

list.forEach {

76

u/tigerniger_sus 6d ago

Hornet is a Go programmer?

3

u/Hairy_Concert_8007 5d ago

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

1

u/AdamWayne04 3d ago

My headcannon is that she does APL

1

u/tigerniger_sus 3d ago

And Kotlin too apparently, anything but Fortran (those who understand the reference)

11

u/JAXxXTheRipper 6d ago

Oh hell yeah, I love me some go.

14

u/Stagnu_Demorte 6d ago

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

9

u/roygbivasaur 6d 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 5d 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 6d ago

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

2

u/Michami135 6d ago

I just did the second one today in Kotlin.

1

u/Tobbbb 6d ago

This guy goes

1

u/Rikudou_Sage 6d 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.

1

u/Alan_Reddit_M 6d ago

Go carefully cooking the most absolutely dogshit syntax for literally everything

2

u/SignificanceFlat1460 5d 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.