Skip to content

{ Monthly Archives } January 2009

Data Structures for Time Records

Over the years, I’ve had a number of occasions to need to store information about when somebody worked on a certain job. Sometimes people will want to store the date the work was done and the number of hours the employee worked, where as other people will need to store the start time and the [...]

Tagged , , ,

ASP.NET MVC TempData Is Really RedirectData

Update: This post was written for MVC 1. TempData behaves completely differently in MVC 2 Beta and higher. In these versions, TempData is cleared only when it is read (or when the session expires).
Many people seem to be confused about the TempData feature in ASP.NET MVC. TempData behaves like the ViewData dictionary, except that it [...]

Tagged ,

SQLDA missing or incorrect version, or incorrect number/type of variables

The error in the title comes from InterBase. Actually, the full error is:
[DataDirect][ODBC InterBase driver][InterBase]Dynamic SQL Error, SQL error code = -804, SQLDA missing or incorrect version, or incorrect number/type of variables.
I’ve seen this error before when the wrong InterBase client (gds32.dll) version was loaded by the application, or when the wrong number of variables [...]

Tagged , , , , ,

Customizing jQuery Validation

While doing some bug fixing and cleanup in a web application, I had the chance to go a little deeper into the jQuery user input validation framework. There are many tutorials available about implementing custom validations. But what I wanted to do was to extend the default validations with my own code, while preserving the [...]

Tagged , ,

Testing Is a Legitimate Use Case

How should you unit test private methods? It depends. Some say you shouldn’t do it at all. Others say you should test everything. Who is right?
The problem that I have with a statement like, "Don’t test private methods," is that it is a circular argument. That a method is private implies that you don’t want [...]

Tagged

How to Unit Test a Data Module

Data modules are unit tested in exactly the same way that you would unit test any other piece of code. That is, by refactoring the code to be tested in such a way as to separate it from code not relevant to the test. But since people occasionally seem to find this confusing, perhaps a practical example is in order.

Tagged ,

Functional Programming in Delphi 2009 Video

The video of my CodeRage III presentation on Functional Programming in Delphi 2009 is available for download.

Tagged , ,

Architectural Hedges

In gardening, a hedge is a line of shrubs which forms a barrier between two areas. In finance, a hedge is a risk management strategy based on making investments or business plans in such a way that a loss in one area of the portfolio will be balanced by a gain in another area of [...]

Tagged , , ,

Bad Behavior has blocked 713 access attempts in the last 7 days.

Close