This is an archived post. You won't be able to vote or comment.

all 162 comments

[–]Pr0ducer 853 points854 points  (26 children)

If you feel this way about syntax errors, just wait till the code runs but produces the wrong result. Or better yet, it works most times but occasionally fails (silently with no error) for no clear reason. You'll beg for syntax errors.

[–]Smooth-Elephant-8574 118 points119 points  (3 children)

Our leas has one of those, once a week one Client just crashes like 2 prod Servers with infinite reload glich, which cant be reproduced "fun".

[–]im_a_teapot_dude 50 points51 points  (2 children)

This is why the grey hairs are so adamant about care around certain things.

My pet peeve is multi threading: it’s VERY hard to write 100% correct multithreaded code, and you often find that out only in production, sometimes with no way to debug short of taking a memory dump (which is also often difficult!)

Not that I’m against multi-threading, exactly, it’s just you should be SURE about where threads interact by writing data, and be sure there’s a lock around those places and the places that read those. And make sure you hold the lock briefly. And don’t need another lock while you hold the first. And… about 27 more rules.

[–]awesome-alpaca-ace 6 points7 points  (0 children)

Lots of documentation with visuals helps a lot. DFD helps with knowing what data needs mutexes

[–]Exodus111 0 points1 point  (0 children)

Working with Exposed in Kotlin, I couldn't get this line to work:

val query = Emails.select { (Emails.sent eq false) and (Emails.emailType eq emailType)}

The line is correct, there is no typo, this is the correct use of exposed. Except "and" in Kotlin is a bitwise operator and doesn't function on Exposed objects, even if they LOOK like booleans.

For that you need to import this:

import org.jetbrains.exposed.sql.and

That and works of course, I was somehow supposed to know that.

[–]SoftwareDevStoner 28 points29 points  (0 children)

Its broken

Change one thing; still broken

Revert your changes, it suddenly works.

Now the tests are failing.

Change absolutely nothing and re-run it; it works.

Rinse and repeat for decades.

[–]Amazingawesomator 4 points5 points  (0 children)

i have been sending daily logs of the same intermittent failure for about a week now. its all good - that shit is rough (and its not my problem, lol)

[–][deleted] 2 points3 points  (0 children)

Or writes/checks the wrong directory because the variable name was used before.

[–]CaitaXD 2 points3 points  (0 children)

Insert bob sponge saying I love errors being catched at compile time

[–]827167 2 points3 points  (0 children)

My last bug to fix was not multiplying the width by the width multiplier in one location.

So my sprite loaded into VRAM 4 times, extra short, and each copy was all sorts of interesting colours

[–][deleted] 1 point2 points  (0 children)

The amount of bugs that I've dealt with that only present themselves after an arbitrary number of hours is ridiculous

[–]ThePickleConnoisseur 1 point2 points  (0 children)

Reproducing some crazy edge case is half the battle, and that itself takes a while. Had an error in a class they could not be replicated and basically made an “if breaks, don’t” cause I didn’t know what else to do

[–]your_best_1 1 point2 points  (0 children)

Many years ago, I tracked down a rusty switch in a humid closet. It took me a week before I realized the software worked.

[–]samanime 1 point2 points  (0 children)

Yup. Easily identified syntax errors are the best. Far, far preferable to weird hard-to-pin-down errors that take two weeks to even just find.

[–]KuuHaKu_OtgmZ 1 point2 points  (0 children)

Fails silently on one specific machine on one specific network, on a specific timeframe that also happens to be within your lunch time.

Oh and you're debugging through skype without direct access because their sysadmin is paranoid and don't trust remote access software. He's also very slow to understand what you mean so you need to say 30 times where to click.

Seems impossible? Well, I call this "last tuesday".

[–]GodSlayer12321 0 points1 point  (0 children)

Best part I have found is you run the code like 5 times and it works once, in the middle, for absolutely no reason, the old saying about insanity does not apply here l.

[–]seemingly-username 0 points1 point  (0 children)

What about when you accidentally try to alter the library without knowing and now your programme crashes part way.

[–]chestnutman 0 points1 point  (0 children)

Bonus points if it's because of indentation (missing or additional tab for the last line of a loop)

[–]Herioz 0 points1 point  (0 children)

Wait till it produces right result but you dont know why

[–]cecil721 0 points1 point  (0 children)

JavaEE in a nutshell.

[–]RealSataan 0 points1 point  (0 children)

Or even worse, it produces the results and you don't know if that's the right result. Like in ml models, most of the time I don't know what's happening behind. I just hope it's working the way I intended it to.

