Skip to main content

Posts

Showing posts from June, 2014

Streamlining the mobile-app development process in the large team scenario

Every time a file gets added to the project, it adds-up an extra latency in the file loading. So minimizing the number of files in the release-build would definitely enhance the performance of the app. Considering this fact, we should have only one stylesheet containing all the styles related to the app. Though putting everything (style class) in single file would definitely have the following effects Pros: It would make it  compact,  easy to load,  one-time loading  Cons: It would make it  lengthy for manual readability; Thus we need to make it modular, that means, a separate stylesheet need to be made for each module; which is easy to modify & debug for developers. Each stylesheet should follow the standard guidelines like adding a module-name prior to the style class name,  avoiding id based style class, etc. To enforce the developers to follow the standard guidelines, we can also use a css generator system. Where developers have to fill up the cells in

JS: Minimalist Templator

This is an evolved version of the previous CTemplator classes that you can refer at Templator , Advanced Templator . Basically in this, the rarely used methods have been chopped-off and the tagging method with '@' has been deprecated because it is limited to only 10 items array. You can say, it's a loop hole earlier due to which if array items exceeds this limit then while replacing the tag initial tags overwrites the exceeded tags. So this new version came into picture; that have only 2 methods where 'fitIn' uses serial-number or index value while the other one 'fixIn' uses key value of the hash-map array. /* @file CTemplator.js @author Abhishek Kumar @email akbittu@gmail.com */ window.CTemplator = { fitIn: function (template, arglist) { var tag, output = template; for (var i = 0, len = arglist.length; i < len; i++) { tag = new RegExp("\\[" + i + "\\]", 'g') output = output.re

How to configure Android Developer Tools for Cordova/Phonegap use?

If you are reading this blog then you might be be searching for an IDE (Integrated Development Environment) to develop Cordova or Phonegap applications on Android platform. So you have come at the right place. So, how do we acheive that? Well, you need to follow these steps: Download latest ADT from this link:  Get the Android SDK Install it of your development machine Open it up In menu bar go to the Help → Install New Software... A popup window appears, in which you need to click the Add... button A small sub-popup form appears, that you need to fill as: Name : WTP  Location : http://download.eclipse.org/webtools/repository/juno/ Click on the Ok button after filling up the form After closing the sub-popup form, a list appears in the table, where user is suppose to check the items that they need to install. To configure it for Cordova you would require editor for HTML, JS, CSS, XML, so first select the Web Tools Plaform (WTP) 3.4.2   Now check these items: Eclipse