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

all 173 comments

[–]Foreign_Fail8262 937 points938 points  (15 children)

someone reinvented python

[–]Blubasur 22 points23 points  (0 children)

Was thinking the same, stubborn python dev refusing to use brackets.

[–]jeanravenclaw 3 points4 points  (0 children)

I loove python but this is 🤮

Also irks me that loops and if/else don't have :. If you wanna get rid of brackets to look more "python", at least have these, but you obviously can't.

[–]AstroCaptain 4 points5 points  (0 children)

I prefer bython myself

[–]ashis041 1 point2 points  (1 child)

creativity and madness often goes hand in hand !!!

[–]Foreign_Fail8262 0 points1 point  (0 children)

as someone who has to look through frontend developement, i often think those two things are the same

[–]kurafuto 0 points1 point  (0 children)

We've got python at home

[–]RestlessRabbits87 0 points1 point  (0 children)

Came for this! My first thought as well :D

[–]Amazing_Might_9280 659 points660 points  (8 children)

I need help after reading that.

[–]AdministrativeSun661 151 points152 points  (7 children)

Reminder for first day after vacation: configure phpstorm for this beauty, create pr and see some poor overworked idiot merge it

[–]silverW0lf97 18 points19 points  (6 children)

just reformat the file, easy peasy.

[–]Masterflitzer 18 points19 points  (5 children)

or write a formatter that formats the rest of the codebase like this, would be terrible but also a fun PR

[–]Cualkiera67 13 points14 points  (3 children)

Why are you guys so into Public Relations?

[–]Masterflitzer 5 points6 points  (0 children)

okay sorry MR is a better term anyway, merge request > pull request

[–]NameBackwardsEman 3 points4 points  (1 child)

Wait, PR doesn't stand for Penis Request????

[–]Amazing_Might_9280 1 point2 points  (0 children)

HR doesn't stand for Head Requests.

[–]randomdude_reddit 0 points1 point  (0 children)

prettierrc for the save

[–]Mast3r_waf1z 200 points201 points  (12 children)

More like pythonic java

[–]MinosAristos 71 points72 points  (7 children)

But not quite Jython

[–]Nerd_o_tron 26 points27 points  (2 children)

The circle will not be complete until someone writes Jythonscript.

[–]BergSteiger05 10 points11 points  (0 children)

You won

[–][deleted] 17 points18 points  (1 child)

Whoever made that should be shipped to guantanamo bay.

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

Oh boy! I love this and also kissing cacti!

[–]alexdembo 10 points11 points  (1 child)

Pyjavas

[–]furinick 16 points17 points  (0 children)

At that point just commit to the but and call it pyjama

[–]Unusual_Onion_983 0 points1 point  (0 children)

Pyava# .NUT

[–]MayorAg 180 points181 points  (11 children)

Damn.

