Questions
Answer the following questions to test your knowledge of this chapter:
- Is it more important to have concise code or readable code?
- Scroll through a file of code in a project you are working on. What do you notice about the
if
statements in your code? - How frequently are nested
if
statements used? - Is any logic repeated frequently in conditions of your
if
statements? - Do you see any places where inverting the
if
statement or switching to aswitch
statement orswitch
expression could improve things? - Do you think your team has been using LINQ to its fullest potential when working with collections? What opportunities for improvement do you see?