I don't quite get those arguments [1]:<p>> The single-file restriction is an effective save-guard against feature creep. [...] We are able reject pull requests simply because they would add too many lines or add too much complexity, and that's nice.<p>bottle.py is already 4425 lines of code [2].<p>So, despite they say they reject pull requests because they add too many lines, it's also can be said that they reject pull requests because file is too big already and merging PR makes it even harder to maintain.<p>> A single file is easier to debug and understand. [...] You can read the entirety of bottle.py in an hour or so. Most of it is pretty easy to understand. Try that with flask/pyramid/django [...]<p>Why not at least to just split it to 1 section per 1 file, which they emulate right now by using section-delimiting comments [3]? Will it make code much harder to understand? Or will it make code easier to understand?<p>Also, from a developer perspective, what about navigation to the correct section quickly. E.g. if developer wants to add a new Exception, how he can efficiently go to the specific section? If it wouldn't be single file, developer could jump to required file by typing couple of letters in fuzzy file opener it his editor of choice.<p>No one forces developers plunge into a feature creep apart from their own, and it actually doesn't matter is there a single file or not. Some prefer to write as many code as they can in one single line. I doubt that they do it to ease maintenance and to avoid feature creep.<p>[1]: <a href="https://github.com/bottlepy/bottle/issues/1158#issuecomment-526602488" rel="nofollow">https://github.com/bottlepy/bottle/issues/1158#issuecomment-...</a>
[2]: <a href="https://github.com/bottlepy/bottle/blob/master/bottle.py" rel="nofollow">https://github.com/bottlepy/bottle/blob/master/bottle.py</a>
[3]: <a href="https://github.com/bottlepy/bottle/blob/332215b2b1b3de5a321ba9f3497777fc93662893/bottle.py#L262-L264" rel="nofollow">https://github.com/bottlepy/bottle/blob/332215b2b1b3de5a321b...</a>