Monday 28 April 2014

Some JavaScript Fresh Stuff (once again)

It's always a good time for dumping here a list of interesting JavaScript links, so here it goes:

  • Even if you've been consuming Promises regularly in your developments it's likely that this excellent post JavaScript Promises ... In Wicked Detail explaining how they can be implemented will make an interesting reading for you.
  • So yes, it's clear that Asynchonous programming is now essential in almost any language and platform, this chapter in a free Node.js book makes an excellent reading.
  • I've always found disturbing the lack of multiline strings in JavaScript. This is a really ingenious work around. So much fuss around Roslyn and we've had its "Compiler as a Service" functionality since the beginning in JavaScript land.
  • Talking about ingenious stuff, these unconventional uses of Array.prototype.reduce will keep you thinking for a while.
  • Even more ingenious stuff, this sample of how to abuse default parameters in ES6 to communicate errors when a compulsury parameter is missing. This shows us how powerful the implementation of Default parameters in ES6 is, as you can decide the values in runtime! C# has had default parameters since version 4, but they're restricted to compile time values.

1 comment:

  1. Hi Xose Lluis,

    really nice set of articles! Thanks for sharing :)

    ReplyDelete