[racket] Isn't the web application tutorial too advanced?
After gaining some basic understanding of web applications, I wanted to
develop one in Racket. So I went to the tutorial "Continue: Web
Applications in Racket <http://docs.racket-lang.org/continue/index.html>".
When I reached "6 Advanced Control Flow", I saw `send/suspend/dispatch`. I
didn't know what it is, so I clicked on the link
<http://docs.racket-lang.org/web-server/servlet.html#%28def._%28%28lib._web-server%2Fservlet%2Fweb..rkt%29._send%2Fsuspend%2Fdispatch%29%29>to
see its documentation and saw a very complex starting sentence:
> Calls make-response with a function (often named embed/url) that, when
called with a procedure from `request?` to any/c will generate a URL, that
when invoked will call the function with the `request?` object and return
the result to the caller of send/suspend/dispatch.
I couldn't figure out the meaning of this sentence, so I went on to `
send/suspend<http://docs.racket-lang.org/web-server/servlet.html#%28def._%28%28lib._web-server%2Fservlet%2Fweb..rkt%29._send%2Fsuspend%29%29>
`:
> Captures the current continuation, stores it with exp as the expiration
handler, and binds it to a URL.
Although I knew what a continuation is, I didn't know what it is in this
context.
Then I gave up.
I know that the web framework for Racket is very advanced. But IMHO, for
the tutorial, a simpler one with some basic functionality like request
handling, response sending and routing will be enough. And an advanced one
would probably scare beginners like me away.
Hope my experience is somewhat useful to you.
Thanks,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140428/601653d5/attachment.html>