bloggo ergo sum

Tag: programming

More functional support in C++

Sutter just announced that C++0x will have support for lambdas and closures. It looks from the N2550 report that these things are motivated by a desire for some syntactic sugar to make using STL algorithms easier (which is understandable), but I hope this will lead to more first-class support for the functional programming paradigm. It [...]

The Programming and Management Blog » Most Influential Programmers Results

The Programming and Management Blog » Most Influential Programmers Results Nick Halstead recently took a month-long poll over at his blog recently of what people consider the most influential programmers, and below is the result: 1st – Linus Torvalds 2nd – Alan turing 3rd – Dennis Ritchie 4th – Donald Knuth 5th – Rasmus Lerdorf [...]

Best Programming Language Advice

The demons *must* be ice-skating by now.  There was an almost wholly on-topic thread on /. The original article was an “Ask Slashdot” regarding programming languages. Below are some of the more informed comments (or so I thought), along with some of my thoughts. My apologies for not having links. I started this post using [...]

Ok, I get it (or: Gtk+ is better than I thought).

In my last post, I kinda whined about the awkwardness of the Gtkmm API. At least, it seemed that way at the time. I toyed with libglade and Gtk+ for a while first and everything seemed very straightforward and easy. Gtkmm and libglademm are different. They seemed awkward at first, but after further investigation, I [...]

ksh stuff

Below is a little code I use with ksh. The wt() function can only be expected to work in an X-term. The code sequences are different for other terminal emulators. DIRSTACK=$PWD function dirs { print $DIRSTACK } function pushd { dirname=$1 cd ${dirname:?”missing directory name.”} DIRSTACK=”$PWD $DIRSTACK” } function popd { DIRSTACK=${DIRSTACK#* } top=${DIRSTACK%% *} [...]

Discovering Ruby

As a software engineer who works on embedded systems and deals with things pretty close to the metal at times and primarily still works in C, I don’t get exposed to some of the new stuff that’s going on. I have to put forth extra effort to stay up to date – and even then [...]

Quick and simple debug stream for C++

Ever need to set up a quick and simple debug/logging stream for your application without having to deal with large frameworks like log4cpp or *shudder* log4cxx? There’s also libcwd, which seems really neat, but also very large. I didn’t want to use all that. I just needed a simple way to filter my output using [...]

C++ Style Redux

I just discovered the POCO library. It’s pretty neat-looking: it has a number of components that provide functionality that goes beyond the standard C++ library, such as threading support, networking, XML reading/writing, etc. The cherry on top is that not only is it similar to boost in terms of functionality, it seems smaller, more portable, [...]

Understanding STL Containers

This article is a really great way to start understanding STL containers. It discusses the differences between a vector and a deque (a double-ended queue) (you’ll often see C++ rookies as “what’s the difference between vector and queue” or something like that, and the answer is usually “if you have to ask, just use vector”. [...]

Nifty utility for POSIX systems

It’s called bar. It seems to be a nifty little script that does what you would normally do with simple invocations of cat, tar, and cp, but it prints a progress bar. Like this: