4 ms·
2000-line God class ... "hard to read" because they need to open a new file Might be me, but I've always found this a rather strange argument: either they aren
by stinos 7y ago
2000-line God class ... "hard to read" because they need to open a new file
Might be me, but I've always found this a rather strange argument: either they aren't using 'go to definition' which means that to be able to read the other code they have to scroll through the file manually, leaving where they are, and then go back. That's not really convenient? Or they are using 'go to / peek definition' and then it doesn't really matter it's in another file?
- goto_self 7y agoI have counterpoints on both ends here. It's not always possible for a "goto definition" function to work in dynamic languages. If you're in a large file, it's quite easy to jump around with line marks (a la vim), searching, etc.