News for hackers. Stuff that matters.
Re:Show HN: Purview – A server-side component framework by stevebmark on Friday February 15, 2019 @01:39PM (#19173481)
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
Re:Show HN: Purview – A server-side component framework by benbristow on Friday February 15, 2019 @01:49PM (#19173578)
Why's that garbage? Sometimes a full SPA is not needed.
Re:Show HN: Purview – A server-side component framework by throwawayy1001 on Friday February 15, 2019 @02:02PM (#19173689)
Just take a step back and look at it, you're combining HTML, SQL and JS, on the fucking server.
Re:Show HN: Purview – A server-side component framework by ako on Friday February 15, 2019 @05:04PM (#19175132)
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.