| Tweetovi |
|
JS_advice
@JS_advice
|
29. sij 2015. |
|
Let’s do it! Angular vs. JVM vs. XML vs MongoDB.
|
||
|
|
||
|
JS_advice
@JS_advice
|
19. velj 2014. |
|
Local variables slow your code down; use globals and define them at the top of your file. Single character names speed up code x30.
|
||
|
|
||
|
JS_advice
@JS_advice
|
18. pro 2013. |
|
Don’t you find it funny how only *other* people write crap code?
|
||
|
|
||
| JS_advice proslijedio/la je tweet | ||
|
Barbara Cassani 🔶 🇪🇺🇮🇹🇬🇧
@barbaracassani
|
14. pro 2013. |
|
@JS_advice never comment anything, minify libs in dev and call vars a, b, c, foo and bar. Concede devs the joy of grokking on their own!
|
||
|
|
||
|
JS_advice
@JS_advice
|
14. pro 2013. |
|
Comment liberally, because your coworkers are morons and can never understand the brilliance of your mind.
|
||
|
|
||
|
JS_advice
@JS_advice
|
18. stu 2013. |
|
Use CoffeeScript.
|
||
|
|
||
|
JS_advice
@JS_advice
|
5. ruj 2013. |
|
Confucius say, typeof is operator, not function, stupid.
|
||
|
|
||
|
JS_advice
@JS_advice
|
5. ruj 2013. |
|
Confucius say, dom is piece of pie to be eaten.
|
||
|
|
||
|
JS_advice
@JS_advice
|
2. ruj 2013. |
|
Set all your variables to null at the end of every function. Helps free up memory.
|
||
|
|
||
|
JS_advice
@JS_advice
|
30. kol 2013. |
|
Use 'new RegExp` instead of `/.../` as the latter is susceptible to XSS.
|
||
|
|
||
|
JS_advice
@JS_advice
|
20. kol 2013. |
|
Why rely on the native JSON.parse when you can write your own parser!?
|
||
|
|
||
|
JS_advice
@JS_advice
|
17. kol 2013. |
|
I'm gonna need you to go ahead and add a redundant doc comment above every single variable... k?
|
||
|
|
||
|
JS_advice
@JS_advice
|
15. kol 2013. |
|
Don't just limit yourself to single or double quotes. Use both of them in unsparing and inconsistent fashions.
|
||
|
|
||
|
JS_advice
@JS_advice
|
13. kol 2013. |
|
Make love, not JavaScript.
|
||
|
|
||
|
JS_advice
@JS_advice
|
12. kol 2013. |
|
function isJavaScriptEnabled() { return true ? true : false; }
|
||
|
|
||
|
JS_advice
@JS_advice
|
11. kol 2013. |
|
You can annotate a line of JS to run faster by prefixing with '//'
|
||
|
|
||
|
JS_advice
@JS_advice
|
6. kol 2013. |
|
LOL some guy told me JSON is not the same as object-literal syntax... HAHAHA
|
||
|
|
||
| JS_advice proslijedio/la je tweet | ||
|
Šime Vidas
@simevidas
|
5. kol 2013. |
|
@JS_advice [FIXED] pic.twitter.com/rA1dF9qMVe
|
||
|
|
||
|
JS_advice
@JS_advice
|
5. kol 2013. |
|
You know what's better than one var declaration per scope? One var declaration per application. Yup.
|
||
|
|
||