Hacker News new | ask | show | jobs
by stevebmark 2686 days ago
God, GOD WHY. Whhhyyyyy. Build APIs, not database calls from templates like Rails or PHP garbage. We know how to do this nowwwwwwww don't make this Rails User.friends.comments garbage DB calls from templates
1 comments

Why's that garbage? Sometimes a full SPA is not needed.
Just take a step back and look at it, you're combining HTML, SQL and JS, on the fucking server.
If you’re going this way, might as well put all of that as a stored procedure in the database. At least it Simplifies your infrastructure.