As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
with is so bad that it is forbidden in ES5 strict mode.
Function constructor is very slow.
Yet,
John Resig's micro templating is advertised as light, uses both mentioned bad features of Javascript. (same with another light templating - underscore's, which is a fork of it)
Now a question:
How seriously should i be concerned about performance impact of using those template engines ?
Should i sacrifice their flexibility and simplicity for speed gains that other engines (like Mustache, or XTemplates) might provide ?
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I’ve heard the statement that Python would be too slow to be of any use in browsers.
I reckon Javascript is only superior in this aspect because of companies like Google who need it fast (and made it fast) because they need it to survive, but I could be wrong.
Are there any differences in how Python and JS are designed that have an impact on how they (would) perform in browsers?
There is a project named Brython designed to replace JavaScript as the scripting language for the web.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
As far as i know there are several programming language to develop program for Gnome 3 (Python, JavaScript, Vala, C, C++).
I was wondering which language has complete implementation API of Gnome 3 binding and also which of them support complete application development tools life-cycle (UI designer, Test Framework, IDE,...)?
I am going to use JavaScript is it a good choose with above concerns?
I'd say Vala has the most complete bindings, plus you can easily modify the existing bindings for your own project if they don't work properly, which makes it a robust choice compared to using plain gobject introspection in other languages. But I'm biased :)
Vala however has less development tools.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are some of the secure/reliable crypto libraries for JavaScript? For those who have used it, what are your opinion about them? Thanks.
Google Closure
Used Google's closure library quite successfully for a while
https://developers.google.com/closure/library/
Specific crypt documentation here
http://closure-library.googlecode.com/svn/docs/namespace_goog_crypt.html
phpjs.org
Occasionally for simpler tasks I have also used self-contained functions such as md5 or sha1 from phpjs.org
crypto-js
Although never used personally, I heard very good things about this library
http://code.google.com/p/crypto-js/
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We have been using jasmine for a while now. We have written specs for about 20% code. Most of our code is tightly coupled with DOM elements which makes it extremely difficult to test. Now we would like to re-factor our code and make it testable with jasmine.
So my question is: Which JavaScript pattern has got an edge in terms of testing (jasmine) ease and why?
Update: I did some research and found couple of useful tips:
Private Methods and Properties are difficult to test, so avoid if testing is preference.
JQuery Chaining: Again chaining is recommended for performance but excessive use will not be recommended for unit test.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I have an interview with Google on Javascript and form verification.
I have done a lot of preparation in terms of algorithms and general data structure. But how to prepare for an interview by a javascript team?
Please share some example and resources.
Thanks
Check out Douglas Crockford's resources on JavaScript, especially his Google tech talks called JavaScript: The Good Parts.