JS_advice @JS_advice
JavaScript advice #parody Joined March 2012-
Tweets73
-
Followers553
-
Following1
-
Likes0
Local variables slow your code down; use globals and define them at the top of your file. Single character names speed up code x30.
Don’t you find it funny how only *other* people write crap code?
Comment liberally, because your coworkers are morons and can never understand the brilliance of your mind.
Confucius say, typeof is operator, not function, stupid.
Set all your variables to null at the end of every function. Helps free up memory.
Use 'new RegExp` instead of `/.../` as the latter is susceptible to XSS.
Why rely on the native JSON.parse when you can write your own parser!?
I'm gonna need you to go ahead and add a redundant doc comment above every single variable... k?
Don't just limit yourself to single or double quotes. Use both of them in unsparing and inconsistent fashions.
function isJavaScriptEnabled() { return true ? true : false; }
You can annotate a line of JS to run faster by prefixing with '//'
LOL some guy told me JSON is not the same as object-literal syntax... HAHAHA
@JS_advice [FIXED]
You know what's better than one var declaration per scope? One var declaration per application. Yup.

Mark Carey @markallencarey
37 Followers 1K Following Mostly here to find out if @TobeyMaguire and @itsagarfield are in @SpiderManMovie No Way Home
Pavel Mashchenko @bur94ek
2 Followers 29 Following
kpawa @kpawa
1 Followers 106 Following Regular Tweeterer of Amazing Happenings & Also Ordinary Stuff Too
Fidiles Jimmy @jfidiles1
2 Followers 63 Following
Bogus @im_bogus
9 Followers 50 Following
Pavel Kondakov @PavelFront
7 Followers 162 Following
excsm @excsm
179 Followers 2K Following
ECHO @_E_nn_
46 Followers 1K Following
Geoffrey @Geoffrey06__
10 Followers 87 Following
Hossam AlBiheeri @HossamAlBiheer
491 Followers 6K Following Digital Marketing & E-Commerce Consultant For CAYAN Web Services, Lawyer
z @Zaichao_Only
20 Followers 455 Following
Omar Hamdy @omar_om_hamdy
69 Followers 362 Following WebSites,Android Application Designer and Developer
Martin @MartininTaiwan
8 Followers 113 Following
Gus @gocanto
487 Followers 488 Following Software Engineer, Architect, and Manager with an eye for detail.
TARIK SARI @tariksari_
41 Followers 392 Following @official_php @vueJs @reactJs @javascript @nodejs @golang @aws and others
Michał Włd @MichalWld
3 Followers 106 Following
Petar Vudragovic @petarvudragovic
5 Followers 80 Following
Mehr @user_moho
77 Followers 463 Following
Shahanur Islam Sabbir @sisabbir_me
63 Followers 979 Following Web Application Developer ( Laravel / WordPress )
qian_peng @ssyz1988
10 Followers 264 Following
Devmountain @Devmtn
6K Followers 4K Following Devmountain is an industry-leading tech bootcamp teaching code and design. Our community loves sharing our craft and empowering the next wave of makers. #devmtn
Hnin Oo Maung @guumaung
14 Followers 78 Following
james @linuxfreakguy1
11 Followers 133 Following Student at the university of surrey. Love linux, code and people.
The Process vs Everyb... @theNotoriousHxc
995 Followers 818 Following
Hautline @hautline_
44 Followers 562 Following Unbiased on-demand answers. We give great advice on relationships, health, & careers. Tweets signed by our Personal Advisors.
Megha Krishnamurthy @meghasays
19 Followers 95 Following
Barbie Luginbill @Barbiewpd
363 Followers 2K Following Interested in web development and design, mother of two girls, artist, freelancer and affiliate marketing.
Matteo Toto @iPsyco
216 Followers 457 Following Enthusiast about everything fits people's mind... and beyond. Foun-Dev @Wink_by
Jetson John @jetson_john
11 Followers 710 Following
Paulius Gorodeckis @Legorskis
2 Followers 87 Following
lonniebiz @lonniebiz
16 Followers 178 Following
Byran Zaugg Dev @ByranDev
10 Followers 332 Following
download SMS Apps @download_sms
25 Followers 297 Following Text messaging software works with major GSM mobile phones and helps Business people or Home users to broadcast hundreds of text sms from pc
Chris Johnson @keen_raven
102 Followers 2K Following Right-brain: designer. Left-brain: coder. Creator of Liftoff. https://t.co/omC8EjMB2q
anil @anilpne
109 Followers 2K Following