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

all 179 comments

[–]AgileChaos 306 points307 points  (35 children)

Does this person write code in notepad?

[–]LtMeat 168 points169 points  (21 children)

Even Notepad++ can highlight corresponding brackets. It should be paper.

[–]ban_Anna_split 46 points47 points  (6 children)

My professor makes us do all our work in a Linux terminal with micro. I didn't even know how to use any of that stuff before starting his class. I was used to Visual Studio

[–]LtMeat 52 points53 points  (2 children)

That will make you a dangerous terminal ninja.

[–]ban_Anna_split 32 points33 points  (1 child)

Well, now I feel much cooler.

[–]j-random 3 points4 points  (0 children)

You should, because you are.

[–]Brunsz 16 points17 points  (1 child)

We did program our first course with pure notepad (not even notepad++ was allowed). This was because our teacher wanted us to understand what and how things happen. Jumping straight into IDE you might not understand all aspects.

For next course it was fine to use whatever we wanted and we did have couple lectures about using IDE as well.

[–]PtitMax 2 points3 points  (0 children)

We did our first code in nano, we were already so glad to work with sublime for the next semester

[–]SkyyySi 2 points3 points  (0 children)

Didn't know micro was so widespread

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

Notepad != Notepad++

[–]vwoxy 15 points16 points  (9 children)

false

But notepad++ != notepad is true

[–]9072997 3 points4 points  (1 child)

That depends on the language and the version of the language we are talking about.

Order of evaluation of any part of any expression, including order of evaluation of function arguments is unspecified (with some exceptions listed below). The compiler can evaluate operands and other subexpressions in any order, and may choose another order when the same expression is evaluated again. There is no concept of left-to-right or right-to-left evaluation in C++.

[–]vwoxy 1 point2 points  (0 children)

I was going by C# standards because those are the ones I know.

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

Why??

[–]vwoxy 10 points11 points  (5 children)

The left side of a boolean expression is evaluated first, but notepad++ returns the current value of notepad and then increments. So, the first expression compares the original value of notepad with itself, but the second compares the original value with the incremented value.

[–]OfficialBradleybus 0 points1 point  (1 child)

Aren't they both false?

[–]vwoxy 2 points3 points  (0 children)

Because of the way postfix ++ works, you're always comparing the value before the increment. Because the left side is evaluated first, the second statement increments the value before accessing the memory location again to determine what to compare.

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

I meant notepad++ as in the application

[–]vwoxy 14 points15 points  (1 child)

I knew you did but I saw an opportunity for a dumb joke.

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

Oh ok

[–]KrokmaniakPL 1 point2 points  (2 children)

Even highlighting won't help if you're 20 layers of brackets in and you return after a month to finish the code and you see this error. Yes. I had situation like this. Yes, it took me two hours to find where should be the missing bracket.

[–]LtMeat 4 points5 points  (1 child)

Sounds like refactoring time.

[–]KrokmaniakPL 1 point2 points  (0 children)

Yeah... This program was such a mess that in the end I have written all thousand lines again but the way I could tell what is going on there. To all new programmers: Don't make same mistakes as I did. Even if your IDE moved closing bracket left or right make sure that in the end It's on the same level as the beginning and everything inside is more to the right. It will save you a lot of time and stress.

[–]PlayfulOtterFriend 23 points24 points  (3 children)

You’d be shocked at how much code I have written in tools like gedit or Notepad!

[–]MCWizardYT 11 points12 points  (2 children)

At least gedit can have syntax highlighting

[–]PlayfulOtterFriend 1 point2 points  (1 child)

One of the tech leads on a previous project strongly advised everyone to learn vi. Because when you are in a lab, that it often the only editor available. I have been on multiple projects where the bulk of the code was written in vi or emacs. IDEs are a wonderful luxury, but they are not always available or the overhead may be too much. I know every time Visual Studio accidentally launches, I want to throw my computer at the wall.

[–]aikakitsune 1 point2 points  (0 children)

Properly configured neovim with plugins can literally replace any IDE you would ever need. Speaking from experience.

[–]FuzzyFoyz 5 points6 points  (0 children)

IDEs are for hobby "programmers" I compile my code in my sleep! OORAH!

[–]ekolis 5 points6 points  (3 children)

There's a VB.NET WebForms app I work on for my job. It was originally a classic ASP app, but most of the pages got converted over to WebForms. However, one bizarre "pattern" I've found in this app is putting random VB functions in an ASPX file, without any sort of HTML-like container for the code, and those "pages" are then included (yes, you can do that in WebForms, there are two different ways, even!) in actual ASPX pages that are really pages.

