Programming Puzzle: What is the best way to format a comma delimited list?

Say you have a list, array, vector, storage format doesn’t matter:

Templated Constructors in C++: Using the "explicit" Keyword

Sometimes, in the course of C++ template based programming it might be desirable to have a constructor that is templated, like the following contrived exampled:

Prefer .at() to [ ] When Accessing C++ Vectors

I’m sure I will get some dissenting views posted in comments regarding this, but I just came to this conclusion while trying to track down a memory bug in the past few days. First of all, what’s the difference? Take the follow code to set up our scenario:

Duty and Beyond Review Posted

[img_assist nid=365 title=Duty and Beyond Screenshot desc= link=popup align=right width=320 height=200]Well, it’s official. My first game review for Adventure Gamers was published today. It was a learning experience getting it out there, being the first time I have had to work with an editor. The review is for an amateur adventure called “Duty and Beyond” the game is worth playing if you have any interest in adventure games. Amateur adventures, by the way, will be my specialty at Adventure Gamers. I hope to get out at least a few reviews a year.

Overloading && and || Operators in C++

Short answer: don’t do it! Long answer: As the C++ example from the article on Real World Haskell Chapter 1-2 showed:

SwigSword Project Recreated

By request I have made available the latest snapshots of the SwigSword project (SWORD library with enhanced SWIG bindings) and the projects that made use of it: SwordSharp and SharpCSword. All 3 of these files are now hosted on googlecode. They were initially hosted on before I had to take that site down.

Haskell Pattern Matching and Network CIDR's

I was recently faced with the following code which is simple but provided the perfect example to practice some Haskell.

Real World Haskell: Chapter 3

Chapter 3 of Real World Haskell is “Defining Types, Streamlining Functions.”

EmptyCreate Game Engine Release 5

Release 5 of the EmptyCrate Game Engine was just posted. This release addresses a single bug: the drupal Creative Commons Lite 6.x-1.2 module has a function name change that breaks the EmptyCrate Game Engine. As always, check out for examples.

Javascript Mandelbrot Browser

I was inspired by my recent attempt at creating a parallel Mandelbrot generator for Minnow to learn some javascript and make a javascript version of it. Here is an actual example of this code in use. The javascript itself is pretty simple: