Working on my stuff I find programmtically building forms is best on
popups, checkbox lists, and radio lists, where you have multiple
options/selects), using arrays and such you can make it rather clean.
As for miscelaneous text fields most of that stuff as these people say,
is a matter of tweaking.