BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ubuntu terminal directory
- Subject: ubuntu terminal directory
- From: lemmuh-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (David Hummel)
- Date: Mon, 29 Mar 2010 09:09:11 -0400
- In-reply-to: <20100329031800.GA30316-rEnM6RaD0yLNLxjTenLetw@public.gmane.org>
- References: <4BAB5ABB.6090505@gmail.com> <4BAB5EDA.9020407@gmail.com> <20100325131239.GX14999@tao.merseine.nu> <20100325161459.GP14288@dragontoe.org> <4BABFCB7.1020505@borg.org> <20100328184551.GU14288@dragontoe.org> <4BAFABC0.20807@blu.org> <10a3041d1003281409r7bf15622o17c373e48842d3db@mail.gmail.com> <20100329031800.GA30316@dragontoe.org>
On Sun, Mar 28, 2010 at 11:18 PM, Derek Martin <invalid-yPs96gJSFQo51KKgMmcfiw at public.gmane.org> wrote: > > You can also write very unreadable code in any language. ?Some just > seem to encourage that more than others... that's always been my > gripe with Perl. ?I've seen plenty of readable Perl code, but I've > seen far less unreadable Python than Perl. ?Perl is a semantically > large language with lots of clever shortcuts, which in my mind really > only lend themselves to encouraging unreadable code. That's very true. For any serious code that could potentially be read by someone other than me (which is most of the code I write), I tend to throw all that syntactic sugar out the window in favor of more verbose and readable code constructs. But it's all that syntactic sugar that allows me to be very expressive and hence more productive in my day to day use of Perl (single-use scripts, one-liners, etc.). > The size and inconsistency of the syntax of Perl force a much greater... ah... > let's say learning investment, and complicates maintaining someone > else's code by orders of magnitude. Inconsistency is only introduced by the programmer, not by the flexibility of Perl syntax. There's many ways to do the same thing (TIMTOWTDI is a main tenet of the language), but if you write code that uses irregular combinations of the aforementioned syntactic sugar, then of course the inexperienced Perl programmer will get confused quickly. > Everyone makes an issue of that. ?Honestly, at first I didn't like the > forced indentation, until I had an epiphany: I would never > (intentionally) write code that's not consistently indented. ?Doing so > makes the code less readable. ?So it immediately became a non-issue > for me. ?If you use a modern editor, and configure it well, you don't > even have to think about it. I have to agree there, but it still seems strange to have the compiler rely on indentation though, especially when no other modern languages care about this. I'd prefer not to have my code fail to compile and run just because I left out some white space somewhere. > Besides, everything to do with OOP in Perl is ugly. Things are always ugly if you're not used to them ;-) Just as with indentation in Python, everyone gripes about the object system in Perl, but it makes sense if you consider the design history of Perl. OO features were tacked on once it seemed necessary and fashionable to support OOP. That's all about to change with Perl 6 though. > Python also has much better exception handling. What does "better" mean? I think what you mean is that the syntax for it is cleaner in Python. That I would agree with. >?I'm not going to say that Perl is a bad language, but I > will say that I've never enjoyed programming with it, no matter how > well I've gotten to know it. Fair enough. To each his own ;-) It's obviously important to use tools that you enjoy working with whenever possible.
- References:
- ubuntu terminal directory
- From: eric.chadbourne-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (Eric Chadbourne)
- ubuntu terminal directory
- From: eric.chadbourne-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (Eric Chadbourne)
- ubuntu terminal directory
- From: dsr-mzpnVDyJpH4k7aNtvndDlA at public.gmane.org (Dan Ritter)
- ubuntu terminal directory
- From: invalid-yPs96gJSFQo51KKgMmcfiw at public.gmane.org (Derek Martin)
- ubuntu terminal directory
- From: kentborg-KwkGvOEf1og at public.gmane.org (Kent Borg)
- ubuntu terminal directory
- From: invalid-yPs96gJSFQo51KKgMmcfiw at public.gmane.org (Derek Martin)
- ubuntu terminal directory
- From: gaf-mNDKBlG2WHs at public.gmane.org (Jerry Feldman)
- ubuntu terminal directory
- From: lemmuh-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (David Hummel)
- ubuntu terminal directory
- Prev by Date: Tape vs disk cost
- Next by Date: Tape vs disk cost
- Previous by thread: ubuntu terminal directory
- Next by thread: ubuntu terminal directory
- Index(es):