Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: I want you to convince me to learn Perl

by Ralesk (Pilgrim)
on Sep 25, 2013 at 18:56 UTC ( #1055724=note: print w/ replies, xml ) Need Help??


in reply to Re^3: I want you to convince me to learn Perl
in thread I want you to convince me to learn Perl

It's not just the significant whitespace issue; though that is possibly the most frequently annoying.

I hear this way too often and I honestly donít understand it.

If you already indent correctly (go one unit deeper in a sub-block, one unit shallower when the block ends ó and unit is whatever, be it a tab or several spaces, as long as itís consistent), you wonít even notice the language relies on indentation.

And I sure as hell hope you people indent properly in your non-python code too, already.


That said, Python annoyed me with one thing that Perl ó thankfully ó doesnít: run-time errors. Everything you can think of, is going to bite you during run. Thereís no strict mode, no nothing to guard you against typos and such. Perl will very happily rattle its chains about stupid things that Python will remain completely oblivious about until you run into it while the code is in motion.


Comment on Re^4: I want you to convince me to learn Perl
Re^5: I want you to convince me to learn Perl
by BrowserUk (Pope) on Sep 25, 2013 at 19:09 UTC
    I hear this way too often and I honestly donít understand it.

    If you already indent correctly (go one unit deeper in a sub-block, one unit shallower when the block ends ó and unit is whatever, be it a tab or several spaces, as long as itís consistent), you wonít even notice the language relies on indentation.

    Look around at my code here and you'll see that I am very consistent -- almost anal -- about indentation in my code be it Perl, C whatever. But when I wrote python, it was just to damn easy to end up with:

    	stuff here
     	more stuff here
    

    Looks consistent, but is invisibly different. And that is puerile, pathetic and it f'ing annoys me. Frequently.

    And quite frankly I don't give a flying fig whether you "hear this way too often". If you don't wanna "hear" it, don't read it.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      Gosh, chill... didnít mean to direct it at you in particular, but thereís simply been plenty of times Iíve heard it and I felt Iíd say something about it.

      Iím almost exclusively a Perl user, but Iíve spent a few years doing KDE3 stuff in Python, and I guess I just feel weird when people find the white-space thing odd while it felt pretty much natural for me simply because itís merely about making proper indentation a rule. (Heh, now that I think of it, that even fits in the Zen of Python, ďthere should be one ó and preferably only one ó obvious way to do itĒ)

        itís merely about making proper indentation a rule.

        Proper indentation is a visual thing.

        A tab on one line, an errant space preceding a tab on the next; four spaces on the next; doesn't matter, everything lines up.

        'cepting for one language.

        Sure, its easy to be consistent when you first type code -- I have my editor set to convert tabs to 4 spaces on input for pretty much every programming language I use. But its when you pick up a piece of someone else's code who used a different convention; or you cut and paste between files; or grab a snippet off the 'net; or just move a bit of code from one level to another...

        The only reliable method is to squelch every line and re-indent. Life's too damn short for such pointless, affected, self-inflicted make-work.

        And maybe the reason you hear it so often, is cos its true.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-11-28 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (196 votes), past polls