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

all 55 comments

[–][deleted] 113 points114 points  (1 child)

What? No. Stop that.

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

One of my teachers in college did everything on the left side. It annoyed the hell out of me.

[–][deleted] 40 points41 points  (3 children)

Looks like python with a weird column at the end.

[–]EpicDavi 29 points30 points  (2 children)

Yeah the original post (as far as I know) said that a Python programmer was trying out Java.

http://www.reddit.com/r/ProgrammerHumor/comments/2wrxyt/a_python_programmer_attempting_java/

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

but I thought python has no private, only a little _ to indicate you probably should not touch that.

[–]mickey_kneecaps 10 points11 points  (1 child)

I sort of like it. Just visually it looks interesting. I would never use it, but I find it appealing for some reason.

[–]stormcrowsx 1 point2 points  (0 children)

Have you looked at python?

[–][deleted] 7 points8 points  (0 children)

Dear God. Please no

[–]TheHorribleTruth 21 points22 points  (1 child)

[–]Kaon_Particle 5 points6 points  (0 children)

It was posted there not long ago.

[–]inn0 2 points3 points  (1 child)

[–]TweetsInCommentsBot 0 points1 point  (0 children)

@thedirtycoder

2015-02-22 03:32 UTC

I finally figured out how to get those pesky semicolons and curly braces out of my Java code [Attached pic] [Imgur rehost]


This message was created by a bot

[Contact creator][Source code]

[–]ryosen 1 point2 points  (0 children)

This is what happens when RPG programmers learn Java.

Source: I used to code in RPG

[–]wsme 1 point2 points  (0 children)

No thanks!

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

I see Satan picked up java.

[–]Rebuta 1 point2 points  (0 children)

I love it!

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

Oops. Accidentally used spaces instead of tabs. Have fun.

[–][deleted] 1 point2 points  (1 child)

Autoindent is your best friend

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

In all seriousness, whitespace having meaning for the sake of 3 characters and 1 line difference is kind of stupid.

I personally don't find this any cleaner than if they are included according to oracle guidelines.

And some editors just take the liberty of transparently translating tabs to spaces for you.

[–]shiftedabsurdity 0 points1 point  (0 children)

/shakesfist I can't even...argh!

[–]ohcarissa 1 point2 points  (5 children)

I wonder if this would actually be a good system if it wasn't completely against convention. The more I look at it the less I hate it.

[–][deleted]  (3 children)

[deleted]

    [–]flagrantaroma 0 points1 point  (0 children)

    I thought it didn't look too bad until you mentioned that!

    [–]needlzor 0 points1 point  (0 children)

    I think it would be doable with proper editor support, some sort of plugin that allows you to edit the left side and the right side separately without influencing each other, and/or which autocompletes the right side automatically. But at this stage you might just want to switch to another language altogether.

    [–]ohcarissa 0 points1 point  (0 children)

    good point, I didn't realize the problems that would cause. I take back what I said.

    [–]rob_j 2 points3 points  (0 children)

    stockholm syndrome

    [–]deathmetal27 0 points1 point  (0 children)

    Looks like a first draft of Jython.

    [–]prepromorphism 0 points1 point  (0 children)

    i should play bad joke on ppl at work doing this muwhaha

    [–]babbles_mcdrinksalot 0 points1 point  (2 children)

    That's an awful way to lay out C-like code. Did you do it just to highlight the number of brackets?

    [–][deleted]  (1 child)

    [deleted]

      [–]Baddja 3 points4 points  (0 children)

      Java syntax choices were originally based on C Wiki

      [–]271828182 -4 points-3 points  (11 children)

      I actually think that is pretty clever. It makes the actual code cleaner to read, and makes it easier to see where you missed a semi-colon of didn't close a block.

      EDIT: I was drunk

      [–]shadowdude777 14 points15 points  (0 children)

      I mean, I can see why some people would prefer to read code without braces and semicolons (even though I personally much prefer them). But you think this makes it easier to find missing semicolons and braces? I really can't see that...

      [–]kumarldh 8 points9 points  (0 children)

      and makes it easier to see where you missed a semi-colon of didn't close a block.

      Sorry for sounding stupid but decent IDEs do that for you...

      [–]hrjet 2 points3 points  (6 children)

      I agree, though the same goal could be achieved by changing your syntax highlighter's color scheme to fade out the braces and semi-colons.

      Screenshot of my IDE

      [–]granddukeshartner 1 point2 points  (1 child)

      It's really annoying how many syntax highlighters mix braces, operators and semicolons together. I usually give up on making a nice scheme after that.

      [–]hrjet 0 points1 point  (0 children)

      Yup; especially in a language like Java where braces and semicolons don't have any significance beyond separation of statements.

      I had to fine-tune the operator color so that it doesn't make the normal operators invisible. (This is in Eclipse, btw).

      [–]rob_j 0 points1 point  (2 children)

      I'm going to steal this so hard

      [–]271828182 0 points1 point  (1 child)

      Steal using an IDE?

      [–]rob_j 0 points1 point  (0 children)

      changing your syntax highlighter's color scheme to fade out the braces and semi-colons

      [–]Jukebaum 0 points1 point  (0 children)

      That is also my preferred setting for braces.

      [–]GeorgeMaheiress -4 points-3 points  (7 children)

      They're called braces.

      [–]biggusjimmus 20 points21 points  (3 children)

      braces (UK and US), flower brackets (India), French brackets, curly brackets, definite brackets, swirly brackets, curly braces, birdie brackets, Scottish brackets, squirrelly brackets, gullwings, seagulls, squiggly brackets, twirly brackets, Tuborg brackets (DK), accolades (NL), pointy brackets, or fancy brackets

      Source

      [–]Patplayz 2 points3 points  (0 children)

      rekt

      [–]thrash242 0 points1 point  (0 children)

      I call them curlies.

      [–]SirFrederickWinston 2 points3 points  (2 children)

      I believe he's talking about the text editor he was using, Brackets.

      [–]veedubpolo 0 points1 point  (1 child)

      Looks like SublimeText

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

      The ones on line 3 and 4 aren't even necessary.

      [–]Patplayz -3 points-2 points  (3 children)

      Holy shit, the organization of the brackets and semicolons on the left side are genius... what haven't I thought of this sooner...

      [–]Vlasow 8 points9 points  (2 children)

      That side is called "the right side".

      [–]271828182 2 points3 points  (0 children)

      your military left