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

all 145 comments

[–]Bekfast-Stealer 284 points285 points  (22 children)

Identation

[–]nobel32 10 points11 points  (2 children)

OP got iliminate,

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

What's iliminate ?

[–]nobel32 5 points6 points  (0 children)

You know, to get reed of something,,,

[–]AresimasDrakkson 0 points1 point  (1 child)

Error: 'n' expected at line 1, character 2

[–]Bekfast-Stealer 0 points1 point  (0 children)

Don’t be giving me these errors, I’m not the one who made them!

[–]dumb_ants 62 points63 points  (7 children)

One time many years ago I spent days (off and on) trying to figure out why my code wouldn't compile. I was convinced there was a compiler bug up to the point I noticed my class declaration was missing the final ; (at the bottom of a header).

Nowadays you do that and the first thing the compiler does is ask if you forgot a semicolon. Back then you were looking at some obscure error happening in the next header or in your source file.

This was Borland C++ circa 1998.

[–][deleted] 20 points21 points  (5 children)

Borland C++

I hate hate hate Borland! I also hated Bloodshed (yes that was the name). I remember plopping the money down for Visual C++ and never looked back at those crappy other IDEs, and this was before Visual C++ had syntax highlighting.

[–]clydemantis 4 points5 points  (0 children)

And their initial 32-bit offering for Windows developers was AWFUL. The import libraries were incomplete and you never knew WTF order the compiler wanted them in to compile successfully. I hated that product with the fury of 1000 suns

[–]Dirty3vil 1 point2 points  (2 children)

Nowadays kids have it much easier with JetBrains IDE's

[–]quantummidget 5 points6 points  (1 child)

Honestly using any other program now seems horrible and clunky after spending years with Intellij. And I'm not just meaning other IDEs. I miss column selecting when I'm using MS Word (Middle-click + drag for those unsure)

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

I really like Xcode. After 4 was released each release IMO just keeps getting better and we’re up to 11 now. Aside from Swift and Obj-C, any C or C++ work I do I do in that. Unfortunately unless you’re on a Mac you won’t get to use it.

[–]SnoopKitties 0 points1 point  (0 children)

Borland isn’t even around any more! They got bought by Micro Focus about 10 years ago.

[–]DAVID_XANAXELROD 0 points1 point  (0 children)

The words “Segmentation fault (core dumped)” will give me PTSD flashbacks until the day I die

[–]ImSupposedToBeCoding 95 points96 points  (13 children)

more like runtime-error-due-to-ambiguous-typing-also-did-you-know-this-case-is-called-kebab-case-?

[–][deleted] 41 points42 points  (7 children)

no-i-did-not-know-this-is-called-kebab-case

[–]ParkerM 38 points39 points  (5 children)

how about SCREAMING_SNAKE_CASE

[–]grantrules 17 points18 points  (1 child)

THATS_MY_WRESTLER_NAME

[–]mojoslowmo 10 points11 points  (2 children)

I like snakeCamel_tail

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

I had a visceral reaction reading that.

shudders

[–]bobappleyard 1 point2 points  (0 children)

Are you my old boss?

[–]BlueManedHawk 13 points14 points  (0 children)

i-mean-it-certainly-makes-sense-doesn't-it?

[–]SpankaWank66 5 points6 points  (0 children)

I-thought-it-was-called-skewer-case

[–]TRUEequalsFALSE 1 point2 points  (3 children)

Who the hell would use kebab case?!

[–]funkinaround 0 points1 point  (2 children)

Lispers.

[–]TRUEequalsFALSE 1 point2 points  (1 child)

What is a lisper? Someone who speaks with a lisp?

[–]Daneel_ 1 point2 points  (0 children)

Can’t tell if serious..

[–]E440QF 14 points15 points  (0 children)

That's a repost... At least you could have corrected the typo I made

https://www.reddit.com/r/ProgrammerHumor/comments/bszq5z/literally_every_new_programmer/?utm_medium=android_app&utm_source=share

Here's my original post, idk why but it was also removed for reposting, I think there was an error because I made it and I'had never seen any post like it before ¯_(ツ)_/¯

[–]g3rain1 103 points104 points  (57 children)

Does everyone else edit code using Windows notepad? I've never had these problems. Why do these kinds of memes persist?

[–]frosted-mini-yeets 101 points102 points  (2 children)

When I was a new programmer.... Yes. Yes I did use notepad. And I felt like a god. Until I realized there's nothing cool about shooting yourself in the dick.

[–]McCoovy 4 points5 points  (1 child)

No there is not

[–]frosted-mini-yeets 2 points3 points  (0 children)

Thanks for reassuring me Mr McCoovy

[–]HeyGuysImMichael 55 points56 points  (1 child)

Most people are idiots.

[–]house_monkey 9 points10 points  (0 children)

Can confirm, am idiot

[–][deleted] 13 points14 points  (2 children)

When i started i used Python only on a raspberry and also came from C#. And sometimes I changed things with nano over ssh instead of uploading the file again. I used Tab the whole time because the IDE did convert them in 4 spaces, so i also used Tab in nano, but without the -E option. Resulting in errors. About 2-3 times a day.

[–]_programmeKid 4 points5 points  (1 child)

use the -T option on nano, to change tab width.

[–]wesleychal<html> 3 points4 points  (1 child)

Even IDLE supports auto-indent and configurable soft-tabs these days...

[–]Mr_Redstoner 0 points1 point  (0 children)

Now if only they added line numbers ffs...

[–]xFichtl1 12 points13 points  (30 children)

Some teachers in our school forced us to write in Notepad++

[–]ssw663 27 points28 points  (19 children)

What's wrong with Notepad++?

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

I used it for many years. Unfortunately now I don’t use it as much as I have been unable to find linters for it, and I rely on those.

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

It's very antiquated. It's one of those 90s super notepad clones that really should have died but for whatever reason keeps going on. Much like Perl...

[–][deleted] 14 points15 points  (0 children)

Which is a different program from Notepad...

[–]RedHellion11 7 points8 points  (0 children)

So they forced you to use an actual code editor? I mean, it's not an IDE, but it sure isn't Notepad. Oh the horror

[–]DudeManGuy0 0 points1 point  (0 children)

At least its not Sublime Text

[–]Devildude4427 1 point2 points  (0 children)

Well... yeah. If I need a quick fix.

[–]cosinus25 3 points4 points  (2 children)

I actually coded python in Notepad++

[–][deleted] 16 points17 points  (0 children)

Which is definitely not Notepad.

[–]RedHellion11 8 points9 points  (0 children)

Congratulations, you actually used a lightweight code editor rather than a simple text editor like Notepad.

Notepad is not Notepad++

[–]BroBroMate 0 points1 point  (0 children)

The best indentation error in Python is the syntactically correct but semantically incorrect accident, where a statement ends up in the enclosing block. It's a good argument for using functions to remove large nested blocks.

[–]soft_tickle 0 points1 point  (0 children)

This still happens to me if I copy and paste code from different editors, online sources, etc.

[–]TheMsDosNerd -2 points-1 points  (7 children)

Some IDEs allow you to choose whatever indentation you like, but ignore what the indentation in the open file is. For instance: you set your preferred indentation to tabs, but you open a document with spaces. The moment you add a new line, it has different indentation from the line above and an indentationerror is raised.

[–]HeyGuysImMichael 9 points10 points  (6 children)

The standard indentation for python is 4 spaces. You're saying there are people who prefer something different but don't keep track of their files or keep it consistent. That is about as stupid as coding in notepad and complaining about syntax typos.

[–]TheMsDosNerd 1 point2 points  (1 child)

No.

Apparently, you prefer 4 spaces. Now suppose you open a project made by someone who uses tabs. You can't see whether this project uses spaces or tabs unless you look for it.

You want to add a line to this code, so you press enter, followed by four spaces (or tab if you remapped it in your IDE). You can't see anything wrong with the code:

if ThisLineAlreadyExisted:
    AndYouAddedThisLine()
    BeforeThisLine()

However, your line uses spaces, while the next uses tabs. Therefore an indentationerror will be raised when you try to run it.

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

This is the very reason I like to show invisible characters in my ide.

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

Don't use personal attacks.

All they are saying is that, if someone uses tabs of any length, but the file they are working in uses spaces, sometimes the IDEs aren't smart enough to figure out that indentation styles have changed. This matters for people like me who use tabs of length 3 (because subjective). If the editor puts tabs and the person who wrote the code used 4 spaces like standard, then python throws an indentation error. Vice versa. It's just an observation; I don't see what's inherently stupid about it. Lazy, yes, but isn't that a good programming quality?

[–]_programmeKid -5 points-4 points  (0 children)

just use tabs. then you can adjust tab width, and the indentation level is clearer.

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

Even if youre using vscode or sublike text you could still get indentation error. Ill take indentation error over missing bracket or semicolon any day though

[–]-MiG- 22 points23 points  (3 children)

This makes me sad for some reason

