News for hackers. Stuff that matters.
Re:Advice to Young Web Developers by MaxBarraclough on Friday June 19, 2020 @05:17AM (#23572679)
A web API doesn't have to be general and reusable. It could be tailored to specific pages, if that's what makes more sense.
Re:Advice to Young Web Developers by tdeck on Friday June 19, 2020 @02:07PM (#23577211)
Very true, but in an l evolving application you often pay the cost of that approach because any small change to the data displayed or the behavior of the application will require a change to both frontend and backend (e.g. wiring up a new API), so in practice I think people tend to build in a certain amount of generality. It's a kind of trade-off between the time to design a more general API vs. the time to churn the existing API when we tweak the application.