Re: How much PERL useful ?
by blue_cowdawg (Monsignor) on May 21, 2005 at 04:30 UTC
|
I don't know about other folks or their preferences for
languages to program in but here are some of the criteria
I use in deciding what language I'm going to write
"something" in.
Compiled, assembled or interpreted?
If I'm going to write something targeted for an embedded
system I'm going to write it in C against a cross compiler
or if I need really tight code I'll write in
assembler. This is not to take anything away from such
targets like Basic Stamps® which you use a
"compliator" to convert code written in a
BASIC like language into target code.
So where does Perl fit in? See my next comment.
Portability and maintainability
I hate rewriting the same code over and over again. One of the first things I discovered about Perl when I first
started writing in it in 1988 was as long as I could
port the interpreter to a platform (and at the time I was
working on AT&T 3BX machines, HPUX machines, Solaris
and SunOS machines all at the same time. If I wrote a
system administration script I only wanted to write it
once and believe me a Bourne shell or K shell
might not be portable due to differences in shell commands
between flavors of Unix®.
No dependencies (or minimal dependencies) on
proprietary software If I write something I don't
want to have to worry about violating a license if I
install it somewhere else. This was one of the first things
that sent me to use Perl, gcc and a host of other
tools at the time. Later when Open Source became a reality
I found myself using OS tools more and more in the
professional world I live in.
So, in keeping with my life-long philosophy of
"Right Tool for the Right Job"
I find myself using Perl for the majority of the coding
that I do. I do use other languages. For instance my
personal website is a collection
of JSP pages with an underpinning of Java® servlets and
filters. There are also on my hosted site cronjobs written
in Perl and BASH. Not to mention stored procedures written
in SQL (Postgres actually)
in the backend database.
To the bigots and zealots of any stripe: Sorry, there is
no one tool that does it all. Close.. but no cigar.
| [reply] |
Re: How much PERL useful ?
by jonadab (Parson) on May 21, 2005 at 13:53 UTC
|
I go through about some perl and advantage. I have some notes. But, i want what is the advantage when compare to other languages.
When compared to which other languages?
Different languages have different strengths and
weaknesses. The advantages of Perl over Lisp are
quite different from the advantages of Perl over C,
for instance. However, in general, there are five
major reasons that I like Perl, as follows:
- The CPAN. The hard parts of most programs are
already written for you.
- Perl is a multi-paradigmatic language, thus
allowing you to use the best paradigm for solving
any given problems. Some problems lend themselves
well to an object-oriented solution. Perl supports
that (and it's getting a lot better in Perl6).
On the other hand, some problems lend themselves
more readily to a functional or procedural or
hybrid approach, and Perl supports those too.
- The CPAN. When you need a library, you don't have
to hunt all over creation and back, because you
always know right where to find it.
- The documentation. The Camel book is easily
the second-best computer-related book I have
ever encountered. (The best is the Inform
Designer's Manual, which probably ought to be
studied in literature classes.)
- The CPAN. It does your work for you.
What is the security we are providing when compare to other languages (particulary in web).
If you are concerned about security, you should definitely look into taint checking.
Nowadays, microsoft(vb.net) and sunbeam products(java products) is some high pitch than perl. so, what is the reason why they prefer those softwares. so what are the drawbacks in our software. How we going to solve them the bugs in possible ways.
I'm not clear exactly what you're asking here.
Are you asking why we prefer Perl over VB and/or
Java? Those are two very different questions.
Java actually is good for some things; notably,
for GUI stuff, it has some things Perl so far
lacks. However, in general, Java just feels
wrong to me in ways that Perl feels right,
particularly in terms of binding and paradigmatic
issues. As far as VB, my opinion on that has always
been that VB is more of a (quite good) macro toolkit
for Windows -- it works very well for that, but as a
programming language it leaves a lot to be desired.
Things Perl has that VB doesn't include, among other
things, very good text-handling capabilities,
general paradigmatic flexibility, sensible variable
scoping and binding semantics, and the CPAN. Did
I mention the CPAN already?
what are all the things very useful and easy in perl to done when compare to other language. (For eg. we can do these thing in perl it's easy and fast when doing that software is very vast like that).
This is really not very different from your first
question, and again, I have to say that Perl's
advantages really depend on what language you're
comparing it to. Unlike lesser languages like VB
(which is basically a one-trick pony: unless your
main goal is to whip together a dialog box real
quick, it has no other strengths), Perl has *lots*
of strengths; any given one of them may be something
that a lot of languages have, but when you compare it
to any given other language, you see the things that
Perl has that the other language doesn't. So to
answer these sorts of questions properly, you really
need to specify *which* other language you want to
compare Perl to. *Most* tasks are very easy to do
in Perl compared to many other languages. The only
notable exception I'm aware of is GUI development
(unless you count a CGI front-end as a GUI, in which
case Perl is great for that).
"In adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."
— Pratico & Van Pelt, BBHG, p68
| [reply] |
Re: How much Perl useful ?
by mrborisguy (Hermit) on May 21, 2005 at 03:30 UTC
|
Nowadays, microsoft(vb.net) and sunbeam products(java products) is some high pitch than perl. so, what is the reason why they prefer those softwares. so what are the drawbacks in our software. How we going to solve them the bugs in possible ways.
I would say that one of the big things is that .NET comes on most new computers. A Java Runtime Environment comes on most computers. Perl doesn't come on most (Windows) computers by default. And that's one of the big problems.
I don't really know how to solve that though.
If we giving awareness in perl what are the points we can mention. (and all of your questions about advantages)
Why do you like using Perl? There are the advantages. Me, personally, I don't feel like I need to be concentrating on syntax all of the time. Also, I don't feel like I have to worry about all of the details all of the time. That means to me that I can get right to the heart of the problem without worrying about everything else... which makes me work faster.
It was a learning curve, but once I got it, I can do something in Perl a lot faster than in any other language! That doesn't mean the programs run faster; that means I'm done faster. For the amount of computation I tend to do, that a program run time of 30s vs. 20s doesn't matter if it took me an hour to program in Perl vs. three hours in a different language.
-Bryan
| [reply] |
|
|
Why do you like using Perl? There are the advantages. Me, personally, I don't feel like I need to be concentrating on syntax all of the time. Also, I don't feel like I have to worry about all of the details all of the time. That means to me that I can get right to the heart of the problem without worrying about everything else... which makes me work faster.
Agreed there. I'm currently embarking on a Python project. Just another "right tool for the job" project. I've used python before, it's not a bad language, I just don't feel comfortable with all the rules. When I write code in perl I don't think about those rules, I just write the code. I prefer perl over almost any language I've used in the past, doesn't mean I get to use it all the time though. When another language makes more sense for the job, I switch gears. I figure I can always look forward to my next perl project. :)
| [reply] |
Re: How much PERL useful ?
by dragonchild (Archbishop) on May 22, 2005 at 02:04 UTC
|
I use Perl because it allows me to get my work done quickly. A tool where I currently work was written in Perl. It took one person 4 days to write it, and Marketing was happy because a change took an hour or so. Due to politics, the project was taken over and rewritten in Java. It took 4 developers 6 months to rewrite it, and Marketing has not been happy because a change takes 4 days.
I also use Perl because 90% of every Perl application has already been written, tested, and just plain-old works. No other language now or in the past has ever had that.
Perl is not the best tool for all jobs. It just happens to be an excellent tool for the jobs I tend to work on.
- In general, if you think something isn't in Perl, try it out, because it usually is. :-)
- "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"
| [reply] |
Re: How much PERL useful ?
by TedPride (Priest) on May 21, 2005 at 08:05 UTC
|
Perl is simply the easiest language to write heavy-duty code in. A line of Perl is a paragraph in any other language, and will probably run more efficiently as well. Perl has modules for just about everything. This is not to say that Perl is necessarily the best tool for every job - I prefer PHP for most high-volume, low complexity tasks - but Perl is definitely the best language for custom-designed code. I can throw together a rough draft of my application in an hour or two, juggle it around a bit, then rewrite in some other language once I've figured out what I want to do. If I tried to write in the other languages from scratch, it would probably take me days. | [reply] |
Re: How much PERL useful ?
by sh1tn (Priest) on May 22, 2005 at 00:46 UTC
|
One important note (IMHO) - Perl is formal and informal language.
Good starting point to rethink your questions?
| [reply] |
Re: How much PERL useful ?
by perlsen (Chaplain) on May 24, 2005 at 04:47 UTC
|
Perl is More useful
- when one can want to do the task in simplest, easier and fastest way to complete the task.
- Do the same or repeated task in text manipulations in large files.
- Data conversion or text processing jobs IN e-publishing.
- One who wants to learn the language quickly he can choose PERL due to its simplicity in syntax and operation is in greater.
- Due to presence of large availability modules from CPAN.
- One who wants to do the new things, most probably it was done by others in CPAN, so it gives some idea to new comers.
These are the most important things perl tends to be MOST useful
I realy appreciate the new guys to come to learn perl
| [reply] |