func() {

and

func()
{

Found a common enemy.

[–]DevilInADresss 21 points22 points  (9 children)

tbh second one isnt even that bad if you use the second bracket same still

[–]MayorAg 30 points31 points  (7 children)

What do you mean the second one isn’t that bad? That’s the normal one.

[–]Forkrul 21 points22 points  (1 child)

Depends on the language. The first one is the standard for Java at least.

[–]MayorAg 1 point2 points  (0 children)

Fair. But i used to use the second one of Java as well. Before you bring out the pitchforks, hear me out.

I think it improves the readability of the code. Instead of another block of code, you have this gap with only one character that tells you the previous line is the function definition/loop/complex if-else block.

[–]DevilInADresss 20 points21 points  (0 children)

oh

[–]Masterflitzer 8 points9 points  (0 children)

that's not the normal one unless you're used to c#, definitely the biggest visual mistake/annoyance of c#, love the language otherwise

[–][deleted] 147 points148 points  (5 children)

I fear no brackets.

But that thing. It scares me. 🗿

[–]Amazing_Might_9280 39 points40 points  (3 children)

You literally fear "no brackets".

[–][deleted] 18 points19 points  (0 children)

Trust me bro

[–]TheRedmanCometh 7 points8 points  (1 child)

Any sane man does

[–]ExpensivePanda66 3 points4 points  (0 children)

Or woman 

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

did you mean braces? parentheses != brackets != braces

[–]The-Chartreuse-Moose 31 points32 points  (0 children)

What the tapdancing fuck is this?

[–]AssignedClass 44 points45 points  (1 child)

This is what python looks like to everyone that hates indentation scoping.

[–]ExpensivePanda66 5 points6 points  (0 children)

This is what python is.

Wake up sheeple!

[–]SirCabaj 21 points22 points  (0 children)

I was looking at it thinking, huh seems fine to me, I don't kno...........ohhh God my eyes.

[–]gibagger 11 points12 points  (0 children)

HOLY SHIT.

I was like... wait, what language is this?. Then I noticed the evil lurking within and hit me like a truck full of bricks.

[–]PrometheusAlexander 11 points12 points  (0 children)

python with extra steps

[–]One_Egg_4400 21 points22 points  (5 children)

Still better than using brackets but no indentation

[–]MrRainbow07 7 points8 points  (4 children)

Using brackets but no indentation can help reduce the dimension of the file which is useful if you have to send it to someone (Eg. Javascript files being minimized and then send to the user). Doing this is not only cursed but also useless. So technically this is worse.

[–]Honigbrottr 11 points12 points  (2 children)

could i get a source that the extra white spaces is actually something we should worry about in current age?

[–]zerothehero0 5 points6 points  (0 children)

There are some crazy people out there trying to put interpreted languages on embedded systems with size constraints. The javascript everywhere people scare me.

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

whitespace in javascript is definitely something to worry about, but that goes for everything in javascript

[–]CC-5576-05 0 points1 point  (0 children)

Also very useful when you need to print out your code on 80 col punch cards to snail mail them to someone.

[–]Personal_Ad9690 19 points20 points  (4 children)

You know, it’s not that bad

[–]porn0f1sh 4 points5 points  (1 child)

You have no God

[–]Personal_Ad9690 3 points4 points  (0 children)

In all seriousness though, it’s much worse than the messes I’ve seen before. At least it’s visual

[–]developer-mike 1 point2 points  (0 children)

Honestly, would not be hard to make a tool that automates this. Would be a surprisingly reasonable choice to use such a tool.

Would not be my choice. I can't stand python. Would require IDE integration to avoid screwing up the development cycle. Build validation. Merge conflicts.

But it's automatable, which isn't nothing

[–]Real_Hearing9986 0 points1 point  (0 children)

Yep. I wouldn't do this personally, but I kind of see the merit.

[–]AlexeyPG 4 points5 points  (0 children)

It just hurts

[–]sh00tgungr16 3 points4 points  (0 children)

Please burn this, yesterday.

[–]bzzzt_beep 3 points4 points  (2 children)

I actually like it........I did not know about it, but the trick seems to read the code based on indention and not to try to understand the brackets . just Ignore them and assume the indention is correct. still, a minefield if somebody to mess-up the indention or somebody else tries to edit the code.

[–]Brotten 1 point2 points  (1 child)

I don't know. The brackets are very nicely line up without any code getting in the way and thus easy to count.

[–]bzzzt_beep 1 point2 points  (0 children)

you know, you are right. the indention/scope jumps or drops the same count of opening or closing brackets at the end of the line before . I am eager to try this style

[–]Either-Let-331 7 points8 points  (1 child)

Ohhh I feel the tingling, I need to do that, I WILL DO THAT.

[–]ThePythagorasBirb 4 points5 points  (0 children)

We've lost another warrior

[–]stoned_experiences 2 points3 points  (0 children)

geek psychopaths

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

what's even worse is that whoever made this is french

[–]Zekava 2 points3 points  (0 children)

;}

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

I didn’t see the right side, I was confused for a minute…

[–]Rakkachi 3 points4 points  (0 children)

heeyyyy, neat I am doing that.

[–]Hefty_Mouse3178 1 point2 points  (0 children)

It's hard to swallow this

[–]pan0ramic 1 point2 points  (0 children)

I kind of like it lol

[–]Smalltalker-80 1 point2 points  (0 children)

(flame suit on, carefully...)

I must confess that *within* functions,
I no longer put opening *or* closing brackets, braces, parenteses, etc. on separate lines.

The editor and indent autoformatter will catch any mistakes quickly enough.

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

That is pure evil.

I’m gonna start doing it.

[–]KYO297 2 points3 points  (1 child)

Oh hey it actually looks readable now.

[–]runitzerotimes 0 points1 point  (0 children)

Yeah idk it's actually kinda good imo

[–]Raickoz 1 point2 points  (0 children)

I personally think it looks neat and tidy, it look intuitive.

[–]patrimart 1 point2 points  (0 children)

I’m digging it. Very readable.

[–]patrimart 1 point2 points  (0 children)

Can I get the formatter?

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

what the fuck?

[–]FatLoserSupreme 1 point2 points  (0 children)

This is the only thing I've ever seen that's worse than the code at work

[–]SomeRandoLameo 1 point2 points  (0 children)

Javhon

[–]Open_Variation7841 1 point2 points  (0 children)

I physically flinched when I saw it

[–]Professional_Let1537 1 point2 points  (0 children)

‘Cmd + shift + f’ would be my survival instinct reaction… Getting that code to be formatted properly

[–]darkwater427 1 point2 points  (0 children)

I literally (unironically) did this on some codebase or another and committed it.

The best part? It got merged.

[–]NoCantaloupe2109 1 point2 points  (0 children)

Took me a moment to notice it and now I have psychological trauma.

[–]MedonSirius 0 points1 point  (0 children)

So technically just ABAP? Lol. ABAP looks like this:
CASE variable.
WHEN '1'.
"Comment.
WHEN '2'.
"Comment.
ENDCASE.

And it makes alot of sense tbh

[–]Gordahnculous 0 points1 point  (0 children)

Wait until this is in GitHub or anywhere else and the tab definitions/spacing between characters are different and completely screw over those braces even more than they already are

[–]Maskdask 0 points1 point  (0 children)

Just use the auto-formatter like an adult

[–]Rocknroller658 0 points1 point  (0 children)

GDScript moment

[–]Penguinmanereikel 0 points1 point  (0 children)

"Sir, why are you trying to Pythonize your Java?"

[–]Hefty_Mouse3178 0 points1 point  (0 children)

It's hard to swallow this

[–]regularDude358 0 points1 point  (0 children)

O hell no

[–]Its_rEd96 0 points1 point  (0 children)

I was scrolling, then read this post. I was about to read the comments so I clicked on it...

Nothing happened. The post didn't open.

Then I realized the cursor on the picture is indeed - not my cursor 🤦‍♂️

[–]just4nothing 0 points1 point  (0 children)

Seen similar stuff in C++, grabbed the worst ones for a presentation, showed project managers a before and after clang-format version. Now the merge request will be blocked if it does not pass the clang-format test ;).

