|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why like Perl?
by brian_d_foy (Abbot) on Jan 13, 2005 at 01:05 UTC | |
I'm not really a programmer, or at least I don't really consider myself one primarily. I always wanted to be...a lumberjack! Well, not really, but I never thought about being a programmer until I had already started doing a lot of programming as a scientist. Along the way I've run into a lot of languages. The things I like about Perl are probably best reflected in the reasons I don't use other languages. This isn't a knock on other languages: just a personal cost-benefit analysis and a bit of personal preference. Furthermore, once I made the commitment to Perl, I'm locked in. Switching costs can be pretty high once you choose your rut. Perl is mostly stable: I used to like Java. I really don't have anything against it, and I haven't used it recently, but I was a partner in a company where another partner was a guy on the JavaSoft team. So, we used some Java. Then things got funky and Java became a moving target. I liked Macs, but despite that fact that JavaSoft was literally across the street from Apple, the Java runtime on Macs sucked. Perl's getting to be a little like that with the changes in various core modules, but certainly not as bad as the Java 1.0 days. Java is probably a lot more stable now, but I made the switch a long time ago. Perl works with other things: I like Smalltalk, but unless I want to immerse myself in something that nobody else besides Ward Cunningham and 200 other people in the world know and use, I'm not going to get a lot of work done. I think Smalltalk would be more interesting if my machine was a Smalltalk environment, but it's unix, so it isn't. Unix let's all sorts of things talk to all sorts of other things. Perl has sigils and CPAN: Python is nice. I like Python. There is a lot of good stuff there. However, it's missing sigils. Every time I try to use something in Python, I run into some problem with reserved keywords. A couple times a year I try to do everything I need to do in Perl in Python, but have a hard time finding the right modules. Perl isn't object-oriented, and Perl has CPAN, part 2: Ruby is nicer than Python. Ruby is a wet dream, really, and I mean that as a compliment. It's as old as Perl 5. They have a nice community. They are getting more and more modules together. I even wrote a couple of Ruby articles, I think. Still, Ruby is object-oriented, and sometimes I don't need objects. There is some project size where an completely OO system costs as much as a procedural one, but I still do a lot of small things with Perl, so I don't want the extra OO baggage all the time. If I had to switch languages, I'd be all over Ruby. (Wait, that doesn't sound PC). Perl isn't FORTRAN: FORTRAN is a pain in the ass unless you are doing formula translation, but the thing I hate is the code I've had to deal with. Once it's running it's really, really fast, and if I needed to calculate blast waves it might be the right tool, but I've found FORTRAN programs that would make the messiest Perl like neat. It's not really FORTRAN's fault: I blame the scientists. I also had to use it on VMS, which sucks the biggest donkey in the world. Perl is about data, not computers: Do I really want to manage memory? Not really, but otherwise C is okay if I need all the power of assembly language with the ease-of-use of assembly language (stolen quote from somewhere). Sometimes I need that. Not often though. Perl is written in C, so it can't be all that bad. It's strongly typed, too. Perl only needs the command line: I only learned C++ because I thought it would be a good thing to do. It was, I guess, but I hear a lot of horror stories about what C++ programmers actually have to do, and most of the ones I've talked to use some sort of commercial IDE. That's certainly not representative, and I certainly didn't use an IDE when I did C++, but that's what I hear C++ people talking about. Perl gives useful output: Lisp is okay, I guess. I know Paul Graham built ViaWeb then Yahoo! Stores around it. Every time I look at it I see a bunch of mathematical masturbation without interesting results. Functional programming doesn't quite fit in with the real world, methinks. Calculate the Nth root of some polynomial all you like, and I'll be over here parsing some text. I haven't done anything serious with it though.
-- brian d foy <bdfoy@cpan.org> | [reply] |
|
Re: Why like Perl?
by friedo (Prior) on Jan 12, 2005 at 19:29 UTC | |
1. I like Perl's freedom. OOP theory states that you shouldn't violate object encapsulation. But what if I really really want to, just this once? In Perl, I can. And I can also be a disciplinned programmer and demand that everything I do be designed properly with accessors and mutators and whatnot. The point is, if I want to do a quick hack to solve some immediate problem once, I can. Other languages are authoritarian; they have a design philosophy and don't permit you to violate it. Perl lets me choose my own philosophy. 2. I like Perl's expressiveness. The malleable syntax and plethora of operators takes a long time to learn, but once you do, you can do pretty fanstastic things in a very small amount of code. Just look at a Schwartzian Transform. 3. I like Perl's context-sensitivity. Even though it looks much less like English than highly rigid languages like Java or Python, Perl behaves much more like a natural language. Words behave differently depending on what words they're next to, just like in real languages. That makes some things easy and other things hard, but it's definitely a lot more fun. Programming Perl is more like writing a foreign language than simply doing math. 4. I like Perl's people. The features I mention above tends to attract some of the best and brightest programmers around. People who want to delve into the gritty details of a language and explore its every facet, because to do some things you have to. The result is a community that filters out a lot of people who don't have true passion for the art of programming. | [reply] |
|
Re: Why like Perl?
by uksza (Canon) on Jan 12, 2005 at 21:31 UTC | |
I like Perl for: I was looking long time for something for me, and I found Perl. He's mine and I'm yours, brothers... Lukasz | [reply] |
|
Re: Why like Perl?
by kutsu (Priest) on Jan 12, 2005 at 20:24 UTC | |
I like perl because it's versitile. I can learn one language and have something that works well creating reports, making web-based applications and sites, and have a very powerful scripting language (that is fairly easy to replace or work with bourne and ksh/zsh) - these 3 being my main three jobs at work. Also perl's just fun to create useless and strange looking programs with which you can amaze your friends ;). I dislike using perl for executables. I've been looking at PAR (and other such modules/methods) but have yet to have a chance to try it, so that might change. I note you didn't meantion your reasons for liking/disliking perl and if we are to tell our reasons it's only fair that you share your's. "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce | [reply] |
|
Re: Why like Perl?
by Anonymous Monk on Jan 12, 2005 at 20:35 UTC | |
I generally like the community attitude, talent and expressiveness. I dislike the bolted-on OOP, for the times when I like to use OOP. I like that Perl is available for everything, everywhere, and it doesn't get in your way. I like the mallability of the language, but I dislike the solution to "fix" Perl (and Perl OO) by source filters rather than language design (lots of OO modules are an example). | [reply] |
|
Re: Why like Perl?
by Mr. Lee (Scribe) on Jan 12, 2005 at 20:32 UTC | |
What I don't like, it seems complicated, that often thing have "different meanings" == they are not strictly obvios. Why we write $array[1] and other strange things. It is often hard to find the right thing in the documentation. Especially when you are not english native speaker. But what I also like in the documentation and community is the humor sometimes. And that Perl is free and with a community instead of a company. I really can't say much competent about Perl, I can't compare it with PHP, because I don't know PHP. I don't know Java. I even don't know C. What can I say? Last time I asked a meditation question, I found many answers that gave me good ideas, what to do, what to learn etc. so I asked this, when it came to my mind. Hope you don't mind my question. Edit by castaway - swapped square brackets for HTML entities | [reply] |
|
Re: Why like Perl?
by perlsen (Chaplain) on Jan 13, 2005 at 10:14 UTC | |
I like perl for the following reasons 1. User friendly way of coding. 2. Easiest way of learning and applying the programming ideas to get our required output. 3. I like Regular expressions features because now we are using in our applications. 3. it covers all the programming languages features. 4. This takes less time to create the code and solve the problem. 5. We can use and apply the coding already exist in the module (CPAN). 6. TIMTOWTDI Nature. Thanks | [reply] |
|
Re: Why like Perl?
by nimdokk (Vicar) on Jan 13, 2005 at 12:54 UTC | |
| [reply] |
|
Re: Why like Perl?
by tcf03 (Deacon) on Jan 12, 2005 at 21:20 UTC | |
| [reply] |
|
Re: Why like Perl?
by blazar (Canon) on Jan 13, 2005 at 11:14 UTC | |
One thing that it seems to me not to have been mentioned yet and that I like particularly in Perl is the pervasiveness of natural-languages like principles. Of course there are also some typical Perlisms moderately to consistently deviating from said principles. But for some reason everything seems to fit quite fine as well, and indeed to me they look like being just as "natural". In fact I like the freedom and the flexibility I'm given, although I'm aware also of the potential risks in them. All in all it's difficult to say exactly what you like in Perl, just as much as it's often difficult to describe exactly what you really like in anything or FWIW anyone you like. I can only say that I've tried many (well, maybe a bunch of is more like it) different languages, but I could not get hooked with any of them. Instead I started using Perl because I had a few tasks to perform and I simply tried it, then I found it unvaluable to do more and more things, so that for some reason that I can hardly explain I couldn't help getting hooked with it. | [reply] |
|
Re: Why like Perl?
by gube (Parson) on Jan 13, 2005 at 10:07 UTC | |
Good Question
I gone through many platforms. I have never seen much more easy way like perl. Perl is very useful in all the sides in typesetting fields, programming fields, and web designing and also in networking sides. Easily all can observe the perl coding compare with other languages. The CGI perl is very useful. In perl, we can arise questions and get answers through monks like this we can't do in any other languages. All were helping always with creating some modules. so, i like perl very much. Easily understandable language when compare to other language. Regards,
| [reply] |
|
Re: Why like Perl?
by Ytrew (Pilgrim) on Jan 16, 2005 at 21:02 UTC | |
-- Ytrew | [reply] |