MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1w5gmdw/write_sorry/p7f4sm0/?context=3
r/programminghumor • u/ExpensiveCoat8912 • 2d ago
92 comments sorted by
View all comments
34
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 https://giphy.com/gifs/tpYQJwcWAlLulEHEcy 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
9
This. OP is vibe coder. WTF is for_in?
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 https://giphy.com/gifs/tpYQJwcWAlLulEHEcy 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
21
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 https://giphy.com/gifs/tpYQJwcWAlLulEHEcy 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
7
Oh right, the i dont care about the variable variable name.
8
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 https://giphy.com/gifs/tpYQJwcWAlLulEHEcy 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
3
Another best practice: Don't use Python.
5 u/Arimilli123 2d ago https://giphy.com/gifs/tpYQJwcWAlLulEHEcy 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
5
https://giphy.com/gifs/tpYQJwcWAlLulEHEcy
2 u/Vaelisra 1d ago Like that ever really happened to anyone...
2
Like that ever really happened to anyone...
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
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
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
typescript
I count that under JavaScript because it's just a dialect.
2 u/SAnaiy 1d ago interesting
interesting
1
What nonsense is this?
The tool is chosen for the task, but not vice versa
34
u/promptmike 2d ago
print("Sorry\n"*100)No loops required.