258
turbohz
8y

Hate braces?

Comments
  • 5
    Beautiful.
  • 52
    aaargh! my eyes!
  • 20
    Is it Jpython? :3
  • 13
    Abomination-mutant-heresy code
  • 35
    You sir are cruel. I nearly jumped out of the window when I saw that monstrosity
  • 2
    That is just.. yuk!
  • 5
    Holy! I'm feeling dizzy looking at them
  • 7
    Have fun changing that code, adding more ifs etc. . And keeping the right alignment. You'll hate yourself more than the braces.
  • 1
    Hahaha funny :-)
  • 3
    Could also encapsulate into single line and use the no bracket "feature" of single line statements haha.
  • 6
    I had this dream, when a Python developper was rebelling against Java...
  • 1
    Cool programmer
  • 2
    Now I do.
  • 2
    It huuuuurts
  • 0
    who does that?
  • 2
    Too bad this is the first post I see as I wake up.. Now I'm morning sick.
  • 18
    This here is why our transportation to Mars has been delayed
  • 2
    @tahnik made my day! Thnx
  • 0
    What a maze!!! I get lost just by looking it! 😵
  • 3
    Wrong and beautiful At the same time... Great!
  • 0
    Jebus save me!
  • 1
    @thmnmlst sublime text with monokai , or intelijidea with darkula

    Maybe?
  • 3
    Great Scott, that's awful! It's great to be in a brace-less language (Haskell, F# etc), but when you're not you gotta deal with it and follow the conventions.

    That code is an uneditable mess.
  • 0
    @Grumpy I personally like braces
  • 2
    It looks like a Saw movie for programmers. Cruel and unusual games :(
  • 0
  • 0
    code creativity
  • 1
    @marcantvez I knew a lot of former Java (or .NET) developer who started develop in Python/Ruby/NodeJs and started "ranting" about Java (or .NET)...
  • 0
    PythonScript!
  • 1
    Check out NASA lisp codes, then ull appreciate how nice ur codes are
  • 0
    @Grumpy
    Hum ctrl alt l
    Or ctrl maj f

    Or what ever shortcut for reformat code?
  • 0
    This hurt my eyes
  • 1
    Absolute cancer....
  • 5
    After that post I will be advocate for +18 tag for devrant. Children should not see this kind of content, it's too scary
  • 0
    @Linusero ...and semicolons too?
  • 3
    That's horrible, yet strangely satisfying to look at.
  • 0
    @Grumpy Yes, I started with C so I am used to it
  • 2
    Why people are so scared with semicolon and braces... I like braces to show where any block start and end........ Oh, and I don't care about semicolons...
  • 0
    I feel gross now.
  • 3
    @Eldius I used C back in the 80's and later C++, Java, C# etc, so I'm definitely not afraid of brackets or semicolons. Newer languages just have less ceremonial elements, that's it.

    So did C when it was the new, hot kid on the block. Compare C's "}" to Ada's "end if;", "end case;" etc.

    I quite like the concise, low redundancy style of newer languages, like F#.

    It's "not being afraid of", it's just a matter of preference. Some prefer C++'s "counter++;", others like COBOL's "add 1 to counter giving counter".
  • 1
    @Grumpy finally I have a good answer...
    I always listened to devs complaining about that but without an argument...
  • 1
    @Eldius I should add that it was easier to define and implement a syntax requiring semicolons back in the day, when you had Lex and YACC and nothing else. The same was true for braces, because nobody had yet thought about offside rules (indents), so there was no support for it in YACC and Lex.

    Also, compiler tools of yesteryear might explain why you couldn't have a variable with the same name as a user defined type. Not 100% sure about this though, but I think this was because context sensitive grammars were hard or impossible to implement.
  • 0
    I'm so confused... 😮
  • 2
    You should be stoned to death
  • 2
    @khan I think the coder in question was pretty stoned already when he wrote that code.
  • 0
    They way its supposed to be.
  • 0
  • 0
  • 2
    This is so evil. I like it.
    For extra evilness you should totally indent'em out of screen. Bwahaha!!
  • 2
    Thug life
    @ishankothari
  • 1
    Code mutilated
  • 0
    My mother was right. Hell IS real.
  • 0
    Why not use Visual Basic? No Brad braces at all!
  • 0
    @Raamakrishnan I don't get it.... Are you implying VB doesn't use braces?
  • 0
    @nicnaknic Ya that's what I meant. Sorry for the typo
  • 0
    @Raamakrishnan Visual basic uses basically the same amount of braces as Java does though...
  • 0
    @nicnaknic braces are used in VB for to declare an array and for everything else, a "end something" statement is used
  • 1
    @Raamakrishnan also for object initialization with the With clause, and string formatting and interpolation.

    I prefer those End Something, although more verbose, are simplier to understand when there are many together, not that it matters when the code is well written, but well... that's not always the case.
  • 0
    Ahhh I see. I was thinking of Visual Basic 2015. that version uses braces for opening and closing statements @Raamakrishnan
  • 0
    @nicnaknic this has been the same way from the days of VB6 till now (VB.Net). Not sure what you mean by VB 2015...
  • 0
    my bad, seems it was released 2002. I'm not hugely familiar with VB other than VB.net the version released 2015. Did some looking and I'm more confused. Seems some version of VB uses braces apposed to "end sub" (or what not), while others do not.
    The version of VB I know uses braces apposed to words to end statements.
  • 0
    @nicnaknic I think you may be refering to C# on Visual Studio, not Visual Basic.
  • 0
    @Shago possibly. How ever the project files were marked as .vb not .cs
    I don't even know, I'll have to check through some of my old VS projects to see what the hell was really going on cause now I'm all confused. Haven't touched VB in over a year so I need to look into this more
Add Comment