Posts Tagged ‘PHP’

Choosing a PHP Framework

Since programming is a hobby, I figured I would try something new……a framework. I decided to use a framework for 2 reasons. The first was to hopefully streamline development. I seem to sometimes get caught up on some of the back-end systems and the project never proceeds. By using a Framework, I hoped to remove some of drudgery of coding. (Which did and did not happen.) My second goal was to find a framework that would be easily scalable to add more complexity as I built the system.

I started by doing a ton of research. After reviewing a ton of Frameworks and their sample code, I narrowed it down to 3. CakePHP, Codeigniter, and Zend Framework.

Zend was my first choice. I will admit that it is probably the most impressive from a feature set but I found it to be confusing. I also think that it is more for the professional programmers and not us weekend warriors. If I was going to start a project for work, Zend would probably be my first choice to give another shot.

CakePhp was up next. CakePhp had some awesome tools to help put together a skeleton of the site. My biggest issue with CakePhp was its reliance on those tools. Most of the tutorials we based around using the tools to “auto-build” portions of the program. While this was nice, I found myself fighting with those tools too much and spending too much time trying to learn the tools.

Codeigniter was one of the first that I looked at but I ended up coming back in the end. Codeigniter and CakePhp both use the MVC (Model – View – Controller) philosophy. CakePhp holds you to those rules where Codeigniter allows you to deviate if need be. Codeigniter also was the easiest to get a basic site up and running. It was as simple as download, copy files to your web directory and then edit a couple config files. Within a couple minutes I had a site with user controls such as login, register, profiles and such. (I downloaded DX_Auth library which added all of that functionality)

Now the hard part has been learning the MVC philosophy and the details of the framework. After about a week of trying, I feel pretty good about my choice. I still occasionally run into issues but Codeigniter has one of the best User Guides I have ever seen. The level of detail and ease of use is top notch. As someone learning from scratch, this is a huge resource.

My next post…..coming up with the game idea.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

25

10 2009

Developing a Web Based Game

As a long time pen-and-paper role player and an avid video game player, I have always wanted to develop my own game. Back in the early 90′s, a couple of friends and I developed a Mech combat game that was our first attempt to create a system from scratch. With a blank notebook(We used paper back then), some colored pens, a ton of dice and some Lego’s we created an Anime based Mech combat game. It was broken in so many ways that we never really played it more than a couple times. But it got the juices flowing.

At some point in High School, we started creating text based adventures in VB. We created pretty complex combat systems and inventory systems. The only problem was that it was only fun for the small group of us that worked on it. (We did get an A though)

Fast forward a couple years and another game system. I had started learning Flash and realized I could create all types of graphical games. That is when I realized I am a systems guy and not a “graphic” guy. I ended up spending so much time trying to create basic graphics that my games rarely went anywhere.

That brings me to today. I consider myself pretty close to an expert with PHP. Over the last 7 years or so I have been working with PHP through work and in my free time. (Full Disclosure: I am not a programmer by trade….I am in Transportation. Programming is a hobby. A useful hobby but a hobby) On and off for the last couple years I have been toying with the notion of creating a web based game. Shockingly, Facebook is what inspired me to do it. I saw all of the basic games like Mafia Wars, Vampire Wars, and Ninja Wars…..scratch that. Ninja Wars could be awesome though. That is when I realized even a basic game with limited graphics could be fun.

So that brings me to starting my project. I plan on keeping a record of the good and bad of creating a game while creating it. I currently have the game up (A couple people have been playing a VERY basic version of it). I hope to have frequent updates regarding the development.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

24

10 2009