Author Archives: dhardy

About dhardy

A software developer who landed in Switzerland, I love conjecturing over a few things computer-related, open collaboration, and quietly promoting linux/KDE as a desktop OS.

Another way of thinking about global variables

(This is a computer programming topic.) The problem So “global variables” are bad, right? Well, yes. They suffer from initialisation order problems: if x is a global and f is a function which uses it, if f gets called before … Continue reading

Posted in Uncategorized | Leave a comment

Yoga 2 Pro + Heisenbug

Had my new laptop about two weeks, time to write up my thoughts. Lenovo’s new Yoga 2 Pro is a tablet wanting to be a laptop — or a laptop wanting to be a tablet — or something in between. … Continue reading

Posted in Uncategorized

HouseBus

What is it? A mobile home? No, a house-wide communications and power grid. It doesn’t exist yet (as far as I’m aware), but it should: a wiring system combining power and communications wires. To reduce interference and improve efficiency, the … Continue reading

Posted in Uncategorized | Leave a comment

TypeMatrix, a year or so on

It’s almost exactly a year since I bought a TypeMatrix keyboard, and I think it’s time for a review. The good? The key travel is good (if ending with a jarring feeling and, especially with the latex skin, a little … Continue reading

Posted in Uncategorized | Leave a comment

Java: you could or you should?

What’s a piece of advice said differently? If someone asks you how to boil potatoes, there’s a simple answer: put them in a pan, immerse them in water, and put the pan on the heat. But if you were asked … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Why division remainder and modulus are not the same

It’s simple really. What’s (4-6) mod 12? There’s two ways of thinking about this: the right way and the wrong way. One is modular arithmatic. If you don’t know what that is, think of a clock: if it’s 5 o’clock, … Continue reading

Posted in Uncategorized | Leave a comment

how autocomplete should work

Auto-completion (of words previously typed, member function suggestions, etc.) is both useful and annoying. It is useful because it saves typing. It is annoying because it visually hides other parts of the document, distracts, and blocks keys (worst when you’re … Continue reading

Posted in Uncategorized | Leave a comment