17Oct Adaptive Interfaces
A common mistake that I read on blogs is when it comes to today’s “modern” user interfaces: fewer features we offer to the user’s interface the better… make it simple! This common misconception is happening in some of even the largest software companies. For example, the Windows Vista defragger changed dramatically from XP as it [...]
18Aug Recursive Logic
One of the most fascinating concepts I believe in programming is recursive logic (aside from reflection which I will be posting about soon, but I digress). Recursive operations are pieces of functionality that can execute themselves until a desired outcome is achieved. For example, what if you had a random number generator from 1-100 but [...]
14Aug Unit Testing the Unpredictable
What most users overlook from what I can see on forums and written articles is on the subject of unit testing functions that produce inherently non-concrete returns. For example, how would one go about unit testing a function that generates random numbers? It would be futile to try to only gaged a single outcome of [...]
13Aug Self Instancing Singletons
While working on a class recently, I have discovered an interesting design pattern where a singleton class is able to create instances of itself to perform RPC actions. For example, you could create a singleton called
LoadAndPlaySound.gi.play(
url:String,
onLoad:Function,
onSoundPlayed:Function)
This class would then be [...]
08Aug Theory: AI Directives
I have been musing about the best practical way for giving NPCs (non player characters) a clear set of directives for living in its environment using simple AI logic. Based on the notion that any character’s environment is dynamic, en-queuing a character’s broad set of daily actions seems impractical. Instead, it would seem more logical [...]
05Aug Flash Links of the Day
Science&Code: Actionscript optimization
Posting on FinalFinal.com on the makings of the Red Invaders Flash Game.
Casual Game Development Blog - Techniques and Algorithms (most theories can be applied to Actionscript)
04Aug Pipes theory pt. 2
After pondering the matter, an example API for such a function would be:
function subscribe():void {
Pipes.get("chat pipe").subscribe(callBack);
// See below for the callBack function that
// gets executed when a message is sent
}
function callBack(message:*):void {
// Maybe when creating a pipe, it would be
// possible to lock the message type?
}
function sendPipeMessage():void {
// creates [...]
04Aug Pipes theory
Joshua Ostrom posted an interesting article about using PureMVC Multicore with ‘Pipes’. After reading over the implementation, I have to say that there seems to be much easier ways to accomplish what they are trying to do.
With the ‘pipes’ concept, the following conditions need to be met I see:
1. Pipes are only one way
2. Pipe [...]

