480 karma · joined June 11, 2011
* http://www.ecma-international.org/ecma-262/6.0/#sec-allocate... (relevant: step 4, CreateByteDataBlock())
(Disclaimer: I’m the author of the blog post.)
generator (a, b, c) {
···
}Knowing the algorithm helps with understanding the difference between the following two function declarations.
function move({x=0, y=0} = {}) { /*...*/ }
function move({x, y} = { x: 0, y: 0 }) { /*...*/ }On the other hand, there are already a few decent solutions for transpiling ECMAScript 6 to ES5 [1]:
* Traceur (there are Traceur-based plugins for Grunt, Gulp, browserify, webpack, etc.): https://github.com/google/traceur-compiler
* 6to5: https://6to5.org/
* es6-transpiler.js: https://github.com/termi/es6-transpiler
Using those tools results in a workflow that is much like using CoffeeScript.
Give my book a chance, it is complementary to both SICP and Eloquent JavaScript.
The book explains the complete language. I consider functional programming more of a (fascinating and important!) meta-topic; worthy even of dedicated books [2] and beyond the scope of Speaking JS.
[1] http://speakingjs.com/es5/ch18.html#_array_indices_in_detail
[2] “Functional JavaScript” by Michael Fogus. http://shop.oreilly.com/product/0636920028857.do
- Destination: I considered both San Francisco and the venue to be perfect. For me, a destination mainly has to be easy to reach. Tourism is a plus, but ranks a distant second to the ease of getting to the venue. Additionally, San Francisco has the advantage that many important JavaScript people live close by which increases the chances of them speaking.
- Parties: Agreed. At least one evening event for everyone would have been nice.
- Food: I’m a bit difficult with food, so I often buy my own and don’t care about conference food much.
- Significant others track: I’m single. As long as my money isn’t spent to support other people’s partners, I don’t have an opinion either way.
- Spectacles: Again, I bring my own, so I don’t need a video game lounge etc. All of these things cost money.
- “Free beer / drinks throughout the day”: I am a beer drinker, but would only want a conference to serve alcohol in the evening.
- Schwag: please no. I always have an incredibly bad conscience when I throw away (most of) the stuff I get at conferences. After a certain point, one has enough toys, bags, pens and paper. That being said, a B2G phone certainly would have been cool.
- Community / Speakers: I like JSConf’s egalitarian approach. Not sure how well it scales up, though.
The biggest problem with JSConf is that it’s nearly impossible to get tickets (I tried twice). So where JSConf wins with regard to its egalitarian speaker/audience approach, it loses with regard to tickets, where it can feel a bit elitist: Some people will easily get a ticket, others won’t.
You might completely disagree with my taste as outlined above, but then the conclusion is easy: The JavaScript community can only profit from the increased conference diversity that is currently developing. In my opinion, Fluent should mostly stay as it is, as probably should JSConf (which I haven’t been to, yet).
Not true – look at what Microsoft does with Windows 8.
+function() { console.log("bla") }();
But: this one converts the result to a number, which you don’t want if you need the result of the IIFE. On the other hand, in places where you need that, there is usually no ambiguity with statements, anyway, and you don’t need any kind of prefix. var abc = function() { return "abc" }();