Jul 27, 2017 7:37 PM
AsshatTheCat
84092
1253
33
braidertom
i saw the code and my first thought was "huh looks like someones trying to write in basic but with objects. then i saw the right column
zma123456
Agreed. Don't fucking do this.
addi09
Everyday we stray further from God or so I'm told
justanothermonkeylookin4lub
Who gave the monkey a keyboard and taught it to type ?
tomj2525
Who in there right mind...
IWasHereFirst
As a python dev, took me a min :)
managingyoassets
This is surprisingly readable. It's been formatted to use white space to guide the reader. Very much like python
practicalitydifussed
actually, I don't think it's that bad.
Demonsthere
As someone who has to write in Python... fuck this shit, fuck it to hell
gospelofmillim
This makes me want to snort a line of powdered glass
DragonDildoChandelier
*powdered bleach
Caaaarlthatkillspeople
Keshan
While i would never code like that... i see the logic to it...
ThisIsThePlaceWhereIBelong
To be honest that's one way to never forget semicolon or brackets, but at what cost.
SharkswithFrigginLazerBeams
Some CSS HTML compilers let you write like this. This looks like a manual attempt.
Polarbit
This code is 100% correct, the brackets are just all clumped indented on the right.
WhatTheHellHero
The brackets being grouped like that is the problem. It's a pain to trouble shoot something like that in practice, regardless of function.
Arrowpuppet
v
StarscreamAndHutch
Don't indent the left side and make it two columns while you're at it, Satan.
Cereaza
But as you can see, he is using tabs.
GreenFox
Python. This is Python's fault. Someone learned Python and tried to "fix" Java to make it look like Python. For some reason.
sidParker
Python is the "training wheels" of coding languages.
FloriaFlower
No and yes. It's not python's fault, but what we have here is clearly a java hating cunt who, in his mind, did this to "fix" java.
ThatOtherTransGirl
I was trying to figure why on earth someone would do this. Thank you for enlightening me.
sillyhatman
Amatures. https://en.wikipedia.org/wiki/Brainfuck
mikeatike
My favorite is HQ9+ https://www.esolangs.org/wiki/HQ9%2B
Xyvyrianeth
Nigga please https://en.wikipedia.org/wiki/Malbolge
Good lord, I forgot about this.
JamesJabberwocky
Fuuuuck that.
ZombieStriker
YouShouldHearTheThingsIDontSay
They probably use spaces instead of tabs also.
Ouch.
SlumdogSkillionaire
Well yeah, everyone does at least one thing right.
Burgerdan2Tall
Someone needs to get his Github password revoked. Gotta quarantine these sickos.
inchoroi
*twitch* *twitch* *twitch*
stoler202
I'll be honest, if you know how to program in Python, what's so hard to read in this code? Each indent indicates a sub-code, simple!
Yes it's easy to read, but it's also harder to change.
Feriority
I mostly work in Python. I love Python. This is a disgusting abomination. Take a closer look at the right side.
So, basically, he just makes Java code *look* like Python code, hiding the useless brackets and semicolons on the right.
Except they aren't useless, because it isn't python. Information is obscured. If you misindent, nothing catches it for you.
Although I agree that misindentation is a good point, don't most IDEs automatically indent for you?
The first pass, sure, the IDE can read the brackets and guess indentation levels. When editing, though, this is a nightmare.
Debiandog
You youngins just don't know the pain. in RPG programming certain characters had to be in certain columns. Good Times!
poOonyou
D pScrewThis S 69a
DontAskMeAboutMyUsernameOkay
I still work with code that has shit like that. Very annoying. "Why doesn't this shit work. Oh.. there's an extra tab. Got it"
Lagrange31
I still work with rpg...
MrRubixs
Same! Free form helps
That would make me want an rpg to be fired at me.
My condolences. But I'm sure you're getting paid well ;)
I like the green tint and my f4 is worn thin.
Quisaxaderak
As someone who knows both, don't blame python, blame the dev for not using the style libraries. They exist for a reason.
That is actually... Pretty reasonable.
tonebacas
Please elaborate, preferably with a direct link to a great resource where the unenlightened ones could gain this insight.
Python: https://www.python.org/dev/peps/pep-0008/
Unfortunately the github links were removed. But Google "languageName style guide" and the Google goes will come up
I prefer Google's style guides for the most part, but will make minor changes where I feel appropriate, which isn't often.
burritoz
as a programmer: ?fb
Corrodias
I find it clever and actually nice to look at. I wouldn't want to try to edit it, though, and it would be a nightmare to try to find errors.
So it's clever and amusing, but in a "don't ever do this or I will break you" kind of way.
geonerd
I nearly vomited.
justanotherconscience
;}}}
Parablelost
as a system admin:
SmeesNotVeryGoodTwin
I almost didn't see it and then almost broke my toilet seat. But maybe it's easier to find missing brackets and semicolons?
With python, this is fine, and functional syntax. Everything else. No. Apologies for the late reply.
IMADEU
Hey I'm just starting code academy. Am I one the right path I want to make games but amazing games and I'm the person that fucking does.!
CanYouKnot
My advice is to get a computer science degree. It's going to be very tough to become a good programmer without one. Codecademy is good /1
This is for personal use only don't need degree.
Exposure, but there is a LOT more to learn
Thanks for advice!
ASmallOffDutyCzechTrafficWarden
MRW I checkout their code v
Trapphus
1. Water is too clean. 2. They know they can't do that in tech support. 3. Other stereotype
vietarmis
Sari, not sorry.
Vatatheo
That slowly got worse and worse. What the hell is that even from?
Agent
Iirc its an indian movie about a country girl who marries a wealthy man. Shes genuinely trying to be a duitiful wife.
That was slow and painful.
CidVilas
I couldn't stop watching but I wanted it to stop so bad. I kept saying"Please stop, its not too late." But it kept going...she won't stop.
AksBizzl
Well, you can't say it's not clean now!
sstrut
That makes me feel uncomfortable...
RoboBongoCuckooCop
Fanfreakingtastic, like watching a whole film
EroticZombiePants
There it is. The longest GIF in history.
1Plebian
I remember telling someone that this gif was staged/setup, and them not believing me.
Kaitou
It's from a TV show - her character is supposed to be naïve. Though, >bad editing
Zetor
After a visit to usersub...
sciencebasedlifeform
*pornhub usersub
StragoMagus
The gif that keeps on giving.
captainmoha
The gif that keeps on GIFFING.
PalulukanMakto
Can someone explain this to my friend? He doesn't know anything about programming.
pokebug666
{} denote blocks of code. This person aligned them vertically making it hard to tell what is in "permute" block and what is in "swap" block.
IAmDrBanner
Basically, if this code was a person, I'd shoot it. It is not right. A mercy kill.
defnotwinning
Thank you for this.
Molvanian
So, different 'statements' of code (Check that, set X to 4, ect) sometimes have brackets around them to section them off. Putting the
I just started coding g with code academy am I doing this right or is there a better place I want to make dank 3d games like pubg size
I wish you well. I use W3 myself. That and actual college. But you can learn a lot from the net.
Or a book but I've self taught alot. no college for me. Thanks for advice
brackets near the code in question produces something a human could read. But humans don't NEED to, only the computer does, and it can
read some funky shit. It doesn't care that all the brackets are in one column. I, a human (I swear), can't read it, but the computer can. E
Typically either brackets or indentation are used to indicate the beginning and ending of inner and outer statements. Java uses brackets /1
Where brackets within brackets are inner statements. Like if you put quotes within quotes in a sentence. However, you also indent nicely /2
To make it more readable. Python expects ONLY indentation so a Python programmer might be annoyed by Java's requirement for brackets /3
And instead put them all the way to the right in an absolutely atrocious but technically correct way, so that the code resembles Python /4
Comically, doing this will make no difference to the computer running it, but will make any true Java developer's eyes bleed :)
xaraphina
Might as well write it all on the same line, the computer doesn't care and nobody is going to waste their life checking your crap.
ziludoSmasher
this iteratrs through the char array and prints the char value. the permute function is recursive.
HappyJello
The brackets and semicolons on the right make it all fuckey. Usually they are embedded in the code
RustyNeX
On the right hand side there is a collum of brackets which make the code very difficult to read and bug check.
Englishisnotmyfirstlanguage
I remember I learnt a little bit of C+ on DOS and it was kinda like that to find errors in code
Alright. I thank you on my friend's behalf.
I didn't even notice the brackets until my second or third glance. I was wondering how this code could even compile.
Column*
MrPredator
I think my subconscious tried to protect me from that monstrosity. v
Diplocrap
The programmer made the code look like it is Python. Except it isn't Python, it's Java, which traditionally looks different. 1/
This horrifies Java developers. It's like seeing a famous painting reproduced badly. It's the Uncanny Valley of Java programs. 2/
It technically works, but hurts your eyes. And the amount of time it would take to keep it looking "wrong" like as you edit code...*shudder*
kevinallover
All these devs and not a single one can speak layman-ese. Brackets mark the start and end of a statement in code. It's best to be able to >>
>> easily see where a statement starts and ends to avoid overlapping, which would break shit. Putting them all next to each other is >>
>> basically illegible.
PaulyPancakes
(1/?) Basically, a program is a set of steps for the machine to follow in a specific order. When coding, for more readable code a developer
(2/?) Can separate code into "blocks" these blocks are defined by these curly braces. Commonly they are put in the same columb so you know
(3/?) which braces belong to each other, and what code belings in each block. Commonly code is indented b/w two braces in the same column
Whats depicted here is basically making the code less readable. Its doing the exact opposite and you dont know what belongs to what
In python, instead of braces (which java uses)... they use indentation to see what belongs to what
cyno01
Its kind of like a math problem, {a+b[c+d(e+f)]}{a+b[c+d(e+f)]}{a+b[c+d(e+f)]}. Except they wrote it like
GJ on that explanation.
UmamiMama
I just had a seizure
BringMeMyAlpaca
You're good at explaining things. I like you. Bravo
I guess i am, because i have no idea what this actually does, i barely passed java in HS 15 years ago, i just know whats wrong with it.
Linif
mosit21
Albert Einstein once said "If you can't explain it simply, you don't really know it." Nicely explained sir.
What does it mean when i can roughly explain quantum physics to my mother, but i could never hope to understand the math cuz i never went +
past trig. I barely passed java in high school 15 years ago, im terrible with languages computer and human, i have no idea what this does +
or how, but i know enough looking at it to get whats wrong with it well enough to explain it? How the fuck does my brain work?
braidertom
i saw the code and my first thought was "huh looks like someones trying to write in basic but with objects. then i saw the right column
zma123456
Agreed. Don't fucking do this.
addi09
Everyday we stray further from God or so I'm told
justanothermonkeylookin4lub
Who gave the monkey a keyboard and taught it to type ?
tomj2525
Who in there right mind...
IWasHereFirst
As a python dev, took me a min :)
managingyoassets
This is surprisingly readable. It's been formatted to use white space to guide the reader. Very much like python
practicalitydifussed
actually, I don't think it's that bad.
Demonsthere
As someone who has to write in Python... fuck this shit, fuck it to hell
gospelofmillim
This makes me want to snort a line of powdered glass
DragonDildoChandelier
*powdered bleach
Caaaarlthatkillspeople
Keshan
While i would never code like that... i see the logic to it...
ThisIsThePlaceWhereIBelong
To be honest that's one way to never forget semicolon or brackets, but at what cost.
SharkswithFrigginLazerBeams
Some CSS HTML compilers let you write like this. This looks like a manual attempt.
Polarbit
This code is 100% correct, the brackets are just all clumped indented on the right.
WhatTheHellHero
The brackets being grouped like that is the problem. It's a pain to trouble shoot something like that in practice, regardless of function.
Arrowpuppet
StarscreamAndHutch
Don't indent the left side and make it two columns while you're at it, Satan.
Cereaza
But as you can see, he is using tabs.
GreenFox
Python. This is Python's fault. Someone learned Python and tried to "fix" Java to make it look like Python. For some reason.
sidParker
Python is the "training wheels" of coding languages.
FloriaFlower
No and yes. It's not python's fault, but what we have here is clearly a java hating cunt who, in his mind, did this to "fix" java.
ThatOtherTransGirl
I was trying to figure why on earth someone would do this. Thank you for enlightening me.
sillyhatman
Amatures. https://en.wikipedia.org/wiki/Brainfuck
mikeatike
My favorite is HQ9+ https://www.esolangs.org/wiki/HQ9%2B
Xyvyrianeth
Nigga please https://en.wikipedia.org/wiki/Malbolge
WhatTheHellHero
Good lord, I forgot about this.
JamesJabberwocky
Fuuuuck that.
ZombieStriker
YouShouldHearTheThingsIDontSay
They probably use spaces instead of tabs also.
JamesJabberwocky
Ouch.
SlumdogSkillionaire
Well yeah, everyone does at least one thing right.
Burgerdan2Tall
Someone needs to get his Github password revoked. Gotta quarantine these sickos.
inchoroi
*twitch* *twitch* *twitch*
stoler202
I'll be honest, if you know how to program in Python, what's so hard to read in this code? Each indent indicates a sub-code, simple!
FloriaFlower
Yes it's easy to read, but it's also harder to change.
Feriority
I mostly work in Python. I love Python. This is a disgusting abomination. Take a closer look at the right side.
stoler202
So, basically, he just makes Java code *look* like Python code, hiding the useless brackets and semicolons on the right.
Feriority
Except they aren't useless, because it isn't python. Information is obscured. If you misindent, nothing catches it for you.
stoler202
Although I agree that misindentation is a good point, don't most IDEs automatically indent for you?
Feriority
The first pass, sure, the IDE can read the brackets and guess indentation levels. When editing, though, this is a nightmare.
Debiandog
You youngins just don't know the pain. in RPG programming certain characters had to be in certain columns. Good Times!
poOonyou
D pScrewThis S 69a
DontAskMeAboutMyUsernameOkay
I still work with code that has shit like that. Very annoying. "Why doesn't this shit work. Oh.. there's an extra tab. Got it"
Lagrange31
I still work with rpg...
MrRubixs
Same! Free form helps
mikeatike
That would make me want an rpg to be fired at me.
Debiandog
My condolences. But I'm sure you're getting paid well ;)
Lagrange31
I like the green tint and my f4 is worn thin.
Quisaxaderak
As someone who knows both, don't blame python, blame the dev for not using the style libraries. They exist for a reason.
WhatTheHellHero
That is actually... Pretty reasonable.
tonebacas
Please elaborate, preferably with a direct link to a great resource where the unenlightened ones could gain this insight.
Quisaxaderak
Python: https://www.python.org/dev/peps/pep-0008/
Quisaxaderak
Unfortunately the github links were removed. But Google "languageName style guide" and the Google goes will come up
Quisaxaderak
I prefer Google's style guides for the most part, but will make minor changes where I feel appropriate, which isn't often.
burritoz
as a programmer:
?fb
Corrodias
I find it clever and actually nice to look at. I wouldn't want to try to edit it, though, and it would be a nightmare to try to find errors.
Corrodias
So it's clever and amusing, but in a "don't ever do this or I will break you" kind of way.
geonerd
I nearly vomited.
justanotherconscience
;}}}
Parablelost
as a system admin:
SmeesNotVeryGoodTwin
I almost didn't see it and then almost broke my toilet seat. But maybe it's easier to find missing brackets and semicolons?
WhatTheHellHero
With python, this is fine, and functional syntax. Everything else. No. Apologies for the late reply.
IMADEU
Hey I'm just starting code academy. Am I one the right path I want to make games but amazing games and I'm the person that fucking does.!
CanYouKnot
My advice is to get a computer science degree. It's going to be very tough to become a good programmer without one. Codecademy is good /1
IMADEU
This is for personal use only don't need degree.
CanYouKnot
Exposure, but there is a LOT more to learn
IMADEU
Thanks for advice!
ASmallOffDutyCzechTrafficWarden
MRW I checkout their code
v
Trapphus
1. Water is too clean. 2. They know they can't do that in tech support. 3. Other stereotype
vietarmis
Sari, not sorry.
Vatatheo
That slowly got worse and worse. What the hell is that even from?
Agent
Iirc its an indian movie about a country girl who marries a wealthy man. Shes genuinely trying to be a duitiful wife.
mikeatike
That was slow and painful.
CidVilas
I couldn't stop watching but I wanted it to stop so bad. I kept saying"Please stop, its not too late." But it kept going...she won't stop.
AksBizzl
Well, you can't say it's not clean now!
sstrut
That makes me feel uncomfortable...
RoboBongoCuckooCop
Fanfreakingtastic, like watching a whole film
EroticZombiePants
There it is. The longest GIF in history.
1Plebian
I remember telling someone that this gif was staged/setup, and them not believing me.
Kaitou
It's from a TV show - her character is supposed to be naïve. Though, >bad editing
Zetor
After a visit to usersub...
sciencebasedlifeform
*pornhub usersub
StragoMagus
sidParker
The gif that keeps on giving.
captainmoha
The gif that keeps on GIFFING.
PalulukanMakto
Can someone explain this to my friend? He doesn't know anything about programming.
pokebug666
{} denote blocks of code. This person aligned them vertically making it hard to tell what is in "permute" block and what is in "swap" block.
IAmDrBanner
Basically, if this code was a person, I'd shoot it. It is not right. A mercy kill.
defnotwinning
Thank you for this.
Molvanian
So, different 'statements' of code (Check that, set X to 4, ect) sometimes have brackets around them to section them off. Putting the
IMADEU
I just started coding g with code academy am I doing this right or is there a better place I want to make dank 3d games like pubg size
Molvanian
I wish you well. I use W3 myself. That and actual college. But you can learn a lot from the net.
IMADEU
Or a book but I've self taught alot. no college for me. Thanks for advice
Molvanian
brackets near the code in question produces something a human could read. But humans don't NEED to, only the computer does, and it can
Molvanian
read some funky shit. It doesn't care that all the brackets are in one column. I, a human (I swear), can't read it, but the computer can. E
CanYouKnot
Typically either brackets or indentation are used to indicate the beginning and ending of inner and outer statements. Java uses brackets /1
CanYouKnot
Where brackets within brackets are inner statements. Like if you put quotes within quotes in a sentence. However, you also indent nicely /2
CanYouKnot
To make it more readable. Python expects ONLY indentation so a Python programmer might be annoyed by Java's requirement for brackets /3
CanYouKnot
And instead put them all the way to the right in an absolutely atrocious but technically correct way, so that the code resembles Python /4
CanYouKnot
Comically, doing this will make no difference to the computer running it, but will make any true Java developer's eyes bleed :)
xaraphina
Might as well write it all on the same line, the computer doesn't care and nobody is going to waste their life checking your crap.
ziludoSmasher
this iteratrs through the char array and prints the char value. the permute function is recursive.
HappyJello
The brackets and semicolons on the right make it all fuckey. Usually they are embedded in the code
RustyNeX
On the right hand side there is a collum of brackets which make the code very difficult to read and bug check.
Englishisnotmyfirstlanguage
I remember I learnt a little bit of C+ on DOS and it was kinda like that to find errors in code
PalulukanMakto
Alright. I thank you on my friend's behalf.
DontAskMeAboutMyUsernameOkay
I didn't even notice the brackets until my second or third glance. I was wondering how this code could even compile.
stoler202
Column*
MrPredator
I think my subconscious tried to protect me from that monstrosity.
v
Diplocrap
The programmer made the code look like it is Python. Except it isn't Python, it's Java, which traditionally looks different. 1/
Diplocrap
This horrifies Java developers. It's like seeing a famous painting reproduced badly. It's the Uncanny Valley of Java programs. 2/
Diplocrap
It technically works, but hurts your eyes. And the amount of time it would take to keep it looking "wrong" like as you edit code...*shudder*
kevinallover
All these devs and not a single one can speak layman-ese. Brackets mark the start and end of a statement in code. It's best to be able to >>
kevinallover
>> easily see where a statement starts and ends to avoid overlapping, which would break shit. Putting them all next to each other is >>
kevinallover
>> basically illegible.
PaulyPancakes
(1/?) Basically, a program is a set of steps for the machine to follow in a specific order. When coding, for more readable code a developer
PaulyPancakes
(2/?) Can separate code into "blocks" these blocks are defined by these curly braces. Commonly they are put in the same columb so you know
PaulyPancakes
(3/?) which braces belong to each other, and what code belings in each block. Commonly code is indented b/w two braces in the same column
PaulyPancakes
Whats depicted here is basically making the code less readable. Its doing the exact opposite and you dont know what belongs to what
PaulyPancakes
In python, instead of braces (which java uses)... they use indentation to see what belongs to what
cyno01
Its kind of like a math problem, {a+b[c+d(e+f)]}{a+b[c+d(e+f)]}{a+b[c+d(e+f)]}. Except they wrote it like
braidertom
GJ on that explanation.
UmamiMama
I just had a seizure
BringMeMyAlpaca
You're good at explaining things. I like you. Bravo
cyno01
I guess i am, because i have no idea what this actually does, i barely passed java in HS 15 years ago, i just know whats wrong with it.
Linif
mosit21
Albert Einstein once said "If you can't explain it simply, you don't really know it." Nicely explained sir.
cyno01
What does it mean when i can roughly explain quantum physics to my mother, but i could never hope to understand the math cuz i never went +
cyno01
past trig. I barely passed java in high school 15 years ago, im terrible with languages computer and human, i have no idea what this does +
cyno01
or how, but i know enough looking at it to get whats wrong with it well enough to explain it? How the fuck does my brain work?