On Thu, Mar 29, 2001 at 10:14:35PM +0400, Ilya Martynov wrote:
| 
| D> | You can write obfuscated programs with any language, even with python.
| D> | The programmer should use the language (any language, not just perl or
| D> | python) resources judiciously to improve readability and
| D> | maintainability.
| 
| D> This is true, though I've found obfuscated python to be rather
| D> difficult to create due to it's indentation rules (whitespace is
| D> significant).  However, someone on c.l.py used parenthesis to work
| D> around the rules and made a cute program that printed a christmas
| D> tree, but only after christmas, not before.  Check the mailing list's
| D> archives if you want to see it.
| 
| Obfuscated programs doesn't means only bad identation. Bad programmers
| always can use stupid names for variables, methods, classes, etc. They
| can have non-trivial program flow and so on. It all applies to Python
| too.

I must be on vacation or something,  of course you can have bad
design/implementation (and thus obfuscation) in any language.  

| D> | Perl allows one to write both procedural and OO programs. Perl OO model
| D> | is very simple, flexible and powerful.
| 
| D> I've heard that perl added an object model recently, and I've also
| D> heard that it isn't very good.  Both are hearsay as I have no
| D> experience with perl's object model.  I think someone once said that
| D> perl tried to follow python's object model as an example, but again
| D> that is not a hard fact.
| 
| Perl OO model is good enough to be able write *very* big programs
| using OO methodology.

Ok, I said that my comments were all hearsay and not from actual
experiences.

| And anyways Python is far from ideal if you want clean consistent
| object oriented scripting langauge. If you need it your choice should

Could you explain to me what you think python is lacking in this
respect?  (perhaps this should be taken off-list now so we don't annoy
the other people on the list too much.

| be Ruby.

I've only taken a cursory glance at Ruby, but it has been discussed
many times on c.l.py.  Ruby seems like a Smalltalk-Perl-Python combo.

| Personally I think that Perl and Python are equal in some way. Both
| languages does not have strong advantages againts each other. I don't
| belive that any project that written in Perl can be made faster and
| better in Python and vice versa. There is just exist some differences

Some things are faster in perl such as regexes and IO.  This is also
well known on c.l.py, but (some) people prefer python's design
anyways.

| in concepts that make some people fill more confortable with one of
| them.

This is where the biggest choice lies -- which design do you feel is
cleanest and easiest to work with while actually getting some work
done.

For one thing I rather like the look of python code with its absence
of curly braces and semicolons.

-D

Reply via email to