The most reusable code is the one that simplifies one complex operation required in multiple places, striking a balance between abstraction and specificity.
Maintainable code is easy to understand and to change: functions, arguments and variables are aptly named. Only if the reasoning behind the functionality is not obvious, it should be added as comment. The code is automatically tested, so that changes cannot break the functionality undiscovered.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The most reusable code is the one that simplifies one complex operation required in multiple places, striking a balance between abstraction and specificity.
Maintainable code is easy to understand and to change: functions, arguments and variables are aptly named. Only if the reasoning behind the functionality is not obvious, it should be added as comment. The code is automatically tested, so that changes cannot break the functionality undiscovered.