SlideShare una empresa de Scribd logo
1 de 72
OOCSS IN THE
REAL WORLD
A Case Study from the CBC
CBC.CA
• 9.1 million pages in Google
• 4.5 million visits per month
• 200 stories a day
• 24 UI developers
CBC.CA
9.1 million pages in Google
4.5 million visits per month
200 stories a day
24 UI developers+
Complexity
http://www.flickr.com/photos/samsushiro/8741594581
How can we do things better?
How can we do things better?
OOCSS
OOCSS is a technique, not a
technology
NICOLE SULLIVAN
stubbornella.org
“Following our beloved best
practices leads to bad outcomes
every. single. time.”
~Nicole Sullivan
.topstories ul.primary { float: left; width: 460px; }
.topstories ul.secondary { float: right; width: 140px; }
.topstories ul.secondary li { border-bottom: 1px solid
#ccc; }
#editorspicks {
background: #eee; border-top: 5px solid #ccc; }
#editorspicks ul li { border-bottom: 1px solid #ccc; }
STATS
Style sheets 16
float: left; 78
font-size: *; 114
width: 300px; 34
border-top: 5px solid #c4c4c4; 7
.media
.media_reversed
Embrace visual semantics
OPERATION
TWITTER BOOTSTRAP
THE PLAN
1. Find a framework
2. Use it
FRAMEWORKS
• Twitter Bootstrap
• OOCSS
• inuit.css
• Pure
OPERATION
CBC BOOTSTRAP
THE PLAN
1. Identify visual patterns
2. Codify objects
3. Get crazy with the classes
CHALLENGE
RETRAINING YOUR
GUT
BENEFIT
GRIDS ARE A
GATEWAY TO
OOCSS
CHALLENGE
NAMING IS HARD
.distinct
BENEFIT
TIGHTER
INTEGRATION WITH
DESIGN
CHALLENGE
FINDING THE RIGHT
GRANULARITY
BENEFIT
SEEING THE
REUSE HAPPEN
.contentlist
.contentlist_grid
.repel
.videolink
BENEFIT
A CMS PRODUCES
STANDARDIZED
CODE
CHALLENGE
A CMS PRODUCES
STANDARDIZED
CODE
LINEUP ROLL
News Sports
The greatest weakness of OOCSS is
the tight coupling between HTML and
design
OPERATION
WIDOWMAKER
THE QUESTION
How do we have
• reusable objects,
• fixed HTML, and
• multiple themes?
THE ANSWER
SASS @extend
Pre-compile Post-compile
LINEUP ROLL
News Sports
news.scss sports.scss
LINEUP ROLL
News Sports
Output
SASS
@extend
OOCSS
Core
Library
news.scss news.css
sports.scss sports.css
CHALLENGE
BUILD PROCESS IS
MORE COMPLEX
CHALLENGE
COMPILED CODE
IS OBFUSCATED
BENEFIT
“BACKWARDS
COMPATIBLE”
BENEFIT
OPTIMIZATION
BECOMES CLEAR
PODIUM
• Reusable
• Scalable
• Flexible
• Themeabl
e
STATS
Style sheets 16
float: left; 78
font-size: *; 114
width: 300px; 34
border-top: 5px solid #c4c4c4; 7
STATS
Style sheets 16 11
float: left; 78 47
font-size: *; 114 94
width: 300px; 34 3
border-top: 5px solid #c4c4c4; 7 1
STATS
Style sheets 16 11 1
float: left; 78 47 9
font-size: *; 114 94 48
width: 300px; 34 3 1
border-top: 5px solid #c4c4c4; 7 1 1
RESOURCES
Jonathan Snook
SMACSS
http://snook.ca
Nicole Sullivan
OOCSS
http://stubbornella.org
Harry Roberts
inuit.css
http://csswizardry.com
Yandex
BEM
http://bem.info
Jamie Strachan
jamie.strachan@cbc.ca

Más contenido relacionado

Similar a OOCSS in the Real World: A Case Study from the CBC with Jamie Strachan

Selfish accessibility: 2015 Buffalo Unconference
Selfish accessibility: 2015 Buffalo UnconferenceSelfish accessibility: 2015 Buffalo Unconference
Selfish accessibility: 2015 Buffalo Unconference
Adrian Roselli
 
Size Doesn't Matter
Size Doesn't MatterSize Doesn't Matter
Size Doesn't Matter
Roy Degler
 
Inner circle 2013
Inner circle 2013Inner circle 2013
Inner circle 2013
carlene_cox
 
Advanced Virtual Reference Training
Advanced Virtual Reference TrainingAdvanced Virtual Reference Training
Advanced Virtual Reference Training
Don Boozer
 

Similar a OOCSS in the Real World: A Case Study from the CBC with Jamie Strachan (17)

OOCSS in the Real World: A Case Study from the CBC
OOCSS in the Real World: A Case Study from the CBCOOCSS in the Real World: A Case Study from the CBC
OOCSS in the Real World: A Case Study from the CBC
 
OOCSS in the Real World: A Case Study from the CBC - Revisited
OOCSS in the Real World: A Case Study from the CBC - RevisitedOOCSS in the Real World: A Case Study from the CBC - Revisited
OOCSS in the Real World: A Case Study from the CBC - Revisited
 
UXSG2014 Lightning Talks - Selfish accessibility (Adrian Roselli)
UXSG2014 Lightning Talks - Selfish accessibility (Adrian Roselli)UXSG2014 Lightning Talks - Selfish accessibility (Adrian Roselli)
UXSG2014 Lightning Talks - Selfish accessibility (Adrian Roselli)
 
Redesign in Cascade Server
Redesign in Cascade ServerRedesign in Cascade Server
Redesign in Cascade Server
 
Carrying the Banner: Reinventing News on Your University Website
Carrying the Banner: Reinventing News on Your University WebsiteCarrying the Banner: Reinventing News on Your University Website
Carrying the Banner: Reinventing News on Your University Website
 
Selfish accessibility: 2015 Buffalo Unconference
Selfish accessibility: 2015 Buffalo UnconferenceSelfish accessibility: 2015 Buffalo Unconference
Selfish accessibility: 2015 Buffalo Unconference
 
Size Doesn't Matter
Size Doesn't MatterSize Doesn't Matter
Size Doesn't Matter
 
12 Agile UX Sins
12 Agile UX Sins12 Agile UX Sins
12 Agile UX Sins
 
Slide share social media as a therapist superpower!_presentation
Slide share social media as a therapist superpower!_presentationSlide share social media as a therapist superpower!_presentation
Slide share social media as a therapist superpower!_presentation
 
Agile considered Harmful - Nigel Runnels-Moss
Agile considered Harmful - Nigel Runnels-MossAgile considered Harmful - Nigel Runnels-Moss
Agile considered Harmful - Nigel Runnels-Moss
 
Inner Circle 2013
Inner Circle 2013Inner Circle 2013
Inner Circle 2013
 
Inner circle 2013
Inner circle 2013Inner circle 2013
Inner circle 2013
 
Selfish Accessibility: a11y Camp NYC 2015
Selfish Accessibility: a11y Camp NYC 2015Selfish Accessibility: a11y Camp NYC 2015
Selfish Accessibility: a11y Camp NYC 2015
 
Are We There Yet? Create, Manage & Measure Your Web Campaign Success
Are We There Yet?  Create, Manage & Measure Your Web Campaign SuccessAre We There Yet?  Create, Manage & Measure Your Web Campaign Success
Are We There Yet? Create, Manage & Measure Your Web Campaign Success
 
Advanced Virtual Reference Training
Advanced Virtual Reference TrainingAdvanced Virtual Reference Training
Advanced Virtual Reference Training
 
What's working on the web and why? - PMDMC, July 2014
What's working on the web and why? - PMDMC, July 2014What's working on the web and why? - PMDMC, July 2014
What's working on the web and why? - PMDMC, July 2014
 
SXSW Interactive 2012 (According to Chelsey)
SXSW Interactive 2012 (According to Chelsey)SXSW Interactive 2012 (According to Chelsey)
SXSW Interactive 2012 (According to Chelsey)
 

Más de FITC

Designing for Digital Health
Designing for Digital HealthDesigning for Digital Health
Designing for Digital Health
FITC
 
Profiling JavaScript Performance
Profiling JavaScript PerformanceProfiling JavaScript Performance
Profiling JavaScript Performance
FITC
 
HyperLight Websites
HyperLight WebsitesHyperLight Websites
HyperLight Websites
FITC
 
Everything is Terrifying
Everything is TerrifyingEverything is Terrifying
Everything is Terrifying
FITC
 
Post-Earth Visions: Designing for Space and the Future Human
Post-Earth Visions: Designing for Space and the Future HumanPost-Earth Visions: Designing for Space and the Future Human
Post-Earth Visions: Designing for Space and the Future Human
FITC
 

Más de FITC (20)

Cut it up
Cut it upCut it up
Cut it up
 
Designing for Digital Health
Designing for Digital HealthDesigning for Digital Health
Designing for Digital Health
 
Profiling JavaScript Performance
Profiling JavaScript PerformanceProfiling JavaScript Performance
Profiling JavaScript Performance
 
Surviving Your Tech Stack
Surviving Your Tech StackSurviving Your Tech Stack
Surviving Your Tech Stack
 
How to Pitch Your First AR Project
How to Pitch Your First AR ProjectHow to Pitch Your First AR Project
How to Pitch Your First AR Project
 
Start by Understanding the Problem, Not by Delivering the Answer
Start by Understanding the Problem, Not by Delivering the AnswerStart by Understanding the Problem, Not by Delivering the Answer
Start by Understanding the Problem, Not by Delivering the Answer
 
Cocaine to Carrots: The Art of Telling Someone Else’s Story
Cocaine to Carrots: The Art of Telling Someone Else’s StoryCocaine to Carrots: The Art of Telling Someone Else’s Story
Cocaine to Carrots: The Art of Telling Someone Else’s Story
 
Everyday Innovation
Everyday InnovationEveryday Innovation
Everyday Innovation
 
HyperLight Websites
HyperLight WebsitesHyperLight Websites
HyperLight Websites
 
Everything is Terrifying
Everything is TerrifyingEverything is Terrifying
Everything is Terrifying
 
Post-Earth Visions: Designing for Space and the Future Human
Post-Earth Visions: Designing for Space and the Future HumanPost-Earth Visions: Designing for Space and the Future Human
Post-Earth Visions: Designing for Space and the Future Human
 
The Rise of the Creative Social Influencer (and How to Become One)
The Rise of the Creative Social Influencer (and How to Become One)The Rise of the Creative Social Influencer (and How to Become One)
The Rise of the Creative Social Influencer (and How to Become One)
 
East of the Rockies: Developing an AR Game
East of the Rockies: Developing an AR GameEast of the Rockies: Developing an AR Game
East of the Rockies: Developing an AR Game
 
Creating a Proactive Healthcare System
Creating a Proactive Healthcare SystemCreating a Proactive Healthcare System
Creating a Proactive Healthcare System
 
World Transformation: The Secret Agenda of Product Design
World Transformation: The Secret Agenda of Product DesignWorld Transformation: The Secret Agenda of Product Design
World Transformation: The Secret Agenda of Product Design
 
The Power of Now
The Power of NowThe Power of Now
The Power of Now
 
High Performance PWAs
High Performance PWAsHigh Performance PWAs
High Performance PWAs
 
Rise of the JAMstack
Rise of the JAMstackRise of the JAMstack
Rise of the JAMstack
 
From Closed to Open: A Journey of Self Discovery
From Closed to Open: A Journey of Self DiscoveryFrom Closed to Open: A Journey of Self Discovery
From Closed to Open: A Journey of Self Discovery
 
Projects Ain’t Nobody Got Time For
Projects Ain’t Nobody Got Time ForProjects Ain’t Nobody Got Time For
Projects Ain’t Nobody Got Time For
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 

OOCSS in the Real World: A Case Study from the CBC with Jamie Strachan

Notas del editor

  1. Caveat: still applies to mobile
  2. Audience Poll
  3. 5
  4. 20
  5. 40