Syntax - Tasty Web Development Treats
Syntax - Tasty Web Development Treats

Hasty Treat - Why Use a Frontend Framework at All?

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 complica

Featured Speakers

Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers Host

Topics Discussed

Episode Summary

Executive Summary: The episode explains what front-end frameworks are and why developers might use them instead of vanilla JavaScript or jQuery. The hosts argue frameworks help with data binding, routing, rendering, and organizing complex app logic, but aren’t always necessary for simple sites, CMS-driven projects, or small bits of interactivity. They stress choosing the tool that maximizes speed, maintainability, and user experience.

Main Topics: What front-end frameworks are: Frameworks are presented as JavaScript platforms that handle common app tasks like rendering, routing, and data fetching on the client side, helping organize code and simplify UI development. Benefits of frameworks for reactive UI: The hosts emphasize live data binding and automatic DOM updates, where changing variables updates every place they are used without manual DOM manipulation. Routing and app-like navigation: Frameworks enable client-side routing and page transitions that avoid full page refreshes, making sites feel more like applications than traditional websites. Managing complexity and avoiding spaghetti code: For larger applications, frameworks provide structure and conventions that reduce brittle code, repeated logic, and hard-to-maintain UI event handling. When not to use a framework: They recommend skipping frameworks for CMS-based sites, small-to-medium JavaScript needs, and legacy projects where a rewrite would be unnecessary or costly. Why jQuery is less necessary: The browser now supports most jQuery capabilities natively, so if a framework isn’t needed, vanilla JavaScript is preferred for simplicity and performance. Personal workflow and developer preference: The hosts note that framework usage is often a matter of comfort and productivity, with both acknowledging they frequently reach for frameworks because they are faster and more organized for them.

Key Arguments: Frameworks reduce the need to manually synchronize JavaScript state with the DOM, making UI updates easier and less error-prone. Client-side routing and transitions can improve UX by avoiding full page reloads and making sites feel more app-like. Frameworks help enforce conventions and structure, which is valuable as applications grow in size and complexity. Vanilla JavaScript is still appropriate for simple interactions or small features; loading a framework can be unnecessary overhead. For CMS or legacy projects, a major rewrite into a framework is usually not worth the cost unless there is a strong business reason. jQuery is less compelling today because modern browsers provide most of its core DOM-manipulation features directly. Developer speed matters: if a framework like Gatsby, Next.js, React, or Angular makes building faster and more maintainable, that can outweigh its downsides.

Data Points: No. of framework examples named: 6+ - React, Angular, Vue, Ember, Backbone, and Svelte are referenced as examples of front-end frameworks or framework-like tools. Sponsor beta access URL: stackbit.com/syntax fm - Listeners are directed to Stackbit’s URL to join the closed beta. Framework vs. vanilla approach: 100% trademarked just JavaScript - A humorous line describing that frameworks are still fundamentally built on JavaScript. Estimated usage preference: 70% framework / 20% vanilla JavaScript - Scott estimates most of his work uses frameworks, with a smaller portion done in vanilla JS.

Pivotal Quotes: "I have not built a site without a front-end framework since learning Angular." — Scott: Scott explains his strong preference for frameworks and why he often reaches for them by default. "You either use a front-end framework or you end up building one yourself by the time you're done." — Wes: A common joke used to argue that complex custom JavaScript apps often reinvent framework behavior. "The browser has pretty much caught up with everything that jQuery can do." — Wes: Used to explain why jQuery is no longer necessary for most modern front-end work.

Implications: Developers should choose frameworks when they need scale, reactivity, and structure, but avoid them for simple sites or legacy updates. The modern default is either a framework or lean vanilla JS, not jQuery.

🔓 Sign Up for Unlimited Episode Search

About Syntax - Tasty Web Development Treats

View all episodes from Syntax - Tasty Web Development Treats