TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why I Use Perl: Reliability

209 点作者 ZeroMinx将近 13 年前

17 条评论

staunch将近 13 年前
Any language would be improved if it had Perl's testing and library culture. Two things it's absolute unsurpassed at so far.
评论 #4040817 未加载
评论 #4040012 未加载
评论 #4039939 未加载
rcthompson将近 13 年前
For any value of $LANGUAGE, imagine this situation: your boss comes to you and say "Hey, they just released a new major version of $LANGUAGE today. Can you go upgrade it on all our production servers?" What is your emotional response to that request? For many values of $LANGUAGE, there would probably at least some element of terror (for many languages, probably much more than just "some"). But Perl is one where, depending on the circumstances, the response could plausibly be as article says: boredom. "Yeah, sure, whatever. I'll go upgrade them." (Certainly there are others, but Perl is definitely one of the best in this regard.)
评论 #4040200 未加载
评论 #4040818 未加载
评论 #4042000 未加载
pauljonas将近 13 年前
7-10 years ago, Perl was my daily bread and butter. It was the language I used the most, and not only did it supplant a lot of C code, but was the optimal scripting solution.<p>Now, for me, Ruby has supplanted Perl in nearly every conceivable way -- OO Perl was always painful, and I do not miss ever having to bless a refrent again…
评论 #4040000 未加载
jwr将近 13 年前
I was about to note that the OP clearly hasn't used Clojure if he uses it as a negative example in terms of reliability, but then I remembered — I promised myself not to get too deeply into these kinds of silly discussions.<p>So, dear OP, good luck writing your large-scale multithreaded high-performance distributed applications using Perl.<p>And BTW, I do use Perl quite a bit and I really like it, for certain tasks. But I'd never make these kinds of comparisons.
评论 #4039856 未加载
评论 #4041514 未加载
评论 #4039834 未加载
评论 #4065157 未加载
f055将近 13 年前
Perl is like C++ for the Web. Bulletproof. Unless you intentionally remove the kevlar plates. But then it's on you ;)
评论 #4039102 未加载
michaelpinto将近 13 年前
Yes Perl is a great language -- stability, maturity, etc. But does anybody realize just how hard it is to find decent Perl programmers? It's not a large community to begin with and the pool of decent programmers is even smaller.
评论 #4041100 未加载
评论 #4047527 未加载
评论 #4041268 未加载
grout将近 13 年前
The readability arguments need to include such modules as Method::Signatures::Simple, which replaces the old manual method (no pun intended) with:<p><pre><code> method foo ($a, $b) { $self-&#62;blargh($a + $b); }</code></pre>
评论 #4040178 未加载
评论 #4040408 未加载
评论 #4039883 未加载
c250d07将近 13 年前
Good article with some good points. But it did get me thinking, is Perl getting ready to be in a prime position to become the next Cobol? Probability will go up considerably if Perl 6 never comes out to shake up the ecosystem, but even if it does come, what's to say that there won't be Perl 5 applications running into the next century?<p>Combine its shorthand and with the fact that it's already getting hard to find Perl people, and we could see some dedicated Perl warriors doing very, very well in the coming years.
评论 #4039303 未加载
tlianza将近 13 年前
The article makes a good point. But, the title (and comments here) infer that there are a mountain of reasons why people don't use it. Is there a compelling argument against that mountain, or is this just a reminder that Ruby/Python/Closure/Scala communities would be well-served to try and improve in this area?
评论 #4039467 未加载
knighthacker将近 13 年前
Reliability, community, and CPAN are some of the main reasons we use Perl at Crowdtilt! Good article.
jhuni将近 13 年前
A quick note on sigils: recently I have been thinking that the dollar sign sigil could be used to denote place forms such that $_ is the top place form. Any place form could be cast into a function to be used on any object, for example you could use the place form $first on a collection like &#38;$first(coll) and you could always set the value of a place with something like setf($first, 1).<p>Inside any function $_ will refer to the argument of the function, so you could program without ever using named parameters like in Perl 5. A parameters list like ($x,$y,$z) will just create new place forms rather then variables. I think this would make for a pretty interesting programming language semantics. On the other hand, I don't see much use for the @ and % sigils because I just consider lists to be structures with numeric places and maps to be structures with general places, so I actually prefer PHP style sigils.
ma2rten将近 13 年前
I remain unconvinced. Should the amount of effort that it costs to update the interpreter really be the main consideration?
评论 #4039212 未加载
评论 #4039296 未加载
评论 #4039210 未加载
评论 #4039529 未加载
madhadron将近 13 年前
Unleash the smug Lisp weenies! After all, Perl's stability is minimal compared with Common Lisp's.
评论 #4039888 未加载
danpalmer将近 13 年前
Language keywords:<p>Ruby ~40 Python ~40 Java ~50 Perl ~1800<p>Perl can have all the community support, packages, and testing that it wants, but I dislike programming in it and find it difficult to code in. This is not because I have only ever done Ruby or Javascript, I would consider my strongest languages to be Objective-C and Java, I have used C quite a lot, I know what I am doing with programming languages. I just dislike Perl.<p>Did you know there is a Perl package that will catch references to undefined symbols and fuzzy match them to the closest it can find in the current scope. To me, that seems to be the marker for the general quality of the code.
评论 #4041060 未加载
评论 #4040640 未加载
评论 #4041998 未加载
评论 #4040769 未加载
TheRevoltingX将近 13 年前
I've used Ruby, Java, and Perl professionally and my favorite by FAR is Perl.
评论 #4042211 未加载
nthitz将近 13 年前
Reliability? Sure. Readability? Not so much.
评论 #4039241 未加载
评论 #4039598 未加载
评论 #4039235 未加载
评论 #4039476 未加载
评论 #4039343 未加载
评论 #4039323 未加载
评论 #4040067 未加载
评论 #4039217 未加载
nyddle将近 13 年前
Speaking of Moose, dependencies and reliability: I love Perl but today having to download the whole CPAN to use a MongoDB driver (based on Moose) forced me to switch to pure javascript with mongo js interpreter.
评论 #4042637 未加载