440: When we stray from Rails defaults
The Bike Shed17 Sep 2024

440: When we stray from Rails defaults

When does it make sense to step away from Rails conventions? What are the limits of convention over configuration? While Rails conventions provide a solid foundation, there are times when customization is necessary to meet specific project needs. In this episode, Joël and Stephanie dive into the tradeoffs of breaking away from Rails defaults. They explore the limits of convention over configuration and share their experiences with customizing beyond the typical Rails setup. Joël offers insights from a recent project where the client opted for all dry-rb objects, and they unpack the benefits and potential challenges of this approach. Stephanie talks about why people tend to shy away from certain Ruby features and her lessons regarding leveraging callbacks for code development. Explore different testing frameworks, the situations when following Ruby defaults is better, the benefits of the ActiveModel ecosystem, and more! Whether you are a Rails purist or looking to bend the rules, this episode will help you understand the pros and cons of stepping outside the Ruby on Rails box. Don’t miss it!

Key Points From This Episode:

Joël shares details about a large-scale refactoring initiative he has been working on.
Stephanie’s recent legacy-code production problem and lessons from her experience.
What Joël would have done differently when building his refactoring initiative.
The problems of renaming background applications during code development.
Why the open-close principle is valuable for making class changes to a system.
Reasons that a migration strategy is vital for navigating new and legacy code.
Explore approaches for overcoming synchronization issues between systems.
Learn about the concept of connascence for coupling systems together.
Considerations for using asynchronous tools with a connascence approach.
Practical ways to maintain naming consistency during code development.
The importance of differentiating between web and business-logic layers.
Situations where relying on callbacks for connascence becomes problematic.
Other issues that callback problems can reveal during code development.
Joël unpacks the scenarios where he deviates from the Ruby on Rails standard.
Frameworks for testing code and final takeaways from Joël and Stephanie.

Links Mentioned in Today’s Episode:

'Refactoring Legacy Code with the Strangler Fig Pattern'
Connascence of Name (CoN)
ActiveModel docs
GitHub | activemodel
'Vanilla Rails is plenty'
GitHub | minitest
GitHub | test-unit
Episode 435: Cohesive Code with Jared Norman
Ruby on Rails
The Bike Shed
Joël Quenneville on LinkedIn
Support The Bike Shed

Denne episoden er hentet fra en åpen RSS-feed og er ikke publisert av Podme. Den kan derfor inneholde annonser.

Episoder(505)

505: What is a “principal” or “staff” engineer?

505: What is a “principal” or “staff” engineer?

Sally and Joël join forces to discuss the different ways to interpret the role of a ‘principle’ or ‘staff’ engineer, and the handwaving around what those titles mean in terms of the gradation. Whilst...

7 Jul 34min

504: AI Ethics (with guests!)

504: AI Ethics (with guests!)

Aji is joined by thoughtbot’s own Tess Griffin and Jimmy Thigpen, two members of the recently established AI Ethics Taskforce, to talk about what kind of conversations are going on in the company arou...

30 Jun 32min

503: Seeing the Graph for the Trees

503: Seeing the Graph for the Trees

Aji and Joël join forces to discuss graph and tree structures, and their connection to the emergent properties, attributes and qualities you can find from a largely connected group of data. Joël dive...

23 Jun 41min

502: Apps That Make Our Work Go

502: Apps That Make Our Work Go

Aji and Sally are back together again, this time to discuss the different apps they use to make their workflows and To Do lists easier and quicker to achieve. Sally dives into the Notion calendar sys...

16 Jun 40min

501: What makes for good technical writing?

501: What makes for good technical writing?

Sally and Joël get technical as they lay out their thoughts on blog posts. Our hosts pick apart what makes a good technical blog post, why consistent terms are more important than you might think wh...

2 Jun 34min

500: Celebrating with past hosts

500: Celebrating with past hosts

The Bike Shed celebrates its 500th episode with hosts new and old as they reflect on the show’s history and ask, what’s new in your world? Our past hosts look back at their time on the show, their f...

26 Mai 58min

499: BikeTube ShedTacular!

499: BikeTube ShedTacular!

Take a trip through Joël and Aji’s YouTube recommended list as they go over the media that has inspired their work the most over the course of their careers. Our hosts highlight different creators t...

28 Apr 48min

498: Season 2 Recap

498: Season 2 Recap

Our hosts come together to wrap up season 2 and share some of their highlights along the way. Our trio expand and recap on some key topics covered over the last few months, Sally and Joël provide up...

17 Mar 37min

Populært innen Politikk og nyheter

giver-og-gjengen-vg
fotballpodden-2
aftenpodden-usa
aftenpodden
popradet
forklart
stopp-verden
det-store-bildet
rss-gukild-johaug
hanna-de-heldige
rss-ness
nokon-ma-ga
dine-penger-pengeradet
lydartikler-fra-aftenposten
aftenbla-bla
rss-utenrikskomiteen-med-bogen-og-grasvik
rss-penger-polser-og-politikk
e24-podden
ta-dokumentar
rss-espen-lee-usensurert