TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 aurelius83将近 6 年前
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 条评论

afarrell将近 6 年前
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?
sergiotapia将近 6 年前
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.
smt88将近 6 年前
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_将近 6 年前
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.