Tag Archives: c++

Introducing Digbuild

I’d like to intro­duce Digbuild, an open-source game engine inspired by the excel­lent game Minecraft (and Infiniminer before it — that’s right, Minecraft is itself a clone). I’ve been work­ing on it on and off in my spare time for a few months now, and today I decid­ed that it’s ready to show to the […]

Introducing cppsh: A bash-Like Shell with C++ Syntax

It’s been a long time in the mak­ing, but I am proud to announce the first beta release of cppsh, the bash-like shell specif­i­cal­ly designed for those engi­neers who find them­selves most com­fort­able at the reins of a C++ com­pil­er. The best fea­tures from both bash and the C++ lan­guage come togeth­er in cppsh to […]

C++ Streams & Typedefs: Be Charful

The C++ type­def key­word is indis­pens­able in many sit­u­a­tions, espe­cial­ly for writ­ing portable low-lev­­el code. However, in some cir­cum­stances it can cause trou­ble, par­tic­u­lar­ly when it comes to func­tion over­load­ing. Consider the fol­low­ing C++ tem­plate class: tem­plate <type­name T> struct foo­bar {     foo­bar( con­st T foo ) : foo_( foo ) {} […]

The Terror of the Long Comment

A code com­ment can be a won­der­ful thing. It can offer a gem of con­text around a quirky bit of code that will make the read­er’s life eas­i­er for years to come: // Fields c and d are inten­tion­al­ly switched in ver­sion 3 of the // pro­to­col; see RFC 2324 S 12. fields.push_back( a ); fields.push_back( […]