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 14:41

About the Author
Ron Penton is an independent programmer with a primary interest in computer games. He began using GW-BASIC in 1989, moved on to Visual Basic 4 in 1995, QBasic in 1996, and learned C++ in 1997. Ron began working on his degree in 1998 at the Rochester Institute of Technology, and is working on completing his Bachelors in Computer Science at the University of Buffalo. Ron contributed a chapter in the book titled Game Programming All in One published by Premier Press.

Data Structures for Game Programming by Anonymous Reader Rating (5 stars)
January 12, 2003: Let me be frank; I HATE DATA STRUCTURES. They are BORING. I'm a sophomore in a Computer Science program, and I've just finished taking a data structures course, and I barely passed it. All college Data Structure books are written for people who like to read extremely boring mathematical proofs, and I can't read that stuff. So, a friend of mine told me to get this book, so I got it on sale, and boy, I am glad. I've bought Prima/Premier books before, and they are usually good, but also disappointing because the first 40% of the book is always an introduction on things like "a complete tutorial on direct3d" or something. Well this book is different: it gets RIGHT TO THE POINT, IMMEDIATELY. The first two chapters are ALL of the intro material (algorithm analysis and templates), then Chapter 3 jumps right into the data structures! Okay, so arrays may seem to be a bit simplistic, so I skipped that chapter at first. The later chapters in the book are more interesting, but then I noticed in a later chapter, a reference to a complex issue in the array chapter (processor caching). So I went back and and re-read that chapter, and WHOA! He literally shows you EVERYTHING there is to know about arrays, even complex stuff like caching that a normal data structures book would never even touch! This book is amazing; and covers TONS of topics. There's no TOC listed at this site yet, so here's a list of what it's got: Arrays, 2D Arrays, 3D Arrays, Bitvectors, Linked Lists, Hash Tables, Stacks, Queues, Recursion, Trees, Binary Trees, Heaps, Minimax trees, Graphs, AI Machines, Data Sorts, Compression Algorithms, Pathfinding (BEST CHAPTER!), and he even goes over the creation of a simple 2D game and complete map editor for it. Every chapter is packed full of diagrams and figures, notes, and demo's. For every major concept, there is a "Graphical Demonstration" on the CD, that shows you how it works! And, for every chapter, there's also one or more "Game Demonstration"s. These show you how to integrate the data structurs into a game! The CD is so awesome that it could practically sell on its own! The bottom line is: this book takes the boring and difficult subject of data structures, and turns them into something anyone can understand, in a fun and exciting way. 5 stars!

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