gpt4 book ai didi

design-patterns - 什么是表驱动方法?

转载 作者:行者123 更新时间:2023-12-04 01:27:30 26 4
gpt4 key购买 nike

什么是“表驱动方法”?

正如比尔·盖茨在 second Windows Vista commercial 中提到的那样在 1:05。

最佳答案

Table-driven methods are schemes that allow you to look up information in a table rather than using logic statements (i.e. case, if). In simple cases, it's quicker and easier to use logic statements, but as the logic chain becomes more complex, table-driven code is simpler than complicated logic, easier to modify and more efficient.



引用: McConnell, Steve. Code Complete, Second Edition. Redmond (Washington): Microsoft, 2004. Print. Page 411, Paragraph 1.

关于design-patterns - 什么是表驱动方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/105311/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com