News for hackers. Stuff that matters.
Re:Show HN: Visualize Your Rails App to ER Diagram Automatic... by badtuple on Sunday October 28, 2018 @10:08PM (#18324471)
This is really nice!

To those trying it out: if the diagram seems inaccurate, try dragging tables around.

I uploaded a very simple schema, but seemingly unrelated tables looked connected. Turns out it's 100% accurate, but relationships can run behind other tables and make it look like things are connected that aren't. Detangling is easy with a few drags/drops and you get a really nice diagram out of it.

Re:Show HN: Visualize Your Rails App to ER Diagram Automatic... by SOLAR_FIELDS on Monday October 29, 2018 @09:05PM (#18333173)
This comment is precisely why I have a ton of respect for the people who develop visualization algorithms like in Graphviz. Given a DAG or ERD, the logic to properly render that as something that makes sense to your typical developer is HARD. Mad props to the people who tackle that problem.
Re:Show HN: Visualize Your Rails App to ER Diagram Automatic... by huy on Monday October 29, 2018 @02:55AM (#18325510)
Thanks for the love! Yes since rails convention is clear-cut and standardized, we can read those implicit conversions in the backend and convert to necessary relationships.