user-pic

Grinnz

  • About: I blog about Perl.
Subscribe to feed Recent Actions from Grinnz

  • Aristotle commented on Can't post a comment here -- dunno why

    Previewing doesn’t kill the session. It’s just that the submit action on the preview page somehow fails to find or load the session correctly. But with the form on the article page, submitting works. So all you need to do is, after previewing, hit the back button before doing anything else. There is no need to keep signing back in over and over.

    Obviously, do copy the comment to the clipboard before trying to submit, just in case. Most of the time this step is unnecessary – but on rare occasions, going back from the preview page seems to have eaten my comment. (I’m not sure i…

  • davebaker commented on Can't post a comment here -- dunno why

    Test -- after having logged out, cleared blogs.perl.org cookies -- not using the Preview button first.

  • davebaker commented on Can't post a comment here -- dunno why

    Test -- after having logged out, cleared blogs.perl.org cookies -- but using the Preview button first -- no joy when using the Submit button on the preview page ("your session has expired") -- now trying Aristotle's back button idea ...

  • davebaker commented on Can't post a comment here -- dunno why

    Thanks, Aristotle!

    It works (using the browser's back button to return to the original page, then using the Submit button underneath the Leave a Comment field).

    Signing out and clearing cookies before logging back in didn't solve the problem (I still got a "your session has expired" when using the Submit button on the preview page).

  • Tom Metro commented on A Date with CPAN, Update #3: Golden Jubilee

    >hardcoding test results has other problems

    We always coach developers to use hard coded test data to the extent practical. When writing tests you have to unlearn a lot of DRY principles. We tolerate a lot more repetition, and factor it out sparingly.

    There are two main reasons why you do this:
    1. Any bit of clever calculation in your test could could be wrong. Hard coded values are easy to hand verify.
    2. Your test should read like an example of how to use your API, and having lots of layers of indirection and data generators makes the code less readable.

Subscribe to feed Responses to Comments from Grinnz

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 hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.