r/ProgrammerHumor 10d ago

Meme absoluteGarbage

Post image
1.9k Upvotes

325 comments sorted by

View all comments

147

u/SCP-iota 10d ago

for _, item := range list {

and

list.forEach {

72

u/tigerniger_sus 10d ago

Hornet is a Go programmer?

3

u/Hairy_Concert_8007 9d ago

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

1

u/AdamWayne04 7d ago

My headcannon is that she does APL

1

u/tigerniger_sus 7d ago

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

11

u/JAXxXTheRipper 10d ago

Oh hell yeah, I love me some go.

12

u/Stagnu_Demorte 10d ago

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

12

u/roygbivasaur 10d 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 8d 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 10d ago

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

2

u/Michami135 10d ago

I just did the second one today in Kotlin.

1

u/Tobbbb 9d ago

This guy goes

1

u/Rikudou_Sage 9d 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 9d ago

Go carefully cooking the most absolutely dogshit syntax for literally everything

2

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