Archive for the ‘C’ Category

And?

Thursday, 4 February, 2010

C++ defines a bunch of aliases for operators. These are kind of cool, and they can make code more readable at times – for example you can write things like: if ((dest bitor netmask) == bcdest and protocol == udp) But in typical C++ fashion, they chose to specify it in a completely brain-dead way. […]

Posted in C, Development, Technolgy | 1 comment »

Generated Copy Constructors Considered Evil

Saturday, 4 April, 2009

Sometimes I really hate C++. Not just dislike it, but really, really hate it. This week, one of the most horrible language “features” got me again: the generated copy constructor. I understand why they exist — they’re necessary to allow C structures to be passed by value no extra effort. However, their behaviour causes a […]

Posted in C, Development, Technolgy | No comments »

On Spaghetti

Sunday, 27 July, 2008

Most programming languages have flow control features of some kind. Yeah, I know there are some languages that lack them, for example early programmable shader languages, some macro languages, and I think some programmable calculators just run a program straight through from beginning to end. But by and large, programming languages provide ways to jump […]

Posted in C, Development, Technolgy | 7 comments »