Which of the following is NOT a motivation for writing maintainable code? a. Reduce the number of characters programmers
Posted: Tue May 24, 2022 8:15 am
Which of the following is NOT a motivation for writing
maintainable code?
a. Reduce the number of characters programmers must type
b. Reduce the effort required to make changes to code
c. Reduce the cognitive effort required to reason about the
implications of a change
Which of the following are principles for designing
implementations that can evolve easily? (3 correct answers)
a. Use the principle of temporal decomposition to design the
classes
b. Create boundaries and interfaces based on stable
abstractions
c. Design the implementation so that modifying existing code is
not necessary when adding functionality
d. Write classes that construct their collaborators
e. Write code that depends on interfaces
f. Write code that depends on concrete classes
d. Reduce the cognitive effort required to understand the
code
e. Reduce the effort required to reuse a part of the code
maintainable code?
a. Reduce the number of characters programmers must type
b. Reduce the effort required to make changes to code
c. Reduce the cognitive effort required to reason about the
implications of a change
Which of the following are principles for designing
implementations that can evolve easily? (3 correct answers)
a. Use the principle of temporal decomposition to design the
classes
b. Create boundaries and interfaces based on stable
abstractions
c. Design the implementation so that modifying existing code is
not necessary when adding functionality
d. Write classes that construct their collaborators
e. Write code that depends on interfaces
f. Write code that depends on concrete classes
d. Reduce the cognitive effort required to understand the
code
e. Reduce the effort required to reuse a part of the code