It is totally a matter of taste. However 900 lines seems far too many.
Some say a class/method/function should fit a screen without scrolling.
My senior uses the repository patterns to work with the controller business logics. In the function he has the create and update method to create/ update the resource and other side effects to perform actions whenever resource gets created or updated and both were approximately 900 of lines.
That was really too hard to understand it and overwhelming for me to just looking at the no of the lines in the function.
How long no of lines any function could have?
Please or to participate in this conversation.