This document discusses the concept of "action at a distance" as it relates to web application frameworks. It gives examples of how Mason, a Perl web framework, retrieves and passes data between distant parts of the application. Specifically, it notes that Mason sometimes stores data in global variables or retrieves it in non-obvious places as it traverses the application tree. It warns that just because a framework allows distant actions, it does not mean those actions should be used, and advocates ending the practice of distant actions in code.
1 of 27
More Related Content
Action at a distance
1. Andrew Solomon London Perl Meetup #1 2018 @ Zoopla Version 1.0
Action
at a
distance
Whats that got to do with me?
3. Action at a distance
Gravitational Field
Quantum Entanglement
4. Action at a distance
Gravitational Field
Quantum Entanglement
Mason Web Framework
5. 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
13. 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
14. 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
15. 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.