6 ms·
This will give Perl and Ruby a good chance to pull even farther ahead of Python. It would be nice if "we" didn't learn anything about programming that needs ne
by jrockway 17y ago
This will give Perl and Ruby a good chance to pull even farther ahead of Python. It would be nice if "we" didn't learn anything about programming that needs new language features, but we do, and it's silly to omit features that make programming easier.
Oh yeah, it's Python.
- tsally 17y agoI'm not a zealot for either of the 3 languages, but I wasn't aware that Perl could be considered "ahead" of Python by any measure except libraries.
- jerf 17y agoOh, it's way ahead on operator count. http://www.ozonehouse.com/mark/periodic/ http://www.ozonehouse.com/mark/periodic/
- Kirby 17y agoI kind of am, but I think in reality perl and python appeal to a different enough mindset, and solve similar enough problems, that there's almost no real competition between them. Most people will instantly like one and loathe the other based on their opinions on compiler-mandated style. (It's not just that, but it's an immediate thing you encounter and exemplifies the philosophy through the whole language - the One True Way to do things, uniformly and consistently across programmers, or There's More Than One Way To Do It, the language accepting as many alternate ways as possible and adapting to the programmer.) There exist performance benchmarks, but I tend to think they continue to trend close enough together to never be a more compelling argument than the underlying design principal, for people choosing a primary language to work in. Similar for featureset - comparing modern releases, there's a vanishingly small set of real differences, especially if you're willing to consider best practice modules freely available. (IE, yes, we're sorry about Perl's built-in object model, but really, we fixed that in libraries years ago, seriously guys, years.) We can band together and agree that we hate java more than each other, though.
- enneff 17y agoYour last childish comment undermines you.
- prodigal_erik 17y ago> (IE, yes, we're sorry about Perl's built-in object model, but really, we fixed that in libraries years ago, seriously guys, years.) Can you be more specific? The tutorials (perlboot, perltoot, perlbot) still have the decade-old examples of rolling your own by blessing references. It's not at all clear which library has been made part of the language, and if there isn't one, what happens when your dependencies disagree about which version of, e.g., method dispatch should be used.
- jbert 17y agoThe languages are much more similar than they are different (in terms of feature set, not mindset), but one thing perl has which I don't understand how the python+ruby people get by without is 'use strict'. (ObLanguageWar: I'm not trying to promote perl here - I know the other languages have particular features perl does not - I'm just curious about this specific item.) Every sane perl programmer will have this pragma enabled, and it requires you to declare lexical variables, otherwise you get a compile-time error. I understand (please correct me if I'm wrong) that python+ruby instead allow lexicals to be created by assignement, leading to this problem: def important_condition(): return 1 FOO = "wrong" if important_condition(): FO0 = "correct" print FOO I'm told there are lint-like tools for python which can catch this, but since people typically don't use Makefiles to manage their python/perl/ruby code I can't imagine they are routinely used on each edit/run cycle. Can any python/ruby coders comment on this? Is it an error case which takes any significant debugging time? (Rather than the O/0 distinction above, I see this sort of error more often from inConsistent camelCase).
- axod 17y agoLanguage wars are so pointless. Spend your energy on something else. Guess what. The programming language you use is pretty irrelevant to success. It's a matter of taste, what other people are using (If you care), what has convenient libraries for what you're doing. edit: OK I'll bite: >> "It would be nice if "we" didn't learn anything about programming that needs new language features, but we do, and it's silly to omit features that make programming easier." Examples? What have we really learnt about programming say in the last 5 years that requires new language features? Maybe it's just individuals that learn things about programming, and change their tastes.
- chromatic 17y ago> What have we really learnt about programming say in the last 5 years that requires new language features? Smalltalk traits and Perl 6 roles -- a missing feature of OO design.
- jrockway 17y agoReusing your code is just a fad that depends on personal taste. Real programmers cut-n-paste. Don't get me started on tests, what a waste...
- jrockway 17y agoPeople waste my time with language wars every time the word "Perl" is used positively. I thought I would waste other peoples' time to see if they liked it. Apparently not. Interesting, isn't it!
- berntb 17y agoThe trolling in Perl discussions seems almost organized. Then we find snide remarks about operator count voted to 14, here. (Edit: 15, http://news.ycombinator.com/item?id=931618 http://news.ycombinator.com/item?id=931618) Maybe we should add a link to this discussion, to let Perl people know how to handle language war trolls pro and contra?
- 17y ago
- dschobel 17y agoCan you name one language feature any of the three have which hasn't been around for decades?
- KirinDave 17y agoRuby's anonymous function syntax was pretty novel. I'm aware it was inspired by some syntax showed up in CLU, but it was fairly novel and remains a paragon of anonymous function syntax. Actually, enough so that you now see it showing up (although some claim this is a resurgence) in Lisp clones like Clojure and appearing in common Scheme macro packs. So while it was "around for decades" it was "around for decades in a marginalized and primitive form that Ruby helped to popularlize and make mainstream." In any event, this moratorium is stupid. Python already suffers from a paucity of modern language features under the aegis of "they are too complex." But it seems only hardcore Pythonistas seem to really feel this way, as the vast majority of other peer languages are–at the very least–adopting and embracing real lambdas and the elegant collection manipulation that follows from their reasoned use.
- llimllib 17y ago> Ruby's anonymous function syntax was pretty novel Ruby: {|x| x+1} Smalltalk: [:x | x+1] What am I missing?
- KirinDave 17y agoIt would help if your example was syntactically correct Ruby. (EDIT: I see you fixed it) And I meant novel in that it brought the notion into the dot-notation-happy world, where the majority of programmers lived and adapted it. Both Ruby an Smalltalk took the feature from a predecessor, as I understand it, and mentioning an also-ran like smalltalk slipped my mind. Does that weaken the point significantly? The feature is good and Python should finish integrating lambdas rather than sitting on their half-cocked nod to it. They cannot now Fo that for 2 years, maybe more.
- llimllib 17y ago