際際滷

際際滷Share a Scribd company logo
Andrew Solomon London Perl Meetup #1 2018 @ Zoopla Version 1.0
Action
at a
distance
Whats that got to do with me?
Action at a distance
Gravitational Field
Action at a distance
Gravitational Field
Quantum Entanglement
Action at a distance
Gravitational Field
Quantum Entanglement
Mason Web Framework
Confidential Customized for Lorem Ipsum LLC Version 1.0
Summary
The goal
The data
The action
The code
The problem
Examples
The manifestations
The ultimatum
The Goal
I provide a url
I get content in return
The Data we give Mason
Green = has a handler
The Action Mason takes
Find the handler
descend(X,for-sale/edgeware-rd) , handler(X).
meta-Perl
implementation...
The data...
child(for-sale,for-sale/oxford).
child(for-sale,for-sale/london).
child(for-sale/london,for-sale/w10).
child(for-sale/w10,for-sale/edgeware-rd).
child(to-rent,to-rent/london).
handler(for-sale).
handler(for-sale/london).
 in Prolog
descend(X,Y) :- child(X,Y).
descend(X,Y) :- child(X,Z),
descend(Z,Y).
The problem
1
We determine the content of the page from
the url by database + logic
The problem
1
We determine the content of the page from
the url by database + logic
2
The same data is required for multiple
descendents of a Mason node
The problem
1
We determine the content of the page from
the url by database + logic
2
The same data is required for multiple
descendents of a Mason node
3
We wind up storing this data in global
variables as we traverse the Mason tree
The problem
1
We determine the content of the page from
the url by database + logic
2
The same data is required for multiple
descendents of a Mason node
3
We wind up storing this data in global
variables as we traverse the Mason tree
4
Data retrieved and munged in several non-
obvious places before arriving at the
template.
Action at a distance
The problem
Example - The Doppelganger of Ingleton
https://www.telegraph.co.uk/news/features/10905575/Britains-doppelganger-place-names.html
Action at a distance
Manifestations
Mojo
Passing controller objects into the model
PSGI
Performing path modifications in outer
layers
Everywhere
Doing things outside the appropriate
context
Code reviewer
The Ultimatum
Just because you can...
Code reviewer
The Ultimatum
Just because you can
Doesnt mean you should.
Code reviewer
The Ultimatum
Just because you can
Doesnt mean you should.
End action at a distance
Raiden - Turning over a new leaf at Zoopla
Thank you.

More Related Content

Action at a distance

Editor's Notes

  1. http://thelifeofpsi.com/wp-content/uploads/2013/09/Schr%C3%B6dingers-Cat-3.jpg
  2. http://miriadna.com/desctopwalls/images/max/Rising-gold-sun.jpg