Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Untitled No. 12
Search
Stevan Little
January 16, 2010
Programming
250
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Untitled No. 12
I gave this talk at the Orlando Perl Workshop in 2010
Stevan Little
January 16, 2010
More Decks by Stevan Little
See All by Stevan Little
Perl's not dead, .. it got better!
stevan_little
1
810
Perl's Syntactic Legacy
stevan_little
0
1.2k
Installation & Configuration of Modern Perl
stevan_little
2
710
Moe Status Update
stevan_little
1
1.4k
Perl - The Detroit of Scripting Languages
stevan_little
14
13k
Perl is not Dead, it is a Dead End
stevan_little
38
46k
Perl 5 MOP
stevan_little
9
2.1k
REST from the trenches
stevan_little
6
1.6k
DC-Baltimore Perl Workshop - Keynote
stevan_little
4
930
Other Decks in Programming
See All in Programming
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
1.1k
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
1.1k
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
180
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
2
1.2k
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
900
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
360
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
200
ジョジョの世界をXRで再現する
mofurune
0
180
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
270
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
Groovy as a human and AI friendly programming language
paulk
0
100
ChromeでローカルLLM
ryu1013
0
160
Featured
See All Featured
Abbi's Birthday
coloredviolet
4
10k
Leo the Paperboy
mayatellez
10
2.4k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
GitHub's CSS Performance
jonrohan
1033
470k
How to make the Groovebox
asonas
2
2.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
What's in a price? How to price your products and services
michaelherold
247
13k
Marketing to machines
jonoalderson
1
5.9k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
720
Transcript
hello
Welcome to my talk, here are some of the modules
I will be talking about
Bread::Board is a Dependency Injection framework, available on CPAN
Plack is Web Infastructure-ware written by miyagawa
Plack::Middleware is the killer app of Plack
Path::Router is a module available on CPAN
... and of course Moose
But first let me toast Open Source, for all the
collaboration and sharing of ideas that make it so much fun to participate in.
There is vast knowledge and great ideas to be found
out there, both in the ivory towers of CompSci departments and in other Open Source communities, it is time to rediscover some ...
This is a great book with a lot of Lambda
Calculus in it and the Y-Combinator is awesome, this kind of elegance and simplicity is not useful, but should be inspiring
Smalltalk is a great system from which too steal from,
Steve Jobs did it in the 80s, Ruby did it in the 90s and Moose did it in the 00s
Haskell is mind-bendingly insane and strikingly beautiful at the same
time
LISP is a wonderful language used by many really smart
people, we can learn from them too
Moose borrows shamelessly from all these technologies and more and
brings them to Perl
Miyagawa has been mining the knowledge of other Open Source
communities to bring us Plack and the next generation of Perl web tools
Now I would like to show you my latest experiment,
bringing together the modules I mentioned earlier.
The goal is simplicity and avoiding needless framework boilerplate or
useless subclassing
Here is an example of a simple counting program, over-engineered
to illustrate how the pieces of an OX::Application fit together
This is the core of the Bread::Board config, notice the
circular dependency between View/Nib and Controller/Root, Bread::Board takes care of this.
This is the routing spec, it defines the available URLs
for the application and will automatically wire them to the controller dependencies
Here is the model, very simple plain old Moose class
Here is the controller, also a simple plain old Moose
class
This is an experiment in making TT work in a
way that is conceptually similar to Cocoa (the Mac OS X framework)
This is our .psgi file, it is so simple and
clean :)
This is our .psgi file evolved to take advantage of
some Plack::Middleware
Web apps should be easily testable too, here we fetch
Bread::Board services to test.
Here we use the Test::Path::Router to check the URLs our
web application will respond too
Here we use Plack::Test to test our web application
Holy crap, look at all the plugs in that outlet!