This might be sound advice ... in a suitable context ... but you are unwittingly taking for granted that the programmer is doing client-side scripting! Sure, one of the first decisions that you must make is "what tool(s) will I write this thing in?" And let the record show that programmers can write really-good or really-awful code in whatever tool they choose to pick up.