I think the indentation is still there. The lines don't seem perfectly centered to me, so I think it was valid code but then a center alignment was applied. Since that would just be a text formatting thing, the raw text might actually run
Right, but it's impossible to know exactly how many spaces there are per line. Look at the if line, without context of code is it in the foor loop or not?
It's Python, and even as a professional software engineer it's way better than Javascript. It's like the little toy that turned into a worldwide tool.
To make a little more tangible comparison, it's like how robotics engineers use commercial grade Erector sets, zip ties, duct tape, cheap 3D printers, and extruded aluminum for robotics projects because they're cheap, readily available, and work just well enough for the price for anything you need them for.
Most engineers go though various prototypes and throwaway work before the final version of their work is done; people got so used to prototyping in Python that they started to build complex shit in the language, and now it has fully matured.
57
u/permalink_save Apr 05 '21
Why did this have to be written in Python too
61
u/[deleted] Apr 05 '21
Code written from right to left
16
u/fruel Apr 05 '21 edited Apr 05 '21
There is one major issue with this code: True should be red, False should be green. Everything else is as it is supposed to be.
15
u/nickdavies07 Apr 05 '21
I’d use comic sans, just for good measure.
29
u/[deleted] Apr 05 '21
If you could add some flashing text that would be much more accurate.
7
u/joske79 Apr 05 '21
6
u/larsmaehlum Apr 05 '21
Middle aligned with rainbox colored highlighting.
It’s so beautiful..
2
u/dreysion Apr 05 '21
Can someone please tell me what language this is? All I know is Javascript, but I think this one looks better
3
u/MaxxDelusional Apr 05 '21
When I first started coding, I used to hate indenting my code. For some reason, I found it easier to read when everything was lined up on the left.
I have no idea how I used to work that way.
2
u/ryanmcg86 Apr 05 '21
I hate every single thing about this.
2
u/Friarchuck Apr 05 '21
Syntax highlighting aside, this function is incredible.
2
u/Eikosi20 Jan 07 '23
Why the heck would you choose something so stupid?
And look at it! The colors are messed up too!
This is one reason why I hate programming. Because of posts like this.
2
u/playr_4 Apr 05 '21
I never knew I coulda hate something so much.
1
u/Craptivist Apr 05 '21
The Wingdings font is missing.
1
u/Boraini Apr 05 '21
What is the color scheme called?
1
u/[deleted] Apr 05 '21
confused screaming
1
u/Kyn21kx Apr 05 '21
And here I thought I couldn't hate python more
1
u/Squigmeister2000 Apr 05 '21
One massive snake game where each node of the snake is a character
1
u/bncmp Apr 06 '21
I almost had a stroke looking at this
1
u/TheLemming Apr 06 '21
Bravo, sir, bravo.
1
u/CraftyRice Apr 10 '21
Why is NOBODY commenting about modulo 1+1 LMAO
1
u/SSG93 Apr 17 '21
Did anyone else felt nauseous?
1
u/stdsort May 02 '21
At least, there's a docstring
0
u/[deleted] Apr 05 '21
[deleted] — view deleted comment
0
u/[deleted] Apr 05 '21
[deleted] — view deleted comment