4 ms·
Complete tangent, but I must say that since I recently started using pycharm it has really caught most of the obvious typo and uninitialized bugs and my python
by willvarfar 10y ago
Complete tangent, but I must say that since I recently started using pycharm it has really caught most of the obvious typo and uninitialized bugs and my python code is really crashing surprisingly rarely as I prototype to death.
Just saying in case there are others who haven't been trying modern python tooling and don't know that you can get real close to a compiled language type safety certainty these days before you run a line of code.
- mi100hael 10y agoI get where you're coming from, but relying on an IDE for safety is a recipe for disaster. What happens when you just quickly pop open that file in on a shell to make a small change and fat-finger something? What happens when a different developer decides to use vim for everything? I used Python extensively for years and it's still my scripting language of choice, but to use it to build something safe in a business-critical situation requires an obnoxious number of tests, half of which are basically just type checks.
- lowmagnet 10y ago1) you get an error, and since it's a small change I'd assume you could guess where you caused it. 2) they get errors but they may have more difficulty finding them. (or they use a vim plugin for that, or pylint, etc. on save) I'd guess your ability to suss out an error's cause without an IDE is a matter of comfort with a language, and your lack of ability isn't an IDE's fault.
- dude01 10y agoSpeaking of tangents... I use pycharm too. Do you ever use type annotations in Python? I'm really digging it in Typescript for Javascript.
- willvarfar 10y ago(I have my own, and I'm probably the only user ;) https://pypi.python.org/pypi/obiwan/ https://pypi.python.org/pypi/obiwan/ )
- dude01 10y agoOh wow, thanks for the link. Looks like you discovered typescript way before I did. It looks like Mypy is pretty popular these days. Cheers!