Sayth renshaw wrote:Is this really a justifiable fear I assume from the rhetoric that Java does take longer but how much in reality.
Unfortunately, like most answers to questions like this, it's: It depends.
It depends on your background, your motives, what you want to do...and probably a hundred other things I haven't mentioned.
Comparing the two languages is rather like comparing apples and oranges: Java is a
statically-typed, object-oriented, compiler-based language based on C-style syntax; Python is dynamically typed, and so exhibits a lot more traits of a scripting language.
I have no experience of Python itself, but my experience of languages like
bash and
awk suggest that they are quicker to develop, and
especially quicker to "program on the fly". Unfortunately, they can also allow you to make
much bigger mistakes:
I once wrote a script that did the equivalent of an "
rm -rf /" on a Unix box. Obviously, that wasn't how I wrote it, or what it was
intended to do; but my employer wasn't best pleased when that's what it actually
did do on one of their servers.
Learning Java involves a whole new paradigm where coding generally
isn't the first thing you do; and for that reason development is usually slower. On the other hand, what you get at the end (if you do your job right) is industrial-strength,
safe applications that cover a multitude of areas and are easily extendable. I suspect that for many things they may also be faster than Python; but it's pure speculation.
Also: Java has a fabulous amount of (some might say
too many) 3rd party libraries and frameworks that are mature and well-tested.
So: you pays yer money and you takes yer choice: rapid development or structured design? dynamic typing or static? There's no "right" answer, and it's highly likely that your choice will depend on what you need to do, or where you work.
About the only other thing I can say is that, according to the
TIOBE index, Java is still vying for #1 with C, although the graph shows a shallow, but steady, decline over the heady days of the early 2000's; but the overall numbers tend to go with what you've seen for available jobs: about 5-6 times "more users". Python would also appear to be in decline after a peak around 2011, so maybe there are other "up and comers" in its niche.
HIH
Winston