Hacker News new | ask | show | jobs
by ThinkBeat 2540 days ago
All code being in one 750 line file is a bad thing. It would never pass a code review where I work.

I would not really care if it worked or not and have the team or developer come back with a broken down version. (which if the code is structured well inside a single file should be very fast to accomplish)

1 comments

Splitting a 750 line file is not a readability improvement, if all the logic is related to and part of a single task.

Splitting code across multiple files when there's no actual reusability or abstraction driving the split makes it harder to follow the flow of logic. In particular, 750 lines is not so much that there's obviously a missing abstraction lurking there.