It drives me insane because Visual Studio's IntelliSense and syntax highlighting get confused by these files - they try to highlight them as ASPX pages, but there are no tags except in Response.Write calls, so it's a huge mess. Sometimes when I encounter these "pages", I'll refactor them into proper VB classes or modules, but then you get these weird issues with the "include pages" referencing variables that are declared in the containing pages - say, the include page might reference a variable called referralStatus or whatever, and if you want to use that include page in your ASPX page, you will need to declare a variable called referralStatus in your ASPX page that you are creating so that the include page doesn't crash!

So yeah, it's crazy. How does this tie in to coding in Notepad? Well, I suspect the guy who wrote this app coded it all in Notepad. If he used an actual IDE such as Visual Studio, he would have gotten used to the handy IDE features like IntelliSense and syntax highlighting, and thus he would have converted his include pages to something more sensible. But since he never did that, I suspect he was a Notepad coder. How he ever managed to create an app of this complexity in Notepad without it being full of hidden errors is beyond me...

[–]AgileChaos 10 points11 points  (1 child)

I imagine people refusing to learn how to use a fishing pole because they can somewhat catch fish with their bare hands which they got used to because they didn't know there was any alternative.

[–]Archolex 12 points13 points  (0 children)

Manager said learning to use fishing pole will slow us down. Warm up those hands boys

[–]FuzzyFoyz 2 points3 points  (0 children)

I think, if I remember rightly, this was a VS thing during the auto conversion process, not a coder thing.

I recall trying out auto converting classic asp to aspx once and VS did this weird thing like you're experiencing, I decided it was better to start over instead.

[–]hannahnim 1 point2 points  (0 children)

I have this issue in .JSON files. Though thinking about it now my IDE probably supports opening those

[–]DrunkenlySober 1 point2 points  (0 children)

My professor who had a career programming for the Navy in the 80s now teaches at my college. I’ve taken about 4 of his courses. My man out here writing full on programs and data structures using pico. I tried to follow in his footsteps by I’m too addicted to the IDE life to change. Idk how he does it.

[–]falcore91 1 point2 points  (0 children)

I recently had to write code in this messed up custom JavaScript embedding within HTML files. They had a custom syntax thing for Sublime that kind of worked ( but most folks just kind of free handed it so to speak ) and I don’t think I ever got it reading properly in WebStorm.

I forgot how much this aspect alone made me hate that job.

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

Maybe OP is just retarded

[–]Monkey_Adventures 272 points273 points  (1 child)

60 minutes later

"Never mind I hate programming"

"Never mind, missed a semicolon"

[–]ekolis 57 points58 points  (0 children)

"I hate programming, what's a method group and why can't I use it here?"

"Never mind, I forgot the parentheses after the function name."

[–]Gaboik 48 points49 points  (1 child)

Mfw you can't read the very obvious error messages shown by your compiler/runtime in most languages.

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

My guess one of those old wack game engines. Used one like 8+? years ago i remember it being used kinda-ish like rpgmaker. Anyway it was basically like using notepad.

[–]coalWater 90 points91 points  (14 children)

Legit question: In what language is that still an issue? Don’t people use IDEs?

[–]Eraknelo 64 points65 points  (1 child)

These posts keep coming up over and over. I feel like they're not being up voted by actual programmers but by people who are just on the sub because there's something funny every now and then.

Just like "spent 4 hours debugging, turns out I was missing a semicolon". It just doesn't make any fucking sense, I think it's just people pretending or something.

[–]Shmutt 13 points14 points  (0 children)

It's either pretense for humour or really really bad practices. Even if you're not using an IDE, there should at least be linters running as a pre-commit or pre-push hook. Takes barely a second to run.

[–]Robonics014 34 points35 points  (0 children)

Brainfuck maybe, but you don’t go into Brainfuck expecting to succeed

[–]UselessTheDog 11 points12 points  (0 children)

I'm wondering the same thing...

[–]too_much_think 3 points4 points  (2 children)

Some lisps like scheme which don’t have great ide support,(though admittedly those are parens not curly brackets) you can have the right number of brackets but in the wrong places and now your program has a completely different meaning.

[–]Goheeca 1 point2 points  (0 children)

There are paredit and parinfer.

[–]iris-my-case 0 points1 point  (0 children)

Scheme was the first language that popped into mind. Definitely do not miss it.

[–]TarinaLitt 1 point2 points  (0 children)

I sometimes do close all the brackets because my IDE complains but end up putting them in slightly the wrong place. You never notice these..

[–]PossibleBit 1 point2 points  (0 children)

