News for hackers. Stuff that matters.
Re:Why Is Python Growing So Quickly? by blauditore on Thursday September 14, 2017 @01:04PM (#15250005)
I recently worked with Python for a couple of months, for the first time. Even though reading code and writing simple parts is fairly easy, I found several details to be quite confusing, like variable scope, or the various underscore conventions/variables. Also, I struggled to find a good free IDE (there was no money for PyCharm), which made debugging a hassle. Also, dependency management with pip feels a bit quirky compared to e.g. Maven or npm.

All in all, I found it neither much more or less fun to program with than e.g. Java, C# or TS. It might be a better fit for small projects than others, though.

Re:Why Is Python Growing So Quickly? by NoahTheDuke on Thursday September 14, 2017 @01:39PM (#15250415)
> variable scope

Which parts did you find confusing? Was it the lack of a block-level scope, such as within for loops and if statements? I personally find the LEGB (Local, Enclosing, Global, Builtin) system to be pretty intuitive.

[0]: https://stackoverflow.com/a/23471004/3023252

Re:Why Is Python Growing So Quickly? by blauditore on Thursday September 14, 2017 @03:18PM (#15251567)
I think one thing I found particularly confusing is how class and instance variables relate to each other. It takes a while to understand how they get masked and in what case which one is referenced.
Re:Why Is Python Growing So Quickly? by chrshawkes on Thursday September 14, 2017 @05:41PM (#15252753)
Free excellent Python IDE is Visual Studio Code with a Python Extension installed by Don Jayamayne. VS Code is a solid Python experience.
Re:Why Is Python Growing So Quickly? by pletnes on Thursday September 14, 2017 @01:11PM (#15250093)
Pycharm and visual studio have free editions. Vim, emacs, Atom, VS Code, sublime - there are many options.
Re:Why Is Python Growing So Quickly? by blauditore on Thursday September 14, 2017 @03:09PM (#15251463)
I think it was the remote debugger I was missing, and as far as I could tell there was no such feature in any free editor/IDE, probably because it's not a language-native feature afaik.
Re:Why Is Python Growing So Quickly? by wslh on Thursday September 14, 2017 @01:06PM (#15250041)
IDE? Visual Studio Code.

Python is not perfect but the final code is simple to write and understand years later.

Re:Why Is Python Growing So Quickly? by bedros on Thursday September 14, 2017 @01:44PM (#15250481)
I use sublime for python development, don't use fancy debug features, just print statements
Re:Why Is Python Growing So Quickly? by cableshaft on Thursday September 14, 2017 @02:43PM (#15251135)
I generally use Notepad++. Python lets you get away with it, for the most part. Other languages would be a pain in the butt to write whole programs in it.