Back to the blog

RSS
65 subscribers

Recent Posts

Most Popular Posts

  1. Why you should be using a framework
  2. Perhaps the world doesn't need another framework
  3. Rewriting URLs with Apache's mod_rewrite and PHP
  4. Five easy things that make you a better web developer

About the Blog

Self portrait

I'm a web designer and 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

a bird

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.

Tags: database

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 :)

Add a comment! Only your message is required (and proving you're human, sorry). No HTML.

 Captcha image - sorry!