Ask Larry Wall 633
About what? Perl is probably a good topic choice. No one knows more about Perl than Larry Wall, right? We'll send 10 of the highest-moderated questions to Larry by email, and post his answers when we get them back. Note: Due to Slashdot's line length restrictions, lines of code over 50 characters long may not display correctly. Please be aware of this if you include code samples in your question.
Why does perl suck so badly? (Score:1, Insightful)
--Jaded distribution maintainer
Re:Other linguas? (Score:1, Insightful)
How did you do such a good job (Score:0, Insightful)
Re:Perl Beginners (Score:2, Insightful)
stands for practical.
Perl doesn't have much linguistic inovations of it is own, it is just a reimplementation
of ages old techniques. The much celebrated syntax is lifted straight up from unix shell
and it is stream manipulating siblings (sed, awk, et al.) That is where the funny $@% prefixes
come from (we know @ is straight from Lisp's backquote and array splicing syntax, much used with
Lisp macros.) The regular expressions are nothing but Lex on steroids, I almost always rewrite
my production perl code with regexes in C and it is very easy to do this, I don't even write C,
I just write Lex rules in a lexfile and implement the case handlers in simple C.
Perl is cool when you are a newbie coder who knows nothing but C/C++/Java, because those languages
are expensive to "set up". You need alot of support code just to implement the simplest ideas.
Perl has alot of things built in; high level data structures, memory management, clean string
manipulation utilities, networking, GUI and more libraries than you can shake a stick at.
But you know what? Perl is only AWESOME because we -as student programmers- were introduced to
very low level languages in school, and don't have any ideas there exists extremely powerful
laguages, with elegant syntaxes to die for.
If you just want to learn about perl's "innovations", I invite you to learn Smalltalk, Prolog, or
Lisp. Mostly Lisp.
I have another viewpoint... (Score:1, Insightful)
Now, for the question: Given this approach to learning Perl (just for a general working knowledge, maybe light usage,) is it really worth spending a lot of my time learning Perl now, or should I wait for the big Perl 6 revision?
Thanks
Re:ugh (Score:1, Insightful)
Ask his opinion on OOP, not language details (Score:5, Insightful)
Most OO fans will say something like "X is the key to OOP". Yet X is always different. X has been "composition", "patterns", "inheritance", "abstraction", "reuse", "encapsulation", "modeling noun interaction", etc. etc. etc.
I would like to ask Larry what he *feels* about OOP rather than what Perl does with it. If you want to know what OOP features Perl has, then RTFM.
Please, don't waste questions on stuff that you can find by RTFM.
(oop.ismad.com)
Re:My Question (Score:2, Insightful)
Ahhhh, Grasshopper, if only that were true.
I have seen firsthand so-called "professional programmers" using Java to create some of the worst God-awful spagetti code I have seen in my 15+ years of . No matter what the virtues and ideaology behind any language, someone can come along and screw it up beyond recognition.
Power tools in the hands of amateurs regularly results in the loss of limbs.
-Steve
Multi-Line Comments (Score:4, Insightful)
Re:Why Perl? (Score:2, Insightful)
Re:Why does perl suck so badly? (Score:2, Insightful)
Easy... (Score:4, Insightful)
A programming language is one that you do like.
Re:My Question (Score:3, Insightful)
Easy... (Score:3, Insightful)
Re:PLEASE ANSWER (Score:1, Insightful)
Yes. Or lie. Or avoid the truth.
I guess you've answered my question.
Although many trust and look up to Larry Wall as a visionary, this doesn't mean that he owes us jack shit.
Well, that seems to be you're response, luckily it's not Larry's.
From LWN (http://old.lwn.net/2001/features/LarryWall/)
CL: Once again about Ruby, until a few years ago, I would recommend Perl with no doubt because of its usability, its big enough development and user community base, many good books, etc. Now, I think Ruby and Python can also be good candidates. What should I do?
LW: Obviously, you should still recommend Perl
So, it really depends on whether if you would just like to learn a smaller language and then you just fight with it all the time, or, learn a slightly larger language and have more fun. I think Perl is still more fun than the other languages.
Re:My Question (Score:3, Insightful)
Irrelevant. Just because a person copies "public static void main" out of example 1.1 in Learn Java in 24 hours doesn't mean they understand what it means. I would wager that 90% of Perl programmers who use "my" regularly don't have a clue about lexical vs. dynamic scoping, but it doesn't matter because "my" does what they expect.