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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *