I said I hated the code on http://imgur.com/gallery/ZM0lYhb/ and StillNotYouTube asked for a better explanation. So here it is
if (foo == bar) {
return "foo is bar";
} else {
return "foo is not bar";
}
Is bad form. I would like:
| Mark@travis:~/tmp/nac$ ls | |
| MyClass.pm MyConstants.pm RoleA.pm RoleB.pm | |
| Mark@travis:~/tmp/nac$ cat MyConstants.pm | |
| package MyConstants; | |
| use base qw(Exporter); | |
| # this is fine | |
| sub my_good_constant { 1 }; | |
| push @EXPORT_OK, qw(my_good_constant); |
| #!/opt/markperl/bin/perl | |
| use strict; | |
| use warnings; | |
| use Mojo::Template; | |
| use Path::Class qw(file dir); | |
| use Cwd qw(cwd); | |
| my $dist_name = dir(cwd)->dir_list(-1); |
I said I hated the code on http://imgur.com/gallery/ZM0lYhb/ and StillNotYouTube asked for a better explanation. So here it is
if (foo == bar) {
return "foo is bar";
} else {
return "foo is not bar";
}
Is bad form. I would like:
| Mark@travis:/tmp$ perl foo.t | |
| # Seeded srand with seed '20170104' from local date. | |
| ok 1 - arse | |
| 1..1 | |
| Mark@travis:/tmp$ T2_FORMATTER=EventStream perl foo.t | |
| T2_FORMATTER: EventStream | |
| T2_EVENT: {"message":"Seeded srand with seed '20170104' from local date.","__PACKAGE__":"Test2::Event::Note","trace":{"__PACKAGE__":"Test2::Util::Trace","frame":["Test2::Plugin::SRand","/opt/markperl/lib/site_perl/5.22.0/Test2/Plugin/SRand.pm","59","SRAND"],"tid":0,"pid":92868}} | |
| T2_ENCODING: utf8 | |
| T2_EVENT: {"effective_pass":1,"pass":1,"__PACKAGE__":"Test2::Event::Ok","trace":{"frame":["main","foo.t",5,"Test2::Tools::Basic::ok"],"__PACKAGE__":"Test2::Util::Trace","tid":0,"pid":92868},"name":"arse"} | |
| T2_EVENT: {"max":1,"__PACKAGE__":"Test2::Event::Plan","trace":{"tid":0,"pid":92868,"frame":["main","foo.t",6,"Test2::Tools::Basic::done_testing"],"__PACKAGE__":"Test2::Util::Trace"},"directive":""} |
| Mark@travis:~/co/Test2-Harness-Renderer-TeamCity$ cat t/test-data/basic/simple-fail/input.st | |
| use strict; | |
| use warnings; | |
| use Test::More; | |
| ok 0, 'simple-fail-msg'; | |
| done_testing; | |
| Mark@travis:~/co/Test2-Harness-Renderer-TeamCity$ cat TeamCitySerial t/test-data/basic/simple-fail/expected.txt |
| {"version":"0.3.2","level":"debug","message":"app is ready","timestamp":"2017-01-12T21:07:16.209Z"} | |
| {"hotkey":"alt+space","level":"verbose","message":"registering zazu hotkey","timestamp":"2017-01-12T21:07:16.255Z"} | |
| {"level":"info","message":"Adding to win32 or darwin startup","timestamp":"2017-01-12T21:07:16.452Z"} | |
| {"level":"verbose","message":"git clone [tinytacoteam/zazu-light-theme] has 3 attempts","timestamp":"2017-01-12T21:07:19.225Z"} | |
| {"level":"verbose","message":"git clone [tinytacoteam/zazu-light-theme] success","timestamp":"2017-01-12T21:07:20.071Z"} | |
| {"plugin":"tinytacoteam/zazu-light-theme","level":"verbose","message":"loading package: tinytacoteam/zazu-light-theme","timestamp":"2017-01-12T21:07:20.072Z"} | |
| {"plugin":"tinytacoteam/zazu-light-theme","level":"info","message":"loading css for theme","timestamp":"2017-01-12T21:07:20.078Z"} | |
| {"level":"verbose","message":"git clone [tinytacoteam/zazu-calculator] has 3 attempts","timestamp":"2017-01-12T21:07:20.094Z"} | |
| {"level":"verbose","message":"git clone |
| Meetingwall | |
| =========== | |
| Today is gonna be the day | |
| That they're gonna throw it back to you | |
| By now you should've somehow | |
| Realized what you gotta do | |
| I don't believe that anybody | |
| Feels the way I do, about this now |
| { | |
| "title" : "iTunes direct", | |
| "rules" : [ | |
| { | |
| "manipulators" : [ | |
| { | |
| "from" : { | |
| "modifiers" : { | |
| "mandatory" : [ | |
| "fn", |