462521 (1) [Avatar] Offline
#1
Elm in Action v5 MEAP:

  • Page 76: SurpriseMe index is incorrect. Should be SurpriseMe (without index)

  • Page 161: Wrong picture for Figure 6.2

  • Page 170: The file name TestPhotoGroove.elm is incorrect. Should be PhotoGrooveTests.elm

  • Page 174: SetUrl is incorrect. Should be SelectByUrl

  • Page 174: Typo: intiial model

  • Page 182: attribute "src" is no longer valid (doesn't compile). Should be Attr.attribute <| Attr.src

  • Page 187: urlToClick is incorrect. Should be urlToSelect


  • Hope this helps. Great book!
    394895 (2) [Avatar] Offline
    #2
    ... to attribute src - (Attr is a bit misleading, also Attr.attribute does not exist)
    it actually should be

    import Html.Attributes as Attr
    ...
    thumbnailRendered url query =
                        query
                            |> Query.findAll [ tag "img", attribute <| Attr.src (urlPrefix ++ url) ]
                            |> Query.count (Expect.atLeast 1)
    

    551042 (1) [Avatar] Offline
    #3
    96: "This Request value serves a similar purpose to the Random.Generator value we passed to Random.generate in Chapter 3" - "similar to" ?

    97: "If the request fails for any reason, we’ll want to know went wrong so we can inform the user" - missing word?

    100: "You can use _ either in function parameter lists or in case-expression branches" - wrong font

    101: "The LoadPhotos (Ok responseStr) branch runs if msg is a LoadPhotos type constructor which contains an Ok value" - indentation (only in ePub)

    106: "As long as we give it a function of that type, Html.program could care less what that function is called" - couldn't ?

    110: "We could decode this using thet technique we just learned, with one slight difference" - "the"

    112: "WARNING Reordering any function’s arguments can lead to unpleasant surprises. Since reordering the fields in the Model type alias has the consqeuence of reordering the Model function’s arguments, you should be exactly as careful when reordering a type alias as you would be when reordering any function’s arguments" - consequence

    Awesome book, btw!