I'm maintaining a Java class that's 40K lines long.. problem?

后端 未结 12 1480
北海茫月
北海茫月 2021-02-04 01:02

This may be a subjective question leading to deletion but I would really like some feedback.

Recently, I moved to another very large enterprise project where I work as a

12条回答
  •  终归单人心
    2021-02-04 01:21

    An alarm bell started going off when I read through this :

    It's mostly business logic dealing with DB tables and data management, full of conditional statements to handle the use cases.

    If this code isn't in the data layer and there is no abstraction with respect to how the database is accessed, something is wrong. I also have the feeling that some of these methods aren't directly related to the classes where they are found. The comment about conditional statements and use cases doesn't sound right either. I'll echo duffymo's comment that some refactoring would be needed.

提交回复
热议问题