How do you make code reusable? [closed]
See 10 tips on writing reusable code for some help. Keep the code DRY. Dry means “Don’t Repeat Yourself”. Make a class/method do just one thing. Write unit tests for your classes AND make it easy to test classes. Remove the business logic or main code away from any framework code Try to think more … Read more