4 ms·
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.f
by stevebmark 8y 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
- benbristow 8y agoWhy's that garbage? Sometimes a full SPA is not needed.
- throwawayy1001 8y agoJust take a step back and look at it, you're combining HTML, SQL and JS, on the fucking server.
- ako 8y agoIf 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.