Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Object oriented DB access

Name: Anonymous 2008-12-19 17:04

So I'm doing a very low scale project - just a simple blog/template for a guy. PHP5/MySQL5 on Apache.

I had programmed mostly the entire thing without abstracting the database, since I figured this project would be pretty specific to my clients needs, now however... I'm really liking how this turned out and would like to use the backend for my own personal site.

The problem is my personal site is on Postgre.

So my question is... do I dick around with PEAR::DB (does that project even exist anymore?) - or, do I just go through searching query by query and changing them by hand?

Name: Anonymous 2008-12-21 17:44

Wait, isn't the fact that Haskell has error kind of put a wrench in the whole "purity" thing since error does IO?

Name: Anonymous 2008-12-21 17:52

>>41
unsafePerformIO.

Name: Anonymous 2008-12-21 18:01

>>41
It doesn't do IO, it just stops execution.

Name: Bro 2008-12-21 18:06

>>43
Sorry Bro, but it most definitely does do IO, bro, look at this bro:

Prelude> error "lol"
*** Exception: lol


Clearly there is some sort of IO going on bro because I pass it a "lol" string bro and that stuff gets to the outside world bro, which is IMO IO Bro.

Name: Anonymous 2008-12-21 18:08

>>44
If you want you can define error as [code]error = error[/m], so it doesn't any IO.

Name: Anonymous 2008-12-21 18:11

>>24
Nice rant.

The faggot idiots are using Eclipse + PHP how the fuck I know what for, I'm just making a point here.

Name: Anonymous 2008-12-21 18:14

>>44
error raised an exception, then the top level caught it and printed it's message.

Name: Anonymous 2008-12-21 18:14

*its

Name: Anonymous 2008-12-21 19:08

>>48
*** Exception: it's message

Name: Anonymous 2008-12-21 20:56

>>44
0/10

Name: Bro 2008-12-21 21:07

>>50
Bro, why the hate bro?

Name: Anonymous 2010-12-10 11:07

Name: Anonymous 2010-12-17 1:29

Xarn is a bad boyfriend

Name: Anonymous 2011-01-31 19:59

<-- check em dubz

Name: Anonymous 2011-02-04 18:19

Name: Anonymous 2011-02-04 18:47

Name: Anonymous 2013-08-29 21:02

[quote]foo[/quote]

Name: Anonymous 2013-08-29 21:03

[q]f[/q]

Name: Anonymous 2013-08-29 21:03

|f

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List