编程中最常见的误传?
我经常发现设计模式、库和框架承诺伟大的事情并且听起来很棒 - 直到你真正研究它们并意识到它们所说的听起来比实际更好。
叉车代码 http://xeoncross.com/images/funwithforklifts.jpg
完全模块化且可堆叠 - 使用 只有您需要的!
例如,如果您的应用程序与全局数据库单例紧密耦合,如何正确对数据库进行单元测试?单例可能在框架中风靡一时 - 但除非你小心,否则你会破坏依赖注入 这对于单元测试很重要。
您想警告其他程序员的最具误导性的表述是什么?
这和 Facebook 的想法有点像, 功能更像 Twitter, 但随着微软的创新。 - 来自地狱的客户
I often find that design patterns, libraries, and frameworks promise great things and sound awesome - until you actually study them and realize that what they say sounds better than it actually is.
Forklift Code http://xeoncross.com/images/funwithforklifts.jpg
Completely modular and stackable - use
only what you need!
For example, how do you properly Unit Test your database if your application is tightly coupled to a global database singleton? Singletons maybe all the rage in frameworks - but unless you're careful you will break Dependency Injection which is important for Unit Testing.
What is the most misleading representation you want to warn your fellow programmers about?
It’s kinda the same idea as facebook,
with functionality more like Twitter,
but with the innovation of Microsoft.
- clientsfromhell
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论