this post was submitted on 05 Sep 2023
1214 points (97.3% liked)

Programmer Humor

19171 readers
1424 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] notabot@lemm.ee 2 points 1 year ago (1 children)

Ah, now we stray into 'holy war' teritory. I'd agree with you should use tabs, but the language style guide says 4 spaces per level. As you saym don't try to mix them.

[โ€“] garden_boi@feddit.de 1 points 1 year ago

Most projects nowadays use auto formatting tools for convenience. Any python auto formatting tool will automatically convert tabs to spaces. Tabs are a no no in python, as their rendering might depend on the settings of the IDE. Spaces are nice and constant.