News for hackers. Stuff that matters.
Re:JavaScript is Web Assembly Language and that's OK. by k__ on Friday May 24, 2013 @08:57AM (#5762398)
I know, there was a time when people took their scripts from different sites and included then into their own.

But does this still happen?

I mean most of the scripts are minified anyways :\

Re:JavaScript is Web Assembly Language and that's OK. by jiggy2011 on Friday May 24, 2013 @09:03AM (#5762420)
People still do that, when they want a rotating banner effect for their website or whatever.

Once you get into more complex applications it doesn't really make sense to do that anymore.

Re:JavaScript is Web Assembly Language and that's OK. by k__ on Friday May 24, 2013 @09:06AM (#5762434)
I see... maybe if you get fluent enough with JS, you're just faster hacking such little scripts than finding a page, copy it and reassemble it.
Re:JavaScript is Web Assembly Language and that's OK. by jiggy2011 on Friday May 24, 2013 @09:14AM (#5762467)
Well jquery-ui solves this problem to a large extent, if you want something like say a datepicker you can do

$("#datepickerelement" ).datepicker();

and get the functionality you need in a nice reusable package without having to copy and paste giant chunks of code and pollute your global namespace.