Tip: Split your code
September 24th, 2007 | Published in Google Desktop API
As you work on a gadget, try to split the JavaScript code into logical pieces, moving those pieces into separate .js files. Keep in mind that each view's XML file can include multiple .js files, and multiple views can use the same .js file. Splitting your code makes it more manageable and easier to reuse in your next gadget.
Have a tip you'd like to share? Send it to gd-developer AT google DOT com.