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 | Comments Off on Yoga 2 Pro + Heisenbug

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

Update on using the TypeMatrix keyboard

It’s been two months now since the last post, and most of what I said before is still relevent. What has changed is: I’ve got used to using it with the silicon cover. Think I even prefer the feel using … Continue reading

Posted in Uncategorized | Leave a comment

TypeMatrix

I’ve recently bought a TypeMatrix keyboard. Here’s my thoughts. There’s two things to comment on really: the physical construction and feel, and the new layout. I’ll start with the former. — Key travel is good, a little harder to press … Continue reading

Posted in Uncategorized | 3 Comments

Reading is eating

I just stumbled across a bit of food for thought, and think I did (my nice little jog-in-the-rain turned into exercise of a different kind). Have a bite. Go on, eat the whole thing while you’re at it — it’s … Continue reading

Posted in Uncategorized | Leave a comment