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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ancient languages: Perl (2004)

73 点作者 fogus将近 12 年前

15 条评论

sigil将近 12 年前
A later Yegge post sums up my reaction to this (I still write Perl from time to time):<p><i>As I&#x27;ve done for a great many other programming languages, I&#x27;ve bashed on Perl&#x27;s technical weaknesses at length in the past. To my continued amazement, the Perl folks are the only ones who never get upset. They just say &quot;Haha, yeah, boy, you&#x27;re right, it sure is ugly. Heh. Yeah, so, um, anyway, I&#x27;m going to get back to work now...&quot; It&#x27;s awesome. I&#x27;ve gained so much respect for them. It&#x27;s almost enough to make me go back to programming in Perl. Well, almost.</i><p><a href="http://steve-yegge.blogspot.com/2006/10/egomania-itself.html" rel="nofollow">http:&#x2F;&#x2F;steve-yegge.blogspot.com&#x2F;2006&#x2F;10&#x2F;egomania-itself.html</a>
peterwwillis将近 12 年前
Fun fact: Perl probably encompasses more supporting library code than any other language other than C.<p>The Comprehensive Perl Archive Network (CPAN) currently has 123,757 Perl modules in 28,037 distributions, written by 10,829 authors, mirrored on 270 servers.<p>Back in 2004 (almost 10 years; there&#x27;s been some developments since then) someone ran SLOCCount on all of CPAN, and it estimated the development cost at about $677 million dollars. <a href="http://web.archive.org/web/20041010230806/http://www.etla.org/cpan-sloccount-report.txt" rel="nofollow">http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20041010230806&#x2F;http:&#x2F;&#x2F;www.etla.or...</a><p>Before you choose another language for your project, ask yourself if it&#x27;s not going to cost more to write everything you&#x27;ll need, or if using pre-existing, time-tested code might do the trick for cheaper.<p>The one downside about Perl that I think is the most unfortunate is the ninja aspect. You have to be a Perl ninja to write good Perl code. There&#x27;s no two ways about it. If you come from a different language, you have to ignore all the rules and guidelines you used to develop in, and learn the Perl way, or be ye damned. Which is why most Perl code you&#x27;ve been forced to maintain sucks.
评论 #6160406 未加载
评论 #6160271 未加载
评论 #6160803 未加载
评论 #6161458 未加载
cdoxsey将近 12 年前
His take on Larry Wall is terribly uncharitable:<p><pre><code> First: Larry is insane. This means more to me than anything in the language itself. I prefer my heroes to have a firm grasp on sanity. I was never a fan of Don Quixote. Larry says God talks to him, and tells him that He hates non-Perl programmers. Larry is a fruit cake, a nut job, crazy as a loon, batty as a belfry. </code></pre> Having read the interview (<a href="http://interviews.slashdot.org/story/02/09/06/1343222/larry-wall-on-perl-religion-and" rel="nofollow">http:&#x2F;&#x2F;interviews.slashdot.org&#x2F;story&#x2F;02&#x2F;09&#x2F;06&#x2F;1343222&#x2F;larry-...</a>) I don&#x27;t see how anyone could come away thinking this. Larry Wall seems like a nice guy to me.
评论 #6160219 未加载
评论 #6162454 未加载
ceautery将近 12 年前
&quot;First: Larry is insane.&quot;<p>As cdoxsey says, this as uncharitable, however it&#x27;s not without a grain of truth. He&#x27;s a bit of a loon, but a lovable loon.<p>That being said, what he helped add to the technology ecosystem is as important as GNU&#x2F;Linux. Perl is remarkably expressive, and I&#x27;ve found in my 18 year IT career that no other single tool has paid me back as much for investing my energy into learning it, both in better &quot;kung fu&quot; (than you Ringo Langly), and also in plain old cash-money.<p>It&#x27;s worth adding to your bag of tricks, even if you feel, as the article&#x27;s author does, that the docs are unwieldy, the community is filled with zealots and cults of personality (to Larry himself, as well as to Merlyn and his ilk), and the syntax is irritating. It&#x27;s still worth your time. If you invest enough in it to grok the language, you __WILL__ be a better overall developer.
snorkel将近 12 年前
&quot;Every operator in Perl (not just the Range operator) has six different behaviors depending on the invisible context in which its surrounding expression is being evaluated.&quot;<p>... and unfortunately context sensitivity of operators became much more prevalent in Perl 6 than Perl 5. It was hard to imagine the core Perl maintainers thought that context sensitivity was a feature that needed further enhancement, but that&#x27;s just what they did in Perl 6.<p>Programming language design comes down to one word: teamwork. Software is collaborative writing. The better languages allow teams of developers with mixed levels of skill to work together and be productive, to build on each other&#x27;s code.<p>Perl 5 had enough quirks and cute context idioms to be clever and interesting, yet it was still possible to decipher what other coders had intended and learn a few new tricks along the way. Perl 6 is a toolkit for outright hostile obfuscation making it damn near impossible for a team of developers to wrap their heads around each others&#x27; code. Not surprisingly Perl is fading into the past.
评论 #6160958 未加载
评论 #6160994 未加载
评论 #6160855 未加载
antitrust将近 12 年前
I like Perl. It&#x27;s usually the fastest way to get stuff done. It also brings out the programmer within the programmer. Any jerk can write obfuscated Perl. A good Perl programmer writes clean, easily re-used and modified code. It&#x27;s a very hacker friendly language.<p>As to its decrease in popularity, I&#x27;ll point to two factors: (1) the rise of PHP, which took over most of the daily web-based tasks that Perl uses and (2) the rise of frameworks, which meant that people writing web sites were using newer languages so they didn&#x27;t have to re-roll the basic stuff with each project. Perl didn&#x27;t compete in that area until much later.<p>As far as its daily use, I still see it all the time and like many programmers, I implement new Perl code frequently. The flexibility across operating systems is a nice bonus.<p>For anyone who wants to see Perl written with grace and foresight, try these resources:<p><a href="http://www.perlmonks.org/" rel="nofollow">http:&#x2F;&#x2F;www.perlmonks.org&#x2F;</a><p><a href="http://www.pm.org/" rel="nofollow">http:&#x2F;&#x2F;www.pm.org&#x2F;</a>
stackcollision将近 12 年前
I&#x27;m probably going to get downvoted for this, but...I actually really like writing Perl. It&#x27;s fun, and even the documentation has character.
评论 #6160606 未加载
评论 #6160576 未加载
kyllo将近 12 年前
That was a fun read from 2004, if largely irrelevant in 2013. Perl 6 finally has a stable release, but hardly anyone uses it. Perl will continue to have a place in UNIX sysadmin and quite a few hackers&#x27; toolkits for a while, but by now most new programmers are starting with Python or Ruby or even Javascript as their primary scripting language. New programmers are generally not learning Perl and haven&#x27;t been for a while.
评论 #6160770 未加载
评论 #6160231 未加载
评论 #6160525 未加载
coldtea将近 12 年前
&gt;<i>You see, someday I will start my own company, and I&#x27;ll decide my own hiring bar.</i><p>Yes, meanwhile people using Perl succesfully should care, because?
评论 #6160144 未加载
sklivvz1971将近 12 年前
Language haters are only marginally less grating than language fanbois, who in turn are slightly less annoying than functional language fanbois.<p>Not a particularly enlightening - or for that matter, accurate or representative - opinion piece.
16s将近 12 年前
Many Unix systems include Perl by default. This seems like a small thing, but in areas where 3rd-party software is not allowed (security and audit compliance issues), having a Perl interpreter is wonderful.
评论 #6160678 未加载
评论 #6160599 未加载
restofus将近 12 年前
<a href="http://steve-yegge.blogspot.in/2006/10/egomania-itself.html" rel="nofollow">http:&#x2F;&#x2F;steve-yegge.blogspot.in&#x2F;2006&#x2F;10&#x2F;egomania-itself.html</a><p>Here he talks a bit about the perl community
jimfuller将近 12 年前
the existence of a language should not be a threat, its ok for you to move on from Perl.
jk4930将近 12 年前
Here&#x27;s why Perl is great: <a href="http://www.foo.be/docs/tpj/issues/vol1_1/tpj0101-0002.html" rel="nofollow">http:&#x2F;&#x2F;www.foo.be&#x2F;docs&#x2F;tpj&#x2F;issues&#x2F;vol1_1&#x2F;tpj0101-0002.html</a>
ryan-allen将近 12 年前
Steve wrote this before Clojure came out! I wonder what Steve thinks of it. I have done some work in it and it seems really quite good for Real Projects (tm).
评论 #6160896 未加载
评论 #6164552 未加载