5 ms·
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 deta
by blauditore 9y ago
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.
- wslh 9y agoIDE? Visual Studio Code. Python is not perfect but the final code is simple to write and understand years later.
- bedros 9y agoI use sublime for python development, don't use fancy debug features, just print statements
- cableshaft 9y agoI 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.
- pletnes 9y agoPycharm and visual studio have free editions. Vim, emacs, Atom, VS Code, sublime - there are many options.
- blauditore 9y agoI 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.
- NoahTheDuke 9y ago> 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 https://stackoverflow.com/a/23471004/3023252
- blauditore 9y agoI 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.
- chrshawkes 9y agoFree excellent Python IDE is Visual Studio Code with a Python Extension installed by Don Jayamayne. VS Code is a solid Python experience.