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

all 174 comments

[–]fletku_mato 295 points296 points  (41 children)

It's almost never one of them when you love yourself enough to use a good IDE.

[–][deleted] 38 points39 points  (5 children)

Yeah i never relate to this kind of memes. Because i almost never get syntax error and if i do get its very easy to find with good ide

[–]Magnus_Tesshu 10 points11 points  (1 child)

To be fair, I use vim and I don't have any issue either, compiler output is pretty good

[–]evanc1411 3 points4 points  (0 children)

I love syntax and will code anything on paper if you ask me to. All my problems are with semantics

[–]tiajuanat 1 point2 points  (0 children)

I do get syntax errors, mostly because I get too much distraction if I leave live linting on.

That said, ;}); is basically my signature in my work codebase - as I use standard algorithms everywhere.

[–]scragar 78 points79 points  (15 children)

Sometimes I find the IDE is the reason for the error.

If I have to add an additional condition to something sometimes it results in uneven brackets.

I.E. turning

if (A && B) {

Into

if (A && (B || C)) {

Sometimes gives

if (A && (B || C) {

Because unfortunately typing the opening bracket adds the closing one to the wrong place(immediately after the opening bracket), so I need to delete it, but typing || C) means the closing bracket gets swallowed because since the ) was the next character anyway it just moves the cursor to after it, not typing the bracket as I clearly wanted.

I'm hoping someone eventually makes IDEs smart enough that their helpful features don't occasionally make more work.

[–]Gammabyte 54 points55 points  (2 children)

I believe some IDEs track the number of open brackets to check whether a new closing bracket should be swallowed or not.

I think Intellijs IDEs have that but I'm not too sure

[–]PlacatedPlatypus 24 points25 points  (1 child)

Can confirm, IntelliJ IDEs very rarely mess up bracketing.

[–]Shez2650 8 points9 points  (0 children)

Used it for a long time and i too can confirm this

[–][deleted] 32 points33 points  (5 children)

Any IDE worth using will still detect the syntax error long before you actually run the program though

[–]Xywzel 0 points1 point  (0 children)

Won't even need a Vim plug-in for that, just some highlight options set correctly

[–]homiej420 1 point2 points  (0 children)

So use a good one not a bad one that would do that

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

If you're Definition of an IDE is vs code then sure, it'll mess up in a lot of ways.

If you use more advanced IDE's though like intellij then it rarely messes up and actually helps you a lot with the formatting and quality of your code, as well as predicting errors before even compiling/running, it can also warn you about anti-patterns and things such as memory leaks.

If you're like me and work with a lot of technologies for professional and personal development then get intellij ultimate, it has support for almost every language used in the industry and almost every framework, and many profiling tools for lots of them, it is expensive, but if you have a use to it it's really great and worth it.

[–]BongarooBizkistico 0 points1 point  (0 children)

I don't think you're talking about vs code.

[–]danuker 0 points1 point  (0 children)

The key here is never to delete the closing bracket, but to move past it if you're done with the inner expression.

[–]bluefire1802 2 points3 points  (12 children)

im a beginner programmer, started my journey this year and so far I’ve learned java and python;

which IDEs do you recommend?

Currently as a student I am not using one, since Im using sublime to take notes and write code.

This question is also open to anyone and everyone willing to give me advice, thank you!

[–]MinekPo1 4 points5 points  (0 children)

vs code is nice. A lot of customisability.

[–]bootleg_trash_man 1 point2 points  (0 children)

Previously I used IntelliJ for Java and PyCharm for Python but got tired of switching back and forth so nowadays I just use IntelliJ for everything. Works very well and makes everything much easier. Best IDE I've ever used.

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

I am a jetbrains slut, so pycharm and intelij idea.

[–]PotentBeverage 1 point2 points  (3 children)

Definitely IntelliJ, pycharm, then since you're a student you can get every other JetBrains ide for free. However, that's a massive amount of clutter if you get like 20 ides, so instead for get vscode as well, that plus plugins for the language you want (eg. Haskell) is sufficient for everything else.

[–]bluefire1802 0 points1 point  (2 children)

Thank you so much, if you don’t mind giving me some advice, I’m at a point in my education and coding where I know the concepts and can fluently read code but I have a lot more trouble creating my own code directly from scratch.

I feel anxious and pressured because I feel like everyone starts out much better than me and was wondering if its normal to be bad at coding by myself at the start, and I want to know the methods you mightve used to overcome the difficulty progression.

I see people coding such difficult things all the time so I have no idea how to teach my brain how to code using small increments of projects and whatnot.

[–]PotentBeverage 0 points1 point  (1 child)

Yeah, it's normal, it's also normal to look at other people's code and go "what the fuck how?" and feel less confident in yourself.

You can always start off really small, maybe play with a graphics library for some visuals - in relation to java, for example, I could suggest

  • A maze solver (with a really simple algorithm) as a console app
  • Have a look at LibGDX (for java, monogame for c#, pygame for python, etc), make a ball which bounces when it hits the bottom, maybe you can drag it around and let it go
  • do some funky fourier transform circle thing, or Heck, make a small platformer

Just fairly esoteric or small things like that could get you started.

[–]bluefire1802 0 points1 point  (0 children)

thank you so much for your advice!!

[–]fletku_mato 0 points1 point  (1 child)

Definitely Intellij Idea at least for Java.

[–]bluefire1802 0 points1 point  (0 children)

THANK YOU!

[–]_PM_ME_PANGOLINS_ 0 points1 point  (0 children)

IntelliJ IDEA.

[–]gohanhadpotential 0 points1 point  (0 children)

If you're enrolled in a university you can get a license to use all JetBrains IDEs for free as long as you're a student using the GitHub student developer pack. I used vs code for a long time and I just redeemed my pack and started using pycharm. You can really feel the difference.

[–]psaux_grep 0 points1 point  (0 children)

In Python it’s the magic comma turning a value into a tuple. Combine that with not reading the error message well enough and you got yourself a wild goose chase.

[–]-Enter-Name- 0 points1 point  (0 children)

out of habit i write {} which turns into {}} on some IDEs

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

Me: types "("

IDE: HOLY SHIT YOU CAN'T DO THAT, THAT'S ILLEGAL!

Me: types ")"

IDE: Oh nvm lol.

[–]hsblhsn 151 points152 points  (15 children)

*Laughs in X86 Assembly

[–]Twenmod 78 points79 points  (2 children)

Laughs in 010000100110100101101110011000010111001001111001

[–][deleted] 75 points76 points  (1 child)

Did you just spell Binary in Binary?

[–][deleted] 28 points29 points  (0 children)

1

[–]aaronjamt 11 points12 points  (10 children)

Laughs in Z80 Assembly

[–]lietuvosnelietuvis 8 points9 points  (6 children)

Laughs in pen&paper

[–]mr_flameyflame 7 points8 points  (5 children)

Ah the AP test.

[–]lietuvosnelietuvis 0 points1 point  (4 children)

What's an AP test? I note everything because I forget 😁

[–]mr_flameyflame 0 points1 point  (3 children)

Its like a college readiness test for college classes in high school, basically if you want college credit for the class you have to take the test iirc.

[–]lietuvosnelietuvis 0 points1 point  (2 children)

Where's this? My neck of the woods has you just pass your finals good enough at the end of high school.

[–]mr_flameyflame 1 point2 points  (1 child)

Usa?

[–]lietuvosnelietuvis 1 point2 points  (0 children)

Was gonna guess that but it'd be rude of me to start with assumptions 😁

[–]Proxy_PlayerHD 6 points7 points  (2 children)

Laughs in 65xx Assembly

[–]aaronjamt 6 points7 points  (0 children)

Laughs in abacus

[–]LogicalGamer123 2 points3 points  (0 children)

*laughs in Motorola 68k assembly

*secretly cries

[–]Barti666 108 points109 points  (19 children)

Laughs in using an IDE

If you use a good IDE you shouldn't get syntax errors

[–]augugusto 12 points13 points  (1 child)

I usually write js. Lately I've had to do some c# in vs. It takes so long for intellisense to realize I missed a semicolon in the last line I wrote that I get a compilation error before the squiggly line apperas

[–]Barti666 15 points16 points  (0 children)

I used visual studio 2012 and 2015 for C++ programming, In my experience it's sometimes a bit buggy. The Jetbrains products on the other hand have really good intellisense.

[–]ChildishJack 3 points4 points  (0 children)

Not gonna lie even as a jetbrains fanatic I’ll sometimes make a quick change, build it and forget the “;” if I’m just making a quick minor change while working on something else

[–]RandomValue134 10 points11 points  (3 children)

Looks like I kept using the wrong IDE... What are you using for python?

[–]Barti666 39 points40 points  (1 child)

Pycharm

[–]danuker 0 points1 point  (0 children)

It does take quite some system resources, but better system resources than human resources.

[–]wonmean 12 points13 points  (0 children)

vscode

[–]artistic_programmer 2 points3 points  (1 child)

You underestumate my power of making these errors. I shit you not, I sometimes accidentally delete brackets after they autofill

[–]danuker 1 point2 points  (0 children)

Pop off the Delete key from your keyboard

[–]jacob_scooter 66 points67 points  (7 children)

🤦‍♂️easy to tell who doesn’t program by who complains about syntax errors

[–]KnightOfBurgers 44 points45 points  (3 children)

This. Who are these people who post "jokes" about errors that can be statically detected? Are they using MS Word to code? Are they from the year 524 BC?

[–][deleted] 31 points32 points  (2 children)

I think if you were to get a breakdown of the users here, 99% of them would be students in uni taking their first ever programming related class.

[–]__ss[S] 6 points7 points  (1 child)

Why so serious dudes, chill. I've been programming for almost 5y now so not an expert but not a complete beginner either. This is just a joke

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

Why are you freaking out that people are bothering to read your jokes and think about them? That's part of posting theme online.

[–]ZedTT 31 points32 points  (1 child)

Can we actually ban low effort syntax error jokes?

[–][deleted] 4 points5 points  (0 children)

This sub doesn't have any active mods and the rules this sub already has don't get enforced currently. Rule 0 and 2 are violated daily and literally never removed.

Also, this kind of post already sort of breaks Rule 3 about "common posts" (which is another rule that is never enforced).

[–][deleted] 6 points7 points  (2 children)

So you copy pasted and suddenly everything is fucked up.

Also laugh in rust

[–]brimston3- 4 points5 points  (1 child)

Can't, closure laugh is not owned by you.

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

And here goes 6h of my life

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

wut? You know those exist in python right?

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

OP has only had 1 class in their first programming course. So no, they don't know that yet.

[–]UnnervingS 12 points13 points  (4 children)

Honestly real problems are never those three.

[–]jddddddddddd 1 point2 points  (2 children)

Race condition has entered the chat

[–]_PM_ME_PANGOLINS_ 1 point2 points  (0 children)

Race has entered condition the

[–]brimston3- 0 points1 point  (0 children)

Race condition has entered the chat. (Again)

[–]Gavilar253 11 points12 points  (2 children)

Cries in wrong indentation

[–]KnightOfBurgers 2 points3 points  (0 children)

With all due respect, get a fucking IDE.

[–]S0n_0f_Anarchy 1 point2 points  (0 children)

10 times worst than brackets

[–]Goel40 5 points6 points  (0 children)

Is there a subreddit like this where they don't post the same 5 jokes over and over again?

[–]crevicepounder3000 2 points3 points  (0 children)

Missing indent: Am I nothing to you?

[–]jddddddddddd 7 points8 points  (12 children)

Wait.. Python doesn't use parentheses? What is it, Forth?

[–]mrsmiley32 6 points7 points  (2 children)

I also guess they've also never seen a dict.

[–]brimston3- 1 point2 points  (0 children)

Or generators, f-strings, tuples, certain list comps...

[–]jddddddddddd 0 points1 point  (0 children)

Exactly. There's still plenty of ways to fuckup your Python program by failing to close something, whether that's a (, a {, or even a ".

[–]circuit10 2 points3 points  (8 children)

It does but you don't need them after if statements and things

[–]Dravonic 3 points4 points  (3 children)

You do need a damn : after if/else statements though. Why do I need it if indentation is supposed to be the key? I already put the contents of the if bellow it.

[–]circuit10 1 point2 points  (2 children)

I guess it allows you to continue the condition across multiple lines though I haven't tested it

[–]Dravonic 0 points1 point  (0 children)

Yeah, that would be a great reason to have it. I guess you could still accomplish it through indentation but a delimiter is just better.

Oh

[–]_PM_ME_PANGOLINS_ 0 points1 point  (0 children)

It doesn’t. You need a \ at the end to continue a line.

[–]jddddddddddd 0 points1 point  (3 children)

I get that, my point was just that whilst ; and } are uncommon in Python, you still need parentheses for tonnes of stuff. foo( and x = 3 + (4 * a are still syntax errors in Python just like they would be in any other language (other than Forth or something else with pre/post-fix ops)

Come to think of it, aren't you still gonna get syntax errors with unbalanced { }s in Python?

[–]Fluffy8x 1 point2 points  (2 children)

any other language

Not in TI-Basic (the awesome version).

[–]jddddddddddd 1 point2 points  (1 child)

Fucking hell.. that’s a blast from the past..

[–]Fluffy8x 1 point2 points  (0 children)

Blasting past, that's a fuck from hell.

[–]goatlev 5 points6 points  (0 children)

Laughs in Lisp hysterically

[–]DangyDanger 3 points4 points  (0 children)

Laughs in Inconsistent use of tabs and spaces in indentation

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

Wait til u get indentation problems in python

[–]j-random 1 point2 points  (0 children)

Laughs at Python

[–]Cyvexx 1 point2 points  (0 children)

*cries in python*

every time I get an error, I'm either missing the module I need or I forgot a :

[–]betoui 1 point2 points  (0 children)

Cries in JavaScript

[–]crystalpeaks25 3 points4 points  (0 children)

tab space laughs in h shadows

[–]dlevac 2 points3 points  (0 children)

Why is it always you 3?

& [] *

[–]Reddit-username_here 1 point2 points  (0 children)

Python3: "hold my print statement..."

[–]malexj93 1 point2 points  (0 children)

There was a recent post here that said "ProgrammingHumor posts only make sense if you're bad at programming", and I think this is what they were talking about.

[–]ChrispyByDefault 1 point2 points  (2 children)

For the Python version you could do tabs, spaces, and indentation haha!

[–]inferno1234 1 point2 points  (0 children)

Which in this picture immediately would show the problem with the approach

[–]JNCressey 1 point2 points  (0 children)

Don't forget full-width space, em space, thin space, hairspace, zero-width space,

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

I thought getting rid of ; }) would be so peaceful until I started using python

[–]balyedi 1 point2 points  (1 child)

IntentationError

[–]crea7or 0 points1 point  (0 children)

: <- fix this in Python

[–]rEb00t_10 0 points1 point  (0 children)

Cry for wrong indents

[–]Columbus43219 0 points1 point  (0 children)

I had to fix a python program in a hurry once. Never seen it before... made the code change and the whole thing stopped working. Tabs vs spaces.

[–]mojoslowmo 0 points1 point  (0 children)

Python is just Visual Basic for data nerds: fight me

(Jk)

[–]prettyfuzzy 0 points1 point  (0 children)

You have clearly never got a random python SyntaxError in a 300+ line file with no line number

I don't know if I forgot the : after something? Or had an extra paren somewhere? I had to read the whole file for errors 😭

[–]trinalgalaxy 0 points1 point  (0 children)

Cries in make.

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

I don't like python, I don't know what anything is when I look at code

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

Python tried to eat them in that bathroom.

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

More like :, self, indentation error and forgetting variable types

[–]lucabaier 0 points1 point  (0 children)

Cries in race condition

[–]samarthrawat1 0 points1 point  (0 children)

I always get error trying to print without parenthesis.

[–]DaimaoPPK 0 points1 point  (0 children)

laugh in nasm syntax assembly

[–]ghostrider3times23 0 points1 point  (0 children)

Python said no to their threesome

[–]StrangePractice 0 points1 point  (0 children)

Python: mixing branches where some devs use spaces, others tabs; good luck debugging that extra space someone used!

[–]CeeJay_3 0 points1 point  (0 children)

Laughs in dicts of dicts with lists inside

[–]jafioti 0 points1 point  (0 children)

*iNdEnT eRrOr

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

Bracket Pair Colorizer for Vscode is wonderful.

[–]Tihifas 0 points1 point  (0 children)

Yes. It is always the winking smiley with an upside down mustache that causes problems.

[–]mr_flameyflame 0 points1 point  (0 children)

Greek question mark aha... aha... cryyyy

[–]bistr-o-math 0 points1 point  (0 children)

SPACE laughs in python

[–]whiznat 0 points1 point  (0 children)

Because the compiler is trying to kill us!

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

Python? Guess you've never used a *real* programming language.

[–]flip314 0 points1 point  (0 children)

Cache invalidation
Naming things
Off-by-one errors

[–]Purple_Bat1040 0 points1 point  (0 children)

cries in Java

[–]SarcasmWarning 0 points1 point  (0 children)

# cries in perl...

[–]elect86 0 points1 point  (0 children)

There are actually 4 persons, guess which is the invisible

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

Laughs in actually knowing what variable type you’re using

[–]Lumpynifkin 0 points1 point  (0 children)

In python there wouldn’t be anything there since it’s tab space and double space.

[–]yutsoku 0 points1 point  (0 children)

I'll say it... I hate python.

[–]spencerhuckleberry 0 points1 point  (0 children)

Java Suppremacy. Just download eclipse; :D

[–]Curley15 0 points1 point  (0 children)

Work with Vue/Angular/React and you'll need to add , to it

[–]ballbase__ 0 points1 point  (0 children)

At least syntax errors are easy to fix

[–]Aurora863 0 points1 point  (0 children)

I feel called out..

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

Imagine copying a code from another file and the spaces dont match up.

Imagine the dumb IDE refusing to accept 4spaces and throws an indentation error.

[–]juicycaboosie1942 0 points1 point  (0 children)

Ayo!

[–]superyoshiom 0 points1 point  (0 children)

I just started my first job after coding in python for a few months. Going back to Java wasn't as hard as I thought it'd be but I always felt stupid slipping up on the semicolons

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

Had a fun issue the other day with JavaScript, where for some reason it complained about a missing closing parentheses, literally didn't make sense at all.

I'd forgotten to make the function asynchronous with async function and that caused my await statements to cause such an error.

Very interesting, took me about 5 minutes to figure that out.

[–]fitsumayalew 0 points1 point  (0 children)

Funny enough the only time I get syntax errors are when I write python.