U
U
unkwua2015-06-18 04:03:29
JavaScript
unkwua, 2015-06-18 04:03:29

How to unload a class with a lot of methods?

There is a class in which many methods have appeared over time (now about ~ 400 lines of code), the methods themselves are small and neat, but I understand that so much code inside 1 class is unacceptable (after all, this class is planned to be expanded further). What architectural solution is best for unloading this class, where to look?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Koltcov, 2015-06-18
@unkwua

Most likely it solves many different problems. Divide a class into parts: 1 class 1 task
https://refactoring.guru/en/smells/large-class
PS
Don't touch it works :)

E
Eugene, 2015-06-18
@zolt85

Read the 4x Gang's book "Object-Oriented Design Techniques. ... .
and Clean Code: Creation, Analysis, and Refactoring" by Uncle Bob.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question