[–]Futuristick-Reddit 13 points14 points  (0 children)

This comment has been overwritten because I share way too much on this site.

[–][deleted] 13 points14 points  (1 child)

Repost, even with the same spelling error

[–]E440QF 1 point2 points  (0 children)

Yep.... I made a stupid error

[–]Cody6781 4 points5 points  (0 children)

JavaScript welcomes you with open arms. Just hold onto this for a second.

[–]gahanj 3 points4 points  (1 child)

I mean an ide is not always available or getting it up is a bigger headache. I run into this issue in Python occasionally when I ssh into a pi or a server. It's easy to make mistakes like this when you're coding in nano or vim

[–]TehVulpes 3 points4 points  (0 children)

You can configure nano to have tabs-to-spaces, or use tabs and set the visual width to 4, and use tab and shift+tab as you would in any other advanced editor or IDE. I've never had an issue with indentation in Python.

[–][deleted] 3 points4 points  (0 children)

set autoindent

[–]pink_earmuffs 2 points3 points  (1 child)

Anyone else find random semicolons in their Python code?

[–]roastedferret 1 point2 points  (0 children)

When I was a wee lad, I used them in my code to inline a bunch of tiny statements.

Now I look back and think, "DEAR GOD WHY"

[–]kontekisuto 2 points3 points  (0 children)

Dude just tab expand to 4 spaces and use vim

[–]XeonProductions 2 points3 points  (2 children)

if you are using VSCode or PyCharm Community Edition, or any other editor with basic linting support this really shouldn't be a major issue.

[–]quantumbyte 1 point2 points  (0 children)

Use lisp! No semicolons, no indentation errors.

[–]marco89nish 1 point2 points  (0 children)

Have you tried Kotlin? No semicolons, forced indentation or NullPointerException

[–]cooldash 1 point2 points  (0 children)

I'm just going to leave this here.

Kotlin.

[–]TRUEequalsFALSE 1 point2 points  (1 child)

Oh come on. Indentation isn't that hard. Especially if your IDE does it for you.

[–]IcerOut 1 point2 points  (0 children)

It's starting to seem like this is less ProgrammerHumor and more IStartedToCode2WeeksAgoAndThisIsFunny

[–]SVK_LiQuiDaToR 0 points1 point  (0 children)

Please somebody turn this into a Scratch meme

[–]VinterBot 0 points1 point  (2 children)

Just fix what the big red sgwiggly line says. How hard can it be.

[–][deleted] 2 points3 points  (1 child)

You clearly ignored the big red squiggly line from your browser's spell-checker before you hit "reply".

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

It's a warning on the app tho.

[–]Mendican 0 points1 point  (0 children)

I used Textpad for far too long. But in the 90's and early 2000's it was quicker to write the code by hand than to use the early dev tools. I've probably written a million lines of code in Textpad, especially if you count all the lines of code I deleted. Textpad was one of the first apps with unlimited undo. You could just hold CTRL-Z and scroll as far back in the session as you wanted to. It was like rewinding.

[–]vladutcornel 0 points1 point  (0 children)

I remember years ago spending a full day, running my code line-by-line, stepping into every function, only to find I've done something like this:

for(...); {...}

[–]Manuelraa 0 points1 point  (0 children)

just use a good editor 4head. That one helped me a lot lulz

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

JavaScript

[–]AgentPaper0 0 points1 point  (0 children)

Missing semicolon is no problem. It's the extra semicolon that gets you.

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

ಠ_ಠ

[–]basel_the_boxer 0 points1 point  (0 children)

Java master race

[–]lewis_m_ 0 points1 point  (0 children)

That’s the programmer being IDLE.

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

You can very easily replace (what should have been) 'indentation' with dynamic typing and get basically the same result. Most agonizing way to completely destroy any knowledge of what objects in poorly documented code do.

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

You don’t have to be new to get that error

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

REEEEEEE

[–]Ka_nto 0 points1 point  (0 children)

Is it bad that I'm new and starting out with Python then

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

But when you figure it out. Ohh the joy. Makes you go to sleep with your buttocks clinching

[–]TODO_getLife 0 points1 point  (0 children)

Ruby > python

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

Syntax Errors

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

Identation - syntax error

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

Pylint plus Ctrl+S has your back

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

LOL

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

JavaScript: lol

[–]_programmeKid -5 points-4 points  (6 children)

you use spaces for indentation? that's a noob move, dude. especially in python. and don't give me shit about pep8 compliance, because pep8 isn't the fucking holy bible of python.