user-pic

Ross Attrill

  • About: Keeping it simple with Perl
  • Commented on Sick of being mocked by unit tests
    Great article Ovid. I also recently read this document: http://www.rbcs-us.com/documents/Why-Most-Unit-Testing-is-Waste.pdf by James Coplien referenced in the DHH post: http://david.heinemeierhansson.com/2014/tdd-is-dead-long-live-testing.html The Coplien article had some very interesting points including the need to delete tests as they become redundant over time. I...
  • Commented on Github cheat sheet
    git status -sb is great find....
  • Commented on The Twelve-Factor App
    Yes - some useful and interesting development standards. I find the 12-app idea of logging to STDOUT interesting. On the one hand with Perl it is much easier to say open() or die ($!); than open() or $log->log_and_die($!); But on...
  • Commented on MetaCPAN Welcomes its Newest Sponsor: GitHub
    Fantastic news....
  • Commented on Subroutine signatures in Perl are long overdue
    There are several method signature modules on CPAN. I have been watching Method::Signatures for some time and I can see there is a huge amount of design work that has gone into the signature syntax and features with this module....
  • Commented on Joose - advanced meta-class system for JavaScript
    Thank you Toby - just what I was after....
  • Commented on Joose - advanced meta-class system for JavaScript
    I love it. I have recently started doing some work in Ruby and have to say that I definitely miss Moose. I have thought that a Roose (or Roo) for Ruby might be a good idea - so interested to...
  • Commented on Why Are Fast Tests Important?
    Great article Ovid - thank you. I would love to read a little more on how you setup / teardown databases to avoid using transactions or drop / recreate - and why....
  • Commented on Debuging method for perl Complex data structures
    I have been using use Data::Dump qw(dump); and finding it to be excellent in most circumstances....
  • Commented on Writing Non-Blocking Applications with Mojolicious: Part 1
    Joel - do you know if the built in Mojo servers - or at least Morbo - will support this non blocking behaviour in Windows environments?...
  • Commented on (my) Marpa Best Practices
    Marpa can look intimidating at first - but it is really quite understandable. I definitely found learning it to be a worthwhile investment for my application. The documentation and examples are very good and the support from the mailing list...
  • Commented on Planet Moose - September 2013
    Thank you Toby - a very concise and useful update....
  • Commented on When "unsafety" is a Good Thing
    Buddy - I think you hit the nail on the head when you point to database interaction as an area where a weakly typed language is beneficial. We have strong typing in our (relational) databases, so adding primitive typing in...
  • Commented on Introducing Moops
    I see now - Function::Parameters...
  • Commented on Introducing Moops
    This looks exciting. It is good to see that it is much faster than MooseX::Declare. How does Moops do method signatures?...
  • Commented on The beauty of CSV
    The beauty of CSV is that you can edit in Excel. This can be a highly efficient way of creating and maintaining large tables of data when the data must be manually maintained. Far more efficient than editing YAML or...
  • Commented on Pre-Modern Perl VS Post-Modern Perl: FIGHT!
    Buddy - great article. If you want to do something close to insert %hash into mytable then have a look at this: https://metacpan.org/module/DAMI/DBIx-DataModel-2.40/lib/DBIx/DataModel.pm#Insert This gives you my $id = $table->insert(%hash); almost as per your request and with minimal overhead....
  • Commented on When Must You Test Your Code?
    There are several things that I like about this article. I like that the article acknowledges technical debt is sometimes appropriate and provides some suggestions on managing that. Your concluding paragraph says it all....
  • Commented on By all means, try out $LANG, but also give Perl a real chance (a.k.a.: Good tools)
    A great article. There is a lot to be said for picking good tools and sticking with them. I think good new tools do come along from time to time (eg. Git was a step forward) but it is not...
  • Commented on Chicago.PM - Dependency Injection (also: Beam::Wire)
    I am very interested in the combination of DI with Moose Roles. The presentation is very interesting - are you able to show any more detail on where you were going with the DAO type role as on slide 31?...
  • Commented on Method::Signatures: here a tweak, there a bugfix
    Buddy - have their been any performance comparisons for MS vs. other modules providing similar if less comprehensive functionality eg. Method::Signatures::Simple....
  • Commented on Method::Signatures: here a tweak, there a bugfix
    Method::Signatures must be the most important new module for Perl right now....
  • Commented on DBIx::DataModel - Elegant Database Interaction with Perl
    Steven, Laurent has provided some performance benchmarks for raw DBI, DBIC and DBIDM at https://github.com/damil/compare-ORM In that study DBIDM is consistently faster than DBIC but raw DBI is the fastest. I have found DBIDM to be much simpler than DBIC...
  • Posted DBIx::DataModel - Elegant Database Interaction with Perl to Ross Attrill

    DBIx::DataModel (DBIDM) is an Object Relational Mapper for Perl that is very elegant, simple and effective. It helps you to efficiently interact with your database.

    This article discusses three of the great features of DBIDM and …

  • Commented on On the version number succeeding Perl 5
    Great work is already happening with perl5i: https://metacpan.org/module/perl5i Method Signatures or similar must be included for consideration in any future evolution of Perl 5: https://metacpan.org/module/Method::Signatures...
  • Commented on Method::Signatures: where and when
    Congratulations Buddy on this release. Great to see Method::Signatures working on Windows. Thank you!...
  • Commented on Plan (software) to live forever
    I agree with the value you place on documentation. We hear a lot about automated testing and refactoring but documentation and design sometimes seem to be valued less than they should be in the modern (agile) SDLC world....
  • Commented on My Top MySQL Gripes
    Given the ownership of MySql I wouldn't invest much hope in seeing it improve....
  • Commented on Why I'm considering dropping Perlmonks
    I feel that Perlmonks would be healthier place if anonymous posts were not allowed. That said, I keep away and would use stackoverflow if I had a Perl question....
  • Commented on A Method::Signatures Retrospective
    Buddy - are you be able to comment on the plans for Windows support for Method::Signatures? The dependency on Devel::BeginLift is currently a problem on Win32. I note there is an issue to fix this: https://github.com/schwern/method-signatures/issues/39 It would be great...
