Posts Tagged ‘programming’

Three Big Lies about Programming

Wednesday, June 2nd, 2010

I recently found two fantastic presentations the guys from Insomniac put together about misguided/inefficient approaches to programming and the steps they take to compensate.

The first, titled "Three Big Lies: Typical Design Failures in Game Programming," puts forth that many of the biggest issues we face as programmers is of our own design. Essentially, we are guilty of over abstracting and over modeling.  They argue that since all programming boils down to data transformations, we should just focus on the data.  "World Modeling" may be a nice way to ease new programmers into the field, but it is not necessarily the most efficient approach.

The second presentation focused on a design paradigm that I have worked very hard to create for many of my own projects.  "A Dynamic Component Architecture for High Performance Gameplay," essentially lays out a system for modeling game objects through composition of relatively flat hierarchies of components.  Where more traditional approaches create individual objects with complex inheritance systems.  The author not only explains the benefits of the system, but also a sample of his API and many examples of how it helps improve their system.

If these articles don't challenge the way you program, then either you are a genius and have already made these revelations, or you're an idiot.  Enjoy.

GNU Patch in Windows 7 or Vista

Tuesday, March 2nd, 2010

I just had a little fight with Windows 7 about permissions. It seems that it demands that any executable with the word "patch" in the name must be run with administrative privileges. After fighting with it for a few minutes about the absurdity of the problem, I resorted to a simple hack.

  1. Rename patch.exe to patsh.exe.
  2. Then create patch.bat in the same directory containing the following command:
    @patsh.exe %*

You will never notice a difference, and Windows 7 can go politely F*** itself.

Accessing SQLite databases in C++ using SOCI

Friday, October 9th, 2009

I recently decided to use SOCI and SQLite at work and found that neither there is not a super straight forward path for setting this up. As of SOCI version 3.0.0 there is no support for Visual Studio 2008, so I had to convert and fix a few bugs resulting from that. There were some path issues as well. Also they don't package the SQLite interface with SOCI so you have to checkout the repo to get access to it. After getting that there are still a few snags, not to mention actually setting up SQLite as a library.

[Updated: 10/13/2009]
After writing this article the SOCI team has resolved some of these issues, so some of these steps are no longer necessary.

(more...)

SimpleFileWatcher: New version

Monday, September 14th, 2009

Just released a new version of SimpleFileWatcher. Not a lot of new content, but a pretty serious bug was fixed for Win32 and some better error handling. I create some more maintainable build scripts using premake. Also, I moved the OgreDemo off to its own directory to help contain all the files.

Download: SimpleFileWatcher 2009.09.14

James Wynn is Digg proof thanks to caching by WP Super Cache!