Even more planet friendly web development with django
Hello!
Chris Adams
environmentally focused tech generalist
@mrchrisadams everywhere online (github, twitter etc.)
forever in the shadow of other Django Developers named Chris Adams
(sup @adams64! sup @acdha!)
When I grow up, I want to be Bret Viktor.
Bret Viktor
worrydream.com
Title Text
worrydream.com/ClimateChange/
worrydream.com/ClimateChange/
Not a short read
Model
Driven
Debate
Title Text
Subtitle
Title Text
Subtitle
A.M.E.E.
Avoid Mass Extinction Engine
"What gets measured, gets managed."
Peter Drucker
(and loads of others)
Biz Plan (abridged)
- Raise VC money (USV, OATV)
- Hire science boffins
- Read hundreds of climate and policy papers (IPCC, EPA, DEFRA etc.)
- Build models based on papers
- Put API on models
- ...
- Profit!
discover.amee.com
"Google for environmental data"
BIG JAVA APP
Platform in java.
Models in javascript.
javascript?
O RLY?
OPENAMEE
OPEN... Avoid Mass Extinction Engine
github.com/openamee/datasets
SCIENCE
DATA
Title Text
Subtitle
ch4Emissions = livestockNumber * massCH4PerHeadPerTime;
var ch4GWP = parseFloat(dataFinder
.getDataItemValue(
'planet/greenhousegases/gwp',
'gas=CH4','GWP'));
co2eEmissions = ch4Emissions * ch4GWP;
returnValues.putValue('CH4', 'kg','year', ch4Emissions);
returnValues.addNote('comment',
'CH4 emissions converted to CO2e using a global' +
'warming potential of '+ ch4GWP);
returnValues.putValue('CO2e', 'kg','year', co2eEmissions);
returnValues.setDefaultType('CO2e');
JAVASCRIPT
what goes into a model
component | file |
---|---|
SCIENCE | documentation.creole |
DATA | data.csv, itemdef.csv |
JAVASCRIPT | default.js |
"any application that can be written in JavaScript, will eventually be written in JavaScript."
Atwood's Law
What if you could run these outside the platform?
Create context to eval JS
Read data CSVs into context
Actually eval JS
Return values
How this might work:
is it that much of a leap?
Thank you!
LINK-SPLOSION
- planetfriendly.productscience.co.uk
- sustainableux.com
- github.com/openamee/datasets
- @mrchrisadams
Beyond Planet Friendly Web Development in Django
By Chris Adams
Beyond Planet Friendly Web Development in Django
- 662