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
ifstatements in your code? - How frequently are nested
ifstatements used? - Is any logic repeated frequently in conditions of your
ifstatements? - Do you see any places where inverting the
ifstatement or switching to aswitchstatement orswitchexpression 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?