enlightened perl organisation

enlightened |en'litnd|: adjective:
having or showing a rational, modern, and well-informed outlook

  

Planet Perl Iron Man

signup banner
Join |  About |  Update your blog feed |  Report a problem

Only showing posts tagged "perl", "cpan" or "ironman" (or containing those words).

Older posts >
Gabor Szabo (szabgab): Patreon and Perl
Once upon a time there was Gittip that became Gratipay that got shut down. Several Perl developers had account there and many got contributions through that platform. A few days ago I've started to use Patreon that allows people to...
Dave Jacoby (jacoby): “Do I Want To Use Windows Subsystem For Linux?”
“Do I Want To Use Windows Subsystem For Linux?”
CV-Library: Avoid work in constructors

Part twelve of a series of posts about automated testing.

Take this contrived example of a class with configuration read from a file on disk:

package ToyWrapper;

use Config::Tiny;

sub new {
my $class = shift;
my %args = @_;
my $config = Config [...]
Dave Jacoby (jacoby): YouTube URL to Markdown Link
We start out with a link to a video on YouTube. For example, https://www.youtube.com/watch?v=5pV9RE7Obj8
Dave Cross (perlhacks): Regenerating Perl School

About five years ago I ran a few training courses under the Perl School brand. The idea was simple – if you price training courses cheaply and run them at the weekend then you eliminate the most common reasons why people don’t keep their Perl knowled [...]

CV-Library: Dependency Injection

Part eleven of a series of posts about automated testing.

To make unit testing possible, you need to be able to mock out accesses to resources such as the filesystem and databases. The best way to make that possible is to use dependency injection - as [...]

CV-Library: Test-Driven Development

Part ten of a series of posts about automated testing.

While discussing unit testing, it is worth looking at the idea of test-driven development, and how we might use it to improve the quality of our code.

The TDD approach goes:

  1. Write one failing test [...]
miguel prz (niceperl): (clxii) CPAN great modules released last week
This is a list of great CPAN modules released last week. A module is considered great if its favorites count is greater or equal than 12.

# CPAN module Version Votes Abstract
1 App::perlbrew 0.81 149 App::perlbrew - Manage perl installations in your $HOME
2 Cata [...]
miguel prz (niceperl): (ccxciv) metacpan weekly report
This is the weekly favourites list of CPAN distributions. Votes count: 33
This week there isn't any remarkable distribution
Build date: 2017/12/09 08:10:25 GMT

Clicked for first time:
miguel prz (niceperl): (cccxviii) stackoverflow perl report
These are the ten most rated questions at Stack Overflow last week.
Between brackets: [question score / answers count]
Build date: 2017-12-09 08:04:32 GMT

  1. Perl DBI (MySQL) puts single quote instead of actual parameter in prepared statement - [7/1]
  2. How to [...]
CV-Library: Mocking filesystems and database access

Part nine of a series of posts about automated testing.

Mocking out time required overriding a relatively small number of core functions. For something like filesystem access, there are a wide range of system calls: open, close, read, write, seek, chm [...]

Dave Jacoby (jacoby): A Really Clever Thing I Wrote
I always use cron, but I rarely use at. I can never remember the syntax.
CV-Library: Mocking Time

Part eight of a series of posts about automated testing.

How does Santa deliver presents to all the millions of children on Christmas Eve? Simple, just stop time! But how do we test that?

Here’s one way to do it in Perl:

use Test::MockTime qw( :all );

my [...]
CV-Library: Arrange, Act, Assert

Part six of a series of posts about automated testing.

There is a guideline for structuring individual unit tests, known as “Arrange, Act, Assert”. The idea is, most tests should be structured in this manner:

sub one_plus_one_should_give_two : Test {
[...]
CV-Library: One test per behaviour

Part five of a series of posts about automated testing.

We are building a self-driving car in Perl. It will pick up jobseekers, and play upbeat music as it drives them to their job interviews. Consider this early code sample:

# Code
package Car;

use Moo [...]
Dave Jacoby (jacoby): Hey! I wrote PracTimer.me!
tl;dr: It’s an easy to use web-based timer! Check it out!
mdk (also): GDPR and Data Management

In this article I am going to focus on some of the challenges we will be facing when we consider the holding of personal data and how to manage, store and erase it. A lot of this article is based around an excellent talk I attended at the London Perl [...]

CV-Library: Prefer testing reusable interfaces

Part four of a series of posts about automated testing.

Tests can be used to document behaviour, and to ensure that APIs you are writing are easy to use for the caller. If implementation details of your code change, but the interface is stable, the te [...]

CV-Library: What's in a test name?

Part three of a series of posts about automated testing.

Naming things is one of the hard problems of computer science. However, when it comes to tests, here’s a guideline that could help: include both the condition and the expected behaviour in the t [...]

miguel prz (niceperl): (clxi) CPAN great modules released last week
This is a list of great CPAN modules released last week. A module is considered great if its favorites count is greater or equal than 12.

# CPAN module Version Votes Abstract
1 CGI 4.38 29 Handle Common Gateway Interface requests and responses
2 CryptX 0.055 30 Cry [...]
miguel prz (niceperl): (ccxciii) metacpan weekly report - Ref::Util
This is the weekly favourites list of CPAN distributions. Votes count: 51
Week's winners (+3): Ref::Util
Build date: 2017/12/02 20:31:57 GMT

Clicked for first time:
Older posts >