Ruby Video
Talks
Speakers
Events
Topics
Leaderboard
Sign in
Talks
Speakers
Events
Topics
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RubyConf AU 2014: http://www.rubyconf.org.au The Rails asset pipeline has been a useful tool for rapidly crafting beautiful front ends but with ever growing JavaScript toolchains like Grunt and Gulp it seems defunct, or is it? Traditionally elegant front end interfaces can be a pleasure to craft by following The Rails Way(tm) with simple JavaScript behaviours. When a round-trip delay just doesn't cut it, more complex approaches can be crafted with libraries like Backbone to create a truly client-side application. The asset pipeline remains a perfect complement, allowing all sorts of optimisations. But going beyond these simpler approaches is all the rage with Angular leading the charge. We'll look at building Angular apps leveraging the pipeline for templates, compilation, and more. Quickly touching on some more esoteric applications, we can also export rails routes for use in client side templates, automatically create sprite sheets, and even generate icon fonts, optimising assets along the way. The Rails asset pipeline is still Da Funk; a fantastic tool for front end developers.
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 the video titled *Rails Asset Pipeline: Defunct or Da Funk*, Samuel Cochran presents at RubyConf AU 2014, discussing the relevance of the Rails asset pipeline in modern web development, particularly in the context of JavaScript frameworks. The presentation revolves around how the asset pipeline still enhances front-end development despite the emergence of newer tools like Grunt and Gulp. Key points discussed include: - **Introduction of the Rails Asset Pipeline**: Cochran emphasizes the importance of the Rails asset pipeline as a tool for efficiently managing assets, particularly JavaScript and CSS. - **Importance of Dependency Management**: He highlights the value of maintaining organized code through an application.js file to avoid code bloat in the application. - **Use of Modern Frameworks**: The talk explores integrating various JavaScript frameworks, including Backbone and Angular, with Rails. - **Modularity in Development**: Cochran advocates for creating smaller, modular JavaScript files for each component, which helps maintain clarity and efficiency in the codebase. - **Dynamic User Experience**: Techniques such as pjax or turbo links are suggested for improving interactivity without full page reloads, promoting a smoother user experience. - **Integration Challenges**: Addressing common hurdles in integrating Angular with Rails, the use of gems like ng-min is proposed for compatibility, ensuring a seamless development process. - **Pre-processing Templates**: He points out how using pre-compiled templates in Angular aligns with Rails practices, making it easier for Ruby developers to adapt. Cochran concludes that the Rails asset pipeline remains a powerful tool, particularly for developers looking to create modern applications while avoiding excess code and managing dependencies effectively. He encourages attendees to embrace the asset pipeline's capabilities while keeping applications lean and informed by best practices in modern JavaScript development. The session ends with an invitation for further discussion, underscoring the value of collaboration and inquiry in the tech community.
Suggest modifications
Cancel