netrenaissance.net

this.code();

Over the weekend I picked up Douglas Crockford's new book, Javascript: The Good Parts. It's a great read, and presents a lot of interesting Javascript concepts like closures, functions, prototypes in an easy to understand manner.

I have been looking for a book to really understand prototypes in particular (how they differ from a statically typed class approach), and this book is a great help on that front. Additionally, the state diagrams for how Javascript interprets code is, I think, visually very easy to grasp.

In other news, I learned that Sitecore's built-in image library has some issues with resizing GIF files with transparent backgrounds. In particular, attempting to do so will render the resized version's background non-transparent (tests are currently showing that the background ends up black). I am currently unsure of why this is, or if there is a way to fix it (maybe one of the thousands of web.config Sitecore setting lines, for instance). So, for now, avoid resizing transparent GIF files in Sitecore.