Hacker Newsnew | comments | show | ask | jobs | submit | pabloPXL's comments login

I wrote another async replacement for browsers, 4.1k minified. https://github.com/aynik/be

-----


Right column, top.

-----


FTFY: a) http://www.google.com/trends/explore#q=express%20js%2C%20rub... b) http://www.google.com/trends/explore#q=javascript%2C%20ruby%...

-----


Try the standard library: http://golang.org/pkg/

-----


This is really cool! Cannot wait for a release with private spaces!

-----


Apple suing in 3, 2, 1...

-----


I think both behaviors provide continuation to the problem. On one side, the people who is actually sexist, or racist, or just believe in stereotypes. In the another, the people who also believes that the rest of the people are biased towards their sex, skin color or condition. Ignoring information that is not interesting or useful for us is the best tool we have to not be hurt by other people so easily, get stronger and prepared to survive in an unfair society and preserve freedom of speech. Nobody wants to be negatively discriminated, but does somebody think positive discrimination is the solution? I believe is the same social problem after all.

-----


That's because there is no OOP in javascript as in other languages like java or python, javascript only implements natively prototypal inheritance and lexical scope. This very important concept is always misunderstood because of the syntactic sugar like 'new' and 'this'.

-----


Well, although simpler and less error prone, the 'self' method is quite less optimal than the prototype way. A quick test reveals that the first technique consumes much more memory (100000 new instances pushed into an array): http://imgur.com/YVkny

self: var a = []; function b(){ var c = {}; c.d = function(){}; return c }; for (var e = 0, f = 100000; e < f; e++) a.push(new b)

prototype: var a = []; function b(){ return this }; b.prototype.c = function(){}; for (var d = 0, e = 100000; d < e; d++) a.push(new b)

-----


Never heard of anonymous image boards :?

-----

More

Applications are open for YC Winter 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: