r/programminghumor • • Sep 02 '26

Write sorry

Post image
701 Upvotes

96 comments sorted by

View all comments

36

u/[deleted] Sep 02 '26

[removed] — view removed comment

10

u/lucidbadger Sep 02 '26

This. OP is vibe coder. WTF is for_in?

21

u/Zealousideal_Smoke_2 Sep 02 '26

Probably captain obvious here but: he only forgot the space. for _ in range(n): is perfectly normal when you don’t need the index.

8

u/realmauer01 Sep 02 '26

Oh right, the i dont care about the variable variable name.

7

u/Beleheth Sep 02 '26

As a matter of fact, even a best practice. Use _ in python if you don't use the running variable.

4

u/Vaelisra Sep 02 '26

Another best practice: Don't use Python.

5

u/Arimilli123 Sep 03 '26

2

u/Vaelisra Sep 03 '26

Like that ever really happened to anyone...

2

u/geek-49 Sep 03 '26

What would you recommend instead? Perl?

4

u/Vaelisra Sep 03 '26

Whatever makes sense. And that usually automatically excludes python. For me it's this:

Web->JavaScript

native->rust

Embedded->Zig

Utility scripts->bash

Server side->Kotlin

3

u/SAnaiy Sep 03 '26

Web (frontend) -> typescript

everything else: c# /s

4

u/Vaelisra Sep 03 '26

typescript

I count that under JavaScript because it's just a dialect.

3

u/SAnaiy Sep 03 '26

interesting

1

u/Andrey4ik21pro1 Sep 03 '26

What nonsense is this?

The tool is chosen for the task, but not vice versa

2

u/Complete_Window4856 Sep 02 '26

Theres no way it works

7

u/Complete_Window4856 Sep 02 '26

Fuck it really works wth

5

u/realmauer01 Sep 02 '26

Python multiplying strings will never not be weirding me out.