This week I was most pleased with finally understanding what a closure is. I knew it was an important thing, there is a whole language called Clojure after all. In my own words it is the fact that functions remember the situation when they were created. They can use resources that were available at the time but no longer.
Closures cause problems with testing as there are private functions in the closure that are not visible to the rest of the program or testing framework. I found this good post explain one solution to this, and I have created a tested fizzbuzz kata to demonstrate this method. Despite the fact that extra code is added just to make the tests work I think it is quite an acceptable solution.
The rest of the week was spent immersed in the other front end technologies HTML and CSS. we weren’t taught more but the challenge was to recreate the look of twitter on a webpage. It was a more rewarding task than I thought when first given it but CSS can really test my patience.
So there are a million good resources on front end features far too many for me to share here apart from a few choice picks.
CSS is far more of an art than science and this is a great selection of loading animations. and a wider set of examples here.
Wells its definitely cheating to link to top 20 lists so here is just one more.