Matt Blair

Matt Blair

I read that you learn more from a poor example than from a correct one. I don't believe this but that means my site will be a success.

Post about Songbird on npmawesome

Post about Songbird on npmawesome

1-Minute Read

The folks at npmawesome wrote a blog post about the Songbird library I wrote.

Songbird is a library that mixes in promise helpers in the Function and Object prototypes on JavaScript. This is a technique that not everybody loves, and I think the author made a great observation about Songbird (and this technique in general).

While I think it’s a great idea to mix in the promise property to Object and Function, however with great power comes great responsibility. I strongly urge against using songbird in modules that you would distribute on npm because it would have a very big side effect on anyone who dares to install your code. However, when used on a project that isn’t made available publicly, songbird would be a great asset.

Check out the blog post here.

Recent Posts

Categories

About

This theme was developed for Hugo.