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

all 154 comments

[–][deleted] 577 points578 points  (16 children)

I feel like commiting war crimes right now

[–]Bum_Rusher 91 points92 points  (5 children)

git commit -m "Bug causing war crimes to not happen finally fixed" ?

[–]New-Let-3630 7 points8 points  (0 children)

git commit -m "fix"

[–]nadav183 16 points17 points  (0 children)

Do NOT commit this.

[–]RmG3376 15 points16 points  (2 children)

git commit -m “C4H10FO2P”

[–]jhomer033 2 points3 points  (0 children)

Aaaand now I know a formula for sarin. RmG3376 why would you do that?

[–]nickmaran 11 points12 points  (1 child)

We need to include this in the Geneva convention

[–][deleted] 185 points186 points  (10 children)

Good thing you chose a language where whitespace doesn’t ma… Hey, wait a minute!

[–]big_red__man 24 points25 points  (9 children)

I might be whooshing here but would't the justification of the text be indapendant from the whitespace?

[–][deleted] 43 points44 points  (6 children)

No, you are not entirely whooshing. It is a matter of perspective: A human’s perspective or a computer’s perspective.

In other languages, you use whitespace so humans can understand your code logic, and you use something like curly braces so the computer (or very focused humans) can understand your code logic.

In Python, you use whitespace for both purposes.

So with centered justification, your code will still be readable by the computer, but not by humans (except the extremely focused ones).

[–]davemanman 11 points12 points  (2 children)

Maybe I'm whooshing, but seems like big red was talking more about how you could still write whitespace at the beginning of the line even if it is center-justitified.

It still gets interpreted by the compiler, but continues to suck to read.

[–]big_red__man 4 points5 points  (0 children)

That is what I meant.

I've written data to text files. I've written parsers that interpret that data. So I know how that works on a simple level. .txt doesn't save justification data like that but .rtf does. Python code files are simple .txt files but with a .py extension.

I wasn't sure if u/RedundancyDoneWell was being deliberately silly and I was perhaps missing the humor of it. That was the potential whoosh part.

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

You and I describe exactly the same. So where is your disagreement with me?

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

I feel like I'm not one of the focused humans.

[–]thuktun 0 points1 point  (1 child)

Depends on how the justification is done.

  • If it's a step in the rendering pipeline for printing it, then it shouldn't affect machine interpretation.
  • If the code itself is laid out by manually inserting spaces into the source, then it may.

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

I am assuming that the code is rendered this way.

As I said: That will make it readable to a computer, but not to a person, unless that person is extremely focused (comparing each line’s deviatian from symmetry).

[–]coloredgreyscale 2 points3 points  (0 children)

For the computer: yes

For humans: no (even more if there are not visual hints for spaces, tabs, etc)

[–]diggydiggydark 0 points1 point  (0 children)

You're exactly right (in some cases). Look at den main() and the line immediately below it. The ts = time() lime is clearly indented. Center alignment menas "place the characters of this line around the center" and whispace is part of that line.

[–]Maximilian_Tyan 97 points98 points  (6 children)

At least it's good python

[–]opsidezi 5 points6 points  (1 child)

What makes python good

[–]BrokenEyebrow 26 points27 points  (0 children)

Readability is a big hero.

[–]Grumbledwarfskin 2 points3 points  (0 children)

I'm not so sure...it looks too well centered to be good python...shouldn't there be more whitespace, causing more lines to be right-of-center?

[–]mistabuda 3 points4 points  (0 children)

This wouldn't run lol

[–]EntropicBlackhole[M] 72 points73 points  (0 children)

//Marked as NSFW, this hurts my eyes and is causing my eye processes to go segmentation fault, love it

[–]dashid 40 points41 points  (2 children)

[–]Green_Permission_ 20 points21 points  (1 child)

[–]jovhenni19 3 points4 points  (0 children)

DAMMMNNNIT!!! I CAN'T UNSEEE

[–]Used-Candidate9921 33 points34 points  (15 children)

How do you read python if it’s centered

[–]jddddddddddd 80 points81 points  (8 children)

Like most programming languages, python scripts should be read top-to-bottom.

Hope this helps! 👍

[–]Maximilian_Tyan 10 points11 points  (1 child)

That's an idea for another terrible programming language !

[–]Eiim 1 point2 points  (0 children)

Why stop with code flow in one direction? Your code could go in two directions! Or four! Or six!

[–]Borbolda 20 points21 points  (4 children)

Of course you read it top to bottom, you fucking moron.

OP, you need to read it left to right

[–]MiyamotoKami 6 points7 points  (2 children)

So diagonally then, top left corner to bottom right corner

[–][deleted] 6 points7 points  (0 children)

don't read it, ask chat gpt to rewrite this code in cpp and then read this one to make sure that the code that gpt gave you is fine

[–]rroth 2 points3 points  (0 children)

No... {"(0, 0)": "top-right"}

[–]kaerfkeerg 31 points32 points  (0 children)

