kwakwaversal / task-belike-kwakwa

Be more like KWAKWA - use the modules he likes!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAME

Task::BeLike::KWAKWA - Be more like KWAKWA!

TASK CONTENTS

Apps

# search Perl related files (.pl, .pm, .t)
$ ack --perl foo

# search Perl files except .t
$ echo "--type-add=plpm=.pl,.pm" >> ~/.ackrc
$ ack --plpm foo

Module::Version for mversion

$ mversion Mojolicious
7.61

DateTime manipulation

my $dt = DateTime::Format::ISO8601->parse_datetime('2018-01-01T00:00:00Z');

Debugging

Install Term::ReadLine::Gnu. You'll likely need libreadline-dev or readline-devel to have actual readline support.

    # ~/.replyrc
script_line1 = use strict
    script_line2 = use warnings
    script_line3 = use 5.024000

    [Interrupt]
    [FancyPrompt]
    [DataDumper]
    [Colors]
    [ReadLine]
    [Hints]
    [Packages]
    [LexicalPersistence]
    [ResultCache]
    [Autocomplete::Packages]
    [Autocomplete::Lexicals]
    [Autocomplete::Functions]
    [Autocomplete::Globals]
    [Autocomplete::Methods]
    [Autocomplete::Commands]

Filesystem

File::chdir more sensible way to change directories

Module management

Testing

Testing is hard to get right. Consider when writing tests which category the test falls under and test and organise appropriately. Typically they can be categorized as integration tests (how major parts of a system work together), unit tests (exercising modules), functional/user acceptance tests (use case scenarios, BDD).

Avoid using if statements. If your tests have branches, your tests need tests.

Test::Mojo can be used to test Dancer2 apps too.

Web

AUTHOR

Paul Williams kwakwa@cpan.org

COPYRIGHT

Copyright 2018- Paul Williams

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Task::BeLike::DAGOLDEN, Task::BeLike::RJBS.

About

Be more like KWAKWA - use the modules he likes!

License:Other


Languages

Language:Perl 100.0%