Some Python aficionados, but not all of them, have enough experience across
a broad range of languages to have some perspective about things. How would
you compare your experience in that group versus this one? I get the feeling
the experience among this lot is a bit more narrow.
That's a bit rich coming from a guy who's made sweeping statements about
how boolean datatypes behave in all languages that he knows (that
assertion narrowed things down a lot), who just in this thread made
sweeping statements about comments that actually apply to a minority of
languages, who is obviously a Java novice (no harm in that), who pretty
clearly is also a C# (and most likely .NET managed language) novice
because otherwise some of his Java questions would never have been
asked, and who has demonstrated a somewhat naive understanding of
C++...among other things.
I am also minded about some disparaging comments you've made about
corporate programming - those smack of comments made by someone who's
done little or no such programming. Which in turn removes a gigantic
chunk of potential experience from _your_ portfolio.
How many years of COBOL do you have under your belt? Have you had to use
any other business languages like Natural? Any or lots of programming
experience in environments like CICS, or using EISs like SDAP,
PeopleSoft, Siebel or JD Edwards? Have you spent months of quality time
learning the intricacies of enterprise Oracle DB, or DB2, or working
close to the bare metal with ISAM-type files? Are you happy with your
thorough command of transactions in various environments? Have you spent
a year or two wrestling with various ESB or BPEL/BPM or business rules
implementations? Do you have decent experience with documents and
records management systems, or eForms of any type?
Maybe you spent most of your time working in scientific programming -
fair enough. So you're a FORTRAN and C (won't ask about C++, we know
where you stand with that) and awk/gawk and Matlab/MAPLE/Mathematica and
custom data processing language expert then, I take it. For starters.
Or maybe you're more an academic. Maybe you have excellent command of
functional languages like ML and Haskell and OCaml, and logic languages
like Prolog, and you can write rings around most people using a LISP
variant or with Self. Somehow I doubt it.
For what it's worth that last paragraph doesn't apply to me - I dabble
in those languages but am by no means adept. But the previous two
paragraphs do, and it took quite a few decades of work to get there. And
there are guys posting here who clearly know more than I do. You may
have noticed that we tend to back up our statements with facts and
references (admittedly, sometimes upon request).
You don't have to believe me, or anyone else's declaration of
experience, and personally I don't care. But you could investigate your
own CV and honestly assess how you stack up before making observations
about others.
As for indentation control, after some years’ experience, I’ve come to the
conclusion that it’s not exactly the most brilliant feature of Python. (And
yes, that remark has earned me a lot of hatred from other Python
enthusiasts.) But I still think Python is a fantastic language regardless.
It’s definitely worth the time you invest in learning it.
It's a decent language, sure. I don't know about "fantastic" - in 30+
years I haven't personally encountered a "fantastic" programming
language - but it's OK.
[ SNIP ]
(No, I don’t like embedding return statements in the middle of my code
either.)
Off and on, depending on team and client site and project, there's a
programmer or two that I work with that makes occasional comments like
this. Usually tossed out off-hand at meetings where some managers are
present. Often used to belittle junior programmers.
Have you actually thought this through, considering a wide variety of
languages and available function/method exit strategies, or did you just
read it somewhere and decide to parrot it?
But otherwise, Python iterators are absolutely wonderful things. For
example, complex database manipulations are so much easier to handle in
Python than in Java.
??? This coming from a guy who is just learning Java, and hasn't
probably used JPA in his life. Remarkable.
AHS