JavaScriptのベストプラクティス大会 jsEdu
To learn what Javascript really is, watch these videos: http://yuiblog.com/crockford/ #jsEdu
2010-10-13 22:35:48JS tip: Debugging with Firebug, use string substitution patterns in console.log("a: %o, b: %o", a, b); easier editing & more readable #jsEdu
2010-10-13 22:51:27Try to use Array.Join instead of string concatenation, it's faster and doesn't create extra string objects. #jsEdu
2010-10-13 22:57:51not rely on eval (), review better alternatives agree the circumstances #jsEdu
2010-10-13 22:59:21Always try to define vars at the top of functions to avoid confusion with variables being 'hoisted' #jsEdu
2010-10-13 23:02:12String.prototype.reverse = function () { return this.split('').reverse().join(''); } #jsEdu
2010-10-13 23:13:57Looks as if it was written by the same person, not just JS, these patterns could be same in css | #jsEdu | http://t.co/DqdrHtu
2010-10-13 23:57:10Understand the difference between == and === 3 == "3" is true, 3 === "3" is false === compares value AND type #jsEdu
2010-10-14 00:31:57Avoiding implied typecasting! Always use the === and !== operators that check the values & the type of the expressions you compare #jsEdu
2010-10-14 00:32:47Use curly braces and be loved by friends and colleagues alike! Omit them and die a cold and lonely death. #jsEdu
2010-10-14 00:35:47Never append elements in a loop - build an HTML string in the loop and append all at once #jsEdu
2010-10-14 00:54:34the second argument to String.replace can be a function used to convert the value. #jsEdu
2010-10-14 01:11:31forget everything you think you know about variable scope! #jsEdu
2010-10-14 01:25:54Always feature detect rather than browser detect, you know it makes sense :) #jsEdu
2010-10-14 01:26:44If you spot the use of eval() in your code, remember the mantra “eval() is evil.” #jsEdu
2010-10-14 01:29:22Checking DOM collection sizes can be expensive. Cache the length of your for loop for an easy but effective performance improvement #jsEDU
2010-10-14 01:29:43@nettuts I am new in the area of JavaScript. I really like to have this book. #jsEdu
2010-10-14 01:38:23before writing a single line of javascript, seriously think if you can reach the same result in newest browser with only CSS =) -- #jsEdu
2010-10-14 01:46:54Comment your code - appropriately - and keep them up-to-date. #jsEdu
2010-10-14 02:10:55Jscript tip: Avoid using eval() function, it slows down your code and can compromise your security, think XSS-remember, don't be eval #jsEdu
2010-10-14 03:55:43Use callbacks in your functions/classes. Makes them useful in more circumstances w/o modification. #jsEdu #javascript
2010-10-14 04:28:54