Monthly Archives: June 2009

Microsoft Like Moria, Not Mordor

Contrary to public opinion, Microsoft is not Mordor. Microsoft is like Moria. Being a developer and faced with the task of developing some particularly interesting feature for, say, the Internet Information Server (IIS), is much like Gandalf and the companions looking at crossing the mountains through the treacherous kingdom of Moria. Once a kingdom of [...]

Speeding Up Delphi’s TStringList.IndexOf

Delphi’s TStringList is one of the objects I love the most. If it’s sorted (StringList.Sorted := true) then you can use it to parse huge chunks of data quickly. For instance, looping through an enormous amount of IP addresses and keeping count of how many times they appeared, is easily done using the following code [...]