Why database abstraction can be a good thing
on
A Decade of PHP
·
· Score: 1
Two reasons why we use a database abstraction in my open source project.
1. We offer support for MySQL, PostgreSQL and Oracle in the product. People want to run it on those databases, and with an abstraction layer we can provide support for them. If you don't abstract out the database, then you're going to have a hard time time getting database independence.
2. Writing testable code. With a database abstraction, you can inject a mock database object and use it to exercise your code without having to actually talk to the database.
I think this is a clever idea. There have been plenty of times when I wanted to separate from my friends for a while and rejoin with them later on and have spent lots of time trying to reach them on my cell phone, etc.
Another interesting player in this space is WhoAt.com, started by a couple of friends of mine. It's centered around meeting new people in 22 metropolitan areas. You put a profile on their server and tell it where you're located, and then you can opt-in to meet people with similar interests, ages, etc. It's free. I played around with it a little bit and thought it was pretty cool. Check it out.
If you look closely at the error message, this is happening because you edited albums.php and added some output on line 1. That's causing the session code to fail.
Gallery will work seamlessly in PHP-Nuke. If you need help, send an email to the Gallery mailing list and we'll give you further assistance.
This is a true story. I know one of the students directly. Because they attend a private school and the school's judicial committee is investigating the situation it did not seem politic to publicise the names and details in a widely read forum.
It's true that the students have the right to say whatever they want (barring libel/slander). But the school too has the right to protect its constituents. The students signed Rules of Conduct agreements and the school has the right to enforce them.
Imagine yourself a parent of a high school student (not a stretch for many of you, perhaps). What if the school administrators ignored a student's website referring to concealed weapons, and later that student killed others at school? Who would you be blaming in that situation?
In this particular case I think it was an overreaction for student S. to have something go down on his criminal record -- but I think it would have been criminal for the school administrators not to take it seriously.
Two reasons why we use a database abstraction in my open source project.
1. We offer support for MySQL, PostgreSQL and Oracle in the product. People want to run it on those databases, and with an abstraction layer we can provide support for them. If you don't abstract out the database, then you're going to have a hard time time getting database independence.
2. Writing testable code. With a database abstraction, you can inject a mock database object and use it to exercise your code without having to actually talk to the database.
MSN's first page estimates are always grossly inflated. Try this link instead:
http://beta.search.msn.com/results.aspx?q=Never
Note that I the "first" param is 200 (which is the equivalent of going to page 20). It hits the end of the results and revises its estimate.
I think this is a clever idea. There have been plenty of times when I wanted to separate from my friends for a while and rejoin with them later on and have spent lots of time trying to reach them on my cell phone, etc.
Another interesting player in this space is WhoAt.com, started by a couple of friends of mine. It's centered around meeting new people in 22 metropolitan areas. You put a profile on their server and tell it where you're located, and then you can opt-in to meet people with similar interests, ages, etc. It's free. I played around with it a little bit and thought it was pretty cool. Check it out.
Try me again in a year!
If you look closely at the error message, this is happening because you edited albums.php and added some output on line 1. That's causing the session code to fail.
Gallery will work seamlessly in PHP-Nuke. If you need help, send an email to the Gallery mailing list and we'll give you further assistance.
Get your facts straight. Emacs compiles into byte-code. Perl compiles into byte-code. So does Python, Java, etc.
It's true that the students have the right to say whatever they want (barring libel/slander). But the school too has the right to protect its constituents. The students signed Rules of Conduct agreements and the school has the right to enforce them.
Imagine yourself a parent of a high school student (not a stretch for many of you, perhaps). What if the school administrators ignored a student's website referring to concealed weapons, and later that student killed others at school? Who would you be blaming in that situation?
In this particular case I think it was an overreaction for student S. to have something go down on his criminal record -- but I think it would have been criminal for the school administrators not to take it seriously.
-Bharat