When I do server-side, I do ASP. Without the dot and NET. All my life I seem to be tied up to Win-based web servers and since I was never much of the programmer type, this was sufficient for my needs. And where is ASP, there is VBScript. Very simple, easy to learn, easy to work with.
The only thing I sorely missed in VBScript are associative arrays. In case you don’t know, in ordinary array, (in e.g.) third element is fetched by
2 is the integer index of the element. In associative arrays, index can be anything you like; e.g.
These arrays are extremely handy, especially when one deals with code lists, or reading username/user-details pairs from the database that needs to be stored into drop-down box etc. But they are not implemented in VBScript. There is
Scripting.Dictionary, but this is not a native VBScript object thus I use it only when necessary.
So, in the latest project I’m working on, I decided to develop the site using ASP-JScript combination, solely because of assoc. arrays. I was ready to re-write entire code libraries I used for years, learn new stuff, waste time looking for practically non-existing documentation etc - all because of opportunity to have those arrays.
Unfortunately, it’s all thorns, no roses. Two things made me gave up the whole idea and return to VBScript.