Save 37% off PRO during our Black Friday Sale! »

Taming God Objects: easy, incremental and secure

Taming God Objects: easy, incremental and secure

Everyone has worked with an app with enormous classes, filled with mixed responsibilities. They're hard to understand, hard to change and hard to test.

In this presentation we're gonna learn a refactoring technique to start taming those little monsters.

37fe41bfaedec54a55f9bbbc67e1f006?s=128

Matheus Richard

January 27, 2021
Tweet

Transcript

  1. None
  2. None
  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. • • • • •

  16. • •

  17. None
  18. None
  19. None
  20. God class You SRP

  21. None
  22. None
  23. None
  24. None
  25. None
  26. Split

  27. None
  28. READ WRITE

  29. WRITE Piece to extract READ WRITE

  30. READ User::Settings READ WRITE WRITE User::Settings

  31. None
  32. • • ◦

  33. None
  34. READ READ WRITE WRITE settings User::Settings

  35. READ User::Settings READ WRITE WRITE settings WRITE User::Settings

  36. • •

  37. READ User::Settings READ WRITE WRITE settings WRITE user

  38. • •

  39. READ User::Settings WRITE WRITE settings WRITE READ user

  40. • •

  41. • •

  42. READ User::Settings WRITE settings WRITE READ user ✂

  43. None
  44. Split

  45. None
  46. WRITE Piece to extract READ WRITE

  47. READ User::Settings READ WRITE WRITE User::Settings

  48. READ READ WRITE WRITE settings User::Settings

  49. READ User::Settings READ WRITE WRITE settings WRITE User::Settings

  50. READ User::Settings READ WRITE WRITE settings WRITE user

  51. READ User::Settings WRITE WRITE settings WRITE READ user

  52. READ User::Settings WRITE settings user ✂ WRITE READ

  53. None
  54. None
  55. • • • •

  56. • ◦ Refactoring (Book) • ◦ Get a Whiff of

    This (Talk at RailsConf 2016) • ◦ Strangler Fig Pattern
  57. None