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

-1

u/13steinj Jul 25 '18

This not only doesn't force readability (I can use indentation very, very disgustingly), but also hurts those with visual impairments.

2

u/saulmessedupman Mmmm spam Jul 25 '18

Visual impairments. Give me a break.

1

u/13steinj Jul 25 '18

Tell that to this guy

1

u/saulmessedupman Mmmm spam Jul 25 '18

I have a friend that isn't 100% blind but he's close. he's a developer and I've never heard him complain about indentation. In fact, I've never heard him complain ever; a true inspiration.

2

u/13steinj Jul 25 '18

I didn't know people weren't allowed to suggest braces would be a nice thing to have without people assuming it's a complaint.

1

u/saulmessedupman Mmmm spam Jul 25 '18

Python was designed to use (newline followed by) indentation instead of braces, parenthesis, semicolons, etc. For those that know what happens from code to machine language you know both aren't necessary. I'm sure it's no stretch to say having more than one option is not feasible either. And if you try to tell me other languages use braces and indentation you don't understand what's going on. Not to mention Python has the PEP8 style guide.

2

u/13steinj Jul 26 '18

Adding another option, specifically braces, is simple. There already exists a transpiler from Bython, literally Python with braces, to Python. Now it's just a matter of modifying the actual C parser instead of having it at a higher level.

The Python style guide is irrelevant to the writability of code by people with visual disabilities.

1

u/FloppingNuts Jul 25 '18

get new eyes lmao

1

u/13steinj Jul 25 '18

Tell that to this guy