Good old days Javascript:
if( confirm('Are you sure?') ){ ... do stuff ... }
Modern days fancy Ecma script (abridged):
if( confirm('Are you sure?') ){ ... do stuff ... }
Modern days fancy Ecma script (abridged):
- Think a lot
- Write 100KB of untestable code
- Instanciate a factory.
- Build an anonymous function.
- Don't forget to hoist your variables.
- Fire a dozen async events in two different frameworks
- Don't forget to use .promise()
- Catch your events in a completely remote and random other place.
- Build a jQuery UI modal dialog with appropriate call backs
- Oh no, it's too slow in IE :(
- Go back to step 1.
J.
No comments:
Post a Comment