Click here to Skip to main content
15,915,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Have a quick question - we hired a programmer to do some asp.net work for us. One of the search functions isn't working correctly. In looking at some of the files, I noticed spelling errors.

For example, in an ascx.vb file one section is like this:
VB
Protected Sub btnSerach_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSerach.Click
        Dim qry As String = ""




Note that btnSerach should be btnSearch -- my question is, does proper spelling matter in the functionality of this type of file? My instinct is yes, but I honestly don't know as I am not a .net coder.

Any help you can give me is greatly appreciated!
Posted
Updated 11-Apr-12 3:17am
v2

The spelling matters in the sense that you need things to be clear to everyone who reads the code. It may well work without spelling names in "proper English", but it makes better sense if the words are spelled correctly. The same rules apply if using the local language for variable and method names.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Apr-12 14:28pm    
My 5, and the Solution 5 is... if not wrong, but highly counter-productive. I have a strong opinion about it, please see my answer.
--SA
Some people do not understand that programming goal in not only run time behavior, but also the support of programming as human activity. For the sheer functionality, spelling of names seemingly does not matter. But does it matter in real life? It does, very much. In particular, people often read programs and try to find where is what. They find things faster if they use assumptions on how they can be possibly named.

In addition, wrong spelling highly irritates any cultured person. Incorrect spelling is simply rude and disrespectful — to both culture and fellow developers who may read the code. Incorrect spelling should never be tolerated.

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 11-Apr-12 18:25pm    
I agree, readability, consistency and adherence to established patterns becomes very important as the size of the codebase increases.
Sergey Alexandrovich Kryukov 11-Apr-12 18:33pm    
Thank you, Espen. And even with a small size... mere politeness...
--SA
Richard MacCutchan 12-Apr-12 3:53am    
Well said; +5
Sergey Alexandrovich Kryukov 12-Apr-12 10:23am    
Thank you, Richard.
--SA
Technically speaking , the spelling mistake in the variable or controls names does not in any way affect the search logic. So the answer to your instinct is -no.


But you should get the search functionality reviewed by some other programmer.
The spelling mistakes show that the programmer was not keen about his work. In the same sense I guess the search functionality you are saying must not be properly coded and so is not working as expected.
 
Share this answer
 
It is perfectly fine as far as working is concerned. If the search functionality is not working, culprit is code written for that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900