代码的帖子长度。 [英] Post length for code.

查看:47
本文介绍了代码的帖子长度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人想象一定长度的代码应放在网站上,并且这里发布的URL是
。然而,人们还想象一些读者不会有b
有网络浏览器;仅发布URL不会为这些读者提供服务。


我的小程序接近200行。这个帖子太长了吗?


感谢您的阅读。

-

电子邮件是wtallman at olypen dot com

One imagines that code over a certain length should be put on a website and
the URL posted here. However, one also imagines that some readers will not
have a web browswer available; posting a URL only will not serve such readers.

My wee program is approaching 200 lines. Is that too long to post here?

Thanks for reading.
--
Email is wtallman at olypen dot com

推荐答案



2004年9月3日星期五,姓名写道:

On Fri, 3 Sep 2004, name wrote:

有人想象一定长度的代码应放在网站上,并在此处张贴URL。然而,人们还想象一些读者不会有网络浏览器;只发布一个URL不会为这样的读者提供服务。

我的小程序接近200行。在这里发帖太长了吗?

One imagines that code over a certain length should be put on a website
and the URL posted here. However, one also imagines that some readers
will not have a web browswer available; posting a URL only will not
serve such readers.

My wee program is approaching 200 lines. Is that too long to post here?




恕我直言,重要的不是节目的长度。我的意思是,

显然越短越好(就Usenet而言),但是我们看到这里的英文文章在50K-90K范围内运行了b
。 200行

的C代码相比较短。


你需要考虑的是你在这里发布代码是否是

为那些想与你沟通的人们提供更轻松或更难的生活。如果您发布200行代码只有一个问题部分,那么

则大多数响应将不得不剪掉大约190行;而如果你在网站上发布同样的东西,那么大多数受访者将不得不将
剪切并粘贴10行。 OTOH,如果你的程序在每一行上都有错误,那么逐行响应可能会有所帮助---在这种情况下,它可以发布b / b
该程序直接使用Usenet。


除了相对容易引用已发布或上传的代码外,您还需要考虑编译该代码的难易程度。如果一段

代码适合我的新闻阅读器的一个屏幕,我可以直接将其剪切并粘贴到源文件中。否则,我必须导出整个消息

并手动修剪标题和无关的消息文本。但是,如果您将代码发布到网站上,那么它只是''wget http://bar.com/foo.c''

和我'准备编译。


最后,显然你需要考虑访问网页上传。

如果你没有网站,这是一个没有实际意义的点,不是吗?并且

如果你有备用的服务器空间,恕我直言这样做是有意义的:

发布代码/和/上传副本到网络上给喜欢的人

更好。


没有硬性规则。只需使用常识。


HTH,

-Arthur



IMHO, it''s not so much the length of the program that matters. I mean,
obviously shorter is better (as far as Usenet is concerned), but we have
seen English-text articles here running into the 50K-90K range. 200 lines
of C code is short by comparison.

What you need to consider is whether your posting the code here is
going to make life easier or harder for the people who want to communicate
with you. If you post 200 lines of code with only one "problem section,"
then most responses will have to snip out about 190 lines; whereas if you
post the same thing on a website, most respondents will have to
cut-and-paste only 10 lines. OTOH, if your program still has errors on
every line, a line-by-line response might be helpful---in that case, it
makes sense to post the program directly to Usenet.

Besides the relative ease of quoting posted or uploaded code, you
should also consider the ease of compiling that code. If a piece of
code fits on one screen of my newsreader, I can cut-and-paste it into
a source file directly; otherwise, I have to export the whole message
and trim the headers and extraneous message text by hand. But if you
post the code to a website, it''s just ''wget http://bar.com/foo.c''
and I''m ready to compile.

Finally, obviously you need to consider your access to web-uploading.
If you don''t have a website, it''s kind of a moot point, isn''t it? And
if you have the server space to spare, IMHO it makes sense to do both:
post the code /and/ upload a copy to the Web for people who like that
better.

There''s no hard-and-fast rule. Just use common sense.

HTH,
-Arthur


name写道:

有人想象一定长度的代码应放在
网站上,并在此处发布URL。然而,人们还想象一些读者不会有网络浏览器;只发布一个
URL不会为这些读者提供服务。

我的小程序接近200行。在这里张贴是否太长了?

One imagines that code over a certain length should be put on a
website and the URL posted here. However, one also imagines that
some readers will not have a web browswer available; posting a
URL only will not serve such readers.

My wee program is approaching 200 lines. Is that too long to
post here?




不是真的,只要它格式干净,不使用标签,

和行数不超过65个字符。另外它是

标准C.


-

每次都是正确的男人不太可能非常好。

- Francis Crick,共同发现DNA

没有什么比行动中的愚蠢更令人惊讶了。

- Thomas Matthews



Not really, provided it is cleanly formatted, doesn''t use tabs,
and lines don''t exceed about 65 chars. Also that it is in
standard C.

--
"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews


2004-09-03,CBFalconer< cb ******** @ yahoo.com>写道:
On 2004-09-03, CBFalconer <cb********@yahoo.com> wrote:
name写道:

有人想象一定长度的代码应放在
网站上,并在此处张贴URL。然而,人们还想象一些读者不会有网络浏览器;只发布一个
URL不会为这些读者提供服务。

我的小程序接近200行。在这里张贴是否太长了?

One imagines that code over a certain length should be put on a
website and the URL posted here. However, one also imagines that
some readers will not have a web browswer available; posting a
URL only will not serve such readers.

My wee program is approaching 200 lines. Is that too long to
post here?



不是真的,只要它格式干净,不使用标签,
和行不要超过约65个字符。还有它在
标准C中。



Not really, provided it is cleanly formatted, doesn''t use tabs,
and lines don''t exceed about 65 chars. Also that it is in
standard C.




好​​吧,我把它们限制在75,但是大多数都比那个好一点。

问题是,我使用标签!选项卡有什么问题?


无论如何,猜测我会把它放在网站上并发布URL;我想

在这里读书的人有wget或等价物(lynx?)。那将是

有趣......


但是我仍然想知道标签!


感谢您的阅读...

-

电子邮件是olypen dot com的wtallman



Well, I limit them to 75, but most are less than that by a good bit.
Problem is, I use tabs! What is the problem with tabs?

In any case, guess I''ll put it on the site and post the URL; I suppose
anyone reading here has wget or the equivalent (lynx?). That''ll be
interesting...

But I still would like to know about tabs!

Thanks for reading...
--
Email is wtallman at olypen dot com


这篇关于代码的帖子长度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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