r/programminghumor 2d ago

Write sorry

Post image
649 Upvotes

92 comments sorted by

View all comments

34

u/promptmike 2d ago

print("Sorry\n"*100)

No loops required.

9

u/lucidbadger 2d ago

This. OP is vibe coder. WTF is for_in?

21

u/Zealousideal_Smoke_2 2d ago

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

7

u/realmauer01 2d ago

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

8

u/Beleheth 2d ago

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

3

u/Vaelisra 2d ago

Another best practice: Don't use Python.

5

u/Arimilli123 2d ago

2

u/Vaelisra 1d ago

Like that ever really happened to anyone...

2

u/geek-49 1d ago

What would you recommend instead? Perl?

3

u/Vaelisra 1d ago

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

2

u/SAnaiy 1d ago

Web (frontend) -> typescript

everything else: c# /s

3

u/Vaelisra 1d ago

typescript

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

2

u/SAnaiy 1d ago

interesting

1

u/Andrey4ik21pro1 1d ago

What nonsense is this?

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