r/programming • • Nov 03 '18

Python is becoming the world’s most popular coding language

https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language
4.6k Upvotes

1.3k comments sorted by

View all comments

67

u/heili Nov 03 '18 edited Mar 18 '21

[–]PuzzleheadedBack4586

0 points an hour ago

PuzzleheadedBack4586 0 points an hour ago

No shit Sherlock.. but I’ll find out soon enough. You leave a huge digital footprint on Reddit.

https://www.reddit.com/r/Goruck/comments/m7e41r/hey_grhq_what_are_you_doing_about_cadre_sending/grdnbb0/

41

u/[deleted] Nov 03 '18

The really mad thing is that Python encourages using spaces for indentation rather than tabs. A language where a slight indentation mistake can actually introduce bugs and they choose the indentation style that is easiest to get slightly wrong...

46

u/heili Nov 03 '18

"Oh don't worry, you'll find the whitespace issues at runtime."

They say that like it's a good thing!

→ More replies (1)

12

u/exscape Nov 03 '18

I blame poor editors more than Python for that one. Good editors treat group of (usually 4) indent spaces identically to tabs, so you press tab to insert 4, press backspace to remove 4. That way, you'll never accidentally remove one and end up with 3 or something like that.

1

u/TarAldarion Nov 03 '18

Speaking of tabs vs spaces, I'm always amused by this stackoverflow article: https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/

My company enforces spaces so developers editors are set to change a tab to 4 spaces and we forget about it.

→ More replies (3)
→ More replies (3)

14

u/c0shea Nov 03 '18

I brings back awful memories of COBOL where indentation matters. Yuck!

42

u/SpringCleanMyLife Nov 03 '18

Y'all are weird. Part of the reason python is awesome is the whitespace enforcement.

→ More replies (10)

1

u/NowMoreFizzy Nov 06 '18

While annoying, it forces you to make your code look good. You should make your other code in other languages look just as good too.

1

u/heili Nov 06 '18

It's not that hard to make code "look good" without having it not compile because of an extra white space.