YAGNI和KISS原理有什么区别? [英] What's the difference between principles YAGNI and KISS?

查看:111
本文介绍了YAGNI和KISS原理有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然,YAGNI和KISS之间在语法上存在差异,但我看不到它们之间的语义差异.他们在本质上真的是同一回事吗?

Obviously there are syntactical differences between YAGNI and KISS but I can't see any semantic differences between them. Are they really in essence just the same thing?

推荐答案

YAGNI(您确实需要它)指的是过度分析和实现可能需要或不需要的东西.当然,算法优雅是不错的选择,但除了大多数情况外,您都不需要它.在一般的工程术语中,您应谨慎选择不要包含自己的要求,以免使自己的想法污染客户的需求,以至于最终使项目花费成本,而对客户的影响很小.

YAGNI (You aint gona need it) refers to over analyzing and implementing things that may or may not be needed. Sure algorithmic elegance is nice and all but most situation you dont need it. In general engineering terms you should be carefull not to include your own requirements so that you dont taint your customer needs with your own ideas that end up costing the project with little impact for the client.

KISS(保持简单愚蠢)指的是简单的系统更易于管理的事实.使事情保持简单绝不是一件容易的事(就像YAGNI一样),因为它需要更多的知识来实施.它们有时是相似的,但是是出于不同的需求而增长.

KISS (Keep it simple stupid) refers to the fact that easy systems are easier to manage. Keeping things simple is not nesseserily less work (like YAGNI is) since it requires more knowlege to implement. They are sometimes similar but grow from different needs.

YAGNI源于对未来的太多期望,如果可能的话,他们会非常热心. KISS是一种旨在抵消人类设计蠕变趋势的策略.

YAGNI grows from a too much future anticipation, overzealous workers if you may. KISS is a strategy that tries to counteract human tendency for design creep.

这篇关于YAGNI和KISS原理有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