ProgrammerHumor

py

py
https://i.redd.it/w4zpbw8ehodf1.jpeg
Reddit

Discussion

Revolutionary_Dog_63

This has happened to me a single digit number of times in the 6 years or so that I have been programming.

3 days ago
sakaraa
:cs:

Yes, never happened to me but I rarely code in python. Also your indentation should (not must) be correct in other languages too

3 days ago
Aridez

I think that the issue is, in other languages, indenting is purely a readability thing that a linter takes care automatically most of the time. In python it's a breaking error.

Python is a great language, but after all these years I'm still not a super fan of indenting as a way to structure how your code works.

I do think it's a minor thing though, and probably a matter of taste.

2 days ago
LexaAstarof
:py::rust::c::j:

In another language where indentation does not matter the linter still takes care of it, as you said.

Imagine what a linter could do in a language where it does matter, pfewww!

2 days ago
RadicalDwntwnUrbnite

Yea that's generally when I get indentation errors in python. I got complacent by writing TS code however it flowed out of me and letting prettier handle how it looked on save. That doesn't work so well in my experience writing Python

2 days ago
liquidpele

Yea, was going to say, if you find indention hard then maybe try being a PM or something.

3 days ago
MozzerellaIsLife

Might be a fit for a Scrum Master or Agile Coach, too…

2 days ago
le_Derpinder

This has only happened once from stackoverflow copied code and a couple of times recently for some copied code from VSCode's Copilot assistant. Non-issue.

2 days ago
iamthebestforever
:j:

You clearly don’t code in vim

2 days ago
flatfisher
:ru:

Memes about syntax should go in r/NotActualProgrammerHumor

3 days ago
evnacdc

Damn, I was hoping that was real.

2 days ago
mikevaleriano
:ts::py:

Why do people keep posting (and upvoting) this shit?

It was funny maybe 20 years ago, but it is a solved problem. It does not happen.

3 days ago
goochgrease2

I don't understand. I've not used many editors, but every editor I have used does the indents and add commas or semi colons etc. If indention is hard for someone, I don't think programming is for them. It's such a non issue

3 days ago
FantasicMouse

I used to have more problems with it years ago when free IDEs were scetchy and I did allot of code in notepad.

Now there’s tons of free editors that are decent like text wrangler and visual code studio.

2 days ago
firecorn22

Python with a decent ide avoids this but software that integrates with Python sucks like I used arcgis python editor and it was terrible and I hear similar for Excel

2 days ago
DatBoi_BP
:rust::cp::rust::py::rust::m:

Look, the first year CS students need something to do all summer

2 days ago
OverappreciatedSalad
:ts::py::j:

It's r/ProgrammerHumor. 90% of the posts are made by either a first-year CS student who wants to join in on the fun or a 40-year-old dad dev who is lost with the times.

2 days ago
mikevaleriano
:ts::py:

40-year-old dad devs

2 days ago
kernel_task

I have a few months to go until I'm 40. I also don't have kids but increasingly all of my friends do. Did I miss something in the last few years where we all decided we were mature enough all of a sudden to raise offspring? Because uh, I didn't get that memo at all.

2 days ago
mikevaleriano
:ts::py:

I'm only responsible for a turtle that I'm 100% sure will outlive me.

My family knows if I stop responding to messages, just send the hearse and someone to pick my turtle.

2 days ago
er_du_sur_bro

Literally the only language that I've ever had this problem in is Matlab, because the semi-colon at the end of a isn't required it just stops the line from being output. But even then it's just "why has 10000 lines just been printed to the terminal" rather than "why isn’t my code working"

2 days ago
DT-Sodium

What was solved and how? I've been doing Python lately because I had to and it's the absolute worst language I've ever used by any metrics.

3 days ago
mikevaleriano
:ts::py:

identationError or missing semi-colon or any other kind of issues that the use of a modern code editor or IDE will remove from the equation.

It's like they're doing memes from way back when, when the tooling was lacking basic features such as linting and formatting.

3 days ago
DT-Sodium

If your programming language relies on having a good IDE to become even remotely usable, it is not a good programming language and you should not be using it.

Same thing for typing (or how little of it Python actually has): if your programming language relies on developers having discipline to provide well written libraries instead of enforcing it by default, it is not a good programming language and you should not be using it.

But you answered my question: nothing has been fixed, people just have been adding hacks to work around it.

3 days ago
FlukyS

It doesn’t rely on it but if you don’t indent your code properly it is the same mistake as forgetting to close a bracket. The issue is helped in both cases by having a code editor that highlights it but if you don’t and make the issue it is a skill issue

3 days ago
DT-Sodium

Except A that no brackets madness is ugly as fuck and B if you forget a bracket, it is almost always quite obvious. Oh, and proper languages also won't compile and you won't have to crash the program to realize you've put an extra-space somewhere.

2 days ago
FlukyS

It is quite obvious if you don't indent things correctly too. Actually if you look at most C/C++ they will do both indentation and obviously the brackets. It will not compile or will crash but Python is literally the same, it is obvious if you mis-indent the code.

2 days ago
DT-Sodium

Nope, you can quite easily have a block with 3 spaces by mistake. Also, it looks atrocious and doesn't make it as clear when an idea stops. Same for the lack of parenthesis everywhere by the way, actual programming languages have them for a reason, it makes the program more readable.

