user-pic

Forward Ever

  • Posted Forward::Routes block syntax to Forward Ever

    Forward::Routes provides routes for framework developers.

    The following feature refers to the Github version and is experimental: https://github.com/forwardever/Forward-Routes

    ="https://github.com/forwardever/Forwar…

  • Commented on Mouse/Moose delegation feature
    hmm, not sure what you mean, what is method_named op ?...
  • Posted Mouse/Moose delegation feature to Forward Ever

    Using Mouse for my experimental Module Forward::ORM really seems to pay off.

    One of my classes just has to delegate method calls to another class, here my first draft:

    ##  Delegation (using Method::Signatures::Simple)
    method manager {Forward::ORM::Migrat…
  • Commented on Ruby like code blocks in Perl
    okay, this would also be possible, but like a named parameter more (it is more obvious that $t or $table is the table object, which might be easier to explain to end users)...
  • Commented on New "dot" feature
    really like it, is there already a solution for $hashref.{key} ? As $hashref->{key} still makes more sense....
  • Posted Ruby like code blocks in Perl to Forward Ever

    While thinking about how to best define migrations/tables in my experimental module certain things in scope:

    In my first version, I used default Perl:

  • Commented on search.cpan.org down
    @Ranguard yes, I can still access any other site, including https://metacpan.org/...
  • Posted search.cpan.org down to Forward Ever

    Today, and in recent weeks, search.cpan.org has been down a couple of times, but NOT really:

    Turning off my router and then turning it on again actually helps!

    Does that make any sense at all???

    By the way, search.cpan.org is the only site showing this strange behaviour!

  • Posted SQL Abstraction to Forward Ever

    SQL abstraction is hard it seems. Trying to insert an empty record in SQLite should look like this:

    INSERT INTO "authors" DEFAULT VALUES
    

    In SQL::Abstract and SQL::Maker, it does not work:

    INSERT INTO "authors…
  • Commented on Asynchronous MySQL Queries in Perl Using DBD::mysql and AnyEvent
    @Mithaldu just can confirm this bug after installing the new version, going back to 4.016...
  • Commented on Asynchronous MySQL Queries in Perl Using DBD::mysql and AnyEvent
    > cpanm DBD::mysql DBD::mysql is up to date. (4.020) still get DBD::mysql::db prepare failed: Async support was not built into this version of DBD::mysql at async_mysql.pl line 17. working on Strawberry Perl on Windows...
  • Posted DBIx::Inspector Schema Loader to Forward Ever

    Today, I was looking for a simple module that fetches my DB schema. Played around with DBIx::Class::Schema::Loader and Rose::DB::Object::Metadata, with no success.

    Have already given up, but finally decided to make a Github search for DBIx, which provided exactly what I needed. Jus…

  • Commented on Mo supports chained accessors
    @Adam Kennedy not sure what your point is...!? https://metacpan.org/module/M...
  • Commented on Mo supports chained accessors
    1.) use Mo qw/feature1 feature2/; allows you to only load the features that you need, for performance reasons https://github.com/ingydotnet/mo-pm/blob/master/lib/Mo/Features.pod 2.) has 'first' => (chain => 1); chaining must requested per accessor, as it cannot be the default (see my older...
  • Posted Mo supports chained accessors to Forward Ever

    with the help of ingydotnet++ valuable suggestions, Mo now has the option to chain accessors:

    package ChainedAccessors;
    use Mo qw/chain/;
    
    has 'first'  => (chain => 1);
    has 'second' => (chain => 1);
    
    
    package main;
    
    $f = ChainedAccessors->new;
    
    $f…
  • Commented on Chaining in Moose, Mouse, Moo and Mo
    created a chaining plugin: https://github.com/forwardever/mo-pm/commit/eb543b7d0e82a3ee498f427f34122c20da12b06c not sure about the api, so it is just experimental...
  • Commented on Chaining in Moose, Mouse, Moo and Mo
    @Steven Little thanks for your comprehensive explanation. I find myself using chained accessors all the time. This is why I was writing this post, as it is the most common use case for me :) Wikipedia --> http://en.wikipedia.org/wiki/Method_(computer_programming)#Accessor_and_mutator_methods "An accessor...
  • Commented on Chaining in Moose, Mouse, Moo and Mo
    so question might be: what is the most common use case - chaining vs. modified setter values this is probably what you mean: $hello->first('foo'); if ($hello->first && $hello->first eq 'FOO') { } vs. if ($hello->first('foo') && $hello->first eq 'FOO') {...
  • Commented on Chaining in Moose, Mouse, Moo and Mo
    this might be a valid point, however, you could still use the old api if this is a concern $hello->first('foo'); $hello->second('bar');...
  • Posted Chaining in Moose, Mouse, Moo and Mo to Forward Ever

    Recently, I created a new issue on Github for Mo (https://github.com/ingydotnet/mo-pm), suggesting a chained interface:

    package Hello;
    use Mo;
    has 'first';
    has 'second';
    
    my $hello = Hello->new;
    
    # current implementation
    $hello->first('foo');
    $hello->se…
  • Commented on Playing around with Method::Signatures::Simple
    @Random get the same results again and again on my system, signatures between 3% and 15% faster (using the above script) perl 5, version 12, subversion 1 (v5.12.1) built for MSWin32-x86-multi-thread...
  • Commented on Playing around with Method::Signatures::Simple
    seems like "signatures" is even faster than "default" (pure perl), which is quite surprising, any explanations for that?...
  • Posted Playing around with Method::Signatures::Simple to Forward Ever

    Method::Signatures::Simple: Nice, very simple, and almost as fast as pure perl, is this module ready for use in modules you depend on?

    package Test;
    
    use Method::Signatures::Simple;
    use Benchmark qw/:all/ ;
    
    
    sub new {
        bless {}, shift;
    }
    
    
    #…
  • Commented on Rethinking smart matching
    http://search.cpan.org/perldoc?Smart::Match looks interesting actually, while methods like is_positive is_string_length(positive) might make even more sense, as I would expect string_length to return the length of a string, e.g....
Subscribe to feed Recent Actions from Forward Ever

  • doy.tozt.net commented on Mouse/Moose delegation feature

    Reini: Sure, if you're okay with exposing the entire API of the other module through your class, and are okay with having no way at all of dealing with method name conflicts (or even knowing when they happen). This is rarely a good design - multiple inheritance is almost always a mistake. Delegation and/or roles pretty much always leads to a cleaner design.

  • ivancho commented on New "dot" feature

    Does this tokenizer patch work with floats?

    I don't think you can use ~ for concat. Some people still use bitwise negation. Also, mistaking concat-assignment and pattern-matching will make for many unpleasant bugs.

  • ivancho commented on New "dot" feature

    all in all, it doesn't really seem like a 'feature' - more of an Acme module, or a source filter - with about as much expectation on reliability.

  • https://www.google.com/accounts/o8/id?id=AItOawlcDTR-3XTXKJMjOd9EuTjv2gGqrZeSUEE commented on Rethinking smart matching

    You say "time to go the way of pseduohashes." Pseudohashes were removed because they slowed down Perl not because they made the spec too hard for a few simple minds to codify.

  • Paul "LeoNerd" Evans commented on Asynchronous MySQL Queries in Perl Using DBD::mysql and AnyEvent

    If you're going to use this idea, be aware that it's only a half-baked solution.

    For this to work reliably, the file descriptor itself still needs to be in blocking mode, so that writes and reads to it are not interrupted if too much data is being written, or not enough is available to be read yet. This means that actually writing the query, and reading the response once it has arrived, are both done in a purely blocking way, and it's only the part where you wait for the start of a response to be available that is done asynchronously. You still run the risk of blocking during either …

Subscribe to feed Responses to Comments from Forward Ever

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.