Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Is it a level of Perl coding?
    • Oy. Given that I often ask for definitions, I guess I deserved that question :)

      "Baby perl" generally seems to refer to using a small subset of the language to get things done even though the full expressiveness of the language would allow a task to get done cleaner and simpler. Unfortunately, that "subset" might not include things like "strict", "sub" and other commonly used bits of the language. And what's the cutoff for "small"? Larry has said more than once that there's nothing wrong with using Bab

      • Larry has said more than once that there's nothing wrong with using Baby Perl, though others seem to disagree.

        I guess that without a clear definition, it's not an easy to question to ask or answer.

        To me, Baby Perl always feels like it's written by someone who learned BASIC in the 1970s from a bad book or a class with low expectations. Maybe some subs, but generally large ones. Lots of if/elsif/elsif cascades (with nested ifs). No references, objects or regexes. Cut and paste design. Use and abuse of flag variables. Many non-local references (either globals or lexicals defined way above the fold). Lots of code...

        btilly got it right: you want babies, but you don't want babies driving heavy machinery. Perl fits in that sweet spot where you can build large systems, but also make little pieces of duct tape. Cultures like those around C, C++ and Java tend to discount little pieces of duct tape (whoever writes them), and attempt to aggregate lots of little needs into one big over-engineered system (that's invariably bloated, late and over budget). In that context, encouraging Baby Perl isn't about letting the infants into the glass house and letting them play with the power tools, as much as it is about acknowledging that you don't always need to use the power tools.

        If you interpret the blessing on Baby Perl literally instead of as intended, you misinterpret it as allowing babies playing with power tools. That was certainly not what Larry was saying.