Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
In Rails, we have a beautiful framework that can take us from a blank slate to a fully-functional app in little time. However, doing things "The Rails Way" has a lot of implicit dependencies, including persistence. Are you really equipped to make one of the largest decisions about your app before any of your code has even been written? By putting this decision off you can get a feel for your domain before ever committing anything to a db schema. This means fewer migrations and fewer db-related hacks. Also, these practices encourage encapsulation and interchangeability, which means you get the ability to choose which datastore is best for you. Not just on an application level, but on a per model level as well! During the talk we'll be walking through simple examples at different points in application lifecycle. These snapshots will address the biggest pain points of a persistence free process and leave you in a position to put off persistence in your own app development! Help us caption & translate this video! http://amara.org/v/FG96/
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 her talk "Putting off Persistence," Lauren Voswinkel addresses the critical topic of database persistence within Rails development. She advocates for delaying the decision regarding database choices until after a clearer understanding of the application's domain has been established. This approach helps developers avoid common pitfalls associated with tightly coupling their applications to Active Record early in the development process. Voswinkel emphasizes that many developers rush into database decisions, only to face significant challenges later as their projects evolve. Key points discussed in the video include: - **The Standard Rails Approach:** Developers often start new Rails apps using Active Record, which can lead to overlooking essential decisions about database design. - **The Impact of Database Choices:** Early decisions about persistence can hinder the scalability and growth of the application as it evolves. - **Emphasizing Behavior-Driven Development:** Voswinkel shares her experiences applying behavior-driven development principles to guide her coding process, starting with simple Cucumber scenarios. - **Challenges and Solutions:** She recounts the difficulties she faced transitioning from using plain old Ruby objects to needing persistence, ultimately creating a class to manage interactions, which resulted in an in-memory solution. - **Learning from Reinventing the Wheel:** Voswinkel discusses how her approach led to valuable insights about handling data without relying heavily on traditional ORMs. - **Design Decisions and Encapsulation:** The talk elaborates on the importance of thoughtful design and maintaining clean separations between different aspects of the application. An important takeaway from Voswinkel's presentation is that taking time to consider or delay database decisions enables developers to better understand their application's requirements, leading to cleaner architecture, improved maintainability, and greater flexibility in adapting their applications as needed. By focusing on building robust internal APIs and understanding object relationships, developers can enhance their app development practices while avoiding common problems associated with early persistence commitments. Overall, her insights encourage a more deliberate approach to handling persistence in Rails applications.
Suggest modifications
Cancel