Subscribe to feed Recent Actions from Ross Attrill

  • Mithaldu commented on Sick of being mocked by unit tests

    When mocking i tend to stick to mocking things purely outside my code. One of the least-mentioned tools, that is incredibly useful for that is Test::MockTime.

  • Hank Sola commented on Sick of being mocked by unit tests

    Here is what I dislike about unit tests:

    They do not necessarily transfer when you refactor. For example, if you add a helper class or move methods from one class to another, your unit tests will have to change. now, if those classes are not exposed to your users and your "public" interfaces did not change, was that work needed?

    If instead you had (block box) tests at the public interface level only, then you can change your implementation entirely without changing your tests or user facing docs.

    So why add unit tests for "private", internal components if you can do…

  • Steven Haryanto commented on Sick of being mocked by unit tests

    Perhaps Test::MockTime is the only useful mock? For other things like filesystem, database, just use the real thing.

  • Aristotle commented on Sick of being mocked by unit tests

    One of the better articles I’ve read in this back&forth:

    Gary Bernhardt: Test Isolation Is About Avoiding Mocks

  • Ether commented on Sick of being mocked by unit tests

    Nice post. I also loathe mocked objects nearly universally. Also, some implementations are problematic -- e.g. Test::MockObject on the CPAN has a number of implementation issues that cause me to pull its use out of any project I can.

    Here's one module I wrote which stands in for the server side of a client-server communication: https://metacpan.org/pod/Test::LWP::UserAgent - useful when you are writing a network client to communicate with a third-party server, and you want to simulate various behaviours of the server. Obvi…

Subscribe to feed Responses to Comments from Ross Attrill

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.