Back to the blog
Recent Posts
-
Dec 05
Twitter user streams with python
-
Nov 30
Fix Firefox 5+ font rendering in Windows
-
Aug 31
A bit of icon work
-
Jun 24
Your mobile OS can't really multitask...
-
Apr 27
Thoughts on Android and the HTC Dream
-
Feb 26
Announcing Twitterscribe: archive your tweets
Most Popular Posts
-
Why you should be using a framework
-
Dynamic methods in PHP
-
Rewriting URLs with Apache's mod_rewrite and PHP
-
Five easy things that make you a better web developer
About the Blog

I'm a web application developer in Melbourne, Australia. If you find anything useful, leave me a comment, and if you need web design, development, or accessibility and usability consulting, contact me! Cheers.
Twitter: joshsharp
Quick Poll: Do you abstract your DB functions?
Sunday 28 Oct, 2007 10:23 PM
This one has always had me wondering how everyone else did it, so I figured what better way to find out than to put up a quick poll.
So it's fairly straightforward: in your code, do you have a database wrapper class with abstracted functions like query(), or do you call mysql_query() (or equivalent) directly from your code?
Leave a comment below if you're outraged that I even had to ask.
Comments
Josh said on 31 Oct 2007:
Wow, very close so far. I guess it really depends on the scale of your app...
Tristan said on 03 Nov 2007:
I write massive apps and my wrappers are thick and throbbing. But seriously who can go past a good set of wrapper functions
David Novakovic said on 07 Nov 2007:
I use an ORM, SQLAlchemy, it's great :)