3 ms·
Not really an excuse. Layers of abstraction are all about hiding difficulties with using APIs. If PHPs API for accessing prepared statements is cumbersome, then
by moron4hire 17y ago
Not really an excuse. Layers of abstraction are all about hiding difficulties with using APIs. If PHPs API for accessing prepared statements is cumbersome, then write a wrapper around it that solves the problem once.
Hell, I even did it for ADO.NET. ADO.NET is not that hard to use, but a surprising number of developers get a lot of the details wrong, such as when to open and close a connection (i.e. NOT once for every query) and when to dispose objects (at least at some point in the object's lifetime, please!). So, I wrote an ADO.NET wrapper that handles all of that stuff, providing an incredibly thin, simplistic interface. It's been very useful to me, and hopefully other people can find it useful, http://sqlsiphon.codeplex.com http://sqlsiphon.codeplex.com