Thursday, 29 March 2007

Slapping code together only works if you review before roll-out

Some Notes Developers do leave a little to be desired and with my two tame Notes Developers out in India, they do tend to come up with some real gems. Todays classic was found only as I was testing out some of the moduiles from Ytria's Suite of Tools.
Input Translation and Input Validation are two areas that some people struggle to understand, I know back in the day I have written some bizarre code there. Anyway this is a classic, the field is a Dialog List, picking up the options from a view in another database, which the developer has added a sort option to, you are not allowed to select multiple values. So when you have selected your single value, the following Input Translation runs.....

@Sort(@ThisValue; [Ascending])

It looks as though he originally attempted to sort the return from the view for the dialog list by adding the Sort to the Input Translation. Thanfully this has now been pulled from the code, thanks to Ytria again for that one.

For those of you just starting out :-

Input Translation = Change the value that I have just entered into the field
Input Validation = Check that the information I have just entered in the field is correct and point out if I have been a prat!!

1 comment:

Anonymous said...

its fecking frothy man