改进我们编写代码的方式? [英] Improving the way we write code?

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

问题描述

在总体上考虑软件工程时,我遇到了一个问题,为什么我们在编写/编写代码的方式上没有看到任何改进.

While thinking about software-engineering in general I came across the question why we don't see any improvements in the way we write/document code.

考虑一下:自从打孔卡转向文本编辑以来,没有任何革命性的改进.我看到的最后一个改进是语法突出显示和上下文相关帮助(例如Intellisense或ctags).我称之为革命性的东西.

Think about it: There has not been a revolutionary improvement since we've moved from punch cards to text editing. The last improvement I've seen is syntax highlighting and context sensitive help (e.g. Intellisense or ctags). Not something I would call revolutionary.

这让我感到奇怪:为什么会这样呢?

That makes me wonder: Why is it so?

我将从严重错过的事情开始:

I'll start with something I miss badly:

  • 我的很多代码都涉及几何. 对于描述几何关系的文档,总是会陷入大量难以阅读的数学知识中(由于缺乏适当的ASCII方程式类型设置).但是,如果我可以在代码中嵌入一些图形或涂鸦,那么一切将变得更加容易,整洁和易于理解.
  • Lots of my code deals with geometry. For documentation describing geometric relationships always ends up in a big heap of hard to read mathematical stuff (due to the lack of proper equation type-setting in ASCII). However, if I could embed a little drawing or scribble into the code everything would be much easier, neater and better to be understood.

您能想到什么使您的编码/文本编辑/文档编制工作更轻松?

What can you think up that would make your coding/text editing/documention tasks easier?

推荐答案

我很惊讶没有人提及. 1986年(!),弗雷德里克·布鲁克斯(Frederick Brooks)预测:

I'm surprised that nobody has yet mentioned No Silver Bullet. In 1986 (!), Frederick Brooks predicted that:

无论是技术还是管理技术,都没有单一的发展,其本身就有望在十年内提高生产率,可靠性和简便性,甚至可以提高一个数量级(十倍). [...]我们不能期望每两年看到两倍的收益."

There is no single development, in either technology or management technique, which by itself promises even one order-of-magnitude [tenfold] improvement within a decade in productivity, in reliability, in simplicity. [...] We cannot expect ever to see two-fold gains every two years."

在23年中,他被证明是正确的.我们提出了很多东西,例如语法突出显示和Intellisense,它们显着提高了生产率,但肯定没有提高一个数量级.随着时间的流逝,我们将继续进行一些渐进式的改进,但事实是没有灵丹妙药:在编写提高生产率的代码方面不会有任何神奇的启示一个数量级.

And in 23 years, he's been proven right. We've come up with a number of things such as syntax highlighting and Intellisense which have improved productivity significantly, but certainly not by an order of magnitude. As time marches on, we'll continue to make several incremental improvements, but the fact is there is no silver bullet: there's not going to be some magical revelation in the way we write code that will improve productivity by an order of magnitude.

这篇关于改进我们编写代码的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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