!!(new Boolean(false)) #wtfjsThe result of the above expression is true. Let us first learn about coercion in JavaScript. We can then use that knowledge to understand this result.
2012-11-27
Coercing objects to primitives
2012-11-26
Greg Smith on Goldman Sachs’s culture
It might sound surprising to a skeptical public, but culture was always a vital part of Goldman Sachs’s success. It revolved around teamwork, integrity, a spirit of humility, and always doing right by our clients. [...] I am sad to say that I look around today and see virtually no trace of the culture that made me love working for this firm for many years.[...] It makes me ill how callously people talk about ripping their clients off. Over the last 12 months I have seen five different managing directors refer to their own clients as “muppets,” sometimes over internal e-mail.
2012-11-21
Jed – a JavaScript internationalization toolkit
2012-11-19
JavaScript inheritance: beyond the basics (video)
- JavaScript inheritance basics
- Object exemplars
- ECMAScript 6 classes
- Super-references
- __proto__
2012-11-18
A proposal for using Canvas in web workers
2012-11-13
Nokia HERE (maps etc.): coming to iOS, Firefox OS and Android
Variable declarations: three rules you can break
2012-11-12
Four talks on ECMAScript 6/ECMAScript.next
- [2012-10-08] Brendan Eich: Harmony of Dreams Come True (blog post linking to video and slides)
- [2012-10-13] Yehuda Katz: ECMAScript 6 (video)
- [2012-10-22] John K. Paul: JavaScript: The Real Bad Parts (slides)
- [2012-10-22] Domenic Denicola: ES6 is Nigh (site linking to slides)
2012-11-09
A guide to 2ality’s posts on ECMAScript.next/ECMAScript 6
2012-11-08
Daylight savings time
Dirk Haage pointed me to a nice visualization of daylight savings time. The visualization makes it obvious how we should change time – we should always have DST. I’d rather have slightly longer afternoons than early mornings. As a complementary measure, schools could start later. There is even evidence (page in German) that starting at 8 o’clock is too early for children (it certainly is for parents).
2012-11-07
Property assignment and the prototype chain
2012-11-06
The text “__proto__” can break a webapp
The text “__proto__” can still break webapps if it appears somewhere in the content, as I was reminded of today, via Domenic Denicola and Peter van der Zee.