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 ]

Theory (10)

Theory
  (email not shown publicly)
http://www.justatheory.com/
AOL IM: dwTheory (Add Buddy, Send Message)
Yahoo! ID: dew7e (Add User, Send Message)
Jabber: Theory@jabber.org

Perl, PostgreSQL hacker; US politics junkie; Webapp developer; Portvangelist; profane iconoclast.

On CPAN see: DWHEELER [cpan.org].

+ -

  Bricolage 2.0 Drops[->] on 2010.04.12 11:33 Theory

Submitted by Theory on 2010.04.12 11:33
Releases
Theory writes "After years of incubation, refinement and testing, the Bricolage development team is thrilled to announce the release of Bricolage 2. The new Bricolage boasts a sleeker interface, a wealth of new features for content authors and administrators, and a wider range of platform options.

This is the first major-version update since Bricolage 1.0 was released in 2001. It’s also the fastest, smartest, best-looking Bricolage yet. Download it today!

Read More»"

Link To Original Source
Read More 0 comments

+ -

  Comment: WTF? (Score 1) on 2010.04.01 21:59

by Theory on 2010.04.01 21:59 (#71812)
Attached to: Perl 6 Design Minutes for 17 March 2010

WTF is surreal precedence?

Read More 1 comments
Comments: 1
+ -

  Comment: Re:I wrote a song parody about this once... (Score 1) on 2010.03.31 14:00

by Theory on 2010.03.31 14:00 (#71807)
Attached to: Some Facts About Schwern

Oh, please post that in the comments on Flickr!

--Theory

Read More 6 comments
Comments: 6
+ -

  Comment: Naming (Score 1) on 2009.10.27 13:54

by Theory on 2009.10.27 13:54 (#70995)
Attached to: Strawberry Professional, Padre, and Ashton's Law

How about "Strawberry Perl Workstation Edition" and "Strawberry Perl Server Edition"? It seems to me that most folks would only want the "lite" edition for running code on a server where they have no UI.

--Theory

Read More 9 comments
Comments: 9
+ -

  Comment: Re:Here we go again ... (Score 1) on 2009.10.14 12:12

It seems to me that it would be useful for Perl(5|6) to make method overriding explicit as Java has done. Similarly, I'd like to see it made explicit when you're overriding a role method with a method defined in a class. As a compile-time error.

So I think it'd be useful for you, Ovid, to implement a MooseX module that does this a al Stevan's suggestion. Then there'd be a feature that you could point people to using.

Stevan, FWIW, in Smalltalk the browser isn't just a tool, it's effectively part of the language. And although most Java programmers use tools (Eclipse), the @Override syntax has still been added to the language itself. So when the tools are not part of the language (as Perl::Critic is not required to write Perl and Eclipse is not required to write Java), I think that a feature of the language should be provided for you to be explicit about when you're overriding a method.

If Ovid can demonstrate this as useful in a MooseX module, so much the better.

My $0.02.

--Theory

Read More 20 comments
Comments: 20
+ -

  Comment: Great News! (Score 1) on 2009.09.23 11:24

by Theory on 2009.09.23 11:24 (#70659)
Attached to: The long-awaited return of the JSAN

This is great news, Adam, thanks! I'm looking forward to playing with it.

--Theory

Read More 1 comments
Comments: 1
+ -

  Comment: 1 Line? (Score 1) on 2009.06.07 22:03

by Theory on 2009.06.07 22:03 (#68985)
Attached to: 0.02% of perl is my fault

What, can't anyone change just a single line? Everyone has to touch 0 or more? So much for Perl one-liners! ;-P

--Theory

Read More 6 comments
Comments: 6
+ -

  Comment: Re:WTF Is expand? (Score 1) on 2009.04.04 11:11

by Theory on 2009.04.04 11:11 (#68009)
Attached to: Surprising Deparse Result

Ah, I see. Except that it's not a key in a hash in that code, but a method.

--Theory

Read More 5 comments
Comments: 5
+ -

  Comment: WTF Is expand? (Score 1) on 2009.04.03 21:21

by Theory on 2009.04.03 21:21 (#68006)
Attached to: Surprising Deparse Result
WTF is expand?

% perldoc -f expand
No documentation for perl function `expand' found

--Theory

Read More 5 comments
Comments: 5
+ -

  Comment: Not Clever, Just a Style (Score 1) on 2009.02.11 13:01

by Theory on 2009.02.11 13:01 (#67307)
Attached to: Clever

Personally, I hate the style where you test something at the beginning of a statement and then do something if it's true by using and. I much prefer using if or unless at the end of a statement:

    my $_combination_info = {};
    sub combination_info {
        my $self = shift;
        $_combination_info->{ $self->csv_file_name } = shift if @_;
        return $_combination_info->{ $self->csv_file_name };
    }

I use this style all the time. But I have to say, I don't think that your original example was clever, but indicative of someone who prefers a different style of handling one-line conditionals. I would even argue that it's not really idiomatic Perl, but it's not in any way clever.

--Theory

Read More 6 comments
Comments: 6
+ -

  Comment: Test::Smell? (Score 1) on 2009.02.03 11:41

by Theory on 2009.02.03 11:41 (#67193)
Attached to: Detecting Long Methods Without PPI

I can see where you're going with this, Ovid. Can Test::Smell be far behind (um, pun not intended)?

I can see it testing all of the classes in your project and emitting passes or failures for inheritance patterns, hidden method, long method bodies, etc.

Read More 8 comments
Comments: 8