Software Engineering discussion
Code Complete
>
General Control Issues
date
newest »
newest »
I guess I can’t appreciate enough having Boolean types simply because they were always there for me. I like the suggestion about using decision tables to replace complicated conditions. Not a long time ago I became interested in measuring and reducing code complexities. So, it was interesting to read more about it in this chapter.
I thought the start of this chapter was redundant with the "Using Conditionals" chapter. But, I did like the new code sample solutions this chapter had for those cases.No, I have not used the McCabe metrics to evaluate a single routine, but I did see that as a transition towards the next chapter on Quality.


The author makes a good argument for making comparisons to 0 and null explicit, even though this goes against the C style grain. The same is true for null statements.
This chapter cites some impressive quality results from code restructuring driven by the McCabe complexity index. I don't have any experience using this metric... does anyone else?
I am not sure that this chapter is the best place for it, but the discussion of the fuzzy meaning of the term "structured programming", and its history, is well done.