282

Ohhh helll nooooo

Comments
  • 45
    Looks like someone tried to transform Java into Python
  • 19
    I've seen a classmate doing

    if ( blaaah ) { doSomething();

    }

    This is worse
  • 7
    Using this construct is actually a super dangerous programming practice because of how brittle it is. Google "goto fail".
  • 1
  • 4
    @lolnick @lolnick oh jeez. I didn't even realize how terrible this is. I just assumed it was a regular "I'm using single line conditionals" kind of terrible code.
  • 2
    Who have this much time to do this 😂
  • 15
    When you want to share code with someone you hate 😁😁😁
  • 7
    This causes me pain. Why is this a thing?

    Most of my problems are semicolon and/or bracket related. I'd still be stuck somewhere near "hello world" if i did this.
  • 4
    @lolnick
    https://xkcd.com/292/
    Raptors will eat you if you use a goto.
  • 2
    WTF?!? This is nice. 👍
  • 2
    You could just make a script that adds braces (and semicolons) based on the indentation.
  • 1
    Or you could write a script that transforms your source code into this :-D
  • 0
    @cosme so kotlin 😂😂
  • 0
    @RAZERZ Not at all. Kotlin has (still sadly) mustache braces.
  • 0
    @LinusCDE yeah but you choose if you want to use them or not
  • 2
    Why braces are so bad? I've seen more troubles with python indentation than you can imagine.
    Not to mention ability to autoformat the source code or formatting it by hand to something different if there is a special need.
  • 1
    @RAZERZ Really? I thought only semicolons are optional. I'll try it out when I'm back home.
  • 0
    @mt3o So you write more simple and modularised code to prevent trouble.
  • 1
    @LinusCDE now that I think about it, it might have been only semicolons. It'd make more sense that way
  • 1
    @RAZERZ Yeah, I'm also 99.9% sure that its neccessary.
  • 0
    @LinusCDE yeah imagine a loop that doesn't close
  • 1
    @LinusCDE overall, true. You can keep this as a rule of thumb. But on some occasions that's not true. Not always you can further 'modularize' the code.
  • 0
    @andros705 Opposite with me. I did it because I wanted something new instead of Java all these years. But hated it for years before.
  • 0
    @andros705 the brackets in LUA are "then"/"do" and "end"

    If I remember correctly it is. Technically there are still braces but just a different character (when I do lua I have those words as macro)
  • 0
    This must be insanely hard to create and modify but first nice to read java code ever...

    The braces in all the languages are so useless and make the code painful to read, I've been using Python for 3 years now and never had a problem with indentation.

    I don't know why al the language can't do the same
  • 0
    I can foresee an escalabillity issue here. XD
  • 1
    @Nastrand got a question, how does indenting work if you have a function which expects a few long arguments and you want to multi-line it so its more readable?
  • 0
    @Codex404 you can check PEP 8 to see style guidelines in Python, but let me try to write it here

    def function(firstReallyLongArg,
    secondReallyLongArg,
    thirdReallyLongArg)

    I hope the format doesn't get fucked up
  • 0
    Looks to me like soneone has hard time giving up python
  • 0
    @Nastrand but why wont this bee seen as indentation?
  • 0
    It took me a minute to actually spot where the fuck the braces were even.
  • 0
    @Codex404 because the parenthesis, the indentation system in Python is really good k never had troubles using it
  • 4
    I don't like languages that dictate what whitespace I can use, or treat whitespace as having semantic meaning. To me, whitespace is my domain. You get to decide what the symbols mean, but the moment you assign meaning to a tab I'm out.

    Don't get me wrong I think Python is a decent language, but I just cannot agree with semantic whitespace.
  • 0
    @devios1 I think the stuff in comments are my domain, and everything else is to be code. But I was started in Pascal with a teacher who cared about indentation, and everything else.
  • 1
    I think i've lost a few billion brain cells 😵
  • 0
    @Silvus Don't use XML then. 😂

    Worst implementation of comments EVER.
  • 0
    oh god, what the fuck?!
  • 0
    It took me a second and then my eyes bled
  • 0
    @devios1 90% of my day job is xml :(
Add Comment