Hi Nuwan, Can you add this to Azeez's google doc "WSO2 Carbon; Architecture, Best Practices & Convention" when you get a chance.
Thanks Srinath On Wed, Nov 17, 2010 at 2:04 PM, Dinusha Senanayaka <dinu...@wso2.com> wrote: > Very useful.Thanks Nuwan. > > Regards, > Dinusha. > > On Wed, Nov 17, 2010 at 1:27 PM, Tharindu Mathew <thari...@wso2.com> wrote: >> >> >> On Wed, Nov 17, 2010 at 1:09 PM, nu...@wso2.com <nu...@wso2.com> wrote: >>> >>> Hi Devs, >>> >>> Since there are at least one person in each team, writing a gadget, >>> specific to their product dashboard, I believe knowing "gadget authoring >>> best practices" are quite important. There are few key points that we should >>> understand when writing gadgets. >>> >>> Gadgets are not like jsps or any other server side script, Its purely on >>> JavaScript and they are browser dependent. >>> Limit the number of network calls you do within a gadget >>> (gadgets.io.makeRequest). Ideally limit it to one request to fetch the >>> dataset for presentation. (Do not perform orchestration within a gadget, IMO >>> gadget is not the right place to do that) >> >> Using a FE component is the right way to do this right? >>> >>> Keep your complex processing away from the gadget as much as possible. >>> If you are importing js libraries make sure to minify them. >>> >>> Also please do read [1] guide on gadget best practices published by >>> Google. Importantly read the section on "Use API Calls". >>> >>> Since our dashboards are getting populated more and more with gadgets, I >>> believe we will have to practice these steps as much as possible, to >>> minimize rendering latency. >>> >>> [1] http://code.google.com/support/bin/answer.py?hl=en&answer=81678 >>> >>> -- >>> Thanks & Regards, >>> >>> Nuwan Bandara >>> WSO2 Inc. | http://wso2.com >>> lean . enterprise . middleware >>> >>> http://www.nuwanbando.com >>> >>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> Carbon-dev@wso2.org >>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >> >> >> >> -- >> Regards, >> >> Tharindu Mathew >> Software Engineer, >> WSO2 Inc., >> http://wso2.com >> >> _______________________________________________ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> > > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- ============================ Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Lecturer, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ _______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev