2,611 karma · joined December 12, 2012
[ my public key: https://keybase.io/wildpeaks; my proof: https://keybase.io/wildpeaks/sigs/yQmAnhmw5ODzOpfBpYvX1T7owc-Fwoe6TpMkU8-94Ho ]
Good move because even if it started with ES6, it now supports more (e.g. some ES7 features and JSX) so the name didn't fit anymore.
Here's a good features comparison table of common transpilers: http://6to5.org/docs/compare/#comparison-to-other-transpiler...
Slides: http://www.slideshare.net/jeharrell/9-antipatterns-for-nodej...
So far, it sounds like a linter similar to JSHint as long as the codebase is in ES6, with two ways to use it:
- with regular javascript, it is already able to deduce some constraints from the code itself
- with additional type annotations (which is part of ES6, so you don't end up with code that only Flow could use), it can test even more things.
If one-way, the next interesting thing would be to record and playback the signal.
Once we're able to record and playback, there are many possibilities because it can also be transmitted anywhere and even to multiple receivers, thus having a new medium of communication.
---------
Example using strings:
var obj = {
start: function(){
'use strict';
console.log('start');
},
stop: function(){
'use strict';
console.log('stop');
}
};
exports.onDummy = function(success){
'use strict';
var method = (success ? 'start' : 'stop');
obj[method]();
};
results in: var a={start:function(){console.log("start")},stop:function(){console.log("stop")}};exports.a=function(b){a[b?"start":"stop"]()};
---------Same thing, using if..else:
var obj = {
start: function(){
'use strict';
console.log('start');
},
stop: function(){
'use strict';
console.log('stop');
}
};
exports.onDummy = function(success){
'use strict';
if (success){
obj.start();
} else {
obj.stop();
}
};
results in the much shorter: exports.a=function(a){a?console.log("start"):console.log("stop")};Looks like Laura Palmer was right when she said she'd be back in 25 years: http://www.theverge.com/2014/10/6/6919641/twin-peaks-prophec...
I kinda like the "grab object & kiss to save" gesture: it wouldn't make sense in 2D but feels natural in VR, although "grab & push object in your brain" might be easier implement to represent a save function.