Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Help choosing a Module name
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jed Lund  
View profile  
 More options Oct 5 2012, 3:15 pm
Newsgroups: perl.moose
From: jandrewl...@gmail.com (Jed Lund)
Date: Fri, 5 Oct 2012 12:04:59 -0700
Local: Fri, Oct 5 2012 3:04 pm
Subject: Help choosing a Module name
All,

I am looking for some assistance choosing a good module name for a class
that I would like to build.  Essentially it would perform a similar
function to Moose::Util 'with_traits' or MooseX::ClassCompositor.   The
major difference in my offering would have a different user interface.   I
am thinking of the following possibilities.

MooseX::Util::ClassBuilder

MooseX::ClassBuilder

MooseX::Shiras::ClassBuilder

I noticed that many MooseX modules have Util in the third position but
there doesn't seem to be a MooseX::Util branch of the namespace yet?

Any suggestions are welcome.

JANDREW

Jed


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stevan Little  
View profile  
 More options Oct 5 2012, 7:30 pm
Newsgroups: perl.moose
From: stevan.lit...@iinteractive.com (Stevan Little)
Date: Fri, 5 Oct 2012 19:22:10 -0400
Local: Fri, Oct 5 2012 7:22 pm
Subject: Re: Help choosing a Module name
On Oct 5, 2012, at 3:04 PM, Jed Lund wrote:

Jed,

Might be helpful if you pointed us at some code.

Personally I am not a fan of MooseX::Util as a namespace, the idea behind MooseX:: is that it provides extension to Moose itself, and MooseX::Util reads to me as "utilities to help build extensions of Moose", which is not what your module sounds like.

- Stevan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jed Lund  
View profile  
 More options Oct 7 2012, 11:00 pm
Newsgroups: perl.moose
From: jandrewl...@gmail.com (Jed Lund)
Date: Sun, 7 Oct 2012 19:51:26 -0700
Local: Sun, Oct 7 2012 10:51 pm
Subject: Re: Help choosing a Module name
Stevan,

Thank you for the reply.

I have posted a prospectus of code on PrePan @

http://prepan.org/module/429En4oFep

And the actual first pass on github @

https://github.com/jandrew/MooseX-Util-ClassBuilder

The name is a default just for posting code.

Best Regards,

Jed

On Fri, Oct 5, 2012 at 4:22 PM, Stevan Little <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Rolsky  
View profile  
 More options Oct 7 2012, 11:15 pm
Newsgroups: perl.moose
From: auta...@urth.org (Dave Rolsky)
Date: Sun, 7 Oct 2012 22:04:56 -0500 (CDT)
Local: Sun, Oct 7 2012 11:04 pm
Subject: Re: Help choosing a Module name

On Sun, 7 Oct 2012, Jed Lund wrote:
> I have posted a prospectus of code on PrePan @

> http://prepan.org/module/429En4oFep

How is this any different than what Moose::Meta::Class->create()
(and create_anon_class) provide?

All your code does is reimplement that, AFAICT.

-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jed Lund  
View profile  
 More options Oct 8 2012, 11:45 am
Newsgroups: perl.moose
From: jandrewl...@gmail.com (Jed Lund)
Date: Mon, 8 Oct 2012 08:29:19 -0700
Local: Mon, Oct 8 2012 11:29 am
Subject: Re: Help choosing a Module name
Dave,

I agree the differences are minor.  However, In my mind the differences are
valuable if possibly more style based.

I wrap two changes around Moose::Meta::Class->create in my proposal.  I
accept named hash value pairs for everything including a new package name
where ->class() expects the new name as the first argument.  Second I have
an instance creation method that leverages the class creation method.  I
just noticed that it is not included on the PrePAN synopsis   These two
changes allow me to do two things.  First since all arguments are named
arguments they can either be omitted or provided with no code failure.
 Meaning I can create an anonymous class with the same function as a named
class by just omitting the key/value pair for the name.  Second, the class
function is set up to pass through instance arguments that are composed as
a hash without touching them.  This makes it possible to bundle the
necessary arguments for an instance with the arguments for a completely new
class and create the instance without using the following syntax.

my $instance = Moose::Meta::Class->create(
            'New::Class',
            superclasses => ['Super::Class'],
            roles => ['Does::Something'],
)->meta->name->new( %args );

I understand that both issues are style based and are not intended to
reflect on Moose or its excellent implementation, but I find the previous
syntax a bit clunky and it occurs a fair amount in code I am writing now.
 As a consequence I am looking for an out of the way namespace to place a
class I can use to modify the instance implementation syntax to a 'method(
%args )' style.

Best Regards,

Jed


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Rolsky  
View profile  
 More options Oct 8 2012, 12:00 pm
Newsgroups: perl.moose
From: auta...@urth.org (Dave Rolsky)
Date: Mon, 8 Oct 2012 10:49:44 -0500 (CDT)
Local: Mon, Oct 8 2012 11:49 am
Subject: Re: Help choosing a Module name

On Mon, 8 Oct 2012, Jed Lund wrote:
> I wrap two changes around Moose::Meta::Class->create in my proposal.  I
> accept named hash value pairs for everything including a new package name
> where ->class() expects the new name as the first argument.

Actually, Moose already accepts key/value pairs for this method, but this
is documented (this thing with multiple calling styles is something I
really hate in the Moose core).

Most (but not all) methods of the ->method( $name, %args ) style also work
with ->method( name => $name, %args ). Substitute the "name" key for
"package" or whatever is appropriate.

Anyway, calling this MooseX::Util::ClassBuilder seems kind of weird since
Moose already has plenty of class building support.

It's more like MooseX::ShortCut::BuildClass or something.

-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jed Lund  
View profile  
 More options Oct 8 2012, 12:15 pm
Newsgroups: perl.moose
From: jandrewl...@gmail.com (Jed Lund)
Date: Mon, 8 Oct 2012 09:05:40 -0700
Local: Mon, Oct 8 2012 12:05 pm
Subject: Re: Help choosing a Module name
Dave,

I must have overlooked the "name => $name," option in the documentation.
 Thank you for pointing it out.

I also appreciate the the suggestion for a module namespace.  I am happy to
acknowledge that what I am attempting is a shortcut only.

Best Regards,

Jed


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »