I was wondering when you were going to expand on that Tweet.
BTW, $ is a valid first character for a javascript variable (hence the popularity of $() and _() as library base function names) — so why strip them out?
I’ve started rethinking about this lately since in many cases I still end up with an anti-DRY approach when I write forms that I want to validate both with JS and on the server side. Lately, I’m thinking using the server back-end and the jQuery metadata plugin to drop metadata necessary for the jQuery metadata plugin right into the DOM could get me most of the way there — but it doesn’t solve the duplication of logic problem. Code generation seems to do the trick here. Perhaps there’s a niche for a metalanguage that could be used for calculations/validation callbacks that could be used by JS/PHP/Whatever?