Writing code in a manner that best benefits your employer is the primary goal. Achieving this means creating an application that solves a particular issue, of course—but it also means writing code that is reusable and efficient. In your initial post to the discussion, describe how programmers achieve both of these objectives.
Sol:
To achieve Reusability and efficiency a programmer has to keep in mind the following ten things:
1. DRY- Don't Repeat Yourself. Not repeating lines of the same code make it more efficient.
2. Reduce coupling.
3. Increase modularity.
4. Write code like your code in External API.
5. Avoid Useless lines of code.
6. Write extensible code.
7. Use Interfaces and Abstract classes.
8. Keep main code and framework separate.
9. Create classes for specific single operations that do just one thing.
10. Write unit test cases to test specific modules.
Get Answers For Free
Most questions answered within 1 hours.