Daily Shaarli

All links of one day in a single page.
MVC Tutorials Are Broken - DEV Community
thumbnail

Note: The Model, View, Controller pattern, or “MVC”, actually comes in many flavors.

Model—The application.
View—What the consumer (user) sees. Often HTML, JSON, or XML.
Controller—A thin layer connecting the View and the Model.

And that’s it! There’s nothing fancy, but it often requires explanation. The controller, as shown above, should be as thin as possible. The view should only have display logic and the model is ... what, exactly?

Dist::Zilla::PluginBundle::Starter - A new way to start using Dist::Zilla - DEV Community
thumbnail

Dist::Zilla is an extremely powerful and versatile CPAN authoring tool, which has enabled me to relia... Tagged with perl.

The Perl debugger can be your superpower - The Phoenix Trap
thumbnail

What if I told you that you could freeze time in the middle of your program?

By far my favorite thing to do with the debugger is to run it against test scripts using the prove command. This takes advantage of prove’s ability to run an arbitrary interpreter through its test harness. Run it like this:

% prove --verbose --lib --exec 'perl -Ilib -d' t/foo.t