Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
WWW Platform - Modern Landscape
Search
Adrian Aguirre
October 20, 2014
0
36
WWW Platform - Modern Landscape
Adrian Aguirre
October 20, 2014
Tweet
Share
More Decks by Adrian Aguirre
See All by Adrian Aguirre
WWW Platform - Legacy Landscape
adrianaguirre
0
43
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
310
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
Agile that works and the tools we love
rasmusluckow
331
21k
Bash Introduction
62gerente
615
210k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
How to train your dragon (web standard)
notwaldorf
97
6.5k
Visualization
eitanlees
150
17k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
New Earth Scene 8
popppiees
1
1.5k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
380
Code Reviewing Like a Champion
maltzj
527
40k
Transcript
WWW Platform _modern landscape
[ ingredients ]
[ wp-multisite ]....
letʼs us manage multiple wordpress sites through one admin network.
video - create subsite
giveʼs LifeLock teams the ability to manage their own page
creation.
video - create page from template
giveʼs LifeLock teams the ability to manage their own page
content.
video - manage page content floodlight tags editable background images
editable text- tfn, cta, copy
giveʼs LifeLock teams the ability to manage press releases
video - manage press releases
giveʼs LifeLock teams the ability to manage upcoming events
video - manage upcoming events
WWW subsites / - Manage WWW /education - Manage ID101
/pr - Manage Press Releases
WWW Campaigning subsites /dm - Digital Marketing /offers - Partner
/rn - DM / Right Now
with every adventure, there comes some challenges
[challenge]
[optimization]
page speed
code redundancy
scalability
[ ingredients ] we need more
[ sass ] [ sass ]....
css files are getting larger.
more complex
harder to maintain
this is where [ sass] comes in..
[sass] letʼs us use features that don't exist in CSS
yet
variables, nesting, mixins, inheritance and others
video - sass globals: typography, extensions, sprites?
using pre-processed css enhances our ability to...
ACHIEVE OUR PERFORMANCE GOALS
to be optimal, we need to be modular.
the importance of modular architecture
helps with code convention, easier to leverage global elements
ships to QA/QE quicker. easier to debug
focuses on detail
mitigates regression
using sass, json, and html templating....
we can create reusable [modules]
[mySQL] a mutual relationship [ php] [json ]
get data faster?
several server calls [ ] mySQL] [ php
one call & cached?
this is where [ json & php] comes in..
[ php][ json]....
create a json controller
None
execute json using wp-api
wp-admin
[json ]
this is where { mustache } comes in..
{ mustache }....
Mustache? What?
Mustache is a simple logic-less template engine.
template : * {{ name }} * {{ age }}
* {{ company }} * {{{ company }}}
Use key => value to associate data to template
data : array( 'name' => "Chris", 'company' => '<b>GitHub</b>', );
output: * Chris * * <b>GitHub</b> * <b>GitHub</b>
only create a few html templates
data drives the view,
better performance
What does the final flow look like?
json_api_controllers curl json-api parse for mustache bind to mustache template
data defines pageview WordPress / mySQL browser render end-user content input < < < <