Previous page: Daily Crap 2009-05-23
Next page: ChucK Tricks


Daily Crap 2009-05-24

  1. I spent a few hours studying the zipper data structure – again – and I think I almost get it now. Most useful resource to date: Roll Your Own Window Manager: Tracking Focus with a Zipper, the only article I've found that uses examples simple enough that I can imagine the data structure graphically by looking at it in code. Most papers stick to binary or n-ary trees, but the blog entry also covers using a zipper on lists.
  2. instance Data a => FormRenderer a where
        renderForm i =
            form ! [method "post"] << (mapFields renderField i
                     +++ button ! [name "action", value "submit"]
             << "Submit")
            where renderField (name, val) =
          thespan << renderFieldName name
                +++ textfield name ! [value val]
                    +++ br

    "Sing, goddess, the eulogy to the old ways of writing web applications, which put pains thousandfold upon the the programmers. Manual HTML generation is no more."


Comments

Click here to view the comments on this post.