Coding conventions and practices.
Lately i have become a big fan of javascript for its flexibility and expressiveness. It is fragile(depends heavily on the programmer) but a very expressive language. And halfway down the product i have come to realise that its expressiveness and flexibility makes reading of someone else's code difficult. But in a team, the team has to follow similar set of conventions so that everyone else's code doesnt look odd to each other in the team. And this is very important in a very small team, where this can lead to altercations. To avoid such a situation, we have adopted our own set of coding conventions inspired from Java Coding conventions and the one from Douglas Crokford.
The main inspirer had been the YUI library, though one looking at their code closely could find out that there are subtle differences but at a higher level they all look the same. At YUI library they spend a lot of time(i guess) to make the code look fabulous and elegant. Any code starts with looking elegant but later becomes very ugly and unmaintainable, but no one can avoid such a situation. At that point of time someone has to step-in and say, the code has to look elegant and maintainable and refactor the code. This does take time but is very useful in the long run when the product matures its maintainability becomes more important or the other alternative will be to rewrite the whole product from scratch(This happens in most companies). With a very short product deadlines it becomes very difficult to do so, but we will have to set ourselves some time for looking back at what we did and correct the things we would have knowingly or unknowingly done the wrong way.
Tags |- sun | pvs
|
3 comments:
I read your blog on and thought I could tell you about something else which would be useful for seeing maps and directions in India.
I am writing to tell you about MapmyIndia.com, a free interactive maps and directions portal for all India.
We have recently launched our next generation v2008, whose main focus is to provide meaningful and useful directions from anywhere to anywhere in India. Next time you need to go somewhere unfamiliar, we want you to know you have a reliable and easy option to get directions – MapmyIndia.com!
As a company and individual enthusiasts, we dream only of solving the problem of reliable directions and navigation for India. For your blog specifically, you can map enable it by using our youtube-style embeddable maps, and links to specific searches (of maps, directions, local and eLocation) on MapmyIndia.
Do give us feedback, suggestions, or get involved yourself by mailing me back at tarun@mapmyindia.com or marketing@mapmyindia.com.
And if you find the different services useful, we would be grateful to you for writing and telling your readers about us.
Warm Regards,
Tarun Gupta
The MapmyIndia Team
For directions in India, just search print and go with MapmyIndia.com
hi, we had debate about the javascript many times.Now only i relalised the strenght of the javascript(Afte the usuage of JS in our new calnedar) .Also u mentioned in your blog,how we are going to use the language....Even i too become fan of javascript....
It will be nice, if we get the nice GUI for the JS with contains the feature of code folding..I tried many JS GUI.But i am not satisfied the none of that...
I hope, i can see more blogs from sundhar ....
@viji:
Yeah, those debates were quite heated .
There is Aptana and JSEclipse plugin for Eclipse, which is quite good compared to other offerings. If code folding is the only feature you are looking at, you can use VI ;-)
Post a Comment