user-pic

thetrb

  • About: I blog about Perl.
  • Commented on On the relative readability of Perl and Python
    I agree to most of what you’re saying, however to me this Python construct is much easier to understand than your Perl equivalent using grep and map: values = [ item.value for item in list if item.value > 4 and...
  • Commented on Failed compilations can be partially successful
    I like that you can tell Test::Most to die on fail, but don't like that it will still run the subsequent test. See this pseudo-code where the "run" function dies on all errors: lives_ok { run("mount server:/abc /mnt/abc") "Mounting"; lives_ok...
  • Commented on Failed compilations can be partially successful
    I like that you can tell Test::Most to die on fail, but don't like that it will still run the subsequent test. See this pseudo-code where the "run" function dies on all errors: lives_ok { run("mount server:/abc /mnt/abc") "Mounting"; lives_ok...
  • Commented on Perl TV
    @Gabor: Maybe make it like this blog where you can browse through pages ordered by the date the videos were added. The "All" link could still be there to see a simple list of all the videos....
  • Commented on Perl TV
    Nice idea. I just find it a bit weird that the start page only shows a single video and links to 2 others and I first have to click the small "All" link on the right to see all the...
  • Commented on Pre-Modern Perl VS Post-Modern Perl: FIGHT!
    I'm one of those Perl developers who recently switched over to Python. And I have to say that I'm a bit sad about it and am currently considering a position in a company that uses Perl. However, I will only...
  • Commented on Perl 7 - Final Thoughts
    I don't think renaming Perl 5 to Perl5 would change anything at all. Do you really believe people would suddenly see Perl in a different light just because one white space was removed? I like the idea of changing the...
  • Commented on Tapper release "Columbo"
    Sounds interesting. I recently posted a question about a resource manager / job queue at Perlmonks and I now wonder if Tapper can support some of these requirements. I'm going through the Tapper docs right now, but I'd also highly...
Subscribe to feed Recent Actions from thetrb

  • QM commented on On the relative readability of Perl and Python

    Thanks Ovid and Steffen Mueller for the anonymous sub tips. Some of these came up on http://www.perlmonks.org/?nodeid=1048128, with the goal of generating stack traces to report exceptions, where many callbacks are created on the fly. The local *ANON trick doesn’t affect svref2object returns.

    There is resistance to adding XS modules to all of our systems (there’s even resistance to adding pure Perl, though not as much).

    Next time it comes around, I would revisit the ideas brian puts forth in

  • QM commented on On the relative readability of Perl and Python

    In several places above there is still a small typo: != ‘bob’ should be ne ‘bob’.

  • Nathan Grigg commented on On the relative readability of Perl and Python

    You can always do if test: i += 1 , no newline required. This is about the same as the Perl example.

    For list comprehensions, nothing is preventing you from using line breaks to make things more readable:

    
    values = [x.value 
              for x in list
              if x.value > 4 and x.name != 'bob']
    
  • Joel Berger commented on On the relative readability of Perl and Python

    No, the example had a print (well say) in it too, including that it must be three lines, but again that’s just a nit

  • Manuel Ceron commented on On the relative readability of Perl and Python

    I’m a Python developer but I started coding Perl full time since a little bit more than a year. It’s true that Python has many quirks. That happens with any language that is more than 20 years old. But I think Perl probably has more quirks than Python.

    I think one reason why people think that Python is more readable is because it’s simpler. Both syntax and semantics are simpler. Less operators, less constructs, less ways of doing things. In practice this means that you can understand any Python code after an afternoon. While the same thing for Perl takes years.

Subscribe to feed Responses to Comments from thetrb

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.