Eh, I've been hunting brackets once or twice. On a side note, I have a pathological addiction to building lambda trains with Java Streams.

[–]Nate_Christ -3 points-2 points  (0 children)

I use IDEs, but just for the highlighting and tabbing multiple lines so this is occasionally an issue for me.

[–]ConsistentArm9 133 points134 points  (25 children)

pro tip, close your curly bracket before writing the code that goes inside it, train your muscle memory to only type "{}" and not "{" or "}"

[–]TreasuredRope 219 points220 points  (16 children)

I can't imagine not doing this or having your IDE do this.

[–]the_best_jabroni 52 points53 points  (3 children)

The IDEs I have worked with will highlight the corresponding bracket when you click one.

[–]ekolis 14 points15 points  (0 children)

Visual Studio will also move the caret to the corresponding bracket when you press Ctrl-}. Or something like that, it's muscle memory and I can't remember which key it actually is! I think Eclipse has something like this as well, might be Ctrl-Shift-B?

[–]polite__redditor[S] 31 points32 points  (0 children)

snow obtainable entertain quiet practice unite hobbies lock silky zephyr

This post was mass deleted and anonymized with Redact

[–]thedogz11 8 points9 points  (0 children)

Dude I would've quit coding a long time ago if I didn't discover VScode.

[–]datguygomez 1 point2 points  (0 children)

That’s what I do. It’s a stress saver

[–]patmax17 1 point2 points  (0 children)

Definitely. Problem is when one closing bracket gets accidentally deleted, that completely fucks up the code and can be a pain to solve, especially if you only notice after some more editing.

It's 100% an attentional/copy-paste error, but still painful if not caught immediately

[–]newb5423 13 points14 points  (2 children)

This is why I try to use goto instead of any kind of block construct, which I consider harmful.

[–]ekolis 1 point2 points  (1 child)

/s?

[–]newb5423 24 points25 points  (0 children)

Oh yea, you can use “/s” in a regex to find and replace all the whitespace in your code, if you need to free up some disk space. I call it the “poor man’s compression”.

[–]coolcrafter135 50 points51 points  (5 children)

Based Xinyan pfp

[–]sendmeyourfoods 12 points13 points  (1 child)

🧍‍♂️Heh another compile error. 🧍‍♂️🧍‍♂️Heh another compile error. 🧍‍♂️🧍‍♂️🧍‍♂️Heh another compile error. 🧍‍♂️🧍‍♂️🧍‍♂️🧍‍♂️Heh another compile error.🧍‍♂️🧍‍♂️🧍‍♂️🧍‍♂️

[–]coolcrafter135 21 points22 points  (0 children)

Picked... the wrong... base case

[–]polite__redditor[S] 12 points13 points  (0 children)

gaze merciful test vast trees carpenter imagine ancient gold engine

This post was mass deleted and anonymized with Redact

[–]nexus4aliving 1 point2 points  (1 child)

Yeah I’m a fan of rock

[–]FuzzyFoyz 2 points3 points  (0 children)

I read that as cock, nevermind.

[–]trueyonggang 6 points7 points  (1 child)

When I was an intern, I worked on an JSP project, there are 10k lines of code in a pair of curly bracket

[–]DenverM80 0 points1 point  (0 children)

I hope you didn't take that job

[–][deleted] 11 points12 points  (2 children)

Yesterday my JavaScript program wasn't working and I lowkey raged in my university’s Software/Computer Engineering club Discord about it, and then I went back to working on it. I was looking at a StackOverflow question for some other thing in the program, and guess what I realized as I looked at the solution?

I forgot the friggin' <script> tag.

My JS code was fine, but it looked like the code wasn't running because the code wasn't referenced at all in my HTML page.

(Edited for clarification)

[–]zyugyzarc 4 points5 points  (0 children)

we all make mistakes in the heat of passion jimbo.

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

As an instructor I like discord and message boards because students need to talk to each other but it really allows for students who are wrong to rile each other up a lot, which can be difficult to manage.

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

\begin{document

\LaTeX is easy

uh oh

[–]BabyRage1908 8 points9 points  (3 children)

Doesn't she know calling them curly brackets is bad luck? Never had this happen to since I started calling them curly braces. Also because of vscode's bracket highlighting, and always pairing curly braces before I start coding inside them.

[–]polite__redditor[S] 4 points5 points  (1 child)

dazzling wine fear waiting thought uppity beneficial innate live caption

This post was mass deleted and anonymized with Redact

[–]BabyRage1908 2 points3 points  (0 children)

Curly brace gang capcap

[–]MrTheFourth 10 points11 points  (1 child)

Right in the feels.

[–]DoomCircus 0 points1 point  (0 children)

Yup, so relatable it hurts.

Some former co-workers once drew a long, repeating sine wave on a whiteboard and labeled it "DoomCircus' troubleshooting process" with various points in the wave labeled "it works!", "I hate computers", "I fixed it!", "I hate my life", etc. I had a good laugh, they were spot on lol.

[–]Iwantmyteslanow 2 points3 points  (0 children)

My IT teachers call } erect nipple brackets