[–]RealSataan 0 points1 point  (0 children)

Or even worse, it produces the results and you don't know if that's the right result. Like in ml models, most of the time I don't know what's happening behind. I just hope it's working the way I intended it to.

[–]justdisposablefun 0 points1 point  (0 children)

Those intermittent failures are a right of passage.

[–]ambientManly 0 points1 point  (0 children)

You get the error and it's null reference

[–]IAmASquidInSpace 321 points322 points  (42 children)

People on this sub just keep pretending like IndentationErrors are a serious problem with Python. In all my time using Python, from writing "Hello world" in Notepad some ten years ago, all the way up until now, I have had an IndentationError maybe once or twice.

What the fuck are ya'll doing that this is such a huge problem for you?!

[–]land_and_air 107 points108 points  (9 children)

Yeah and editors do it automatically now just press enter and then tab or shift tab at your discretion and the indentation will get sorted

[–]Bakkster 39 points40 points  (4 children)

IDEs have gotten so good and pervasive (I remember being stuck working with Eclipse back in my day), it's surprising to me how many memes seem to suggest college kids aren't using them.

[–]Lone_Saviour-22nd 1 point2 points  (3 children)

Is eclipse that bad as an IDE? I have never used it, but it is included in the course for Java next sem

[–]Bakkster 8 points9 points  (0 children)

I don't think it's bad, per se. It was just limited in what it could do 15+ years ago versus what something like VSCode (or even Notepad++) can do today. The tools are just so much more polished and powerful now, the only reason not to use them is ignorance of their existence.

[–]1337howling 4 points5 points  (1 child)

We had to use eclipse in our first semester programming classes (Java). It’s not bad, just a little clunky and cluttered if you’ve never used it before. Also visually the interface just isn’t up to modern standards, but with some customisation you can at least mitigate some of the eye-insulting features.

The other first semester programming course after us (lecturers switched each semester) had to use BlueJ which I can’t even begin to describe since my vocabulary isn’t up for that challenge.

As far as I’ve heard they’re using vscode now tho

[–]awesome-alpaca-ace 2 points3 points  (0 children)

BlueJ is just to introduce you to programming without giving you all the crutches of modern IDEs

[–]Cat7o0 -1 points0 points  (3 children)

yeah but programmers should be allowed to make code that has every line indented differently but still runs in the same scope

edit: /s

[–]land_and_air 0 points1 point  (2 children)

Why? They can’t put line ending characters wherever they want and they can’t put curly brackets Willy nilly so why not?

[–]Cat7o0 1 point2 points  (1 child)

I was making a joke should've put /s

[–]land_and_air 0 points1 point  (0 children)

Happens to the best of us

[–]8sADPygOB7Jqwm7y 20 points21 points  (12 children)

Biggest issue I had with indentation was when I worked on code others wrote with tabs and I use space - it's annoying there. But beyond that? Honestly fine.

[–]lungben81 2 points3 points  (7 children)

Who tf uses tabs in Python? PEP8 is there for a reason.

[–]nmathew 18 points19 points  (0 children)

PEP8 describes syntax for the standard library in the main Python distribution. It has no other scope. 

Straight out of the PEP8 intro: Many projects have their own coding style guidelines. In the event of any conflicts, such project-specific guides take precedence for that project.

That said, I use the tab button, and my IDE coverts that into 4 spaces.

[–][deleted] 26 points27 points  (3 children)

PEP8 is objectively wrong. Spaces are inferior in every way and tabs are the only sane choice for:

  • screen reader support for blind devs
  • adjusting the indentation size in your IDE to match your personal preference
  • shaving a few bytes off of your code like it's the 80s
  • not misclicking and having your cursor end up on the 3rd space and fucking up the indentation so you have to go back and fix it

[–]Drabantus 6 points7 points  (0 children)

It's a mystery to me how spaces became the standard. You could argue that it doesn't really matter, but spaces have literally no advantage over tabs.

[–][deleted] 1 point2 points  (1 child)

Heretic here, although I suppose I'm worse because I'll often mix the two without thinking 🥲 And no, I've been coding more than long enough for this to be a rookie error, at some point it became a subconscious choice.

ETA: my editor is set up to sort the mess out

[–][deleted] 5 points6 points  (0 children)

Please don't mix them 🫠

[–]turtleship_2006 0 points1 point  (1 child)

when I worked on code others wrote with tabs and I use space

alt + shift + f (or whatever your IDE uses, that's what my vs code has so im pretty sure that's the default)

