Hasn't software got small?
Last month I blogged about how flat software was, after a microsite had five files in five languages. Today I refactored a site, replacing a switch-statement generic handler with one handler per operation. Having moved useful functions into my base handler, here's a complete piece of source code.
<%@ WebHandler Language="C#" Class="GetDocsStats" %> using System; using System.Web; using MyClasses; public class GetDocsStats : BaseHandler { public override void Go() { SendMessageAndTable("Statistics at " + DateTime.Now.ToString("HH:mm:ss"), DB.ExecuteDataTable("exec sp_DocsStats"), "*"); } }That's it. A program with a single statement. Hasn't software got small?