With a few websites, a few game mods, and even a few iOS apps under my belt, I think it’s safe to say that I’ve written a fair amount of programming code at this point.
As a result of being extremely lazy and hating having to reinvent the wheel, once I got the hang of OOP principles, I decided to always try and make my classes as low-level and as abstracted as possible, so I could always re-use them in later projects.
Over a period of developing, testing and refining, I’ve started coming up with a few common classes that I seem to be using a heck of a lot. For example, in PHP, I’ve ended up with a pretty decent MySQL manager class (which I then extended into SQLite), and in Objective-C, I’ve got a UITableViewController that automates loading content on separate threads.
Since I’ve been finding them so useful in my projects, and wondering if other people might find them useful too, I’ve been considering open-sourcing them.
In any case, I took the plunge this week. I’ve uploaded a pile of the PHP classes I use for client work and UberGames projects to my GitHub account.
That account’s been collecting digital dust for a while now, so I thought this would also be a good opportunity to start using it, as well as figuring out a bit more on how git actually works.
I’ll be putting as much of my code up there as possible and improving it as I go. As I want to make sure it’s easy to use and understand, I’m also going to try and refine all of the formatting and internal documentation so they’re standard across the board (which it isn’t right now ^_^;).
All of the code is released under the MIT license, so go nuts with it.
.EDIT: Feel free to contribute to the classes as well! (Thanks @nekodex lol)
- Published August 26, 2011
- Categories Development