2020年/02月/06日

首页回退

忘掉OO

原文

Edsger W. Dijkstra

Object-oriented programming is an exceptionally bad idea which could only have originated in California.

Data is more important than code

数据比代码重要

At its core, all software is about manipulating data to achieve a certain goal. The goal determines how the data should be structured, and the structure of the data determines what code is necessary.

所有软件的核心都是关于操纵数据以实现某个目标。目标决定了数据的结构,数据结构决定了必要的代码。