Ask HN: Is it better to start a front-end feature component first or API first?
By API, I mean whatever calls that are managing your front-end data. For example, if I had many user inputs that managed closely related data, should I start from a user perspective and build out all the components with empty calls? Or should I define and build out all the calls themselves before even thinking about the components (assuming the spec isn't super strict)? Fwiw I'm assuming a reactive, data-driven front-end. Also assuming the priority is extensibility. Does any of that makes sense lol
1 comments
I like building the components first because it helps avoid coupling them with the API response, but I have done it both ways.
The big benefit of building the components first is that you don't get blocked waiting for the backend dev to finish building the endpoints.
The big benefit of building the components first is that you don't get blocked waiting for the backend dev to finish building the endpoints.