码迷,mamicode.com
首页 > 其他好文 > 详细

Make Sure the Simple Stuff Is Simple

时间:2015-08-29 12:50:15      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:it

?

Make Sure the Simple Stuff Is Simple

Chad LaVigne

SoFTWARE ARCHiTECTS SolvE a lot of very difficult problems but we also solve some relatively easy ones. What we don’t want to do is apply a compli- cated solution to an easy problem. As obvious as that advice sounds, it can be hard follow. People who design software are smart—really smart. The simple problem–complex solution trap can be an easy one to fall into because we like to demonstrate our knowledge. If you find yourself designing a solution so clever that it may become self-aware, stop and think. Does the solution fit the problem? If the answer is no, reconsider your design options. Keep the simple stuff simple. You’ll get plenty of chances to showcase your talent when the dif- ficult problems arise, and they will.
This doesn’t mean that we shouldn’t implement elegant solutions. It means that if we’re tasked with designing a system that only needs to support selling one type of SKU-based widget, it’s probably a bad idea to design for hierar- chies of dynamically configurable products.
The cost incurred by a complicated solution may seem small, but chances are that it’s larger than you’re giving it credit for. Over-engineering at the archi- tectural level causes many of the same issues as it does at the development level, but the negative effects tend to be multiplied. Poor decisions made at the design level are more difficult to implement, maintain, and—worst of all— reverse. Before moving forward with an architectural decision that exceeds system requirements, ask yourself how difficult it would be to remove after it’s in place.
?
??The costs don’t stop with the implementation and maintenance of the solution in question. Spending more time than necessary on an easy problem leaves less time for when the complicated issues show up. Suddenly your architecture decisions are creating scope creep and adding unnecessary risk to the project. Your time could be spent much more efficiently making sure no one else is doing that.
There’s often a strong desire to justify solutions with a perceived benefit or implied requirements. Remember this: when you try to guess at future requirements, 50% of the time you’re wrong and 49% of the time you’re very, very wrong. Solve today’s problem today. Get the application out the door on time and wait for feedback to generate real requirements. The simple design you create will make it much easier to integrate those new requirements when they arrive. If you beat the odds and your implied requirement becomes a real one on the next release, you’ll already have a solution in mind. The difference is that now you’ll be able to allocate appropriate time for it in the estimate because it’s truly required. Before you know it, you’ve got the reputation of a team that makes good estimates and gets work done on time.

Make Sure the Simple Stuff Is Simple

标签:it

原文地址:http://blog.csdn.net/wangzi11322/article/details/48084405

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!