I can vouch for 'easy to learn': if you can already program in another language, learning Python is like being reintroduced to an old friend who has grown up quite a bit since you last met him.
I found the opposite. For example, I find it extraordinarily frustrating not to be able to know what kind of object something is by looking at the point in code where it is created; something like variable = somefunction(inputParameter) where variable did not exist before leaves me having to look up the documentation of somefunction to know what kind of object it is returning.
Why We Choose Python
51–60 of 62 posts
Re: Why We Choose Python
#52It would be strange if this guy had anything negative to say about Python since "Should you need assistance with your Python project, we'll be happy to help through a variety of professional services."
Re: Why We Choose Python
#53I love Python, but it's a rubbish article I regret to have upvoted. > Python is robust This paragraph does not feature a word about robustness. There are mentions of speed and scalability and some sort of benchmark showing a case where Python is faster than Ruby or PHP. Conclusion: "It's also very fast". The rest is less terrible but does not mention any of Python's shortcomings.
Are there any widely-used languages that aren't robust? That seems like kind of shallow praise.
Re: Why We Choose Python
#54I can vouch for 'easy to learn': if you can already program in another language, learning Python is like being reintroduced to an old friend who has grown up quite a bit since you last met him.
I found the opposite. For example, I find it extraordinarily frustrating not to be able to know what kind of object something is by looking at the point in code where it is created; something like variable = somefunction(inputParameter) where variable did not exist before leaves me having to look up the documentation of somefunction to know what kind of object it is returning.
Sometimes that is frustating. I suffered a lot until I understood the Django's forms API. But this feature is worth the cost.
Re: Why We Choose Python
#55Earlier quoted context omitted.
Are there any widely-used languages that aren't robust? That seems like kind of shallow praise.
Depends what you call robust. If you mean "strongly typed", PHP and Javascript come to mind immediately.
Re: Why We Choose Python
#56Note: Yes, I write source code on paper. Alot.
Re: Why We Choose Python
#57Re: Why We Choose Python
#58Re: Why We Choose Python
#59I can vouch for 'easy to learn': if you can already program in another language, learning Python is like being reintroduced to an old friend who has grown up quite a bit since you last met him.
I found the opposite. For example, I find it extraordinarily frustrating not to be able to know what kind of object something is by looking at the point in code where it is created; something like variable = somefunction(inputParameter) where variable did not exist before leaves me having to look up the documentation of somefunction to know what kind of object it is returning.
Try this variant:
variable = somefunction(inputParameter)
# the next line is a temporary debug statement
print "variable has the following attributes:", dir(variable)
Or this one: variable = somefunction(inputParameter)
help(variable) # temporary debugging statement
Or this one: help(somefunction)
Or even this: variable = somefunction(inputParameter)
print "the type is", type(variable) # temporary debugging statement
A lot of API's use built-in objects, so quite often you don't even need anything more complicated than: variable = somefunction(inputParameter)
print "variable is", variable
Using a Python-aware IDE like Eclipse PyDev might help too, but it's been a while since I've personally used it so I can't say off the top of my head what feature you want. Honestly, Python is so easy to use, you don't really need an IDE at all (of course this is just my opinion on something that's purely a matter of personal taste).Re: Why We Choose Python
#60Earlier quoted context omitted.
Depends what you call robust. If you mean "strongly typed", PHP and Javascript come to mind immediately.
By robust, I mean the language/compiler has a strong test suite and the runtime is known to work reliably in production settings. I've heard horror stories about Sun's HotSpot JIT crashing frequently, but that was what, 10 or 20 years ago? Now that I think about it, Scala might be a modern example of that, but I haven't kept up with how they might have improved.