Like any profession, programming is full of things you should do, and things you shouldn’t. Some of these are passed-down experiences, and some are momentary fashions. One of the former is that you should write a conditional using Yoda notation. That is, instead of writing: if ( x == 1 ) You should write: ifContinue reading “Wrong is Yoda”
Category Archives: Beep
Senua’s Saga
I’ve had Senua’s Sacrifice for almost two year and just never gotten round to playing it. Part of the reason is that it’s quite an intense game. I don’t mean that it’s physically intense, or that it’s scary, just that it puts you in the role of someone with psychosis and it’s not really suitedContinue reading “Senua’s Saga”
Control a Sphero RVR with bluetooth joypad
A while back I contributed to the Sphero RVR Kickstarter project. It arrived in time for Christmas allowing me to gift it to my daughter. Ostensibly this was a fun educational present for her, but it also doubled up as a present to myself. Everyone’s a winner. The RVR itself is an incredibly solid deviceContinue reading “Control a Sphero RVR with bluetooth joypad”
The need for whitespace
I’m a big fan of vertical whitespace, and find it strange that more fuss is made of tabs vs spaces (which doesn’t really affect readability) than vertical spacing (which does). Here’s a simple code example, randomly picked: Compared to: That single extra line makes such a difference when scanning code. Imagine trying to read aContinue reading “The need for whitespace”
SimpleSync
What better way to welcome in the New Year than over-engineering a solution to an edge case that almost no one will need. Hurrah! The thing is, sometimes I need to edit files on a remote server. This isn’t anything new or different, but sometimes I also want to use my editor of choice (VSCode),Continue reading “SimpleSync”