Archive for the ‘Software’ Category

On Error Checking

Thursday, July 15th, 2010

My new favorite coding trick is as follows:

#ifdef _DEBUG
assert( something );
#endif

In terms of error-checking, there are couple interesting things about this code. Firstly, as can be seen, this code is only compiled in Debug mode. This results in faster performing code in Release mode, since we’re removing some of it. But the more curious part is that there are no error conditions here to trap, really.

When in debug mode, the program execution stops here, and forces you to address the problem such that it does not occur. (more…)

On Supply & Demand

Monday, July 12th, 2010

Yoichi Wada

Software is a strange business, be it games or otherwise.

I was reading a recent Gamasutra interview with Square Enix president and CEO Yoichi Wada. They speak on the subject of mergers and acquisitions that the company has been through. Yoichi Wada believes that he is creating a larger family of creative minds, expanding resources, and giving the company a chance to continue growing. On the surface, I can see the idea of this plan. And, assuredly, based on the company wealth, you can’t argue that he’s completely mistaken.

However, he also asserts that Japan is behind (more…)

On Transcending the Scene Graph

Monday, June 14th, 2010

 Transcendent Buddha

I’ve been having a number of refactoring conversations with my friend and colleague, Rob. The scene graph had become a mess, and integrating with third party physics, 3D sound, and other systems was beginning to expose redundancies in our code.

After a lot of discussion and some influence from the recent surge of articles on Data-Oriented Design, we found some interesting ways to re-think the scene.  One of last week’s big examples had to due with transforms. As a standard, many objects are thought of as having world and local transform data. This way the spacial hierarchy suggested by your node relationships is respected when it’s time to draw.  This just makes sense….

(more…)

On Adventuring and Fantasies

Wednesday, May 19th, 2010

 Rant

Okay, so it’s rant time. Everybody gets a turn. It’s the internet. Bear in mind that this is a rant, and therefore has narrow focus, for the sake of making a point and expressing thought. Ok. Ready. Go.

I want to go on an adventure. Who want to come? Everybody? I hope so. Now who is going to lead us? This is a question that needs answering. I’m going to discuss and pick on Square-Enix again, primarily because (more…)

On VisualSVN Server and Windows 2000

Wednesday, July 8th, 2009

So… code repositories are great. Any programmer who has worked on a project with more than one person has probably discovered the virtue of products like TortoiseSVN. It’s a great way to hook up to a repository already set up. For the indie developer the next question is: “What options are there for creating a repository that is available to other users?” Here are a few.
(more…)