News for hackers. Stuff that matters.
Re:Code boilerplate: Is it always bad? by dep_b on Saturday June 10, 2017 @10:24AM (#14527433)
You only write it once in your Database class. The only thing that changes from call to call is the query string and parameters. Handle all errors gracefully there, throw an error to the calling code and let it handle it to the user with a 500 while the support channel gets alerted with the real error.

There are no comments on this comment yet.