Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of jjore (6662)

Tuesday July 07, 2009
07:10 PM

Perl's compile time check is greater than Ruby

[ #39247 ]

At work, I just rewrote a bunch of ruby code, moved piles of things around. It's changing some ordinary synchronous code to use EventMachine, something that's kind of like POE.

I just found out writing in ruby is like perl, but with

no strict 'vars';

on all the time.. This major time saver isn't available at all!

Even worse, whenever I typo a variable or forget to introduce it properly it's automatically turned into a method call.

W

T

F

Perl works to save my bacon and would never let me get away with typoing a variable or forget to introduce it. It's giganto times more efficient to program in Perl than Ruby.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I hate this problem, and Python has it, too, to a lesser extent.

    I wrote about it from a different angle here: http://rjbs.manxome.org/rubric/entry/1673 [manxome.org]

    --
    rjbs
  • It's not greater, it's just different. The problems you mention will be caught in about 0.1 seconds with any kind of reasonable test suite.

    My observations over many years are that the only people who have problems with the lack of strict variables are Perlers who are new to Ruby, and who are still writing monolithic top-down scripts. It's really a non-issue in practice. Running with -w helps, too. It sure beats the heck out of typing 'my' everywhere.

    • who are still writing monolithic top-down scripts.

      Oh really? So you think Joshua and me are the kind of people who write spaghetti monoliths in Perl? So far I’ve seen this complaint only from Perl programmers I considered competent. Maybe that’s because only competent Perl programmers have come to take the protection of strictures for granted? Just a possible alternative interpretation of the… well, it’s not data, it’s just anecdotes.

      with any kind of reasonable test suite. [