谁说“数据结构是代码的一半”?
我很久以前读过“数据结构是代码的一半”这句话,但不记得我在哪里读到它或它是谁的。我很感激任何帮助。 谢谢。
——jqr
I read the quote "data structure(s) is half the code" a long time ago, but couldn't recall where I read it or to whom it is attributed to. I appreciate any help.
Thanks.
-- jqr
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎有相当多的人断言数据结构的高度重要性。当然,面向对象范式的原则之一可以被视为“数据为王”,并隔离该数据,以便只有“特权”代码才能访问它,原因有很多。
就引用而言,你可以看到 Linus Torvald 的评论:
--- Linus Torvalds,https://lwn.net/Articles/193245/
另一个,也许更多著名的一篇(如果我没记错的话,我是在很多很多个月前阅读 Niklaus Wirth 的《算法和数据结构》时第一次读到的):
——弗雷德·布鲁克斯。
There seems to be quite a handful of people who have asserted the high importance of data structures. Of course, one of the principles of the object oriented paradigm can be seen as "data is king" and to insulate that data so that only "priviledged" code has access to it, for many reasons.
As far as quotes go, you have Linus Torvald's comment:
--- Linus Torvalds, https://lwn.net/Articles/193245/
Another, perhaps more famous one (which, if I recall correctly, I read for the first time many, many moons ago when reading Niklaus Wirth's "Algorithms and Data Structures"):
--- Fred Brooks.
嗯,Theng、Jones 和 Thimbleby 写道:
注意额外的词“仅”。
Well, Theng, Jones, and Thimbleby wrote:
Note the extra word "only".