Category: Developing
-
XNA Command Console (XNACC) Added to CodePlex
Well, I finally got off my ass and placed the code for the XNA Command Console that I have been working on (and off) since 2009. I think it is ready for a public release and is available at: http://xnacc.codeplex.com. Have a look if you get a sec.
-
XNA Studio 3.1 Cures the Audio Memory Leak!
Well, I finally upgraded to XNA Studio 3.1 and the audio-related memory leak appears to be gone now! That was easy… Just goes to show you that even in managed environments, you still have to pay attention and know what you are doing when it comes to managing resources…
-
XNA Audio Troubles…
Had a little trouble with a memory leak using the XACT classes to play sounds. Had to get a little kludgy to fix it.
-
XNA Wonderfulness
So having some extra time on my hands, I have started playing around with XNA Game Studio again (version 3.0 this time). I picked up a shooter tutorial created by PHStudios which gives you a functional, but very simple game. I started about the shooter that I have always wanted to write. It was going…
-
Another Downside of Browser-Based Apps
I once again find myself having to use a web-based application. This is a often just a fancy name for a bloated set of code that provides a little more functionality than what a set of CGI scripts could provide. The beauty of CGI apps was that they were often very succinct – they were…
-
Assumption is the mother of all Fuckups…
How would you move a file in an atomic fashion? What? Not enough detail for you? Do not worry – I have made some assumptions regarding the scenario, that I just pulled outta my ASS, and you better get the same asnwer I did!!!
-
Software – Robust vs. Works
I got myself involved in a thread on The Code Project Forums that lead to the idea of Robust software, and one of the posters said: I call an application robust if it’s in use in the real world for a lengthy period of time and no data has been lost and no one has…
-
CString misuse #2
Here is another one: ///////////////////// LPCTSTR cpString = _T( “This was some string message…” ); // // Later On In Code… // CString str( cpString ); char cChar = str.GetAt( 0 ); ///////////////////// If you write code like this, stop now and back slowly away from the keyboard – You’re Doing It Wrong! The developer…
-
CString misuse #1
This is the first of many examples of ways to misuse and/or abuse MFC’s CString class. While this example (and following ones) are specific to MFC, they likely apply to all string classes (mutable or not). Here is the offending code: ///////////////////// CString str( “First Part Of Message\n” ); str = str + “Second Part…
-
You’re Doing it Wrong!
Having been inspired by the amount of photos on the internet showing various forms of spectacular failures (http://www.doingitwrong.com), ranging from failed bunny-hops to the most graceful faceplants, I thought that a coding-equivlent of it might be worth trying out. To that end, this section will cover little snippets of “wrong” code found in the wild.…