Somebody may think that defineProperties is boring and I kinda agree on that. The good news is that JavaScript is flexible enough to let you decide how to do that ... and here I am with a simple proposal that does not hurt, but can make life easier and more intuitive in modern JS environments. …
You can take it as a joke since this is not a proper comparison of these web programming languages. JS Dart VBScript types ? ? sort of getters and setters ? ? ? immutable objects ? ? ? prototypal inheritance ? simulated classes ? "real" classes ? ? closures ? ? weakly bound to JS ? ? obtrusive …
keywords cross browser, dart, inheritance, joke, prototypes
I have been blamed and insulted enough so I removed the possibility to comment and I also invite you again to do not stop reading the title of a generic post here or anywhere around the net. I would like to summarize few parts of that post: on real world we should use the proper flag in order to …
keywords adsense, apologies, better web, browsers, chromium, dart, fortune, google, gwt, javascript, programming language, real world, syntax, thanks for your patience, v8, vm
Is the most popular, somehow pointless, and often funny gist of these days. It's about Dart , the JavaScript alternative proposed by Google. Why So Many Lines Of Code The reason a simple "Hello World" contains such amount of code is because: the whole library core is included and not …
When you wake up on Sunday morning with upside-down stomach and batcode in mind, you may realize it's time to rest a bit. with (/*Bat*/Math) Array(16).join( pow(/*JOK*/E/*R*/, cos, E/*vil*/) ) + "batman"; The output is the same produced by the original bat-formula : …
In 2007 I have posted about get_class and is_a functions in JavaScript in order to simulate original PHP functions. Well ... that was crap, since a much simpler and meaningful version of the is_a function can be easily summarized like this: var is_a = function () { function verify(what) { // …
playing with Harmony Proxy I came out with a simple snippet: The aim of above snippet is to forget the usage of require ... here some example: module.sys.puts("Hello implicit require"); var fs = module.fs; fs.stat( ... ); It's compatible with nested namespaces too and if there are non JS chars in …
quick one out of ECMAScript ml var // used to trap function calls via bind invoke = Function.call, // normal use cases bind = invoke.bind(invoke.bind), apply = bind(invoke, invoke.apply), call = bind(invoke, invoke) ; What Is It This is a way to trap native functions method in a handy way. Used …
I had the honor to personally shake the hand of the man that created my favorite programming language: Brendan Eich ! I also dared to ask him a question about ES6 and I would like to better explain the reason of that question. I have 99 problems in JS, syntax ain't one I don't know who said that …
Here my JSConf EU 2011 Slides , and here again the speaker rate . Thanks everybody for listening me :)
keywords slides