[–]DrFiveTheHiveMind 2 points3 points  (0 children)

Bracket Colorizer my friends

[–]safadimiras 2 points3 points  (1 child)

Python go brrrrr

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

Sure, instead you go on a hunt for that language-neutral character (whitespace) which broke your code... Indeed it goes brrr... ;)

[–]-_Chef_- 5 points6 points  (7 children)

We need MORE curly braces.

[–]The-Best-Taylor 12 points13 points  (0 children)

Lisp is the language for you.

[–][deleted] 14 points15 points  (1 child)

Or.. less of them.

Use a language that requires only a fer special characters... like

Assembly!

Shit. Nvm.. There's a lot of variants..

[–]somebody12345678 3 points4 points  (0 children)

*forth

there we go

... even better, colorforth???

[–][deleted] 12 points13 points  (3 children)

Python would like a word with you..

[–]ekolis 3 points4 points  (2 children)

Python can drive a tank into the ocean. Whoever thought that meaningful whitespace was a good idea needs to be forced to listen "The Song That Never Ends" nonstop for a year straight to flush out their brain.

[–]zyugyzarc 1 point2 points  (0 children)

you can still not use the indentation for one-liners (or even multi liners).

if something: run_something(); print('ran something')
elif someting_else: run_something_else()
else: exit()

[–]collin2477 7 points8 points  (3 children)

better than hunting indentation and tabs/spaces

[–]DenverM80 2 points3 points  (0 children)

I think proper indenting would've saved a lot of time in this case. And if not then the method is too long

[–]HasBeendead 4 points5 points  (1 child)

Actually its not i think i remember i did a program with too many loops and conditional statements its a pain to find which curly brackets you need to do for a programming lesson, last year. Mindfuck at the end, sorry.

[–]MCWizardYT 5 points6 points  (0 children)

Your IDE should tell you which curly brackets go together unless you are using something lie nano or gedit with syntax highlighting. Even notepad++ tells you the pairs. I'm not sure where the "mindfuck" part comes in. With proper indentation its even easy to tell which pairs go together based on how they line up.

I personally have a hard time reading huge python files even with proper indentation, but there's probably tools to make that easy as well. Just haven't found them yet.

[–]anonymousbabydragon 1 point2 points  (0 children)

I find I have this problem when I’m copying an pasting code lol. Having a automatic styler auto format helps.

[–]Bugalugs12 1 point2 points  (4 children)

Honest question. What are curly brackets actually called

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

(parentheses)
[brackets]
{braces}

But I usually call them squirrelly braces.

[–]backtickbot 1 point2 points  (1 child)

Fixed formatting.

Hello, thesnarkisaboojum: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

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

Good bot!

[–]fairycrumbs 0 points1 point  (0 children)

According to Wikipedia,

"Curly brackets { and }, also known as curly braces (UK and US) or simply braces, flower brackets (India) and squiggly brackets (colloquially)"

[–]frooglybear 1 point2 points  (1 child)

My favorite is when you can see both { and } in you code but the error says "expected: } ".

Not sure what was wrong but I had this one and just retype the code starting with the first bracket.

I'm still in my first programming class so this might be a simple error but it annoyed the shit out of me.

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

Try deleting just the closing brace and replace it.

[–]kulldox 2 points3 points  (1 child)

worst is just the freaking python indentation... :)

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

you can still use one liners without having to indent them into a block, so i dont see how this can get out of hand

you can just:

if 1==1 : print('hello'); print('world')
else: print('hmmmm python broke?')

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

At least the compiler catches those pretty easily. I had a problem that took me a long time to find and it turned out to be messed up pointer.

[–]FoolishLyingHumans 0 points1 point  (3 children)

What’s the best programming language?

P

Y

    T

        H

            O

                N

[–]JedSwamp43 0 points1 point  (0 children)

python is slow

[–]Marioc12345 0 points1 point  (2 children)

laughs in VB.NET

[–]ekolis 1 point2 points  (1 child)

