Which of the following is an example of a coding best practice?

  • Writing modular and reusable code
  • Copying and pasting code from the internet
  • Ignoring code comments
  • Writing lengthy and convoluted functions
Writing modular and reusable code is considered a coding best practice as it promotes code maintainability, scalability, and reduces duplication. It enhances readability and makes code easier to test and debug.
Add your answer
Loading...

Leave a comment

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