A Path Less Taken

Breaking with convention in a very conventional fashion. Powered by WordPress

"The mightiest oak in the forest is just a tiny nut that held its ground."
Fortune Cookie

Monday, August 2, 2010

Category: Games Tags: Author: JJ 1 Comments

My son has been suggesting for a while now that I try the game League of Legends or LoL as it’s commonly called. The game is based on Defense of the Ancients (DotA) which is a long time fan favorite among Warcraft III mini-games. Finally I decided to give it a shot and I have to say it’s a fun little game. You can download and play the game for free. This PVP slug fest sports many notable improvements over it’s inspiration including automated match making, option to reconnect when disconnected, built-in surrender facility and much more. The game is easy enough to play, but takes a fair amount of practice to play well. The game’s creator Riot Games Inc. makes money selling champion skins (outfits), power up items and unlocks for Champions over those offered free each week. This is a similar model to EA’s Battlefield Heroes game which I suspect struggled to create a meaningful revenue stream. Eventually EA started selling more powerful weapons rather than move to a low cost subscription model which would have been to me a better option. The result was an imbalanced game for players who did not purchase the new items and this generated a lot of resentment in game when it began. I’m curious to see what Riot does with LoL as it matures, but for now it’s a fun game and I’m enjoying playing with my family and friends. If you are interested in playing an accessible and polished PVP game then check out League of Legends and let me know what you think.

Wednesday, July 21, 2010

Category: PHP Development Tags: , Author: JJ 1 Comments

I was recently working on a generic container class in PHP that implemented allowed, required and group behaviors related to assigned properties. While coding the class I built a test class using PHPUnit that had 7 tests and 33 assertions. After using the class on a limited basis I determined that the internal implementation left something to be desired. Unswayed I dug in and re-implemented the bulk of the internal methods without changing much of the interface of the class. I ran the unit test again and found that only 8 of the assertions related to the modified behavior needed to be updated. After I changed those assertions the class passed all the tests.

I know that many you are asking “what’s the big deal about that?” The big deal to me is that I’m often reluctant to write tests because I’m a hobbyist developer and I’m always anxious to get straight to the code. I guess you could say that this simple experience has changed my point of view. It is very powerful to be able to change a class as fundamentally as I did and still be able to validate that it behaves as desired with such ease. The benefit of all the upfront work in building unit tests was clear to see in this case.

If you have a similar experience or just a point of view one way or another on unit testing please post a comment below and share it with me.

Monday, July 12, 2010

Before you post a comment that says something like “there’s a Kohana 3 module that does that” let me just say I know and I’m grateful for it. Some of what I did was inspired by that module. The issue was when I tried getting the Kohana 3 unittest module to work to test my module it was giving me problems. I read the Kohana forum posts and the unittest documentation and could not find an answer. Finally I decided to start at the beginning and set up PHPUnit manually to work with Kohana 3 and my module to debug what I was doing wrong with unittest. In the process I discovered that getting PHPUnit to work with Kohana 3 wasn’t that hard after all. I thought I would share my solution in the event you are having similar issues.

Continue reading >>

Friday, July 9, 2010

Category: General Rants Tags: Author: JJ 0 Comments

A few days back I watched a video of a presentation by Fred Wilson titled Fred Wilson on 10 Ways to Be Your Own Boss. In the video Fred shared the following quote from Nassim N Taleb:

The three most harmful addictions are heroin, carbohydrates, and a monthly salary

I’m willing to add video games to the list. None the less the last item caught my attention as intended. I want to say that I’ve heard it before, but seeing it in this context was still thought provoking.

Wednesday, July 7, 2010

Category: General Rants Tags: Author: JJ 0 Comments

You may have noticed that the Stack Overflow guys are listed among my blogs of interest. This is because they are interesting bloggers. Get it? Anyway, it looks like their new project Stack Exchange has a new member site and the first to go through what they call their Area-51 community site-creation process. The new site is Web Applications and it seems to be a discussion of all geeky stuff web. I kinda like it. Anyway, have a look and see what you think. I found Cliqset just browsing around. I’m not sure I need another social networking tool (I don’t use the one I have, ugh), but it is a darn spiffy looking site.