Wednesday, June 6th, 2012
Archive for the 'Uncategorized' Category
Saturday, December 12th, 2009
…but I do other stuff now.
I haven’t updated this blog in over half a year, sorry about that. It’s just that my focus used to be Flex, and I almost haven’t written a single line of Flex code in just as long. I’ve updated the about page with new info.
Hopefully more will follow (ah, those famous last words).
Tuesday, September 9th, 2008
Writing testable code isn’t just about writing code that is easy to test, writing testable code is also a way to write higher quality code. If you can test it it is likely to be reusable, loosely coupled and easier to maintain.
The Google Testing Blog, mostly written by Miško Hevery, is amongst the most brilliant things I’ve read on software engineering. If you’re not convinced about the benefits of writing testable code after reading Miško’s articles I think you may be a lost cause. These are my favourites from the last few months:
- Root cause of Singletons
- Singletons are Pathological Liars
- Writing Testable Code
- How to write 3v1l untestable code
- Breaking the Law of Demeter is Like Looking for a Needle in the Haystack
The articles explain testing and good practices in software engineering in a simple, accessible, to-the-point manner without droning on about theory. Great writing and great insight. Read it.
Sunday, September 7th, 2008
Today, while refactoring some code, I had an epiphany I’d like to share. It’s why you should chose clean code over apparent performance, because your gut feeling is usually wrong.
Sunday, August 31st, 2008
Friday, August 15th, 2008
Tuesday, July 1st, 2008
A tip to all lazy HTML pirates out there: if you’re going to nick the HTML off a website, remove the Google Analytics tracking code before uploading it to your own servers.
Wednesday, April 23rd, 2008
Wednesday, April 9th, 2008
Most screencasts are done with minimal resources, usually just a guy and his computer. This usually means crappy sound with lots of noise. Watching a screencast the other day I realized that I could remove the annoying noise I was hearing by routing the sound through AirFoil and setting the equalizer settings to kill high-frequencies.
In version 3 of AirFoil you can not only send sound to an Airport Express but also other computers, and of course, your own. To clean up any sound, just set the application to route all sound (look for “System Audio” at the bottom of the list of sources) to your own computer (by clicking on the speaker button next to the computer in the list, in most cases there will only be one, yours). You can also choose just the web browser you are watching the screencast in as the source. When you have started routing the sound open the equalizer and modify to your heart’s content.
It would be great if AirFoil had noise-cancellation built-in because you can’t always remove the noise with the equalizer, it’s a blunt instrument. I’m sure that someone more clever could come up with a way to route the sound through noise reduction filters before using a similar method.
The downside is that you get some delay in the audio, but it doesn’t seem to be the full 2.5 seconds as when you send to an Airport Express. I’ve not even noticed it most of the time when I’ve been watching programming screencasts, probably because you don’t see the speakers lips moving and that the “action” is quite slow.
Thursday, January 17th, 2008
They started coming yesterday around 23:00, and they keep coming still.