Subscribe

Archive for the 'programming' Category

This simple operation took me longer to figure out than I would like, the answer wasn’t obvious on msdn or in any of the searches I did so I figure I should just put it up here for anyone else who might look for it:

To select an item in a list view create an LVITEM [...]

The GNU linker has some trouble when you present it with multiple library archives that depend upon each other. Libraries with symbols resolved in other libraries must be presented earlier on the command line. You can work around this with a command line argument:

“–start-group”, “–end-group”, aternatively “-(” “-)”

See the man page for LD for more [...]

Tell, Don’t Ask

The post over at pragmatic programmer is timely for me because Tell, Don’t Ask is a concept that I have outlined in a programming style presentation for my new team.

The quote at the beginning of the article is perfect:

Procedural code gets information then makes decisions. Object-oriented code tells objects [...]

This is very much what I have been dreaming of having rubycube accomplish. A very slick presentation.

I investigated make, cmake, cook, jam, bjam, ftjam, scons, cons, rake, ant. What I come to find is this wonderful little paper that turns my out-moded ideas about make completely on it’s head. I wrote a wonderful beginnings of a new build system using 300 lines of Make and 100 lines of bourne shell. Shane [...]

Once again I have found the best way to learn is to go to the source. If you really want to learn something you have to find dig into the implementation, read the classics and seek out the originators. In my quest to better understand the lisp I came across this C2 lisp resource with [...]

DSL-FSM.. that kinda sounds like some wierd internet sub-culture. It stands for domain specific language – finite state machine. I proposed both topics as presentation material for the austin-ruby group that I meet with once a month. Steven Harms the organizer recommended both/either so I combined it into one piece of code as it [...]

Codified Thinking

There are many choices that must be made during the coding process and how we arrive at those choices is important and can influence our thinking and code quality a great deal. I try to make a concentrated effort to put thought behind each of my choices and be able to explain them to myself [...]

Came across this post on programming.reddit.com today (the programming reddit has been one my guilty pleasures lately). The author has some good tips on staying in the zone. I have some tips of my own as I enjoy the feeling of being in the zone and lament when I’m not.

While it’s nice to get rid [...]

I was working on an in-memory database prototype in python and decided I didn’t want to keep manually running the unit tests so I whipped up a little auto test script that I can run in another terminal.

autotest.py

It’s very simple it relies on a static list of files and an internal cache of the [...]

Next »