Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
obeq2208yNot for everyone, of course, and I do respect that. Many brilliant developers agree with you.
I have to say though that to me, Python has never been about the quick and dirty. It's easy to get started on something, true, but you have to be as thoughtful as with any language.
Code completion isn't related to language, is it? Surely, that's more of an IDE issue? -
mb331268y@obeq after posting this rant, I did find a _better_ IDE, albeit not a _good_ one.
In its defense, though, I don't see how an IDE _could_ offer code completion à la Visual Studio, XCode, since there's no way in the language to specify what type of object will be returned from a function or stored in a variable. So how could it possibly know whether to show me string methods or dictionary methods when I type the "."?
Feel free to correct me if I'm wrong and there _is_ a way. I would be very happy to be wrong on this... -
john38yYou should check out annotated types that were introduced with the typing module in Python 3.5. You can specify parameter types, function return value types, etc. It doesn't guarantee those types at runtime, but it does tell future developers and code completion engines what your intention was.
-
john38y@dev3 Ouch, I feel you there. Python 3 ftw! You may be able to import typing from __future__, but I'm not sure on that one.
Related Rants
I've tried to give it many chances, but I just don't think Python will ever be for me. Even "quick and dirty" scripts are faster for me in a statically-typed language with static syntax checking and sensible code completion.
undefined
python