确保代码分支在正确的方向上。
在多代码分支上进行并行开发时,自动化就更加有用了。
Automation is even more useful when doing parallel development, working on various branches of the code.
开发人员可以在主代码分支之外自由地试验新概念,而不会影响稳定的配置。
Developers can have the freedom to flesh out concepts outside of the main code branch without impacting stable configurations.
And notice because I have just one line of code inside of each of these branches, what have I clearly omitted?
请注意因为我在每个分支中只有一行代码,显然地我省略了什么?
I'm much better having an exception get handled at the time of input than to let that prop -- that value rather propagate through a whole bunch of code until eventually it hits an error 17 calls later, and you have no clue where it came from.
不是我期望的格式,这时我最好有一个异常处理,而不是让其传下去,这个值传到代码的整个分支,最终会导致一个错误17调用的发生,并且你不知道这个错误是哪里来的。
So there's a return branch on every possible path through the code. And that's valuable, it's something you want to think about as your right your own.
所以代码中每条可能的路径,都会有一个返回值分支,这是非常有价值的,当你自己写程序的时候也应该考虑这件事。
应用推荐