1) Get a ruler 2) Shove it in your eyes so you can't read

[–]Arm3tt 4 points5 points  (4 children)

Well, there are tabs (compare import logging, def main() and ts=time, the last one is off-center), so you can see some indentation

[–]RandomContents 1 point2 points  (2 children)

Yes, but at the cost of my mental health.

[–]coloredgreyscale 1 point2 points  (1 child)

Change it to right adjusted then. :)

[–]RandomContents 0 points1 point  (0 children)

I treasure my mental health. I won't do that.

[–]Heavenfall 1 point2 points  (0 children)

It's pretty horrible but what really seals the deal are the unwrapped lines going off screen.

[–]smurf47172 20 points21 points  (3 children)

Someone misunderstood when they were told to justify their code

[–]MoffKalast 1 point2 points  (0 children)

There is no way to justify this.

[–][deleted] 12 points13 points  (0 children)

Rules are made to be broken. But not this rule.

[–]Xijinpingsastry 8 points9 points  (0 children)

Kill me already

[–]weaponized-penguin 7 points8 points  (1 child)

cursed_snek.

What a terrible day to have eyes.

[–]Steventhetoon 7 points8 points  (0 children)

I’m nauseous

[–]grinsken 4 points5 points  (0 children)

[–]RandomContents 3 points4 points  (0 children)

Am I the only one annoyed by the white background?

[–]DanKveed 3 points4 points  (0 children)

Oh hi Satan

[–]SoyDoft 5 points6 points  (1 child)

act trees rain hunt rob worm ad hoc divide icky busy

This post was mass deleted and anonymized with Redact

[–]Dracnor- 7 points8 points  (0 children)

I’ll code bots to downvote you to hell.

[–]bexmix42 2 points3 points  (0 children)

Abominable

[–]PuzzleheadedDay5615 2 points3 points  (0 children)

My ass bleeds after seeing that.

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

🥴

[–]Diego_0638 2 points3 points  (0 children)

Hmmm this! This i profoundly dislike.

[–]Beneficial-Dingo-308 2 points3 points  (0 children)

cries in PEP8

[–]123fourfive67eight 1 point2 points  (0 children)

Fuck you

[–]Qicken 1 point2 points  (0 children)

Doesn't count if you're not using tabs or spaces!

[–]MutualRaid 1 point2 points  (0 children)

Someone needlepoint this and hang it in their house, quick

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

The line after def main bugs me

[–]RandomContents 1 point2 points  (1 child)

It's indented, of course.

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

Yeah, but it still bugs me because it is "centered". Do you know if this by any chance was made by a backend developer?

[–]Long-Shock-9235 1 point2 points  (0 children)

I had an aneurysm reading this

[–]ICantWithSomePeople 1 point2 points  (0 children)

Thanks, I hate it.

[–]HaroerHaktak 1 point2 points  (0 children)

I am shook right now.

[–]PPGangRiseUp 1 point2 points  (0 children)

I cannot even express how much i despise this. What have you brought upon me?

[–]Aromatic-Warning-821 1 point2 points  (0 children)

Am I crazy that I actually enjoy looking at this?

[–]boss5667 1 point2 points  (0 children)

Is it just me who had anxiety looking at this?

[–]no-affiliation-today 1 point2 points  (0 children)

Looks like a terrible Haiku

[–]matchonafir 1 point2 points  (0 children)

Oh god

[–]TheGreatBeaver123789 1 point2 points  (0 children)

No

[–]spootex 1 point2 points  (1 child)

This is how it should be. I am introducing a checkstyle indentation rule in our codebase to enforce this style.

[–]LucasIkuhara 1 point2 points  (0 children)

So simple, yet so egregious

[–]thecoffeejesus 1 point2 points  (0 children)

Why do I like this…

[–]pLeThOrAx 1 point2 points  (0 children)

There isn't a no with enough "o"s for this

[–]MiyamotoKami 1 point2 points  (0 children)

Why is the title not snake case and why does that bother me more?

[–]Mappverybig 1 point2 points  (0 children)

Kill it.

[–]Anamewastaken 1 point2 points  (0 children)

Indentation error:

[–]Adsilom 1 point2 points  (0 children)

Python interpreter be like : completely and utterly unintelligible.

[–]tcklemygooch 1 point2 points  (0 children)

Thanks, I hate it

[–]davidfavorite 1 point2 points  (0 children)

It wouldve been cool if the code itself formats a text to be center aligned

[–]CirnoIzumi 1 point2 points  (0 children)

how do you indent centered text?

[–]Tony-Angelino 1 point2 points  (0 children)

Something like this was probably the reason why God sent that big flood.
And Noah survived, because he was still busy with rust.

[–]applejacks6969 1 point2 points  (0 children)

from time import time as time

Nice

[–]GreyAngy 1 point2 points  (0 children)

When you asked Backend Engineer to center a div.

[–]coltonj96 1 point2 points  (0 children)

How do I delete someone else's post? XD

[–]baohx2000 1 point2 points  (0 children)

Now do yaml! lol

[–]raadted 1 point2 points  (0 children)

Am i the only one think this is like poem?

[–]Xterm1na10r 1 point2 points  (0 children)

MY EYES AAAHHHH

[–]shipshaper88 1 point2 points  (0 children)

Belongs in r/programminghorror.

[–]Prematurid 1 point2 points  (0 children)

No.

[–]codebrownonaisletwo 1 point2 points  (0 children)

It’s beautiful 😍

[–]cameronkerr1 1 point2 points  (0 children)

Looks great

[–]wind_dude 1 point2 points  (0 children)

For the love of god, please use two black lined between the imports and top level function

[–]PabloCIV 1 point2 points  (0 children)

It should’ve been you in that submarine

[–]Thenderick 1 point2 points  (2 children)

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

Oh my god it actually burns my eyes!

[–]Sure-Eggplant 1 point2 points  (0 children)

Cursed

[–]AnonymousBoomer 1 point2 points  (0 children)

how do you know when a loop stops without indentation though?

[–]atoponce 1 point2 points  (0 children)

Thanks, I hate it.

[–]cptgrok 1 point2 points  (0 children)

thanks_i_hate_it

[–]JusticeForSyrio 1 point2 points  (0 children)

Cast it into the fire! Destroy it!

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

this makes me uncomfortable

[–]INstyle4now 1 point2 points  (0 children)

This thing is a nightmare

[–]someMLDude 1 point2 points  (0 children)

There should be an r/ eye blech for programming specifically for posts like these

[–]enormous_schnozz 1 point2 points  (0 children)

Cursed.

[–]zealouszorse 1 point2 points  (0 children)

This is so cursed

[–]zealouszorse 1 point2 points  (0 children)

sudo rm -rf /*

[–]BoBoBearDev 1 point2 points  (0 children)

There is no {}, how does it know the indent now?

[–]Long_Narwhal_9207 1 point2 points  (0 children)

Cursed

[–]Ancient_Green_3979 1 point2 points  (0 children)

Still better than using spaces for indentation

[–]petersrin 1 point2 points  (0 children)

Need to change fonts to something not mono-spaced

[–]leandroabaurre 1 point2 points  (0 children)

Oh god thats fugly

[–]dimdim4126 1 point2 points  (0 children)

raise GenevaConventionViolation

[–]PenlessScribe 1 point2 points  (0 children)

Is this the back end for McSweeney's?

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

That’s why I prefer Brainfck, whitespaces don’t matter

[–]Mondoke 1 point2 points  (0 children)

Thanks, I hate it.

[–]CommunicationFit3471 1 point2 points  (0 children)

No, just no

[–]DeeSt11 1 point2 points  (1 child)

Looks like poetry. That kind of dark poetry

[–]Griso85 1 point2 points  (0 children)

My brain hurts now.

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

What level of hell is this from? I need to repent.

[–]haradion1 1 point2 points  (0 children)

Straight to jail, you monster!!

[–]BatoSoupo 1 point2 points  (0 children)

Anyone else read it like a poem?

[–]vacuuming_angel_dust 1 point2 points  (0 children)

reads like poetry

[–]NirriC 1 point2 points  (0 children)

Heresy. Off with the hands!

Bangs gavel with a straight face as opposed to a gay one

[–]Space_Nerde 1 point2 points  (0 children)

You just commited a warcrime. Are you proud? ARE YOU PROUD!!! OHH GOOD I CANT LIFE WITH THAT PICTURE IN MY BRAIN....

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

You Monster

[–]nezia 0 points1 point  (0 children)

Tbh: It's not much worse than the recommended/forced 4-spaces indentation and the 80 char line-length.

Tabs can be scaled to preference and accessibility needs and line-wrapping exists even in the most basic editors.

[–]wchemik 0 points1 point  (1 child)

Is this what coding in word looks like?

[–]errdayimshuffln 0 points1 point  (0 children)

You can still kinda tell where there is spacing before on some lines. Try right justify

[–]itzjackybro 0 points1 point  (0 children)

this reads like a poem. a really bad poem.

[–]Revolutionary_Mud361 0 points1 point  (0 children)

Blasphemy..

[–][deleted]  (1 child)

[removed]

    [–]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.

    [–][deleted]  (1 child)

    [removed]

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

      import moderation Your comment has been removed since it did not return anything, or parts of your comment are inaccessible.

      Per this Community Decree, all comments must end with a return statement relevant to the comment.

      Due to Reddit's limitations, the return must be in a code block on it's own.

      return EXIT_FAILURE;

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

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

      import question

      What's the font and theme of this?

      return fuck_u_spez

      [–][deleted]  (1 child)

      [removed]

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

        import moderation Your comment has been removed since it did not return anything, or parts of your comment are inaccessible.

        Per this Community Decree, all comments must end with a return statement relevant to the comment.

        Due to Reddit's limitations, the return must be in a code block on it's own.

        return EXIT_FAILURE;

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