VB代码应该有多宽? [英] How wide should VB code get?

查看:145
本文介绍了VB代码应该有多宽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去,大多数人在80个字符宽的终端上编码。

In times past, most people coded on a terminal that was 80 characters wide. In many languages this has become, if not holy then close to it.

但现在许多人都有20+显示器(或双显示器),所以屏幕房地产

But now many people have 20"+ monitors (or dual monitors), so screen real estate isn't as prime as it once was.

所以我的问题是这样的:在Visual Basic代码中,应该将代码限制为80个字符,如果没有限制,

So my question is this: in Visual Basic code, should code be limited to 80 characters, should there be no limit, or is it really a subjective thing, dependent on where you work and your own preferences?

推荐答案

我认为这是主观的,但不是主观的将代码限制为80个字符将使其更具可读性,这是报纸以列形式显示文章的原因,如果长度超过70个字符,阅读文本更容易,我相信人们完成了对此的可用性研究,但我没有参考回来。

I think it is subjective, but not completely. Limiting code to 80 characters will make it more readable. This is the reason that newspapers have their articles in columns. It is easier to read text if it doesn't get much longer than 70 characters or so. I believe that people have done usability studies on this, but I don't have the references to back that up.

因此,它是主观的,情境依赖,但更长的行很难阅读,所以我尝试保持在80个字符内,即使我不必这样做。

So, again, it is subjective, and situation-dependent, but longer lines are harder to read. So I try to stay within 80 characters even though I don't have to do so.

这篇关于VB代码应该有多宽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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