New answers tagged

1

I'd make the invocation safe, use some try/catch on the invocation itself. That way, if the API is unreachable or HTTP error code is returned - the app can handle it and present the "error" to the user in a more UX-y way ;) Second thing, I'd make a returned data validator of some sort. For example data types, structure etc. Especially on key fields....


Top 50 recent answers are included