Extract Class: When one class tries to do two jobs: - Split into two classes - Connect via reference Before: class User { saveToDB() {...} sendEmail() {...} } After: class User {} + class EmailService {} #SOLID #Refactoring
0
0
1
0
14
United States Trends
- 1. Steelers 53K posts
- 2. Packers 40.5K posts
- 3. Tucker Kraft 6,687 posts
- 4. Nixon 13.7K posts
- 5. McManus 3,357 posts
- 6. Brian Kelly 56.7K posts
- 7. #GoPackGo 6,498 posts
- 8. Rodgers 29.5K posts
- 9. Boswell 2,610 posts
- 10. #HereWeGo 5,899 posts
- 11. Zeus 17K posts
- 12. #WelcomeToDerry 1,694 posts
- 13. Cowboys 39.5K posts
- 14. Green Bay 8,412 posts
- 15. Savion Williams N/A
- 16. #BaddiesAfricaReunion 3,048 posts
- 17. Broncos 41.3K posts
- 18. LaFleur 2,378 posts
- 19. #VxVogueWorldHollywood 195K posts
- 20. Havrisik N/A
Loading...
Something went wrong.
Something went wrong.