2 days ago
mikevaleriano
:ts::py:

3 days ago
im_in_every_post
:py::lsp::p::c::bash::g:

What a limited mindset you have. Can't see the benefits and drawbacks of each type of language, or comprehend that different people like different styles of programming.

3 days ago
DT-Sodium

Benefits of each languages is bullshit. No competent developer should accept to work with a language with dynamic typing. Making it easy for beginner developers to produce shit code is not a benefit.

2 days ago
mikevaleriano
:ts::py:

You're angry at everything and everyone, and maybe you should quit being a software engineer and should take up farming or other calming activity that doesn't prompt an uncalled crashout like this.

2 days ago
DT-Sodium

I'm sure there is a sub-reddit where farmers get angry over the best way to cultivate a radish.

I'm not angry by the way, I'm just stating facts. It's not my fault if people get angry when you point out why their language sucks.

2 days ago
mikevaleriano
:ts::py:

You're stating opinions.

And the way you're stating them ("is bullshit", "no competent developer should", "sucks") feels a tad heated.

You don't have to agree with everyone, but when you act like this, people tend to either assume you're very angry, or just a child that cannot understand different points of view.

I'm assuming you're angry.

2 days ago
DT-Sodium

Or maybe I just have a better view of the situation and am not so picky about telling truths. I've been doing PHP for 15 years and I have no issue saying that language is a pile of shit too.

2 days ago
Bobebobbob
:s:

This post is about indentation errors. Your reply said that that makes a language unusable despite not being a problem for at least 99% of programmers. Nobody else here has said anything about dynamic typing

2 days ago
DT-Sodium

How is this post only about indentation errors? It's like one of the least worse things about it.

2 days ago
Bobebobbob
:s:

Maybe not the whole post actually, but to quote the earlier comment:

identationError or missing semi-colon or any other kind of issues that the use of a modern code editor or IDE will remove from the equation.

2 days ago
DT-Sodium

That earlier comment was totally wrong at assuming that my main point of criticism was about indentation. That's just what makes it ugly as fuck. The terrible typing system is the main course.

2 days ago
SkezzaB

This opinion stinks

2 days ago
vibosphere

Skill issue

2 days ago
solid_rook

Bython?

3 days ago
TheMunakas

Look closer. And actually, bython is a thing, python with curly braces

3 days ago
goochgrease2

"Identation"

3 days ago
Fast-Visual
:j::c::cp::cs::py::js:

🅱️ython

2 days ago
theblu11
:ts::js::g:

https://brython.info

2 days ago
ba-na-na-
:cs::cp::py::js::ts:

identation

3 days ago
AssistantIcy6117
 Huh?
2 days ago
hikaru_ai

r/ProgrammerHumor = r/im13andthisisdeep

2 days ago
Vic_Black

Never met this error

2 days ago
idlesn0w

There’s a lot of dumb things about python, but syntactic indentation doesn’t make the list imo

2 days ago
lolcrunchy

Out of all errors that could happen with code, errors that happen before runtime are the kindest.

2 days ago
99thLuftballon

Django: populate isn't reentrant

3 days ago
vibosphere

This is genuinely like the easiest error to fix

2 days ago
ElRexet
:g::p::ts::gd:

I don't use Python but I did try some GDScript and writing stuff wasn't a problem however copying was as it messes up indentation quite often. In languages with braces you kinda can just click through those and fix indentations easily. In GDScript that was a bit of a pain sometimes.
I think it's a matter of being used to things but I have some fucking problems with seeing indentations - yaml is worth than a death sentence for me lol

2 days ago
firemark_pl

The worst error is mixing tab with spaces (e.g. you're editing file using vim with default config)

2 days ago
Dalachowsky
:c:

I feel like if you work with python longer than "python 101 course" you can see the bigger problems with the language. I do not remember the last time I've had an indentation error. But my "days without int object has no attribute myCustomSophisticatedMethod()" is reset almost daily when I'm writing something in python.

2 days ago
SK1Y101
:py::js::cp::lua::ftn:

Skill issue

2 days ago
ModeratelyUsefulBot

Hello and thank you for posting to r/programmerhumor! You have previously posted two submissions within the past 24 hours so this submission has been removed. If you intend to repost it later we recommend deleting this one first to prevent other bots from removing it as a duplicate.


BOOP! BLEEP! I am a bot. Concerns? Message /r/programmerhumor. Previous post(s): 1m37wbx, 1m384c6 | limit: 2 per 1d | next eligibility: 2025-07-19 17:05 UTC

2 days ago
ModeratelyUsefulBot

Hello and thank you for posting to r/programmerhumor! You have previously posted two submissions within the past 24 hours so this submission has been removed. If you intend to repost it later we recommend deleting this one first to prevent other bots from removing it as a duplicate.


BOOP! BLEEP! I am a bot. Concerns? Message /r/programmerhumor. Temporary lock out per ^ 1m3s8eb | limit: 2 per 1d | next eligibility: 2025-07-19 17:05 UTC

2 days ago
jonr
:py:

I'm always going to be flabbergasted and disappointed that a language that DEPENDS on indentation uses spaces. WTF, Guido?

2 days ago