Syntax - Tasty Web Development Treats

Hasty Treat - Why Use a Frontend Framework at All?


Listen Later

In this Hasty Treat, Scott and Wes talk about frontend frameworks — what they are, when you need one, how to organize your code for maximum efficiency, and more!

Stackbit - Sponsor

Build modern JAMStack websites in minutes. Stackbit lets you combine any theme, site generator and CMS without complicated integrations. Join the beta today by visiting stackbit.com/syntaxfm.

Show Notes

3:08 - What is a frontend framework?

  • JavaScript based
    • Controls applications such as:
      • Routing
      • Rendering
      • Data Fetching
    • Examples:
      • React
      • Angular
      • VueJS
      • Ember
      • Backbone
      • Svelte

5:54 - When to use a frontend framework

  • The Link between your JavaScript data and the DOM (your HTML) isn’t live
  • The use of frameworks makes re-updating the DOM (after the initial variable update) easy
  • You need an opinionated way to handle complexity
    • Example:
      • You add an item to a shopping cart, send the event to the backend, and update both the number of items in the cart and the “Add to cart” button
      • Event Handlers - binding and un-binding
  • Your client wants a fast, modern experience
  • Seamless routing and page transitions
  • Fast prototyping
  • Access to battle-tested libraries
    • Security
    • Perf

14:24 - When not to use a frontend framework

  • When using CMS like WordPress and Drupal
  • A medium amount of JavaScript is needed - Vanilla JS will work fine
    • Modals
    • Slideshows
    • Form submits
  • Static pages, no JS functionality
  • Updating an existing project

17:20 - Why can’t I just use jQuery?

  • Vanilla JS contains all of jQuery’s available DOM APIs
  • Frameworks provide structure
  • Organizes code for big projects
Links
  • Syntax 039: Is jQuery Dead?
Tweet us your tasty treats!
  • Scott’s Instagram
  • LevelUpTutorials Instagram
  • Wes’ Instagram
  • Wes’ Twitter
  • Wes’ Facebook
  • Scott’s Twitter
  • Make sure to include @SyntaxFM in your tweets
...more
View all episodesView all episodes
Download on the App Store

Syntax - Tasty Web Development TreatsBy Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

977 ratings


More shows like Syntax - Tasty Web Development Treats

View all
Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

Software Engineering Radio - the podcast for professional software developers

272 Listeners

Hanselminutes with Scott Hanselman by Scott Hanselman

Hanselminutes with Scott Hanselman

383 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

290 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

622 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

584 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

288 Listeners

Thoughtworks Technology Podcast by Thoughtworks

Thoughtworks Technology Podcast

43 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

215 Listeners

The freeCodeCamp Podcast by freeCodeCamp.org

The freeCodeCamp Podcast

487 Listeners

CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

CoRecursive: Coding Stories

189 Listeners

Practical AI by Practical AI LLC

Practical AI

206 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

63 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners

PodRocket by LogRocket

PodRocket

60 Listeners

Oxide and Friends by Oxide Computer Company

Oxide and Friends

66 Listeners