6,637 reputation
1740
bio website raynos.org
location
age 25
visits member for 4 years, 2 months
seen Sep 26 at 19:06

May
6
comment What's so bad about the DOM?
implementing event bubbling is like a 100 lines of code :\
May
6
comment What's so bad about the DOM?
Most people that say the DOM is terrible are either ignorant or saying legacy browsers are terrible
May
6
comment What's so bad about the DOM?
events are just as trivial to normalize :\
May
6
comment What's so bad about the DOM?
document.all is in the standards
May
6
comment What's so bad about the DOM?
cross-browser inconsistency have nothing to do with the DOM. That's what we call "legacy browsers". Don't blame the DOM for the existence of legacy browsers. That's like saying "linux sucks because I know legacy distro n and m and they suck".
May
3
comment Is it fair to reduce OOP to mere hierarchical composition of data structures?
It should be noted that there are alternative ways to organize code, namely functions (or even procedures)
Apr
14
comment Incorporating libs into module pattern
The fact that a fragment loading library has a jQuery dependency on it's own means it's shit. Also code like this makes me doubt it.
Apr
14
comment Incorporating libs into module pattern
The main point it's trivial to automate commonJS / AMD compliance with a wrapper / build system. As for jQuery plugins, don't use them, all of them are shit
Apr
14
comment Incorporating libs into module pattern
This is why people maintain commonJS compliant forks of popular open source libraries through the NPM.
Apr
13
comment try-catch in javascript… isn't it a good practice?
it's not bullet proof in other languages either. Port that code to any language that supports asynchronous callbacks and it will fail too.
Apr
13
comment try-catch in javascript… isn't it a good practice?
@zzzzBov There's nothing wrong with throwing errors for case C, crash and burn. I just don't think you should catch errors and recover. For example document.getElementById doesn't throw when the element doesn't exist, it just returns null. The same can done for almost all cases
Apr
13
comment Synchronous vs. asynchronous for publish subscribe communication between JavaScript objects
Duplicate. Also note you can implement pubsub in 250 bytes, don't use jQuery for this, ever.
Apr
13
answered try-catch in javascript… isn't it a good practice?
Apr
13
comment Reinforcing Syntax Elements
@BenBrocka any non-shitty minifier will insert semi colons for you :\
Apr
12
comment Reinforcing Syntax Elements
Semi colons are completely optional (if you understand ASI) (mislav.uniqpath.com/2010/05/semicolons)
Apr
12
comment Different callbacks for error or error as first argument?
xhr.get({ ... }, function (err, data) {}) At least get the pattern right
Apr
12
comment Different callbacks for error or error as first argument?
its harder to see your missing an error callback and easier to see your not handling the first err parameter
Apr
12
answered Different callbacks for error or error as first argument?
Apr
11
comment What Technology can Render Medium Scale 3d Environments in a Web-Browser
OpenGL ES for browsers is called WebGL, you can use libraries like three.js today. The IE / mobile support for webgl is weak though
Apr
10
comment Confused about ASP.NET Ajax, jQuery and JavaScript
ajax and jquery are not languages