Thread #108678492
HomeIndexCatalogAll ThreadsNew ThreadReply
H
>White spaces matter
what did he mean by this?
+Showing all 25 replies.
>>
>>108678492
Worst shit idea in computer language history.
>>
>>108678501
that's not s-expr
>>
nothing is more talmudic than enforcing formatting and then not having language level error detection for an accidentally missing space
>inb4 just use a proprietary IDE with AI to do it
no.
>>
i hate it so so much.
>>
Unemployed-only issues thread
>>
>>108678512
>Indentation to enforce "clean" code
>No const, private, public, protected
>Inconsistent on globals
>Uh that's like your responsibility to just keep convention.
>>
>>108678492
>>White spaces matter
Damn right they do, brother.
>>
>>108678492
imagine getting filtered by indentations
absolute state
>>
>>108678492
Why the AI image? Photos of Gus exist...
>>
>>108678813
you've never seen deeply nested pyshit code before, I can tell. having markers for blocks is useful, if not to just jump to start/end of them.
>>
>>108678492
white spaces are the best delimiter.
unfortunately in computers, the worst implementation always wins out, so of course a shitlang like Python had to become the mascot for them
>>
>>108678840
do you not also do this in your whatever language?
for (int i=0; i<10; i++) {
if (i%2==0) { // first indentation
printf("%d\n", i); // oh no, a nested indentation
}
}
>>
some of the local retards
call it

reddit spacing

but i thing he meant
groupping code blocks
with vertical space

though it can be done
with comments too

mention line lengths
they arent big - lots of space
allow to increase font

for comfy reading
>>
>>108678862
>unfortunately in computers, the worst implementation always wins out
it's in any famous shit, really
the one who's the most famous is always complete shit compared to its not-so-popular alternatives
just normoids being normoid, nothing more
>>
>>108678919
for (int i=0; i<10; i++) {
if (i%2==0) { printf("%d\n", i); }
} // clarity, maybe i will add another boolean expression
>>
>>108678840
if you've gone beyond 5 nests then you're probably doing something wrong, put it in a function or an object and break the code into readable chunks like a White Man should, nobody wants to read your six gorillion nested conditionals
>>
>>108678919
yes very similar but you don't need to worry about tabs/spaces in c (or mixing up tabs with spaces - another thing python has an autistic fit over). the person that made python has severe autism and now we're stuck with the aftermath
>>
>>108682329
>you don't need to worry about tabs/spaces in c
You need to worry about readability a fucking lot. What sort of poojet doesn't indent his code out of pure muscle memory
>or mixing up tabs with spaces
Literally impossible to do in any modern text editor/IDE
Have you ever programmed anything? You sound like someone who hasn't touched a single piece of code in his life
Pyshit has a million issues but you retards always pick out this retarded shit
>>
Filtered by heterosexuality
>>
>>108678492
https://qz.com/1624252/pythons-creator-thinks-it-has-a-diversity-problem

Guido is a massive faggot that made a massively shitty programming language.
>>
>>108678512
>accidentally missing space
Maybe you're just retarded? This is on the level of complaining about accidentally missing semicolons.
>>108682329
>you don't need to worry about tabs/spaces in c
Why the fuck would you mix them anyway?
>>
>>108678584
this desu senpai. python enforces syntax "because that's a good thing" then never enforces anything else in any way, shape or form ever again.
>>
>>108678840
Skill issue.
I've written deeply nested python code where I had to disable linter whining about complex functions and had no trouble at all.
Python sucks in many ways but indentation for blocks isn't one of them.
>>
>>108678862
The reason so many programmers fear whitespace is from old shit like Fortran and Makefiles. Lots of older devs in their junior days got fucked with stray space characters in their makefile and the hatred stuck.

Also, Python being a concise, dynamic language goes well with the indentation for blocks. Favors less code and shorter functions over long imperative structures.
>>
>>108678919
His problem is that he's careless and doesn't have a good text editor and so doesn't put code after a block closes in the right place.

Reply to Thread #108678492


Supported: JPG, PNG, GIF, WebP, WebM, MP4, MP3 (max 4MB)