Hi there, I need to learn a scripting language and I was just about to start with Perl. But then I read a very positive article about Python in the LinuxJournal (written by Eric Raymond). A lot of people recommend Perl, simply because the majority uses it. But is that a good enough reason? Cheers! -- Yatsen Ng yatsenng@casema.net It said "Needs Windows 98 or better." So I installed Linux... -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
* Yatsen Ng <yatsenng@casema.net>:
A lot of people recommend Perl, simply because the majority uses it. But is that a good enough reason?
As I see in your sig, you know that the answer to that is no:
It said "Needs Windows 98 or better." So I installed Linux...
Why would it be any different with programming languages? I recommend that you make a decision based on the same method, considering which is better for you and not which is most used. Keep in mind that saying you shouldn't use Python because nobody else does is becoming inaccurate: the user base of Python is apparently growing at a faster rate than that of Perl (this is claim derives from the attendance rates of conferences, I can't remember the URL). If you go to http://www.python.org/stats/ you can get a (poor) idea of some numbers of people using python. Most people who have Linux though, never download it because it comes with the distribution. That is not true with windows: /ftp/python/win32/py152.exe was accessed 33,316 times (starting 21 Aug 1998). If you want comparisons between perl and python -- http://www.perl.com/pub/language/versus/ -> http://www.perl.com/pub/language/versus/python.html http://www.python.org/doc/Comparisons.html I've don't use Perl so I can't be very helpful, David -- Pursed lips do blow upon cool flutes within wide glooms, and slow deep trees perpetual of golden snow. -- e.e.cummings in a blender -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
I read that artical too. Picked up orialys learning python nad just started it. When I looked into pearl its just too cryptic , especialy in its typing and just the way the code looks. I realy like what I have seen pf python and plan on realy finishing the book. It has hoods into tcl/tk and postgress as well. It seems to be a higher leval and has built in oop , not oop as an afterthought.Not this is what I as a newbie have picked up on. YMMV There are several tutorials on the python home page as well. At 11:26 PM 5/31/2000 +0000, Yatsen Ng wrote:
Hi there,
I need to learn a scripting language and I was just about to start with Perl. But then I read a very positive article about Python in the LinuxJournal (written by Eric Raymond). A lot of people recommend Perl, simply because the majority uses it. But is that a good enough reason?
Cheers! -- Yatsen Ng yatsenng@casema.net
It said "Needs Windows 98 or better." So I installed Linux...
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Wed, 31 May 2000, Yatsen Ng wrote:
Hi there,
I need to learn a scripting language and I was just about to start with Perl. But then I read a very positive article about Python in the LinuxJournal (written by Eric Raymond). A lot of people recommend Perl, simply because the majority uses it. But is that a good enough reason?
To start with, I've never worked with either at all. I have a Python book around here someplace but haven't had time to start on it yet. I may also have a Perl book but I'm not sure. After a certain point, languages fall into just a few categories and if you've mastered a category, another language in the same category is no big deal. I have, literally, learned a new language (well enough to make major changes to a program) solely by reading badly-written and comment-free source code. (Except that I didn't learn how to write comments, which was very frustrating.) But then, I've been doing this for a living for more than twenty years, and as a hobby for even longer. I figure by now I've worked with maybe 20 dialects of Basic and maybe 20 other languages, NOT including the one college course I took that spent as much as two weeks on each language before moving on to the next. (The most important thing I learned in that course: APL is a write-only language, and APL language manuals and texts are written in APL. The second most important thing: if you want to learn Lisp, first find an instructor who understands Lisp. But some of the other languages were interesting, and SNOBOL was actually fun.) What matters a great deal more in any sort of event-driven and/or object-oriented language is the object model it uses for its environment and objects. By all reports I have read (not just that one), it appears that Perl's object model was shaped in several segments semi-independently and then rammed and mashed together until it sort of stuck. Whereas Python, again by numerous reports, has a pretty good object model. If you have not dealt with an object-oriented scripting language before, then I *strongly* recommend you pick the one with a good object model to start with. It's enough to learn the basic concept, without having to learn several overlapping object models simultaneously and remember when each one applies. If you already have dealt with several such languages, then it matters less - but it still matters, and the better object model will be easier to learn and to work with. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
If you have not dealt with an object-oriented scripting language before,
Very good piont. When I was activly looking into java , I had a lot of problems with the objects , classes ectt. I was used to delphi and using the ide and gui components , slapping them on the screen , then manipulating there properties in the ide and then editing any code needing finnalization or re working to get it to do what I wanted. With java your on your own from the get go. YOU need to create everthing from code whith code. Thats basicly why I havent rely persueded it , as well as the fact that its a verbose lower leval language in comparison to delphis pascal. Pthon is interesting in that it has a cleaner opp model than perl . I realy was stumped by perls typing as compared to pascal. It realy confused me , so much so that I realy did not persue it any further,I do like the idea of the python command prompt , makes for an easy way to play with short peices of code , seems like a simpler language to start with as compared to java , and it appears thet you can get productive with it very quickly compared with java. I suspect it runs quicker than java on the lower ens machines , and that its gui is not as sophisticatd as java as well. I havent gotten far enough in either to tell you if this is so. Another thing I realy liked was the forced indentation , realy makes for moore readable code. then I
*strongly* recommend you pick the one with a good object model to start with. It's enough to learn the basic concept, without having to learn several overlapping object models simultaneously and remember when each one applies.
If you already have dealt with several such languages, then it matters less - but it still matters, and the better object model will be easier to learn and to work with.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Wed, 31 May 2000, Yatsen Ng wrote:
Hi there,
I need to learn a scripting language and I was just about to start with Perl. But then I read a very positive article about Python in the LinuxJournal (written by Eric Raymond). A lot of people recommend Perl, simply because the majority uses it. But is that a good enough reason?
And on June 03, 2000, Don Edwards wrote, To start with, I've never worked with either at all <snip>
If you already have dealt with several such languages, then it matters less - but it still matters, and the better object model will be easier to learn and to work with. <snip>
I am not a Perl expert. I do work at JPL, where Larry Wall creator of Perl used to work and get the opportunity to see lots and lots of Perl. It is interesting to note that Perl courses taught here teach object model and data scoping only in the most advanced course. A disturbing choice since management will often only have funding for fundamental courses. Object model and data scoping were not designed into early versions of Perl but added on later. Perl has many nice capabilities though the features that provide them occasionally feel as though they were "inherited" from very different sources. An expert Perl programmer can accomplish lots of work in very few lines but the causual observer may wonder if those lines aren't in a Perly varient of APL. Python seems to offer many of Perl's capabilities and to be applicable to similar projects while having a feel of greater consistency throughout the language. Perl has been around longer so has more books, courses and users, but Python seems to be reaching a threshold where that won't matter as much and it can grow quickly in popularity. In some cases, like working with Java and WxWindows for example, Python already seems to have an edge over Perl. Unless you already have lots of code in Perl to support, I would pick Python. Ed Opinions stated here are entirely my own and not those of my employer or any associated organization. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Sorry to get into this discussion so late - but too many people are picking on my favorite language - and I have to stand up for it. Perl is a great, smart, easy, cross-platform language that also has loads of code to view if you need to see how something is done. Perl has other advantages too - for instance, I bet every single web host that offers a cgi-bin will support Perl, but you can't say that for Python. Additionally, Perl can use the TK library (Perl/TK) just like Python. It can also use GTK and QT like Python. Perl has the support of major corporations such as Excite@Home, and from what an inside source tells me - even Microsoft. Perl will run on Unix, Windows 3.1, Windows 9x, NT/200, MacOS, and other operating systems. I could go on and on... Pick the "camel's choice" - you will be pleased. -Tim ----------------------------------------------------------------- Timothy R. Butler Universal Networks Information Tech. Consultant Christian Web Services Since 1996 ICQ #12495932 AIM: Uninettm An Authorized IPSwitch Reseller tbutler@uninetsolutions.com http://www.uninetsolutions.com ===================== "Solutions that Work" =====================
-----Original Message----- From: Yatsen Ng [mailto:yatsenng@casema.net] Sent: Wednesday, May 31, 2000 6:26 PM To: suse-linux-e@suse.com Subject: [SLE] Perl / Python
Hi there,
I need to learn a scripting language and I was just about to start with Perl. But then I read a very positive article about Python in the LinuxJournal (written by Eric Raymond). A lot of people recommend Perl, simply because the majority uses it. But is that a good enough reason?
Cheers! -- Yatsen Ng yatsenng@casema.net
It said "Needs Windows 98 or better." So I installed Linux...
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (6)
-
edscott@worldnet.att.net
-
jcm@bigskytel.com
-
samelash@ix.netcom.com
-
tbutler@uninetsolutions.com
-
warrl@blarg.net
-
yatsenng@casema.net