SlideShare uma empresa Scribd logo
1 de 22
CSS:
Can You? !== Should You?
Alice Brosey @ambroseya
alice@alicebrosey.com
Jam on a biscuit.
Photo credit to HTTPS://WWW.THECOUNTRYCOOK.NET/CREAM-BISCUITS-ONLY-2-INGREDIENTS/
CSS or JavaScript?
“For every project, there is a fine line
between the role of CSS and the role
of JavaScript, a balancing act.
Types of Developers
○ I want to do everything with JS because that’s “real
development”.
○ I don’t know enough CSS so I will use mostly JS even
if it’s hacked plugins
○ I want to do everything with CSS because that’s
“cleaner”.
FIND THE BALANCE
Figure out what is BEST, not what is
EASIEST.
CSS
○ Harder different to debug
○ Not quite as dynamic
○ Easy to go too far overboard
○ One mistake can cascade
through many places in the
app
Negative Support
JavaScript
○ May get overly complex
with dependencies
○ One bug can break the
whole app
○ May lead to too little
separation of concerns
CSS
○ Fewer dependencies
○ Better Performance??
○ Separate the clothes from
the body?
○ Don’t manipulate the
DOM
JavaScript
○ Easier to debug
○ Easier to test
○ Better Performance??
Positive Support
REDUCE YOUR
TECHNICAL DEBT
This.
○ Calculations – calc()
○ Flexbox
○ CSS Grid Layout
○ Viewport Units (vh, vw, vmin, vmax)
○ Media Queries
○ Selectors and Pseudoselectors
○ Animation
○ Filter
CSS Everyone Needs
THANKS!
Any questions?
You can find me at:
@ambroseya
alice@alicebrosey.com
Codestock2018 - CSS vs JS

Mais conteúdo relacionado

Mais procurados

Starting Node
Starting NodeStarting Node
Starting Node
xtylerx
 
Introduction to Web Development Career
Introduction to Web Development CareerIntroduction to Web Development Career
Introduction to Web Development Career
Eunus Hosen
 
WeBB MeetUp#1 Web applications caching techniques
WeBB MeetUp#1 Web applications caching techniquesWeBB MeetUp#1 Web applications caching techniques
WeBB MeetUp#1 Web applications caching techniques
Maciej Grajcarek
 
jQueryTO: State of jQuery March 2013
jQueryTO: State of jQuery March 2013jQueryTO: State of jQuery March 2013
jQueryTO: State of jQuery March 2013
dmethvin
 

Mais procurados (20)

Web dev syllabus
Web dev syllabusWeb dev syllabus
Web dev syllabus
 
Starting Node
Starting NodeStarting Node
Starting Node
 
Mozcafe, Hyderabad, India, December, 2012
Mozcafe, Hyderabad, India, December, 2012Mozcafe, Hyderabad, India, December, 2012
Mozcafe, Hyderabad, India, December, 2012
 
Content task
Content taskContent task
Content task
 
MEAN stack
MEAN stackMEAN stack
MEAN stack
 
Introduction to Web Development Career
Introduction to Web Development CareerIntroduction to Web Development Career
Introduction to Web Development Career
 
Ruby course-1-preview
Ruby course-1-previewRuby course-1-preview
Ruby course-1-preview
 
WordPress Multisite Q&A
WordPress Multisite Q&AWordPress Multisite Q&A
WordPress Multisite Q&A
 
Javascript fullstasck
Javascript fullstasckJavascript fullstasck
Javascript fullstasck
 
Choosing the "right" CMS
Choosing the "right" CMSChoosing the "right" CMS
Choosing the "right" CMS
 
Cash Blogging for Beginners
Cash Blogging for BeginnersCash Blogging for Beginners
Cash Blogging for Beginners
 
The webmasters struggle - JD19NL
The webmasters struggle - JD19NLThe webmasters struggle - JD19NL
The webmasters struggle - JD19NL
 
Jquery
JqueryJquery
Jquery
 
Java script introduction
Java script introductionJava script introduction
Java script introduction
 
WeBB MeetUp#1 Web applications caching techniques
WeBB MeetUp#1 Web applications caching techniquesWeBB MeetUp#1 Web applications caching techniques
WeBB MeetUp#1 Web applications caching techniques
 
jQueryTO: State of jQuery March 2013
jQueryTO: State of jQuery March 2013jQueryTO: State of jQuery March 2013
jQueryTO: State of jQuery March 2013
 
Java script tutorial
Java script tutorialJava script tutorial
Java script tutorial
 
How I Repeatedly Broke my WordPress Site - and How I Cleaned-up the Mess
How I Repeatedly Broke my WordPress Site - and How I Cleaned-up the MessHow I Repeatedly Broke my WordPress Site - and How I Cleaned-up the Mess
How I Repeatedly Broke my WordPress Site - and How I Cleaned-up the Mess
 
Contributing To WordPress
Contributing To WordPressContributing To WordPress
Contributing To WordPress
 
Jaggery Introductory Webinar
Jaggery Introductory WebinarJaggery Introductory Webinar
Jaggery Introductory Webinar
 

Semelhante a Codestock2018 - CSS vs JS

Responsive, adaptive and responsible - keynote at NebraskaJS
Responsive, adaptive and responsible - keynote at NebraskaJSResponsive, adaptive and responsible - keynote at NebraskaJS
Responsive, adaptive and responsible - keynote at NebraskaJS
Christian Heilmann
 

Semelhante a Codestock2018 - CSS vs JS (20)

Pre-processing for Fronteers by Viking Kristof Houben
Pre-processing for Fronteers by Viking Kristof HoubenPre-processing for Fronteers by Viking Kristof Houben
Pre-processing for Fronteers by Viking Kristof Houben
 
Will js kill css
Will js kill cssWill js kill css
Will js kill css
 
OOCSS
OOCSSOOCSS
OOCSS
 
Css masterclass book
Css masterclass bookCss masterclass book
Css masterclass book
 
Progressive Web Apps – the return of the web? Goto Berlin 2016
Progressive Web Apps – the return of the web? Goto Berlin 2016Progressive Web Apps – the return of the web? Goto Berlin 2016
Progressive Web Apps – the return of the web? Goto Berlin 2016
 
Design and CSS
Design and CSSDesign and CSS
Design and CSS
 
The Fast And The Fabulous
The Fast And The FabulousThe Fast And The Fabulous
The Fast And The Fabulous
 
How to get a serious front end designer job
How to get a serious front end designer jobHow to get a serious front end designer job
How to get a serious front end designer job
 
The future of BYU web design
The future of BYU web designThe future of BYU web design
The future of BYU web design
 
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
 
Responsive, adaptive and responsible - keynote at NebraskaJS
Responsive, adaptive and responsible - keynote at NebraskaJSResponsive, adaptive and responsible - keynote at NebraskaJS
Responsive, adaptive and responsible - keynote at NebraskaJS
 
What is Object Oriented CSS?
What is Object Oriented CSS?What is Object Oriented CSS?
What is Object Oriented CSS?
 
React Storybook, Atomic Design, and ITCSS
React Storybook, Atomic Design, and ITCSSReact Storybook, Atomic Design, and ITCSS
React Storybook, Atomic Design, and ITCSS
 
CSS vs. JavaScript - Trust vs. Control
CSS vs. JavaScript - Trust vs. ControlCSS vs. JavaScript - Trust vs. Control
CSS vs. JavaScript - Trust vs. Control
 
Http _css-tricks
Http  _css-tricksHttp  _css-tricks
Http _css-tricks
 
Look ma! No images!
Look ma! No images!Look ma! No images!
Look ma! No images!
 
CSS Best Practices
CSS Best PracticesCSS Best Practices
CSS Best Practices
 
Responsive & Responsible: Implementing Responsive Design at Scale
Responsive & Responsible: Implementing Responsive Design at ScaleResponsive & Responsible: Implementing Responsive Design at Scale
Responsive & Responsible: Implementing Responsive Design at Scale
 
How Chunky Do You Need To Be?: Adaptive Content Strategies For The Real World
How Chunky Do You Need To Be?: Adaptive Content Strategies For The Real WorldHow Chunky Do You Need To Be?: Adaptive Content Strategies For The Real World
How Chunky Do You Need To Be?: Adaptive Content Strategies For The Real World
 
Introduction to XMLUI and Mirage Theming for DSpace 3
Introduction to XMLUI and Mirage Theming for DSpace 3Introduction to XMLUI and Mirage Theming for DSpace 3
Introduction to XMLUI and Mirage Theming for DSpace 3
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Codestock2018 - CSS vs JS

  • 1.
  • 2. CSS: Can You? !== Should You? Alice Brosey @ambroseya alice@alicebrosey.com
  • 3. Jam on a biscuit. Photo credit to HTTPS://WWW.THECOUNTRYCOOK.NET/CREAM-BISCUITS-ONLY-2-INGREDIENTS/
  • 5. “For every project, there is a fine line between the role of CSS and the role of JavaScript, a balancing act.
  • 6. Types of Developers ○ I want to do everything with JS because that’s “real development”. ○ I don’t know enough CSS so I will use mostly JS even if it’s hacked plugins ○ I want to do everything with CSS because that’s “cleaner”.
  • 7.
  • 8.
  • 9. FIND THE BALANCE Figure out what is BEST, not what is EASIEST.
  • 10. CSS ○ Harder different to debug ○ Not quite as dynamic ○ Easy to go too far overboard ○ One mistake can cascade through many places in the app Negative Support JavaScript ○ May get overly complex with dependencies ○ One bug can break the whole app ○ May lead to too little separation of concerns
  • 11. CSS ○ Fewer dependencies ○ Better Performance?? ○ Separate the clothes from the body? ○ Don’t manipulate the DOM JavaScript ○ Easier to debug ○ Easier to test ○ Better Performance?? Positive Support
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 19. This.
  • 20. ○ Calculations – calc() ○ Flexbox ○ CSS Grid Layout ○ Viewport Units (vh, vw, vmin, vmax) ○ Media Queries ○ Selectors and Pseudoselectors ○ Animation ○ Filter CSS Everyone Needs
  • 21. THANKS! Any questions? You can find me at: @ambroseya alice@alicebrosey.com

Notas do Editor

  1. Slider
  2. Modal
  3. Image Switcher
  4. Accordion
  5. Form
  6. Lightbox