PHP Development
Monday, October 30, 2023 Although there are lots of opinions about designing REST APIs this article by Jeff Schnitzer really hits the nail on the head, particularly Rule #8 about using http status codes to indicate simple API errors, like data not found. Your API should always simply return its own error message for any and all errors so that any http status code other than 200 means your API has fundamentally failed due to no fault of the caller. Continued... Saturday, June 24, 2017 I still see a few blank stares when it's suggested that a legacy application be refactored around a Data Abstraction Layer, especially in the context of upgrading the UI by introducing a different Javascript/CSS framework or even rewriting the application in a different language. I made a post about it on a blog back in June 2010 that still rings true today. Continued... Friday, December 18, 2015 The benwillies framework uses a highly simplified Model-View-Presenter passive pattern rather than the more familiar Model-View-Controller pattern. This forum thread from stackoverflow explains the difference. Continued... |
|