The Bike Shed cover image

The Bike Shed

446: All about rewrites

Nov 12, 2024
Delve into the intricacies of software rewrites, exploring when and why they might be necessary. Discover the challenges tied to legacy code, from potential data loss to old bugs reemerging. Learn about balancing business value with developer satisfaction. The conversation also emphasizes the importance of incremental changes over complete rewrites. Plus, hear best practices for testing in both Capybara and React, focusing on accessibility and pragmatic risk management. Get insights that could save your team time and effort!
35:31

Podcast summary created with Snipd AI

Quick takeaways

  • Rewrites can introduce significant risks such as downtime and bugs, often diverting focus from meaningful active development and business value.
  • Practicing incremental improvements or refactoring existing code offers a pragmatic alternative to rewrites, addressing root issues without drastic overhauls.

Deep dives

Understanding Capybara Configuration

Capybara, a test UI library for Rails apps, offers various configuration options to enhance testing efficiency. One particularly useful feature is the ability to target form inputs by label, ID, name, and custom test ID attributes, improving test readability. However, the reliance on test IDs is seen by some as an anti-pattern, as it may detract from using more accessible attributes like ARIA labels. Developers are encouraged to leverage Capybara's selectors for better accessibility in their tests, ultimately promoting a more user-oriented testing approach.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode