有关.vb文件中的拼写问题 [英] Question about spelling in a .vb file

查看:56
本文介绍了有关.vb文件中的拼写问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单的问题-我们雇用了一名程序员为我们做一些asp.net工作.搜索功能之一无法正常工作.在查看某些文件时,我注意到拼写错误.

例如,在一个ascx.vb文件中,一个部分是这样的:

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:

Protected Sub btnSerach_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSerach.Click
        Dim qry As String = ""





请注意,btnSerach应该是btnSearch -我的问题是,这种文件功能的正确拼写是否重要?我的本能是,但是老实说我不知道​​,因为我不是.net编码器.





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!

推荐答案

拼写很重要,因为您需要所有阅读该代码的人都应该清楚.不用正确的英语"拼写名称可能会很好地工作,但是如果单词拼写正确,则更有意义.如果将本地语言用于变量和方法名称,则适用相同的规则.
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.


有些人不仅在运行时行为方面,而且在对编程的支持方面都不了解编程目标作为人类活动.对于纯粹的功能,名称的拼写看似无关紧要.但这在现实生活中有关系吗?确实如此.特别是,人们经常阅读程序并试图找到哪里.如果使用关于如何命名的假设,他们会更快地找到事物.

另外,拼写错误会极大地激怒任何有教养的人.错误的拼写简直是无礼和无礼的行为-对于可能会阅读该代码的文化和其他开发人员而言.绝对不能容忍不正确的拼写.

—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


从技术上讲,变量或控件名称的拼写错误丝毫不影响搜索逻辑.因此,本能的答案是-否.


但是您应该让其他程序员审查搜索功能.
拼写错误表明程序员不喜欢他的工作.从同样的意义上讲,我猜您正在说的搜索功能必须未正确编码,因此无法按预期工作.
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.


这篇关于有关.vb文件中的拼写问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