<div dir="ltr">Thank you, Jay. I will read the URL-Based Dispatch tutorial. And, it's my honor if I could do anything for the community.<div><br></div><div>Ben</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 29, 2014 at 3:13 PM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com" target="_blank">jay.mccarthy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ben,<br>
<br>
Thank you for your feedback. The basic tutorial you're imagining is<br>
basically contained within the beginning of the Continue. For<br>
instance, the first section shows how to do request handling and<br>
response sending (because a servlet is a function from request to<br>
response.) Routing has its own tutorial:<br>
<br>
<a href="http://docs.racket-lang.org/web-server/dispatch.html#%28part._.Using_web-server_dispatch%29" target="_blank">http://docs.racket-lang.org/web-server/dispatch.html#%28part._.Using_web-server_dispatch%29</a><br>
<br>
and then that's it. I can imagine writing a very short tutorial that<br>
just concatenates these together, but I'm missing the value of doing<br>
that. If I write something, would you be willing to check it out for<br>
me?<br>
<br>
Jay<br>
<div><div class="h5"><br>
<br>
On Mon, Apr 28, 2014 at 6:27 AM, Ben <<a href="mailto:yfefyf@gmail.com">yfefyf@gmail.com</a>> wrote:<br>
> After gaining some basic understanding of web applications, I wanted to<br>
> develop one in Racket. So I went to the tutorial "Continue: Web Applications<br>
> in Racket". When I reached "6 Advanced Control Flow", I saw<br>
> `send/suspend/dispatch`. I didn't know what it is, so I clicked on the link<br>
> to see its documentation and saw a very complex starting sentence:<br>
><br>
>> Calls make-response with a function (often named embed/url) that, when<br>
>> called with a procedure from `request?` to any/c will generate a URL, that<br>
>> when invoked will call the function with the `request?` object and return<br>
>> the result to the caller of send/suspend/dispatch.<br>
><br>
> I couldn't figure out the meaning of this sentence, so I went on to<br>
> `send/suspend`:<br>
><br>
>> Captures the current continuation, stores it with exp as the expiration<br>
>> handler, and binds it to a URL.<br>
><br>
> Although I knew what a continuation is, I didn't know what it is in this<br>
> context.<br>
><br>
> Then I gave up.<br>
><br>
> I know that the web framework for Racket is very advanced. But IMHO, for the<br>
> tutorial, a simpler one with some basic functionality like request handling,<br>
> response sending and routing will be enough. And an advanced one would<br>
> probably scare beginners like me away.<br>
><br>
> Hope my experience is somewhat useful to you.<br>
><br>
> Thanks,<br>
> Ben<br>
><br>
><br>
</div></div>> ____________________<br>
>   Racket Users list:<br>
>   <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Jay McCarthy <<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://faculty.cs.byu.edu/~jay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
</font></span></blockquote></div><br></div>