Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
64 Software Essentials
Control ow should be evident from soware structure. Although
simple, the if/else construct may impede code analysis. It is dicult to
track the state of values or the outcome of evaluations when Boolean
expressions are overly complex or too many if/else statements are chained.
Soware developers should also be aware of the dangling-else problem:
when a chained if statement contains fewer elses than ifs, it may be unclear
how to match the else statements to the if statements.
Code segments #A and #B in Example 3.3 are equivalent even though
the format (indentation) implies dierent control ows. However, indenta-
tion does not matter in C-like languages. C-like languages are “free for-
mat”: white space such as bla ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204