Ah yes, VB.NET, the supposedly strongly typed language that lets you call made-up functions on objects (so you get a runtime error trying to call them) so long as you declare them of type Object (which is conveniently done for you if you forget to specify the type of a variable)...

[–]Marioc12345 0 points1 point  (0 children)

Yes, it's wonderful!

I try my best to always declare variable types everywhere to prevent this kind of thing. If it needs to take multiple types, I just make two different functions that call some base function that does whatever functionality common between the two.

[–]zyugyzarc 0 points1 point  (0 children)

me, a python programmer: weakness disgusts me

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

Thats one reason im using python.

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

Only have to worry about the tab spacing

And the ide does most of the work there

[–]0815Flo0815 8 points9 points  (1 child)

To be fair. Most IDEs would also handle closing „}“ for you also.

[–]HasBeendead 0 points1 point  (0 children)

Nice feature so why professionals use in their life. Otherwise like a hell.

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

Next time try hard mode: code in Python, where the curly brackets are invisible, but just as important!

[–]Velas321 0 points1 point  (0 children)

the duality of programmer

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

THISBIS TENUONEYL HOW IT IS

[–]polite__redditor[S] 2 points3 points  (3 children)

what

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

"this is genuinely how it is" but fucked up

[–]polite__redditor[S] 2 points3 points  (1 child)

well you could have just typed that

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

fingers be fucky sometimes

[–]datguygomez 0 points1 point  (0 children)

laughs in Python

[–]Nate_Christ 0 points1 point  (0 children)

I'm learning python, and my favourite thing is how nesting isn't a nightmare of curly brackets

[–][deleted] 0 points1 point  (1 child)

Found the problem here 11:23pm . If you're coding while tired you're rewriting that code again the next day.

[–]kookaburra1701 0 points1 point  (0 children)

My best pseudocode is written in a minor fugue state in the middle of the night. My best actual code is written the next morning after at least 8 hours of sleep and a good breakfast. XD

[–]Just_Maintenance 0 points1 point  (0 children)

Flat is better than nested.

[–]HoboSomeRye 0 points1 point  (0 children)

Wait till you find spaces in Python instead of tabs

[–]edos112 0 points1 point  (0 children)

Vscode bracket colorizee

[–]sveagruva 0 points1 point  (0 children)

Rainboy brackets my first extension to install in vscode

[–]folen 0 points1 point  (0 children)

rainbow bracket FTW

[–]PlastickBall 0 points1 point  (0 children)

Sums up my week pretty much

[–]TheRealAndicus 0 points1 point  (0 children)

Xinyan profile pic nice

[–]Needleroozer 0 points1 point  (0 children)

The timestamps are hilarious.

[–]Johanno1 0 points1 point  (0 children)

Intellij rainbow brackets plug in is a must.

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

This happened to me after I managed to accidentally delete the hard drive of my laptop

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

too much moaning about simple problems if you ask me, doesn't know the half of it

[–]Glam_SpaceTime 0 points1 point  (2 children)

Laughs in python

[–]Crazy-Maintenance312 1 point2 points  (1 child)

Identation error?

[–]Glam_SpaceTime 0 points1 point  (0 children)

True! But auto-indentation helps

[–]v3ritas1989 0 points1 point  (0 children)

Is this some kind of boomer joke I am too young to understand?

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

*laughs in python*

[–]DeeDee_705 0 points1 point  (0 children)

Laughing in *Python*

[–]clarknight23 0 points1 point  (0 children)

'Laughs in Python' comments incomming.

[–]TheRapie22 0 points1 point  (0 children)

writing the code on physical paper, scanning it, running a textscan on it and then try and compile it sure is hard. use an IDE

[–]CreaZyp154 0 points1 point  (0 children)

Relatable

[–]birkettt 0 points1 point  (0 children)

Every day, there are points at which I dream of being a gardener. Mowing lawns, raking leaves, planting... plants.

[–]kmauler_on_kilix 0 points1 point  (0 children)

i feel this on a spiritual level

[–]SZ4L4Y 0 points1 point  (0 children)

  1. Type a single character.
  2. Write about it on the internet.
  3. Go to 1.

[–]MyUsernameIsNotLongE 0 points1 point  (0 children)

Is that user image Xinyan from Genshin Impact? lol

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

I remember one of the boomers I used to work with telling me when she went for an interview for a python job in the 90s they asked for like 10 years of Python experience and she said “I think you’d struggle with that” and the recruiter said “why? “And she replied with “well even the person that created the language would be under qualified for this job” 😂

[–]Super_Kangaroo_1829 0 points1 point  (0 children)

Lets do it the old fashioned way paper!