C programmer

>C programmer
>Starts to learn Python
>Indentation requires 4 spaces. No tab. No curly braces. 4 fucking dumb spaces.
>WTF is that shit and how this thing got so popular.
>Throws that shit away and go back to arian male language.
>Python is a meme.

Attached: Table-Flip.png (359x165, 5K)

Other urls found in this thread:

python.org/dev/peps/pep-0008/?#tabs-or-spaces
twitter.com/NSFWRedditVideo

> mad about using soft tabs
> must be noob
> enjoys a shitty compiled language
> doesnt even use go
> goes back to using a shitty build system
> makes post on Jow Forums
> gets embarrassed by user

>equires 4 spaces
It doens't complain when I use tabs

This, just don't mix tabs and spaces. You can change the number of spaces as long as you are consistent.

or dont fucking using tabs... If you dont know why you should never use tabs when coding you havent programmed long enough.

Every single fucking text editor has their own idea how to "format" tabs. But they all can agree on how to format spaces.

Seriously, don't use fucking tabs for your indentation; use soft tabs (insert 4 spaces faggot)!

My text editor doesn't even accept tabulation, it just does 2 empty spaces whenever I press tab.
Are you sure that's not your case?

I use tabs because I want to
anyone using my code will have to deal with it

this is why static code analyzers need to be used

>or dont fucking using tabs... If you dont know why you should never use tabs when coding you havent programmed long enough.
The fuck kind of nonsense are you implying here? Fuck off right back to rddit

Yes, I absolutely know that my editor of choice does not convert tabs to spaces.

if you code in python you're literally not following pep8. If I peer reviewed your code (which is normal at a job) I would deny it until its pep8 compliant. Which means no tabs.

The only requirement it imposes is that the choice of tabs vs. spaces for indentation is consistent throughout the whole file, turn on whitespace view if it's an issue OP

Wait what? It really requires 4 spaces specifically?

no it doesnt, he's a retard.

>use tabs for indentation
>everyone gets to use their preferred tab width on in their individual editor settings without stepping on each other's toes
>still get to use spaces for aligning items in the middle of a line which works great except for the occasional idiot who uses a non-monospace font in his editor
>use spaces for indentation
>"fuck you, do it my way"

>anyone using my code will have to deal with it
This just screams "I'm not a team player" and that you'd be horrid to work with developing software

More like, fuck you, do it the language documented way: python.org/dev/peps/pep-0008/?#tabs-or-spaces

> Spaces are the preferred indentation method.

>doesn't specify any recommended number of spaces per indentation level
Guess I'll start using 1 space to indent now

How does Python interpret spaces vs tabs though?
If my "if" condition was written with a indentation of 4 spaces, but the code inside it was written using 2 tabs, will the code be inside it?

God damn it's not about tabs, it about that spaces are bad for readibility at all.

>muh standards

legit dont care so long as its consistent.

Worst python code I've seen is almost always the shit that uses tabs. This tells me the developer wasnt even competent enough to follow pep8.

it will probably throw an indent error. don't mix tabs and spaces in the same file. it assumes the first pattern it sees is what the rest of the file uses.

It's a standard, not a rule.
And last I checked, I don't have an employers dick to suck

this is how i know you dont have a tech job

The standard you should follow is the company standard

autist

>following PEP 8

I bet you would adhere to the GNU coding style standard as well. Absolute cuckery.

Attached: 1492070276451.png (346x291, 11K)

Python is the best language ever made apart from Javascript.

Attached: 1910968816_1a867b3f51_o.jpg (1425x1736, 741K)

>don’t have an employer
Bragging about being jobless brainlet

>4 spaces, no tab

What? I use tab, you can use either as long as you're self consistent within a script.

nano -ET4
You can thank me later. Or just set a real text editor to do spaces instead of tabs.

Glad you're unemployed, I'd hate to read your code

I use one hard tab per indent level in all my Python code.

Consider for a moment that spaces are unambiguous and tabs are editor-dependent.

>arian

Attached: arius.jpg (717x900, 102K)

Stop being retarded. Python supports tabs and every other consistent use of intendation.

Go + D = GoD programming language

>I've been baited this has to be a troll
retard use an ide that automatically does 4 spaces with tabs brainlet

Attached: 1528103372654.jpg (645x729, 49K)

>C """programmer"""
>argues for different indentation in each file being a feature
why am I not surprised

>whitespace syntax
why exactly is python taken seriously

Sole Trader/Contracts
Full Time Student
I make 600 a month off the government alone for going to uni.

At this point, Employment isn't even mandatory. Only that working on someone else's clock is a detriment to a schedule

>C programmer
>Jow Forums

sure you are

>he indents with tabs

Attached: f29f059-1.png (676x236, 79K)

>his editor doesn't automatically replace a tab with a configurable number of spaces

A tab jumps to the next increment of eight columns. Anyone disagreeing with this should unironically consider suicide.

Not everyone is an Emacsimumfaggot.

Nobody cares about Pajeet's Esthetic Protocol v8. A shit standard is still shit.

>being a team player means you have to comply to my retarded standard

>Indentation requires 4 spaces. No tab.
Wrong.
You can use tabs or any number of spaces.
I indent Python with 3 spaces.

Program your editor to use 4 spaces instead of a tab when you press tab key.
Notepad ++ does this.