25 ms·
Always wondered how coding in Perl is, guess I will have some fun with it tomorrow :)
by Zekio 10y ago
Always wondered how coding in Perl is, guess I will have some fun with it tomorrow :)
- meddlepal 10y agoPerl is a great language. I haven't had an op to use 6 yet but 5 is great for small programs. The big problem with Perl is it requires discipline to prevent creating a mess for your team or eventual successor.
- krupan 10y agoOr yourself a few months down the road.
- dozzie 10y agoIt's not like Python or Ruby are much better in this regard.
- rimantas 10y agoExcept they are.
- dozzie 10y agoThis comment sounds like you've never worked on any program larger than few hundreds lines. All three languages implement the same programming paradigm and neither of them enforce (or even suggests) any structure whatsoever, so you easily end up with the same mess/spaghetti, no matter the language. Of course Perl adds some idioms of its own on top of it, but (a) not that many as most people like to attribute to Perl, (b) most of the idioms are syntax sugar, and (c) most of the mess comes from program structure, not from superficial things like syntax.
- pcollinsmokonut 10y agoI completely agree with you. Perl is absolutely terrible for basic oo. Basic getters and setters needs the moose module which instantly slows down your code base beyond. I'm a very competent oo perl developer. I recently wrote a complex large platform in Perl5. It's simply not good enough. In addition cpan is like walking the dungeons of moria. amazing relics of complexity frozen in time.
- raiph 10y ago> Perl is absolutely terrible for basic oo. To clarify for readers who might not know... * Perl 5 (the language this comment appears to focus on) and Perl 6 (the language the OP is about) are different languages in the same family, like Common Lisp and Clojure. * Perl 6 OO is syntactically and semantically elegant. "In using Perl 6, one of the things that constantly floors me is how elegant objects are..." [1]. * Perl 6, which has this elegant OO built in, outperforms Perl 5 + Moose for some things and trails it for others. [1] https://www.reddit.com/r/perl6/comments/4ud7vc/a_python_guy_in_perl_6_object_land/ https://www.reddit.com/r/perl6/comments/4ud7vc/a_python_guy_...
- PeCaN 10y agoObligatory to point out that Perl and Perl6 are quite different languages, and the latter is meant to supplement, not replace, the former. That said, both Perls are nice languages. Personally I prefer Perl 5 slightly, but both are fun to use, if confusing at first. (Perl, especially Perl 5, seems extremely arbitrary and nonsensical until you “get it”.)