TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to improve the DX for a legacy rails app?

2 pointsby aurelius83almost 6 years ago
I recently started working on a new team that mostly maintains a legacy rails app. What are some ways to improve the developer experience?

4 comments

afarrellalmost 6 years ago
One reasonably high-effort way is to make it more modular and testable by splitting things out into middlewares with Coach:<p><a href="https:&#x2F;&#x2F;gocardless.com&#x2F;blog&#x2F;getting-started-with-coach&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gocardless.com&#x2F;blog&#x2F;getting-started-with-coach&#x2F;</a><p>I’ve worked in this team’s codebase and can confirm it has a rather nice DX, even as a new joiner with a python background.<p>——<p>Who are the people who want to improve the developer experience?
sergiotapiaalmost 6 years ago
RubyMine to keep your sanity - in large codebases rails is terrible with ambiguity. You don&#x27;t know what a variable is, if it&#x27;s a function, a method in the class, a helper imported, what.<p>Then leverage the test suite to understand what something is supposed to do, naming conventions only take you so far especially if the team wasn&#x27;t really disciplined about it.
smt88almost 6 years ago
I&#x27;ve found that great, modern IDEs (like those made by JetBrains for various languages) have vastly better support for static analysis and, therefore, refactoring.<p>What IDE are you using?<p>Other than that, running integration tests from outside that code base can at least help you catch errors early.
andrei_says_almost 6 years ago
Maybe watch some Sandi Metz talks together as well as Ben Orenstein’s refactoring talk and then see if you can align around some practices that you think could make your lives easier.<p>Code styleguide is another possible direction.