Thoughts on minimize code and maximize data philosophy

前端 未结 6 1699
小鲜肉
小鲜肉 2021-02-12 19:24

I have heard of the concept of minimizing code and maximizing data, and was wondering what advice other people can give me on how/why I should do this when building my own syste

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-12 19:39

    One of five maxims under the Unix Philosophy, as presented by Rob Pike, is this:

    Data dominates. If you have chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms, are central to programming.

    It is often shortened to, "write stupid code that uses smart data."

提交回复
热议问题