619 reputation
214
bio website
location
age
visits member for 11 months
seen 7 hours ago
stats profile views 35

May
17
comment Evaluating JSON from popular auto-suggests
Yahoo and Bing don't return JSON but JSONP, in order to allow cross domain requests in old browsers. Optimally, you should work with JSON and not JSONP and add the correct headers. As for Google that's encoding.
May
16
comment How to modularize and package a client-side Javascript library today?
+1 for browserify, more people need to know about that tool
May
14
comment Websocket protocol server development
"It's a language built by my professor "?
May
14
answered Websocket protocol server development
May
11
asked Where does UI fit in a Multi Agent system
May
11
comment Make script that allow server and client to communicate
Google AJAX tutorial
May
8
awarded  Nice Answer
May
8
comment What is the best way to load balance javascript applications?
@FlorianMargaine Since I know you I trust your judgement, if you think it'd improve my answer substantially you're very welcome to edit it in in a way you see fit :)
May
8
comment What is the best way to load balance javascript applications?
@FlorianMargaine you are absolutely correct :) which is why in the comment before that "If you're doing a lot of animating you'll eventually have to use Canvas and not DOM for animating and display"
May
8
comment What is the best way to load balance javascript applications?
To compare here is something my coding-pal @copy made copy.sh/life/?pattern=glider&meta=1 It simulates game of life in game of life working with millions of cells, it's single threaded and it runs decently fast here using canvas, are you really performing more raw calculations and animations than that? If you'd like more particular help you're welcome to come at the StackOverflow JavaScript room where we probably won't mind taking a look at your code, however, the more I read what you said the more I stand behind my answer.
May
8
comment What is the best way to load balance javascript applications?
In that case that has little to do with threading or load balancing to begin with since you're not using threads to balance at all. One exception is CSS animations, those run on the GPU on a different thread and you can utilize them. If you're doing a lot of animating you'll eventually have to use Canvas and not DOM for animating and display. Workers only help you with CPU intensive stuff, you need to find out where you're blocking (the thread) first by profiling.
May
8
comment What is the best way to load balance javascript applications?
@BishopZ you keep using 'balance multiple threads in the browser'. Do you in fact mean balance multiple actors in the browser? That is, are you using WebWorkers? Are you interested in balancing those and when you say balance, what are your bottlenecks? Are you performing a lot of CPU? Do your Workers spend a lot of time waiting? This is a very broad question in the general context, if you're willing to specifiy what threading issue you're facing with your Workers I'll gladly help.
May
6
comment ASP.net extended with client side operations
Learn JavaScript. It is the natural progression, learn the language first, progress to the DOM API. jQuery is just a library, you can learn to use it but it is far less crucial to your success in front-end.
May
3
comment What is the best way to load balance javascript applications?
+1 Thanks for the edit. I think it improves the answer substantially. However, I still think the DOM is pretty fast, much too fast to be a performance issue in most cases. Here is a case where I'm horribly abusing the DOM to animate 100 divs with borders at once jsfiddle.net/gJ5Ak it's still smooth here even when I add transparency and colors jsfiddle.net/3Q4kn
May
3
comment What is the best way to load balance javascript applications?
While I agree the DOM API is very problematic (and badly designed, and overly complex) . The DOM API is actually pretty fast in modern browsers. For example, my browser can make over 20 million DOMelement selections per second, more than 16 million tag name selections, here is a jsperf I put up for this jsperf.com/is-the-dom-really-slow. Related lecture: youtube.com/watch?v=Y2Y0U-2qJMs . I agree that performance problems sometimes stem from abuse of selectors, but I wouldn't call the DOM slow
May
3
answered What is the best way to load balance javascript applications?
Apr
25
comment Documenting Function That Takes Random Parameters?
@RobertHarvey You are correct, I may have over-addressed the issue, I changed the phrasing to be a lot more subtle. The criticism is mainly about bloat, inconsistency and having hard-to-read code, the latter lead to development of libraries like zeptojs.com which believe they are more readable. I'd like to avoid the issue of jQuery being good or bad, I think there is no argument about it being one of the best documented APIs.
Apr
25
revised Documenting Function That Takes Random Parameters?
added 321 characters in body
Apr
25
revised Documenting Function That Takes Random Parameters?
added 321 characters in body
Apr
25
answered Documenting Function That Takes Random Parameters?