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 เทรนด์
- 1. SNAP 1.04M posts
- 2. Jamaica 257K posts
- 3. Don Lemon 3,700 posts
- 4. $NVDA 88.9K posts
- 5. Nelson 29.9K posts
- 6. Tucker 100K posts
- 7. #LumioseOOTD N/A
- 8. Wikipedia 120K posts
- 9. Amare 2,470 posts
- 10. Nokia 15.4K posts
- 11. Fuentes 80.1K posts
- 12. Riley Gaines 108K posts
- 13. #NationalFirstRespondersDay 1,485 posts
- 14. Western Union 5,685 posts
- 15. #MarcelReed N/A
- 16. Hurricane Melissa 185K posts
- 17. Grokipedia 186K posts
- 18. Jensen 11.4K posts
- 19. New Hope 35.7K posts
- 20. Senate Democrats 63.4K posts
Loading...
Something went wrong.
Something went wrong.