functional programming, json, mochikit
Through a javascript one liner, Delicious allow to retrieve tagged content ( via JSON, previously discussed)
<script type="text/javascript" src="http://del.icio.us/feeds/json/nrolland?count=20"></script>The format under which data are received is the following :
Delicious.posts =
[{"u":"http://www.napyfab.com/ajax-indicators/",
"d":"AJAX Activity Indicators",
"t":["web2.0","javascript","design","graphics","webdesign","ajax","icons"]}]
If those tagged posts are to be processed, functional programming can help reduce significantly the amount of code needed.
Example : Let's say I want to retrieve only those posts tagged with selected categories, and have them accessible through those categories. My navigation box on the right here is a simple example of that.
Here's how I might do it in javascript, starting from imperative constructs to functional ones :
//v1
//v2
//v3
//v4
//v5
//v6
//v7