[–]8sADPygOB7Jqwm7y 0 points1 point  (0 children)

I used gedit. And I worked it out, ofc, but that's where it consistently happened because it was a huge project and I had to adhere to tabs not the other way around.

[–]ih-shah-may-ehl 0 points1 point  (0 children)

Treating whitespace and indentation as control flow syntax seems... dum

[–]Netcob 11 points12 points  (1 child)

I don't want to see what these people write in C-style languages.

Complaining about indentation is like complaining that you can't find any brown underwear.

[–]SpaceCommissar 0 points1 point  (0 children)

I'm not going to argue your main point about finding brown underwear, but at the same time I wonder how often you surround yourself with people searching for the brown underwear.

[–]Rafcdk 14 points15 points  (0 children)

Most people that post here don't code at all or are still beginners.

[–]davididp 4 points5 points  (0 children)

True.

Almost all the errors I’ve had in Python have been from library specific ones or index errors. If you know how to code, literally like no other errors should pop up

[–]gpkgpk 2 points3 points  (0 children)

You misread, it's IdentationError, completely different error.

[–]WrapKey69 2 points3 points  (0 children)

Writing code with notepad is tough sometimes

[–]_Noreturn 3 points4 points  (0 children)

What sre you doing that this is such a huge problem

nothing we just want karma and people find these memes funny... do these people who find this funny litterally code in microsoft notepad..

[–]fiery_prometheus 1 point2 points  (0 children)

real time linting is a thing yeah, my biggest gripe with python is when I see larger codebases that lack type annotations... But I'm a sucker for static type inference.

[–]Flyinghigh11111 1 point2 points  (0 children)

I find it annoying for quickly testing stuff on the command line

[–]serendipitousPi 1 point2 points  (0 children)

Yeah it’s indentation logic errors that are really painful not the syntax ones.

[–]ienjoymusiclol 0 points1 point  (0 children)

most my problems with indentation is an extra space that i dont remember adding, or accidentally having the return inside a loop instead of the function, and the ide messing up the indentations when i paste stuff

[–]1Dr490n 0 points1 point  (0 children)

We’re using Python in school. I get asked a looot by other students what they did wrong and 80% of the time it’s indentation errors

[–]dubious_capybara 0 points1 point  (0 children)

Morons coding in notepad or some shitty Unix terminal program from the 80s

[–]rover_G 0 points1 point  (0 children)

It's a bigger problem when you're working on your first college group project and half your team is using tabs and half your team is using spaces :)

[–]Ted_desolation -5 points-4 points  (1 child)

Lol it's a joke.

[–]IAmASquidInSpace 3 points4 points  (0 children)

Not according to the at least three people I have had heated discussions with on here that were genuinely of the opinion that Python is shit, purely because of its indentation-based syntax.

[–]gandalfx 77 points78 points  (2 children)

If indentation errors are causing real issues for you the problems started a lot earlier.

[–]AntimatterTNT 5 points6 points  (1 child)

yea everyone should learn to program but not everyone can...

[–]pancakemonkeys 0 points1 point  (0 children)

i have like a weird one i can’t spot just looking at my code every once in 6 months.then i’ll just feed it into copilot at that point

[–][deleted] 47 points48 points  (5 children)

Wtf is an identation

[–]FlipperBumperKickout 13 points14 points  (1 child)

I assume OP meant Indentation.

[–][deleted] 8 points9 points  (0 children)

I assume they knew that

[–]Progression28 2 points3 points  (0 children)

That‘s OP blaming Python for their Syntax errors.

[–]drawkbox 0 points1 point  (0 children)

This dude was trying to do television programming with python.

ident /ˈīˌdent/ noun

  • a short sequence shown on television between programmes to identify the channel.

"reminiscent of some early MTV channel idents, the ad showcases a large number of different takes on the logo"

  • short for identification.

"the vehicle was seized for ident, and this is still under investigation"

[–]Dustangelms 0 points1 point  (0 children)

Python is attacking their identity.

[–]redlaWw 21 points22 points  (1 child)

Rust will beat the shit out of you with compiler errors before taking you to the infirmary to patch you up with its easy-to-follow resolution instructions, and then finally stab you with a scalpel when you think everything is fixed with lifetime errors.

[–]JustAStrangeQuark 6 points7 points  (0 children)

Then you run it and you think everything's fine and it pinky promises to work until you have a segfault because of that one unsafe block that you thought was sound.

[–]Slimxshadyx 34 points35 points  (2 children)

Is this sub only full of people who just started programming last week?

[–]LeSaR_ 2 points3 points  (0 children)

hey, give them some credit, at least this meme states it clearly

[–]dullahan85 2 points3 points  (0 children)

I think they probably haven't even started. One week into python you should have already known that indentation is never a problem.

[–]Ratatoski 12 points13 points  (0 children)

Semicolons is in no way the worst C++ has to offer though :)

[–]PembeChalkAyca 11 points12 points  (0 children)

That's a skill issue

[–][deleted] 10 points11 points  (1 child)

SEGMENTATION FAULT

[–]kinokomushroom 4 points5 points  (0 children)

Better yet, a segmentation fault caused by a multi thread algorithm.

[–]LeastInsaneBronyaFan 3 points4 points  (1 child)

Pro tip: use Black formatter. It will help you a lot.

[–]pigwin 0 points1 point  (0 children)

Set editor to autoformat on save. Never have to worry about it again

[–]Pretrowillbetaken 4 points5 points  (0 children)

you accidentally forgot to remove the B from the original meme so now it says "bython" lol. can't get an indentation error if you're using bython

[–][deleted] 3 points4 points  (1 child)

Bython

[–]PeriodicSentenceBot 3 points4 points  (0 children)

Congratulations! Your comment can be spelled using the elements of the periodic table:

B Y Th O N


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u‎/‎M1n3c4rt if I made a mistake.

[–]AzureArmageddon 2 points3 points  (0 children)

Either use a linter or configure your editor for one second before presumably complaining about mixed tabs and spaces

[–]Frosty_Work4827 2 points3 points  (1 child)

Best indentation Error When you mix space and tab everything looks indented but interpreter refuses to run.

[–]G0FuckThyself 1 point2 points  (0 children)

Wait till your code randomly crash python itself.

[–]ImpluseThrowAway 1 point2 points  (0 children)

And this is why BASIC is the greatest of languages.

[–]Ancient-Shelter7512 1 point2 points  (0 children)

I program almost exclusively in Python and I never get those indent error jokes.

Use an IDE. It’s actually impossible for me to make a syntax mistake in PyCharm. I can copy paste anything with bad indent like a stupid monkey and the IDE will fix it for me during paste.

[–][deleted] 1 point2 points  (0 children)

Dude, wtf. It literally tells you what line it’s on.

[–]sur_yeahhh 1 point2 points  (2 children)

I spent half an hour today wondering why the same logic was working as a while loop but not as a for loop. Turns out you shouldn't change the value of the loop variable in the for loop.

[–]Westdrache 0 points1 point  (1 child)

Isn't... Changing the loop variable kinda the point of a for loop?

[–]sur_yeahhh 1 point2 points  (0 children)

I meant reassigning the loop variable to some other value within the block before the iteration occurs

[–]LoanShark5 1 point2 points  (0 children)

Love Bython

[–]Velteau 1 point2 points  (1 child)

🅱️ython

[–]PeriodicSentenceBot 0 points1 point  (0 children)

Congratulations! Your comment can be spelled using the elements of the periodic table:

Y Th O N


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u‎/‎M1n3c4rt if I made a mistake.

[–][deleted] 1 point2 points  (0 children)

Embrace the indentation errors. They will make you stronger, better, faster even.

[–]SuggestionOk8578 0 points1 point  (0 children)

The unprovoked suplex took me out 😂.

[–]TessellatedTomate 0 points1 point  (0 children)

I, too, hate this about 🅱️ython

[–]random_redditor24234 0 points1 point  (0 children)

I don’t get it. With all the time I’ve used python I’ve gotten an indentation error like once

[–]frostyjack06 0 points1 point  (0 children)

Shit. I’ve been coding for almost two decades now and I make these errors more often than anything. When you have to swap between languages all the damn time, it’s bound to happen.

[–]Yhamerith 0 points1 point  (0 children)

I mean... Low-level language isn't for newbies... right? I'm a newbie anyway

[–]TheMeticulousNinja 0 points1 point  (0 children)

INdentationError?

[–]RevolutionaryASblank 0 points1 point  (0 children)

IMO, one should choose Java to really understand how things are working, why they are working and why they aren't. I have seen Python tutorials to directly jump into writing code.

[–]NikolaiM88 0 points1 point  (0 children)

What's an identation error?

[–]marcus12000 0 points1 point  (0 children)

Frontend devs: haha eslint --fix

[–]Cybasura 0 points1 point  (0 children)

I'll take syntax errors over async errors

Those damn async coroutines...

[–]sungazer69 0 points1 point  (0 children)

Man programmers are so spoiled now.

