Skip to content

Instantly share code, notes, and snippets.

@tamizhvendan
Last active July 17, 2016 15:16
Show Gist options
  • Select an option

  • Save tamizhvendan/987828aae0780b0394531798ce0138b1 to your computer and use it in GitHub Desktop.

Select an option

Save tamizhvendan/987828aae0780b0394531798ce0138b1 to your computer and use it in GitHub Desktop.
F# Applied Book Errata
@mellson
Copy link
Copy Markdown

mellson commented Jun 11, 2016

page 8:

Suave encourages you to think your application as a set of functions...
should be
Suave encourages you to think about your application as a set of functions...

@mellson
Copy link
Copy Markdown

mellson commented Jun 12, 2016

page 13, the input split in parseRequest assumes that there are two parts after the split.
I am not sure what would be "correct" and still concise, it just stood out to me as not being a very functional approach.

let parseRequest (input : System.String) = 
    let parts   =   input.Split([|';'|])
    let rawType =   parts.[0]
    let route   =   parts.[1]
    match   rawType with
    |   "GET"   ->  {Type   =   GET;    Route   =   route}
    |   "POST"  ->  {Type   =   POST;   Route   =   route}
    |   _   ->  failwith    "invalid    request"

@vilinski
Copy link
Copy Markdown

Page 17: dead link to MVC [Action Filter]

@tamizhvendan
Copy link
Copy Markdown
Author

@mofus I agree and it is not a robust request parser. I did this intentionally as the focus of the chapter, is just to get a feel of Suave and also to keep it simple. Thanks for the comments.

@vilinski Thanks for the finding. It is because of the parenthesis in the URL. It's fixed now.

@tonymobster
Copy link
Copy Markdown

Page 3:

If you are a beginner, I recommend you [checkout/read] the following resources to get the most out of the book

@vgaltes
Copy link
Copy Markdown

vgaltes commented Jun 14, 2016

Page 17:

In the Program.fs file replaces the line containing OK "Hello Sauve!" with the below

Should be:
In the Program.fs file replaces the line containing OK "Hello Suave!" with the below

@mellson
Copy link
Copy Markdown

mellson commented Jul 4, 2016

Page 3:

The second chapter introduces the Suave library and helps you to get started with the Web development.

Should be:
The second chapter introduces the Suave library and helps you get started with web development.

@mellson
Copy link
Copy Markdown

mellson commented Jul 4, 2016

Page 4:

The fifth chapter introduces you to the wonderful world of the Functional Reactive Programming(FRP). We will be implementating an API Gateway by writing a beautiful code using Rx

Should be:
The fifth chapter introduces you to the wonderful world of Functional Reactive Programming (FRP). We will be implementating an API Gateway by writing beautiful code with Reactive Extensions (Rx).

@mellson
Copy link
Copy Markdown

mellson commented Jul 4, 2016

Page 8:

This function forms the basis for the Suave Library. Without adding any ceremony around, Suave takes this simple function and builds a beautiful, scalable and robust web application development experience around it.

Could be:
This function forms the basis of the Suave Library. Suave takes this simple function and builds a beautiful, scalable and robust web development experience around it.

@mellson
Copy link
Copy Markdown

mellson commented Jul 4, 2016

Page 9:

To keep things simple, we are just concentrating on what needed for our mini web server.

Should be:
To keep things simple, we are just concentrating on what's needed for our mini web server.

@tamizhvendan
Copy link
Copy Markdown
Author

tamizhvendan commented Jul 17, 2016

Thank you @tonymobster, @tonymobster & @mofus for the comments. Will be releasing the updated version in few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment