TODO—— Coding Wisdoms
原文:https://phauer.com/2020/wall-coding-wisdoms-quotes/
- Premature optimization is the root of all evil.:
- Source: Book ‘The Art of Computer Programming’ by Donald Knuth (1968). Wikiquote: Donald Knuth
- Rules of optimization: 1. Don’t! 2. Don’t… yet. 3. Profile before optimizing. Michael Jackson
- Source: Rules Of Optimization
- As a programmer, never underestimate your ability to come up with ridiculously complex solutions for simple problems. Thomas Fuchs
- Source: Tweet by Thomas Fuchs
- Get your data structures correct first, and the rest of the program will write itself. David Jones
- Source: Programming Pearls
- The #1 rule of distribute computing: Don’t distribute your computing! At least if you can in any way avoid it. DHH (David Heinemeier Hanson)
- Source: DHH (David Heinemeier Hanson) in ‘The Majestic Monolith’. Moreover, Martin Fowler’s FirstLaw has the same message: “My First Law of Distributed Object Design: Don’t distribute your objects”.
- Scalability. The #1 problem people don’t actually have but still solve. Eberhard Wolff
- Source: Tweet by Eberhard Wolff
- Shared + Mutable = Danger! Andrey Breslav
- Source: KotlinConf 2018 Keynote by Andrey Breslav
- Prefer duplication over the wrong abstraction. Sandi Metz
- Source: Talk “All the Little Things” and the post “The Wrong Abstraction” by Sandi Metz.
-
I also like the following quotes from the talk:
- “I felt like I had to understand everything in order to help with anything.” (5:05)
- “Duplication is far cheaper than the wrong abstraction”
- Avoid premature distribution. Avoid premature abstraction. Both offer a lure of purity, cleanliness and scalability but add complexity and operational/cognitive overhead. Karl Isenberg
- Source: Tweet by Karl Isenberg
- Data dominates. If you’ve 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. Rob Pike’s 5. Rules of Programming
- Compassionate Tech Values: Ego < Humility. Elitism < Inclusion. Competition < Cooperation. Being Smart < Learning. Being a Rockstar < Being a Mentor. April Wensel
- Source: Talk Cultivating Compassionate Tech Communities by April Wensel (Tweet). With a little update taken from a newer version of this slide.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 没有源码,如何修改代码逻辑?
· NetPad:一个.NET开源、跨平台的C#编辑器
· 面试官:你是如何进行SQL调优的?
2019-05-10 setInterval、clearInterval的回调函数,实现函数间调用的先后顺序
2018-05-10 Tag Helpers in forms in ASP.NET Core