Code comments

Good code comments only describe why the code is (or isn鈥檛!) doing something. ...

May 2, 2021 路 4 min 路 Ohad Lutzky


An adventure with Raspberry Pi, Golang, and small displays.

March 14, 2021 路 4 min 路 Ohad Lutzky

Seaplane - Github with a non-programmer

When I helped a non-programmer friend with some code for psychology research, and how we avoided using Matlab.

May 30, 2015 路 5 min 路 Ohad Lutzky


A tiny python library for faking out filesystem operations for tests.

July 2, 2014 路 1 min 路 Ohad Lutzky

Fun with file descriptor leaks

How file descriptor leaks are causing your processes to stick around longer than they should.

June 22, 2014 路 2 min 路 Ohad Lutzky

Weird permission issues with tvnamer

Distinguishing EPERMvs EACCESS, and how that helps debug file manipulation scripts.

January 5, 2014 路 2 min 路 Ohad Lutzky

Startup times

Starting new java processes in your scripts considered harmful. Let鈥檚 compare 鈥渉ello world鈥 startup times for different languages.

December 11, 2013 路 2 min 路 Ohad Lutzky

Asserting string equality

When comparing long strings in unit tests, make sure your assertion failures give you useful output.

December 2, 2013 路 3 min 路 Ohad Lutzky

Test-driven procrastination

How being lazy and procrastinating led me to adopt test-driven development before I realized it.

December 1, 2013 路 3 min 路 Ohad Lutzky

Multiple library versions

Working with vendor code in C can get very tricky, especially when you except breaking changes to occur. Especially when you have multiple binaries depending on that vendor code, updating at different times, necessitating different live versions. Let鈥檚 explore. Introduction Assume you鈥檙e working with an external vendor, who is providing you with code for a wonderful function getFoo: // foo.h version 1.2.3 int getFoo(); // foo.c version 1.2.3 int getFoo() { sleep(1000); // TODO improve performance return 42 } You use this function in many of your products - for example, in your best-selling barApp application:...

May 15, 2013 路 3 min 路 Ohad Lutzky