Search results for 2014 02 10 replacing callbacks with es6 generators

Replacing callbacks with ES6 Generators

by Matt Baker

…in action: var takeANumber = ticketGenerator(); console.log(takeANumber.next().value); //0 console.log(takeANumber.next().value); //1 console.log(takeANumber.next().value); //2 console.log(takeANumber.next(true).value); //0 console.log(takeANumber.next().value); //1 Replacing Callbacks with Generators Now that we have some knowledge of generators under our…

ECMAScript 6: Jump in, the water is warm!

by Mark Volkmann

…functions, default parameters, for-of loops, let, classes, modules, and generators. For a small application like this, I likely would not split the code into this many source files and use…

2014 – What Web Developers Will Need to Know

by Brian Rinaldi

…Nico Bevacqua Full Stack Developer blog.ponyfoo.com In 2014 I hope tooling around ES6 becomes good enough that people are encouraged to try out the new language features, giving their feedback…

What are Generators?

by Brian Rinaldi

…i.e. next(value). I have updated this post with this change. It looks like generators are actually going to make it into Javascript. In fact, generators recently landed in V8. This…

Getting a Head Start with Front End Generators

by Brian Rinaldi

…By Jonathan Fielding In this post we will talk about the different generators we can use to get started on our projects. There are many different generators/scaffolders available, and…

Best of JavaScript, HTML & CSS – Week of February 3, 2014

by Brian Rinaldi

…user experience by Val Head. Tutorials A step by step explanation and introduction to replacing callbacks using ES6 Generators by Matt Baker. Replacing callbacks with ES6 Generators A great –…

The Future of JavaScript…Now!

by Brian Rinaldi

…using the to-be-finalized ES6 standard and still have your code run on all major browsers. How? Transpiling. Transpiling is the process of compiling code from one language into the code…

Slush – A Better Web App Scaffolding Tool

by Brian Rinaldi

…today is Yeoman and it has a huge amount of project generators. To save time when setting up new projects I decided to create a Yeoman generator of my own…

Best of JavaScript, HTML & CSS – Week of January 13, 2014

by Brian Rinaldi

…Tutorials It’s possible to create real, protected private variables in JavaScript using ES6 WeakMaps according to Nick Fitzgerald. Private Variables in JavaScript with ES6 WeakMaps Krasimir Tsonev explains the problem…

Best of JavaScript, HTML & CSS – Week of April 21, 2014

by Brian Rinaldi

…week features a ton of CSS, SVG and ES6. Anyway, lots to cover, so I won’t waste any more of your time on intros. Tutorials An awesome demo recreating the…