My JavaScript book is out! Don't miss the opportunity to upgrade your beginner or average dev skills.

Saturday, January 21, 2017

module.import(async)

Using a de-facto standard like CommonJS is for modules, I've implemented a Promise based import after TC39 proposal, which also accepts promises based module.exports.

Backward compatible and deadly simple, this proposal needs some adoption in order to push it further at TC39 or NodeJS.

Don't miss the post!

Sunday, January 15, 2017

Meanwhile ...

I know most followers still have this RSS feed subscription, and they might have missed some of the later updates so here a recap:
  • I've brough Markdown easiness to JS console, it lets you write better logs such console.log('this *is* #green(awesome)!')
  • I've explained how to manage states and diff them, or perform other common operations, through prototypal inheritance. This concept works so well, Netflix reduced its merging performance from 500ms to 60ms.
  • I've talked about my new VR ready, game-centric PC that made me very happy in on a budget as low (for a gaming PC) as £600
  • I've also used latest archibold.io installer to bring Arch Linux from scratch on such PC, and on VirtualBox too for a spin
  • I've finally uninstalled Here Maps from my phone, and discovered the same day the awesome maps.me which is already a great replacement
  • last, but not least, I've created a 100 LOC utility that lets you opt out Babel class transformation, using object literals to define actually native ES2015 classes. The reason is here, while the utility is on GitHub.
Am I forgetting anything? Oh yes, I've soldered together a Raspberry Pi Zero and a WaveShare 3.5" Touch Screen LCD, booting Web Kiosk in seconds, for a device that could be sold with the size of an i-clip and with battery and wifi included for like $35, but nobody gave a damn heck about it so my Kickstarter won't even be proposed.
P.S. I am using Medium more and more, follow me there too (at least until Medium lasts)

Wednesday, August 31, 2016

A Transpiled JS Limbo

When I've updated my Custom Elements polyfill to reflect latest V1 specifications, I've realized modern JavaScript has a super problem that transpilers are incapable to fix.
Ideally, we should serve native to native capable browsers, and transpiled, to incapable one ... nobody is doing it though, and this is an issue.

Friday, April 22, 2016

Do you still jQuery ?

In this Strongly coupled with the past post, I'd like to ask you, in case your next big project is still using jQuery, if that's strictly necessary, considering the many new standards that meanwhile landed in every browser.
Also, don't forget why polyfills are a very useful "moe forward" approach ;-)

Sunday, April 17, 2016

New DOM Specs about addEventListener

In this DOM Listener: capture, passive, and once I explain what are these latest specifications about.

But there's more: latest dom4 libary also brings in new Event, new MouseEvent and best of all new KeyboardEvent polyfill for all trhe platform to simplify that much the creation of events!

Friday, April 01, 2016

JavaScript Interfaces

In this Implementing Interfaces in JavaScript blog entry I'll show a new way to enrich prototypal inheritance layering functionalities a part, without modifying prototypes at all. A different, alternative, and in some case even better, approach to mixins.

Friday, February 26, 2016

JS Glossary On Demand: Now Paperback!

Updated and Hand Crafted for A5

Imagine you are trying to learn something about Art and images are split between different pages ... that's what I feel every time I read a technical book with code examples split and very hard to follow.
It's embarrassing how much work it takes to have a proper pagination that never breaks for both paragraphs and code examples but I've finally did it in here!
The Leanpub E-Book, specially the PDF version, is also well formatted but it's for US letter.
I've ordered a proof of copy for both formats but there's no competition: the Lulu.com A5 paperback version is too handy and kinda cute!

The Book Target

I've already mentioned, privately and publicly, the main target for this book are people with zero or little programming knowledge.
However, while the initial part won't bring much info to more advanced developers' plate, the book will cover most common and modern terminology and their real-world application, including asynchronous patterns through Promises, generators, timers and async. Topics usually less common such WebIDL, interfaces and traits are also mentioned and explained.
The main goal of this book is to cover as much as possible giving the minimum amount of needed information in order to decide, as reader, if you need and want to dig more on a specific topic or not.

Please write reviews / feedback!

It's my first book and I'd love to know what you think, what you learned, or what was mistaken from my side.
Please remember there is an online repository to file problems or suggest improvements, feel free to write down your thoughts in there.
Thank You!