I am pretty new to jQuery and hnave not yet worke much with jqGrid. But I have been told that the project which I am new to may have been coded hastily and not written for easy maintenance. I have been asked to write a report on this program and point out specific strengths and weaknesses.
The program uses primarily MVC3, Razor, jQuery, jqGrid and Ajax. What kind of gotchas might there be?
I am trying to not only to write this report but want to use it as a way for me to learn a lot very quickly: kind of a crash course.
I have a question about wrapping selectors, which are already wrappers. I find it hard to quickly scan the jQuery code and added some functions that made it easy for me:
The code was littered with selectors returning the length of the array, with only minor and not very deterministic differences. So I created functions for each type of array with clear names. It made the code which used it much more easy for me to read as a result.
To me, that made the code more readable. How do you feel about always using cryptic selectors versus clean function which then return those selectors?
But aside from this, what real problems can come from programming shortcuts. Could you provide examples?