porges

Tag: Development

NullPointerException

Why is this such an insidious error in Java? (An opinion piece!) A Comparison Firstly, I’ll show a short comparison between some Java code and some code from a language that doesn’t have NullPointerExceptions, but does have something that allows you to accomplish anything you might want to do with null pointers. This Java code: [...]

About using Rosetta

Oh, that reminds me… I should really contact some translators to ask for updates and release Gnome Specimen 0.2. —Wouter Bolsterlee The Gnome Specimen product is not set up for translation in Launchpad. You might want to talk with Wouter Bolsterlee (uws), the project registrant, about using Rosetta. —Launchpad Done!

Functional programming, APL and Unix pipes

I’ve noticed that when reading rather deeply-nested functional code in Haskell, the process taking place in reading the code seems to resemble trying to decipher APL more than anything else. This seems to be because functions which operate over lists are easily concatenated (possibly using the $ operator), because they operate on lists in their [...]

Implementing futures in C#

Why? I was bored, and it didn’t seem to have been done before, so here’s some Future action in C#. The Code using System; using System.IO; using System.Reflection; using System.Threading;   public class Future<T> { public delegate R FutureDelegate<R>(); public Future (FutureDelegate<T> del) { Del = del; Result = del.BeginInvoke(null,null); } private FutureDelegate<T> Del; private [...]