且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何理解“环复杂性"?

更新时间:2023-09-16 14:41:46

***在Wikipedia ^ ]
This is best explained on Wikipedia Cyclomatic Complexity[^]


用外行的术语循环复杂性"表示程序有多少分支,这些分支可以是(方法,if语句等).

显然,复杂度越高,系统中出现错误的机会就越大,并且测试应用程序分支网络中的每个分支就越困难.
In layman''s term "Cyclomatic Complexity" is how many branches your program has, these can be (methods, if statements, etc).

Obviously the more complexity then the more chance of bugs in the system and the harder it is to test every branch in the network of branches in your application.