Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Old-school Javascript in Rails by Graham Conzett Sometimes vanilla Javascript and Rails out-of-the box UJS is good enough, especially when it comes to building things like admin panels and other types of content management. We'll discuss strategies for building rich user interfaces using minimal vanilla Javascript that leverages as much of Rails UJS as we can.
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
# Summary of 'Old-school Javascript in Rails' In this talk by Graham Conzett at RailsConf 2018, the focus is on utilizing minimalist, old-school JavaScript in Rails applications to build rich user interfaces without relying heavily on modern frameworks like React or Angular. The discussion emphasizes that sometimes simple vanilla JavaScript alongside Rails' unobtrusive JavaScript (UJS) capabilities can meet application needs effectively, especially for content management systems (CMS) and administrative tools. ## Key Points Discussed: - **Introduction to the Speaker and Context**: Graham Conzett introduces himself and his background in software development. He shares anecdotes from his professional experiences and sets the stage for his presentation on JavaScript in Rails. - **Philosophy of Choosing Tools**: The speaker clarifies that the discussion is not against modern JavaScript frameworks but advocates for using the right tool for the job. Conzett has experience with React but aims to showcase how basic JavaScript suffices for certain applications. - **Case Study from Work**: He shares a scenario from his work at Orange Barrel Media, where they transitioned from a complicated Rails application to a simpler one that still met user demands without overwhelming dependencies. - **Old-school JavaScript Approach**: The main theme revolves around leveraging Rails UJS to manage interactions on the client side. He introduces the concept of a “sprinkle continuum” that describes how minimal JavaScript can enhance user experience without full-fledged frameworks. - **Demonstrations**: Throughout the talk, Conzett provides various coding examples that show: - Basic CRUD operations using Rails UJS, demonstrating how to create and delete records asynchronously with minimal JavaScript. - The implementation of user experience enhancements such as flash notifications and inline edits without complex JavaScript frameworks. - The implementation of functionalities like reordering items on a list by leveraging built-in browser capabilities for drag-and-drop. - **User Experience Considerations**: He emphasizes the importance of providing user feedback during AJAX operations, discussing how to implement loading spinners or indicators for a better interaction experience. - **Limitations of the Approach**: Despite the effectiveness of using Rails UJS, the speaker acknowledges scenarios where it may not be sufficient, particularly in cases requiring complex filtering or state management that single-page applications typically handle better. - **Conclusions and Discussions**: Conzett wraps up the presentation by encouraging discussion about the practices shown and any potential limitations of using this
Suggest modifications
Cancel