Re: Accessing object constructors from the 'main'

2013-06-10 Thread Darren Duncan
Perl beginners it may not be obvious to. -- Darren Duncan

Re: MooseY namespace

2013-06-09 Thread Darren Duncan
I second Reverend Chip's comment. Too much what its implemented with rather than what it does among module names. -- Darren Duncan On 2013.06.09 8:26 PM, Reverend Chip wrote: Might it be better simply to name the class what it does, and have its moosey-ness go unnamed? Imagine if we started

Re: Moose not adequately idiot-proof?

2013-05-20 Thread Darren Duncan
If that was just done as part of a test suite though, and not in production, the performance hit might be worth it. -- Darren Duncan On 2013.05.20 3:07 PM, Chris Prather wrote: Using the hashref directly totally circumvents moose. You would need to write something like MooseX::Globref

Re: howto: strict or relaxed type checking?

2011-07-13 Thread Darren Duncan
Here's a good practice: Leave the attribute constraint strict all the time, and provide a coersion functionality to examine the raw input and reformat it from the variety of formats there might be so that it either matches the strict definition or fails because it can't be converted. -- Darren

Re: defining my own parameterized types

2011-06-24 Thread Darren Duncan
of misusing a type constraint is having a constraint that says this datestamp is within 3 seconds of the current systemtime. I think it would help clear things up if you provided more details or clarified what you actually wanted the DBKey[User] example to achieve. -- Darren Duncan

Re: defining my own parameterized types

2011-06-24 Thread Darren Duncan
Darren Duncan wrote: Type constraints are supposed to be deterministic and not depend on variables (such as a mutable database) to determine whether they pass or not. Another example of misusing a type constraint is having a constraint that says this datestamp is within 3 seconds

the Moose support policy

2010-11-27 Thread Darren Duncan
that ... unless one is in the pipeline that I didn't anticipate. 4. Is Class::MOP going to gain a similar support policy to Moose's new one, considering how closely they are associated? -- Darren Duncan

Re: the Moose support policy

2010-11-27 Thread Darren Duncan
Jesse, thank you for your quick reply. As it is, I had also discovered http://blog.moose.perl.org/2010/11/the-future-of-moose.html after sending my post, although it didn't answer everything. Jesse Luehrs wrote: On Sat, Nov 27, 2010 at 09:10:30PM -0800, Darren Duncan wrote: snip 4

Re: [ANNOUNCE] Frost version 0.70

2010-10-18 Thread Darren Duncan
. Do *not* mention moose@perl.org any more in your documentation for this purpose, and do *not* post announcements of Frost releases here any more. Those are not an appropriate use of the Moose forum. Go do that before you do anything else. -- Darren Duncan

Re: [ANNOUNCE] Frost 0.65 - Feasible Referential Object STorage

2010-09-30 Thread Darren Duncan
What you're talking about here sounds a lot like the class implementation method of inside-out objects. -- Darren Duncan Ernesto wrote: *No Memory Leaks by Design* The mechanism of creating, storing and loading of objects is explained on http://dienstleistung-kultur.de/frost/Frost.html

Re: Supress Moose warnings

2010-09-14 Thread Darren Duncan
If it is actually warnings that you want to suppress, then Adam Kennedy's Test::NoWarnings module may help you. It is used somewhere by the DBD::SQLite test suite, which is how I know about it. -- Darren Duncan

Re: What constitutes a MooseX:: ?

2010-07-13 Thread Darren Duncan
for not being a MooseX::. For example, the functionality of KiokuDB is best not in a Moose:: or MooseX:: namespace, and indeed it isn't. -- Darren Duncan

Re: [OT] Re: A MooseX ORM, an attempt

2010-06-16 Thread Darren Duncan
://github.com/dexterbt1/MooseX-DataMapper -- Darren Duncan

Re: Persistent Objects Using SQL

2010-06-02 Thread Darren Duncan
, so I don't have to divert most of my time to other work to pay the bills.) -- Darren Duncan

Re: Persistent Objects Using SQL

2010-05-30 Thread Darren Duncan
Stevan Little wrote: On May 29, 2010, at 11:20 PM, Darren Duncan wrote: 2. Besides the ability to introspect or perform powerful searches on your objects using SQL/etc, I see another big advantage of using database storage without serialization as portability. You can have applications

Re: Persistent Objects Using SQL

2010-05-30 Thread Darren Duncan
to it risk affecting multiple applications. But not too much more so than a shared library in Perl. That is how I see it. -- Darren Duncan

Re: Persistent Objects Using SQL

2010-05-30 Thread Darren Duncan
. -- Darren Duncan

Re: Persistent Objects Using SQL

2010-05-30 Thread Darren Duncan
I understand what you're saying here. No further comments from me at this time. -- Darren Duncan Stevan Little wrote: On May 30, 2010, at 6:07 PM, Darren Duncan wrote: Stevan Little wrote: It also does not deal well with polymorphism since the ID (the object's identity) is essentially

Re: Persistent Objects Using SQL

2010-05-29 Thread Darren Duncan
formats. A relational database can map to an object structure of any language fairly easily. Add attributes/columns for mutually heterogeneous data, like when you would add object attributes, and add tuples/rows for mutually homogeneous data, like when you would use arrays or sets. -- Darren

Re: xor attributes

2009-11-26 Thread Darren Duncan
are connecting to and what DBMS facilitates that access. -- Darren Duncan

Re: semantics of CMOP's load_class()

2009-09-22 Thread Darren Duncan
(). -- Darren Duncan Darren Duncan wrote: Hello, So I have some Perl code which has evolved over the years, which already uses Moose, but I'm looking to make it more savvy or modern/enlightened. And I've also found what appear to be bugs or deficiencies in Class::MOP. The original code that I'm

Re: CMOP::Class / CMOP::Package

2009-07-22 Thread Darren Duncan
or imperative, I would think that routine works best, and yet it is specific enough to exclude a block etc. -- Darren Duncan

Re: Types and Constraints

2009-04-30 Thread Darren Duncan
as an example because that is what was used before. In practice one should still just have a Date type and just have appropriate is-in-past conditionals in the main program where it actually matters. -- Darren Duncan dependent subtype DateBefore($upper_date DateTime), as $lower_date

Re: Types and Constraints

2009-04-29 Thread Darren Duncan
type, which is the type whose declaration allowed you to select (or construct) that value in the first place, and any other types would not be re-introducing the value but just using it. -- Darren Duncan

Re: Class::MOP::Attribute and legal attribute names

2009-04-13 Thread Darren Duncan
support them if Perl itself does. -- Darren Duncan

Re: summer of code?

2009-03-21 Thread Darren Duncan
. And http://www.perlfoundation.org/perl5/index.cgi?gsoc_2009_projects would be a good place to list them. -- Darren Duncan

Re: Using attributes for 'requires'

2009-01-19 Thread Darren Duncan
Yuval Kogman wrote (in private): 2009/1/19 Darren Duncan dar...@darrenduncan.net: So, any similar hacks to help with that, prior to Moose roles being smart enough to deal with this? with delegation you can just put the role after the attribute declaration: has foo = ( ..., handles = [qw(bar

Re: RCF for option enhanced type constraints

2008-10-09 Thread Darren Duncan
the radix point (or transpose Precision and Scale if I mixed up the meanings of those terms), then yes you understand me correctly. -- Darren Duncan