Questions, please, as I kibbitz ...
1. Python and Perl are the only options?
2. If we in the Linux world are looking towards demonstrating Linux as
better than Windows then one of those "better than" things is complete
cross-platform compatibility ... which would tip the scales slightly towards
Perl. (I don't know either so I don't have a dog in this "fight".)
3. Isn't there something I read somewhere about a "container" for Perl
that forces some discipline upon the developer? (Sorry, that's all I can
recall from my fragmented brain-hdd.)
Doc
Mikes work account wrote:
>
> This is not intended to start any sort of long winded thread or flame
about
> either programming language but,,, I need ot pick a programming language
to
> learn and both of these have their proponents. Does anyone out there have
> constructive things to say about either one or both of these and their
> strength or weaknesses. I need to write short programs that access a data
> base and manipulate data and output in presentable for on the printer.
> And,, I don't want to spend the rest of my life learning it,,,
The reason language comparisons are likely to start religious wars is
because they're remarkably like comparing two religions....
(note that I have a lot more experience with Perl than Python)
Perl Pros: very forgiving syntax, extremely easy to pick up and start
hacking since syntax can be learned incrementally, essential philosophy:
"There's More Then One Way To Do It" (TMTOWTDI) means many different
approaches to the same problem all will likely work in the end, an
absolute butt-load-and-a-half of third-party extension modules available
through CPAN, effectively universal since it's on nearly every platform
by default anymore
Perl Cons: syntax can easily get squirrely and ugly and unreadable very
quickly, forgiving syntax also makes it easy to make stupid mistakes
that get overlooked, TMTOWTDI means that any examples you see for the
same problem are likely to all be entirely different making it more
difficult to pick up more complex language capabilities, structured
programming in perl requires a LOT of self-control, a good percentage of
those buttloads of third-party modules don't always, err, behave the way
you might expect (i.e. a lot of 'em don't work)
Python Pros: entirely object-oriented language structure requires some
thought about overall program structure before jumping into a Python
project which is a Good Thing, language syntax *requires* that your
programs look nice and are easy to read, acts more like a "real
programming language" than a quick-off scripting language on steroids,
philosophy of There Should Be One Obvious Way To Do It means it's easy
to adapt other examples/code to your own purposes
Python Cons: language is intended to be entirely object-oriented which
causes some people to break out in hives, not as large set of
third-party modules available, language interpreter is not on many
platforms by default, more difficult to pick up and start working with
since you need to learn a much larger portion of the language syntax as
a whole before doing much with it, goofy whitespace-based
scoping/structure makes programmers think of FORTRAN
Both Cons: respective language bigots don't like people saying bad
things about their language or good things about the other...
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:46:09 EDT