2 ms·
What an unhelpful example of using continuations. Form verification always happens first on the client (to avoid a server roundtrip), and only if the user does
by lsb 17y ago
What an unhelpful example of using continuations.
Form verification always happens first on the client (to avoid a server roundtrip), and only if the user doesn't have JS enabled does it hit the server. When presented with that problem, not having continuations on the server isn't nearly as much pain as switching between languages to write the same verification code twice.
This isn't to say that using continuations for such a purpose isn't snazzy, it's just that, among all the crap you have to do to have form validation, that isn't big, in the total scheme of things.
Are there any really major uses of continuations? I remember hearing that Viaweb used a continuation-based thing to do color-picking and take you back to the same page, but nowadays that'd be done with Javascript popping a window up.
(This comment box's continuation expired. That's a pretty unhelpful application of continuations.)
- igrekel 17y agoI agree that the continuation example is weak. It is also generally accepted in the seaside community that continuations are becoming less useful now that ajax like solutions are widespread. In fact, continuations are more of an add-on in the upcoming Seaside 2.9. But even without continuations, Seaside is very different and useful for building web applications.