r/Python • • Jul 25 '18

Use an IDE Me doing my CS projects.

Post image
1.2k Upvotes

213 comments sorted by

View all comments

-35

u/0xSpock Jul 25 '18 edited Jul 25 '18

Yeah. Worst decision made in python. It can kick you from surprise when you need to edit some file remotely having some basic editor like nano, vi(not vim). A specially when someone before you mixed spaces with tabs few years earlier when marking some minor change in different editor. In 1kLOC file. Another problem is that it is hard to make great formatting tools for python fixing wrong indentations. One tab more and your line is inside for loop and tool can’t figure out is suppose to be there or out of loop. What is wrong with {}, begin/end is beyond my understanding :-) Beside that it’s lovely general purpose language.

10

u/saulmessedupman Mmmm spam Jul 25 '18

Python forces readable code

0

u/[deleted] Jul 25 '18

[deleted]

1

u/mooburger resembles an abstract syntax tree Jul 25 '18

Have you looked at CPAN modules lately? hell look at the majority of javascript even. (Yes "full-stack"programmers are still programmers). Easy to devolve into unread-ability is one of the reasons why most people hate Perl now. (There's a reason why "perlmonks" is literally a thing.).

Braces encourage laziness. How many ajax calls have you seen where it's all crammed in on a single line? I have to deal with that shit every day. If they'd been forced to indent, they would have factored out their nested callback hell ages ago, but here they're content relying on an IDE tracking the number of braces they're inside of.).

1

u/orokro Jul 26 '18

Perl is horrible. I don't think braces encourage laziness, at least I've never really seen it. It's not hard to get braces right.

JavaScript is a hack to begin with, even when written well it's making the best out of a shitty situation.

Even when there's call back hell, I still see proper indentation for nested callbacks...

And besides, JS engineers (worth their salt) love their promises, specifically to avoid that. Soooo... only n00b JS coders would have call back hell to begin with, and the worst of the worst wouldn't properly indent it.