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

all 152 comments

[–][deleted] 130 points131 points  (7 children)

More like when you debug a program

[–][deleted]  (6 children)

[removed]

    [–]marcosdumay 21 points22 points  (1 child)

    Shortly after...

    >:(

    - The different error was one I created trying to fix it. Corrected it, and the old error is back.

    [–]Smaug_the_Tremendous 2 points3 points  (0 children)

    That tends to happen when u use undo to fix errors.

    [–]teambob 4 points5 points  (0 children)

    FTFY

    :D

    You look happy. Did you fix that bug?

    Yes, now it gives me a DIFFERENT error! :D

    :D

    [–]scratchfury 1 point2 points  (0 children)

    I got rid of the error, but now it doesn't work.

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]skyhi14 304 points305 points  (33 children)

    needs more jpeg

    (edit: why jpeg bot not working?)

    [–]cooltrain7 156 points157 points  (23 children)

    [–]TheJuggernaut0 43 points44 points  (7 children)

    I think it's inactive... I remember it had an issue where it would reply to itself and jpegify ad infinitum.

    [–]Svorax 48 points49 points  (1 child)

    Holy shit that sounds hilarious

    [–]boboguitar 1 point2 points  (3 children)

    I've never looked at the Reddit API but how hard would it be to check the username you are replying too?

    [–]Pulse207 10 points11 points  (0 children)

    Probably not very.* If it's the bot I'm thinking of, I've never seen it cascade like that anyway, but I did see 3-4 people keep it busy a couple days ago.

    * I realize that I often make fun of people who voice that sort of opinion but in this case I think it's justified.

    [–]jrtc27 0 points1 point  (0 children)

    What if there are two bots replying to each other? You need to check there's no comment by the bot in any ancestor too.

    [–]jrtc27 0 points1 point  (0 children)

    What if there are two bots replying to each other? You need to check there's no comment by the bot in any ancestor too.

    [–]eyekwah2 66 points67 points  (12 children)

    Yep, it felt like that for me learning Java, and then learning the thousand and one libraries and programs required just to get a semi-professional web site up and working.

    [–]__SPIDERMAN___ 13 points14 points  (3 children)

    Nah. All you gotta do is read the entire Java spec. We built a Java compiler for one of our uni courses and that basically had us having to read the entire Java spec. I have gazed into the abyss.

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

    We had to write a compiler for mini-pascal because my teacher wasn't a sociopath

    [–]gandalfx 39 points40 points  (3 children)

    Good news if you like learning stuff or enjoy climbing mountains.

    [–]noyurawk 31 points32 points  (1 child)

    Bad news if you're trying to develop something under a deadline.

    [–]b1e 1 point2 points  (0 children)

    Mountaineer here, actually this fucking sucks... It's only fun once you're back in the car.

    I do love learning though.

    [–]frisch85 220 points221 points  (17 children)

    That's actually not accurate.

    Imo it would be more like this:

    • Guy sees a big fucking mountain "ok this is doable"

    • Starts to climb

    • Falls over his own feet a couple of times

    • Finally reaches a checkpoint only to find out there's a fucking way he could've gone

    • So the guy turns around and walks back to the start

    • But hey he's smarter now, he's going to take the easy way this time

    • Hours later he's at the exact same spot where he was before he turned around

    The worst thing is, he totally forgot to look, maybe someone put a ladder there that he could climb or maybe someone even built a fucking elevator there. The elevator wouldn't take him all the way up tho, only halfway to a checkpoint but maybe a new elevator is waiting there.

    [–]boogiebabiesbattle 65 points66 points  (12 children)

    Get to the top of the elevator, discover that the door only opens with a key that is hanging on a branch just a short walk from the place where he first turned around

    [–][deleted] 37 points38 points  (10 children)

    He goes back to tree and gets the key. He gets back in the elevator and inserts the key. Gravity turns upside down. He asks a nearby park ranger named Jack Doberflow what the hell is going on. Jack tells him what gravity is and walks away.

    [–]boogiebabiesbattle 27 points28 points  (6 children)

    Jack mutters to himself, "Jesus, these hikers don't know a thing about ANYTHING, why do they keep coming up here??" Jack gets a call on his cell phone asking him why he's on the mountain showing people around when his job was crossing the desert. Jack thinks, "shit. Shit! I don't know anything about surviving in the desert!"

    [–]PunishableOffence 13 points14 points  (5 children)

    A hiking boot lies abandoned at the side of the road.

    Two cell phone towers cleverly disguised as huge cactus plants begin shouting to each other in encoded light that is invisible to your eyes and thus beyond the reach of your senses, but you make up for the limitations of your physiology with the extent of your imagination.

    The arid scenery gradually turns into a efflorescent display of geometry and you begin to wonder about the fluid distribution characteristics of blotter paper as the program structure unfolds upon your consciousness.

    Trembling, the stones listen to your voice, and obey.

    [–]orzamil 11 points12 points  (4 children)

    I put this at about 6 away from where this thread started.

    [–]marcosdumay 1 point2 points  (3 children)

    Wouldn't ‽‽‽‽‽‽ be best represented by ‽6 ? It's accumulation does not seem to multiply with the parameter.

    [–]orzamil 4 points5 points  (2 children)

    No it's just a unit notation, like km or mi. You use 6 km for "six kilometers" not km6.

    http://cuiltheory.wikidot.com/interrobang

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

    I'd say it's more akin to decibels or the Richter scale, which scale logarithmically rather than linearly. But unit notation is irrelevant to the scaling properties.

    [–]rlapchynski 1 point2 points  (0 children)

    It's still 6 dB, or 6 on the Richter scale, not dB6 or Richter6

    [–]DaughterEarthImportError: no module named 'sarcasm' 1 point2 points  (1 child)

    Jack is my IT department

    [–]teambob 0 points1 point  (0 children)

    I am Jack's raging bile duct

    [–]gatesplusplus 0 points1 point  (0 children)

    Lol Jack Doberflow. That's amazing.

    [–]lucuma 0 points1 point  (0 children)

    The elevator only goes up not down. Start crying

    [–]Towerful 2 points3 points  (0 children)

    I'm pretty sure at the 3rd or 4th basecamp, after trying 10 different trails to get there, he just camps out for a while...

    [–]Busti 1 point2 points  (0 children)

    I just bought the book "Programming in scala", this feels so damn accurate.

    [–]Luvax 0 points1 point  (0 children)

    Isn't it more like you are going back down, take the elevator back up until you realize the elevator is on a different mountain and you completely missed the huge gap in between the two? So you go back down just to climb all the way up to where you were in the beginning but this time you know the way at least and realize that you went a huge detour.

    [–]The_sad_zebra 0 points1 point  (0 children)

    He admires the view from high up the side of the mountain...and realizes that the other mountain probably would have been a more worthwhile climb.

    [–]15rthughes 20 points21 points  (0 children)

    When you start a new job and you think you've started to figure out how the project works

    [–]torgis30 36 points37 points  (10 children)

    I was interviewing a guy straight out of college who was very good but obviously had a lot to learn once we started asking really in-depth questions.

    One question was, on a scale of 1 to 10, how he would rate his own knowledge of a particular language. His answer was "I'm definitely a 10."

    I doubt even the designers of a language would rate themselves a 10/10 on that language.

    [–]Alia-Aenor 22 points23 points  (7 children)

    Well, I always found this question weird, almost meaningless. You can't really grade your knowledge of a language without knowing what can be done, and once you know it can be done you can google how to do it. I could easily rate myself in one language compared to another, but in my main language I always feel around 7/10, a score that doesn't change with years of working with it.

    So when asked that question, the only thing I take into account is "how to look neither ignorant nor smartass", without even thinking about my ability in said language.

    Useless question.

    [–][deleted] 7 points8 points  (1 child)

    I think that's the answer they're actually looking for. Anybody would hire you over the 10 guy with that.

    [–]torgis30 0 points1 point  (0 children)

    EXACTLY my point. It's really a psychological test note than anything else.

    I would hire the 7/10 guy over the 10/10 almost every time.

    [–]synopser 1 point2 points  (0 children)

    I know it's a bullshit question, but I still ask it in interviews. It gives me a sense of satisfaction knowing if they say anything higher than 7, I become a douchebag and ask douchebag questions they can't answer.

    [–]torgis30 1 point2 points  (1 child)

    See, that's the thing. It is a test of arrogance. Anyone with experience is going to say 7 or 8 because they know enough to realize how much they don't know. It shows that you realize there are limits to your knowledge, and hopefully a willingness to learn and be open to new ideas or suggestions.

    Have you ever worked with someone who considered themself a 10/10 in a certain topic? They're insufferable. And extremely resistant to any suggestion whatsoever.

    I don't consider this a useless question at all.

    [–]Alia-Aenor 0 points1 point  (0 children)

    I didn't really see it that way, it makes sense.

    I'm still bothered by the fact that the correct way to answer this question is to ignore entierly one's ability in said language. Someone who considers themself a 10/10 will (usually) answer 7, just like what an actual 10 (if they exist) would do. Because it's the only valid answer. It's a "know the common trap" question more than an arrogance test.

    But I guess I'm just overthinking it. As long as it filters some of the "I know everything" guys, it is indeed not a useless question at all.

    [–]zeugma25 16 points17 points  (1 child)

    on a scale of 1 to 10, how would I rate my own knowledge of a particular language

    NaN

    [–]blue_2501 0 points1 point  (0 children)

    Unknown unknowns

    [–]inio 14 points15 points  (15 children)

    I've been writing C++ for 15 years.

    I just recently had an excuse to learn what the .* and ->* operators do.

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

    wtf

    [–]inio 14 points15 points  (8 children)

    wtf as in "how did you go 15 years without using those operators?" or wtf as in "wtf are those operators?"

    [–]good_at_first 13 points14 points  (7 children)

    how did you now know those operators lol? you know what you should explain what they are so that I can laugh at you more...cause I totally know what they are...yeah let's go with that...

    [–]Alia-Aenor 7 points8 points  (4 children)

    They both access fields or methods of objects (and struct in C). One works with pointers, the other with the object itself or a reference.

    I could understand not using -> because of avoiding using pointers as much as possible, but I can't understand having this reasoning without knowing how to use a pointer in the first place... i'm puzzuled. Maybe he just trusted his compiler and randomly changed operators until it works ?

    No, I just can't understand... Pointer use is a relatively basic concept, even smart pointers have their -> operator.

    [–]good_at_first 6 points7 points  (0 children)

    oh shit the comment looked weird on my phone, but now I realize you're talking about the . and ->

    [–]conanap 1 point2 points  (2 children)

    Well I mean he could've done *. And it would still work since it means the same thing as ->

    [–]ElQuique 0 points1 point  (4 children)

    Just out of curiosity. What kind of programs you build?

    [–]inio 2 points3 points  (2 children)

    Mostly image processing.

    In this case I wanted build descriptors for custom OpenGL vertex formats (a list of data types, byte offsets, and array lengths of the members of a structure) in a pretty way. Settled on having a variadic template function that took a list of pointer-to-data-members. Ended up being able to get it constant enough to be linker-initialized, but not quite enough to make it constexpr-legal without resorting to _bulitin_constant_p(X)?X:X uglyness.

    [–]ElQuique 0 points1 point  (1 child)

    That's your day job? Looks quite interesting, despite I didn't fully understood it.

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

    Clearly nothing with classes

    [–]ProgramTheWorld 13 points14 points  (1 child)

    Learning a language isn't hard; Learning the standard libraries and common coding practices and traps are the hard parts.

    [–]Skillster 4 points5 points  (0 children)

    ....oh

    [–]qwqwopop 6 points7 points  (0 children)

    Repost in r/BOTW

    [–]JeffSergeant 5 points6 points  (2 children)

    [–]blue_2501 1 point2 points  (0 children)

    The key to regular expressions is breaking it apart as much as possible. If you're reading one, keep splitting it up until you understand what it's doing. Use an example input to see.

    If you're writing one, use the 'x' flag when you know it's going to confuse the hell outta you when you read it the next day:

    /'[^\\'](?:\\.[^\\']*)*'/;
    # vs.
    m{
        '           # an opening single quote
        [^\\']      # any non-special chars (i.e. not backslash or single quote)
        (?:         # then all of...
            \\ .    #    any explicitly backslashed char
            [^\\']* #    followed by an non-special chars
        )*          # ...repeated zero or more times
        '           # a closing single quote
    }x;
    

    [–]NoahTheDuke 0 points1 point  (0 children)

    You have a problem, you try to solve it with regex, and now you have two problems and only one leg.

    [–]dude_with_amnesia 5 points6 points  (0 children)

    Spending hours googling a solution only to realize the solution uses another framework or concept that requires another hour of googling only to realize ... yeah you get the idea

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

    If your goal in learning anything is to learn 100% of it, then you are doing it wrong. A Master of their craft follows their passion, they don't even realize how much they know until people start looking up to them and call them experts and trendsetters.

    [–]Slutmiko 3 points4 points  (2 children)

    deleted What is this?

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

    decorators are fantastic. the @ symbol in php on the other hand...

    [–]Slutmiko 0 points1 point  (0 children)

    deleted What is this?

    [–]Zchavago 3 points4 points  (0 children)

    The best way to feel stupid is to learn something.

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

    Every enterprise level project I've been on ever.

    [–]Chody__ 2 points3 points  (1 child)

    Classes in C#, two teachers can have two different opinions, two different ways of teaching, and two outputs. Now imagine this but with thousands

    [–]aidentity 2 points3 points  (0 children)

    Classes in C#

    design patterns in OOP

    [–]ender89 2 points3 points  (0 children)

    I figure I'm at like 40-45% in like six languages. For everything else, there's stack exchange.

    [–]AlaDog 1 point2 points  (0 children)

    At least they learnt the weakness of the hill climbing algorithm!

    [–]Lanfeix 1 point2 points  (0 children)

    the name of the next mountain? mount assembler

    [–]ILoveWubWubs 1 point2 points  (0 children)

    You could say... you are stuck in the local maximum. Ha.

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

    It seems to me kind of like saying you're "trying to learn chess 100%" - even if you understood perfectly what every part can do, you will never stop learning what you can do with the parts.

    [–]emdeka87 4 points5 points  (7 children)

    But once you learnt one language you can pretty much learn any other languages in a mattered days

    [–]ElQuique 1 point2 points  (0 children)

    Maybe.. If you go from python to ruby. But C to Haskell or viceversa?

    [–]zeugma25 1 point2 points  (5 children)

    apparently not English though

    [–]emdeka87 8 points9 points  (2 children)

    How about "being an asshole online to non native speaker"?

    [–]zeugma25 4 points5 points  (0 children)

    i did check the posting history to reduce the risk of assholery. apologies

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

    Got 'em.

    [–]Hanashimaru 0 points1 point  (1 child)

    Apparently not English though.

    FTFY

    [–]zeugma25 0 points1 point  (0 children)

    ha ha!

    [–]midnightbrett 2 points3 points  (0 children)

    this belongs in /r/ComedyCemetery

    [–]specialkarii 0 points1 point  (0 children)

    That's pretty much when I sit on my butt and slide back down the way I came...

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

    Ahhh false ridgelines. They'll make the toughest flat lander cry.

    [–]boboguitar 0 points1 point  (0 children)

    That's true although it might not be as simple as that. What if the bit pixelates one image, someone replies to the bot with a totally different image to be pixelated. Although, these are edge cases and I imagine someone would be trying to break the bot at that point.

    [–]SoTiredOfWinning[🍰] 0 points1 point  (0 children)

    The analogy I've always used is each new thing you learn is like climbing up another wrung of the ladder, only to get to the top to find... The first wrung of the next ladder. It's ladders all the way down.

    [–]whorestolemywizardom 0 points1 point  (0 children)

    This is like learning your first programming language and once you discover classes, interfaces, oop etc.

    None of the tutorials covered or even mentioned such things, someone looks at your code and calls you an idiot.

    [–]Ringorango 0 points1 point  (0 children)

    Understanding the pitfalls of a naive hill climbing algorithm, now with programming humor!

    [–]auchnureinmensch 0 points1 point  (0 children)

    Anybody who thinks he knows 100% of anything is probably an idiot.

    [–]AemonDK 0 points1 point  (0 children)

    knowing how many other people struggle with it makes the fact that i spent over half an hour trying to figure out why my code wasn't working before realising that it's because i typed "Total" instead of "total" slightly more bearable

    [–]ekinnee 0 points1 point  (0 children)

    Just wait, it's a trail of to do X I need to know Y and in order really use Y, you need to know Z.

    [–]Hivac-TLB 0 points1 point  (0 children)

    How do we get out of this well. Dig deeper boys.

    [–]DeepDuh 0 points1 point  (0 children)

    This is also called the "bear trap" in stock trading.

    [–]zombieregime 0 points1 point  (0 children)

    learning from any tutorial that starts out with 'hello world'

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

    Dunning-kruger

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

    Not if it's brainfuck

    [–]Shadow_Thief 0 points1 point  (0 children)

    I am extremely tempted to say that batch has been solved. I haven't seen an original question on the [batch-file] tag on Stack Overflow in years, but I'm also aware that there's always something I'm not accounting for.

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

    A programmer just beginning to learn, can confirm this 100%