You are reviewing a piece of code and notice that it is difficult to understand due to a lack of comments and inconsistent naming conventions. Which coding best practice is being violated?
- DRY (Don't Repeat Yourself)
- KISS (Keep It Simple, Stupid)
- SOLID Principles
- Self-Documenting Code
In this case, the best practice being violated is "Self-Documenting Code." Code should be written in a way that is clear and understandable without extensive comments, and it should adhere to consistent naming conventions. Self-documenting code improves code readability and maintainability.
Loading...
Related Quiz
- During the requirement gathering process, _______ techniques may include interviews, surveys, and observation.
- What is the main purpose of using a testing framework like JUnit or TestNG?
- What is the primary advantage of using the Blue-Green deployment strategy?
- What is the primary purpose of a bug tracking system in software development?
- What considerations should be taken into account when designing the architecture for a microservices-based application?