Write a CGI program

This post has been created more than 3 months ago. It might contain inaccurate or stale (or both!) information. Use with caution!

Today I wanted to make some experiments with CGI on my newly-installed Ubuntu 16.04. There are a few steps to take before starting to experiment, and I’m writing them down here in case anyone else wants to try something similar.

Read More

Writing a simple calculator in Racket

This post has been created more than 3 months ago. It might contain inaccurate or stale (or both!) information. Use with caution!

Frustrated by several attempts at creating GUI-based programs that I’ve tried in the past, I decided to try how differently the story could end when using a language that promises enlightenment to its users. I ended up writing Calculon, a simple calculator, and in the process learned a couple of things about Racket and the racket/gui module (and paid homage to one of the best cartoons in history).

Read More

Twelve weeks of Racket and CS:APP

This post has been created more than 3 months ago. It might contain inaccurate or stale (or both!) information. Use with caution!

As promised, this is a wrap up of my experience concentrating for (slightly more than) 12 weeks on only 2 subjects. For this first stint, I chose to learn Racket and to read Computer Systems: A Programmer’s Perspective. Not long ago I have lost interest in providing ultimate motivations for what I do in my free time; I’ll just stick to what happened. (I can’t promise I won’t motivate everything else, which is not ultimate.)

Read More

Kicking the tires

This post has been created more than 3 months ago. It might contain inaccurate or stale (or both!) information. Use with caution!

In the hot, cruel desert of this space, wind howled in solitude. A stone statue lay on the ground like a man asleep, succumbing to its own weight, mental and physical. For more than one year, no stirring. The sun shines on again today. A wanderer passes by on a camel, and looks at the strange statue. He swears that he saw it moving.

Read More

Unit testing with Google Test

This post has been created more than 3 months ago. It might contain inaccurate or stale (or both!) information. Use with caution!

In a previous post, I have written a brief introduction to CppTest, and given some motivation as to why you should be using unit tests if you are not already. This week, I wanted to throw a glance at the competition, so I tried Google Test. I still don’t like macros, but these look actually useful.

Read More

Unit testing with cpptest

This post has been created more than 3 months ago. It might contain inaccurate or stale (or both!) information. Use with caution!

Unit testing is a fundamental activity in software development, even if not as widespread as it should. As C++ has been around for quite some time, several libraries are available for carrying out this activity. This week I’ve had a look at cpptest. In the future, I plan to compare compare it to another pretty popular test library, googletest.

Read More

The SQLite3 C++ API

This post has been created more than 3 months ago. It might contain inaccurate or stale (or both!) information. Use with caution!

I was looking for some practice with DBs, and my choice fell on the SQLite project, maybe only because it looked lighter than PostgreSQL, which I also plan to play with. My first general impression about the API is that it looks a little too much C-oriented, even though I am not sure whether this is a good or a bad thing, and I am ignorant about the latitude of choice an engineer has when designing an API that has to interact with applications written in either C or C++.

Read More