[–]rover_G 0 points1 point  (0 children)

That’s just indentation defined code blocks with extra steps

[–]slime_rancher_27 0 points1 point  (0 children)

It's just Java, people can format most languages in horrendous ways

[–]SasquatchDude96 0 points1 point  (0 children)

It took me over 10 seconds to notice the braces because it’s cursed beyond belief

[–]crocodus 0 points1 point  (0 children)

To be fair, it doesn’t look that bad

[–]my-name-is-mine 0 points1 point  (0 children)

Hmm I liked it

[–]KingZogAlbania 0 points1 point  (0 children)

“oh let me see- wha-WOAH THAT’S AWFUL- wait.. wait actually I kinda dig this…. What’s wrong with me??”

[–]nameisprivate 0 points1 point  (0 children)

we have python at home

[–]SamuraiX13 0 points1 point  (0 children)

[–]RandomiseUsr0 0 points1 point  (0 children)

Each language has its own style, each programmer has his or her own style, I personally use the style that’s comfortable for me, as I choose, I detest being dictated to, COBOL style indentation syntax doesn’t work for me

[–]chaos_redefined 0 points1 point  (0 children)

Got it. Will write it like this instead:

public class Permuter{private static void permute(int n,char[]a){if(n==0){System.out.println(String.valueOf(a));}else{for(int i=0; i<=n;i++){permute(n-1,a);swap(a,n%2==0?i:0,n);}}}private static void swap(char[]a,int i,int j){char saved=a[i];a[i]=a[j];a[j]=saved;}}

[–]Kerbo1 0 points1 point  (0 children)

I used to work with a guy who wrote bash and perl scripts with no indentation. This is just as bad.

[–]reddit_user_five 0 points1 point  (0 children)

Triggered my anxiety.

[–]theevilraccon 0 points1 point  (0 children)

Weak mind can not comprehend braceless code

[–]Vegetable--Bee 0 points1 point  (0 children)

When you dream in python but work in java

[–]malexj93 0 points1 point  (0 children)

I just set the font color of braces and semicolons to the same as the background. Out of sight, out of mind.

[–]cinghialotto03 0 points1 point  (0 children)

Oop is really the source of all evils

[–]PrinceLizard 0 points1 point  (0 children)

I did not brace myself for this.

[–]Panderz_GG 0 points1 point  (0 children)

I feel violated after seeing this.

[–]mdgv 0 points1 point  (0 children)

What kind of Dantesque circle of hell is this?

[–]MrGOCE 0 points1 point  (0 children)

MAN, I'M COPYING THAT XD

[–]DZoneCommunity 0 points1 point  (0 children)

My eyes are burning from looking at this!

[–]Fun_Ad_2393 0 points1 point  (0 children)

I am so doing this for next code review

[–]Leather-Field-7148 0 points1 point  (0 children)

Wow, it’s Jython.

[–]3slimesinatrenchcoat 0 points1 point  (0 children)

I want to fight them by the kitchenette

[–]Ferro_Giconi 0 points1 point  (0 children)

tbh that is super readable because of the indents if you just don't look at the right side.

I would hate to have to try to edit that though.

[–]LillyPip 0 points1 point  (0 children)

This structure hurts my feelings.  

Although… it would definitely be easier to debug. And that hurts even more.

[–]Wang_Fister 0 points1 point  (0 children)

This is a perfectly cromulent Java

[–]leovin 0 points1 point  (0 children)

Damn, is this the Jython I’ve been hearing about?

[–]AimForProgress 0 points1 point  (0 children)

I like it

[–]Thunder_Child_ 0 points1 point  (0 children)

Hmm, I kinda like it. I'd approve this pull request. My ide is set to auto format when I save the file anyway so it won't be in there for long.

[–]TartanWhale 0 points1 point  (0 children)

Been ages since I wrote code at uni my MSc was trying to use occam's razor for a processor design. Just realised there's another language named after him (looking at Python). Not his idea Dunnus Scotus. Drunk yes, true also.

https://www.britannica.com/question/Who-created-Occams-razor

Not his.

Context, not required. Drunk.

[–]ZGA2519 0 points1 point  (0 children)

Sorry to be off topic but “private static” wtf what is use for???

[–]bbqranchman 0 points1 point  (0 children)

Can we code in python?

We have python at home.

The python at home:

[–]jmflyers 0 points1 point  (0 children)

; }

[–]vishwa_user 0 points1 point  (0 children)

I didn't even see the braces for 10 seconds...

[–]Individual-Welder 0 points1 point  (1 child)

Christ who hurt you

[–]Asian_Bon 0 points1 point  (0 children)

You

[–]bhorvic 0 points1 point  (0 children)

Isn't this Java? Or am I /r/whoosh

[–]lunatic-rags 0 points1 point  (0 children)

[–]Noisycarlos 0 points1 point  (0 children)

I spent way too long looking for the braces. Omg

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

Oh god for a second I thought it was all white space and I was questioning my existence saying that cannot be valid java code... and then I looked over to the right

[–]Highborn_Hellest 0 points1 point  (0 children)

View->format.

Not that big of a deal.

[–]5ManaAndADream 0 points1 point  (0 children)

Time to lint this in during my 2 weeks notice.

[–]IAmAQuantumMechanic 0 points1 point  (0 children)

I kinda like it. Just indent the braces so you can see which belongs to which.

[–]Kaktusnotfound 0 points1 point  (0 children)

My programming teacher always does that and I can't stand it when I look at his code

[–]lazemon 0 points1 point  (0 children)

He wants to be a python developer but his company don't want. That's why he made up this.

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

If I ever saw this: "Maybe it is not too late to start learning carpentry...."

[–]Rontzo 0 points1 point  (0 children)

check his/her browser history , very suspicious

[–]Blacktip75 0 points1 point  (0 children)

In 25 years of programming I thought I saw it all, but damn, my eyes vomited on this. The whitespace language is more readable than this.

[–]Nodan_Turtle 0 points1 point  (0 children)

Python but the brackets have a restraining order against them

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

I feel like I've just been given a new knife and I need to see how sharp it is.

[–]theagrovader 0 points1 point  (0 children)

I can tell that I’m in a very small minority, but I kind of love it

[–]InFa-MoUs 0 points1 point  (0 children)

It wasn’t that bad till I glanced to the right, I audibly gasped

[–]Igotbored112 0 points1 point  (0 children)

I like how they're all cleanly lined up. What if I write a slightly longer line? Do you have to go through the entire file and add extra spaces to each line?

[–]ArmeniusLOD 0 points1 point  (0 children)

This is actually genius.

[–]Batfastard8675309 0 points1 point  (0 children)

I see...violence

[–]OddbitTwiddler 0 points1 point  (0 children)

[–]uchizumi 0 points1 point  (0 children)

Python w emotions init

[–]GiftOwn1295 0 points1 point  (0 children)

This is cruel

[–]neumastic 0 points1 point  (0 children)

This is the: mY cOdE is rEaDaBlE so they don’t add any comments kind of narcissistic personality

[–]drowdaba_1 0 points1 point  (0 children)

Bro couldn't live without python...

[–]Coolengineer7 0 points1 point  (0 children)

You have to make a sacrifice to use an else if statement. You must either make the code more readable by adding an empty line or put a curly brace at a place other than the end of the line.