News for hackers. Stuff that matters.
Re:Ask HN: How to improve the DX for a legacy rails app? by afarrell on Monday June 17, 2019 @11:26AM (#20203903)
One reasonably high-effort way is to make it more modular and testable by splitting things out into middlewares with Coach:

https://gocardless.com/blog/getting-started-with-coach/

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.

——

Who are the people who want to improve the developer experience?

Re:Ask HN: How to improve the DX for a legacy rails app? by sergiotapia on Tuesday June 18, 2019 @12:56PM (#20215204)
RubyMine to keep your sanity - in large codebases rails is terrible with ambiguity. You don't know what a variable is, if it's a function, a method in the class, a helper imported, what.

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't really disciplined about it.

Re:Ask HN: How to improve the DX for a legacy rails app? by smt88 on Sunday June 16, 2019 @10:22PM (#20199290)
I've found that great, modern IDEs (like those made by JetBrains for various languages) have vastly better support for static analysis and, therefore, refactoring.

What IDE are you using?

Other than that, running integration tests from outside that code base can at least help you catch errors early.

Re:Ask HN: How to improve the DX for a legacy rails app? by andrei_says_ on Sunday June 16, 2019 @08:56PM (#20198950)
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.

Code styleguide is another possible direction.