Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
6 degrees of JavaScript on Rails by Michael Crismali How much JavaScript you include in your Rails application can feel like a choice between basically none or a full JavaScript single page application backed by a Rails API. When you have a team of people whose confidence with JavaScript is all over the place, this can feel like an impossible choice. Fortunately, there are many options in the middle that can allow those with less JavaScript confidence to stretch and grow while those with more confidence can build UI components with fewer constraints.
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In Michael Crismali's talk titled "6 Degrees of JavaScript on Rails" presented at RailsConf 2018, he discusses the various ways in which JavaScript can be integrated into a Ruby on Rails application. The crux of his presentation centers around the challenge faced by developers with differing levels of comfort with JavaScript, and he proposes a spectrum of integration strategies that can help manage these disparities. Key points from the talk include: - **JavaScript’s Ubiquity**: Crismali emphasizes that JavaScript is increasingly essential in web development, with its capabilities expanding beyond browsers to native applications. - **The Two Extremes**: Developers often feel pressured to choose between minimal use of JavaScript in Rails or committing to a full-fledged single-page application (SPA). This binary choice can be overwhelming, especially when working within diverse teams. - **The Six Degrees Framework**: 1. **Unobtrusive JavaScript**: Basic interactions can be achieved without much JavaScript knowledge, allowing developers to implement essential UI behaviors with minimal effort. 2. **jQuery Widgets**: Utilizing jQuery for enhanced interactivity, although this can lead to disorganized code, termed as "jQuery soup". 3. **Structured JavaScript**: Organizing JavaScript via structures like Stimulus to manage complexity while leveraging Rails’ asset pipeline. 4. **Sprinkling Frameworks**: Introducing elements of JavaScript frameworks to incrementally enhance user interaction without fully transitioning to SPA architecture. 5. **Framework Pages**: Creating pages that are heavily reliant on frameworks, inviting higher sophistication in user interactions. 6. **Single Page Application**: Running a complete SPA within a Rails application, providing a seamless user experience while simplifying deployment challenges. - **Examples and Anecdotes**: Crismali uses relatable scenarios, including dealing with user interactions in Rails apps, to illustrate the various degrees of integration and the potential pitfalls at each level. - **Conclusion**: The conclusion stresses that mixing and matching these degrees is possible, allowing teams to operate collaboratively despite varying levels of JavaScript expertise. Developers are encouraged to use the degree that fits their team’s skill set and project needs. Resources for further learning were also shared. Overall, Crismali's presentation provides a comprehensive guide for Rails developers to consider how JavaScript can be integrated thoughtfully into their applications, ultimately enhancing both performance and maintainability.
Suggest modifications
Cancel