Link to home
Start Free TrialLog in
Avatar of davlun20080
davlun20080

asked on

What is this

I have been looking at job ads and have found statements like the following:

Must be able to write high
performance, reliable, maintainable code in a production environment.

What exactly are they talking about here?  What makes code 'high performance'? What makes it "maintainable"

Thanks for the help,
David
ASKER CERTIFIED SOLUTION
Avatar of cheekycj
cheekycj
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davlun20080
davlun20080

ASKER

Guess I should have prefaced this by saying I am looking at coding in html, javascript and asp.  So if I understand right, the code needs to be able to be read by someone else easily, does this mean commented well or does it mean the page is laidout logically.

Thanks for the pointer on the switch statment vs for..loop.  I assume that is Javascript applicable as well.  This is exactly the kind of information I am looking for, anything else?
comments are only half the story.. your comments should explain what you are doing but keep in mind what you are doing shouldn't take a mind reader to figure out.

for example:
to sort some data take a given approach like bubble sort or quick sort but some people like to write their own version of a sort that only they can understand and once they leave the company either spends too much time learning how he did it or they spend all this money to do it again from scratch.
(sorting isn't the best example but it should give you an idea)

When it comes to organizing your code you should always have it so it is easy to read and logistically simple.  Remember the rule: KISS- Keep it Simple Stupid (Silly)

Basically anything that is applicable to programming in general is applicable to JavaScript, Java, VBScript, JScript, PHP, Perl, C, C++ or any other language you may be using.

I have found optimiztions such as the following in java:
To compare two strings I was first trimming them then checking if they were equal and then return true or false when the optimized code in java looked like:
return (firstStr.trim()).equals(secondStr.trim());

One line replace 5 lines including and if then else.

I found out that in Java using the + concatenator uses more memory then the stringbuffer.append() command.

Other things like memory management (malloc in C and System.gc in Java) are essential to good clean up code.

CJ
Thanks for the info,
davlun