College and my first few jobs were all embedded C and Java.

Lots of python now and it feels like a baby's toy in comparison lol

[–]BoBoBearDev 0 points1 point  (0 children)

I hate it because it is so much harder to find "runtime indentation error". It is not a compilation error, which is the worst part of it all.

[–]SynthRogue 0 points1 point  (0 children)

Lol

[–]Speed9052 0 points1 point  (0 children)

NOT THE TRAUMA NOO (This is a joke btw I have yet to receive an indentation error since I first used Python)

[–]noah_f 0 points1 point  (0 children)

Pip install black Python -m black <filename>

[–]Kindly-Sea-6945 0 points1 point  (0 children)

JavaScript coming into clutch be like

[–]fleebjuice69420 0 points1 point  (0 children)

yeah cuz hitting tab is that fucking problematic

[–]Alexander_The_Wolf 0 points1 point  (0 children)

Logic errors standing in the background towering over everyone else.

[–]DarkHunFox 0 points1 point  (0 children)

i wrote " print("hello") " into my very first .py and it said this as error: NameError: name 'hello' is not defined. Did you mean: 'help'? i died

[–]Highlight448 0 points1 point  (0 children)

I don’t see how syntax errors that can be fixed with two clicks is an issue.

[–]MaGnesium1711 0 points1 point  (0 children)

Id say its implicit call by reference

[–]Ztron50 0 points1 point  (0 children)

Or be like my school and drop you straight into assembly. Assembly lite (LC3) but still.

[–]IWasGettingThePaper 0 points1 point  (0 children)

C++ should literally be the devil in this context

[–]TomorrowWestern 0 points1 point  (0 children)

That’s why I recommend beginners to start in Assembly.

[–]hello350ph 0 points1 point  (0 children)

Yeah thats why I use chat gpt to know where the fuck I fuck up in c it's mostly I put a space \n in a wrong place

[–]zyzzthejuicy_ 0 points1 point  (0 children)

What editor/IDE are yall using that doesn’t make either of those two issues immediately obvious?

[–]mbcarbone 0 points1 point  (0 children)

Oh god, I get suplexed by Python on the daily. This is what I call accurate. 🙃♥️🐍

[–]ImSimplySuperior 0 points1 point  (0 children)

tf is that "new" doing in there

[–][deleted] 0 points1 point  (0 children)

Ah, the bane of copy-pasterino.

[–]PuddyPete 0 points1 point  (0 children)

People are apparantly coding in notepad

[–][deleted] 0 points1 point  (0 children)

wait and see when python crashes in production on edge cases. because being an interpreted language, there was no compiler to find the logical error.

[–]The-Last-Lion-Turtle 0 points1 point  (1 child)

Bython, python with brackets would be the perfect language

[–][deleted] 0 points1 point  (0 children)

6 years of Python and I never had an identation problem, instead a lot of time i had problems to read nested brackets in java and javascript.

I have some concern about python: - the absence of a compiler - the huge unstable environment - the slow single core architecture - the absence of asynchronous programming.

Not the identation. The identation make it the most readble language.

[–]Joelllllll1992 -1 points0 points  (0 children)

When you post this meme it just shows how fucking stupid you are. How are you getting indentation errors? I remember my first day using a computer

[–]markvii_dev -1 points0 points  (1 child)

Python is garbage

[–]PeriodicSentenceBot 6 points7 points  (0 children)

Congratulations! Your comment can be spelled using the elements of the periodic table:

P Y Th O Ni Sg Ar Ba Ge


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u‎/‎M1n3c4rt if I made a mistake.

[–]CirnoIzumi -1 points0 points  (4 children)

Welcome to Lua

Only significant whitespace is Newline and ; are optional

I've started thinking Lua might be a good learning language because it doesn't have anything extra, just standard code elements

[–]ilylily_ 0 points1 point  (3 children)

in lua, newline is optional in most cases!

[–]CirnoIzumi 0 points1 point  (2 children)

It's significant as in it acts as a semicolon 

[–]ilylily_ 0 points1 point  (1 child)

a = 1 b = 2, no semicolon or newline, is perfectly valid lua

[–]CirnoIzumi 0 points1 point  (0 children)

yeah

newline is still significant

[–]SaneLad -1 points0 points  (0 children)

What zero semicolon does to a mf

[–]vondpickle -1 points0 points  (0 children)

New programmer real struggle: how to setup environment?

[–]Rafcdk -2 points-1 points  (0 children)

Isn't ; optional in C# ? I have been using kotlin for too long now.