Re:Open-sourcing MonkeyType – Let your Python code type-hint...
by AlexCoventry on Friday December 22, 2017 @12:08AM
(#15985394)
Sounds like the projects you worked on had excellent encapsulation.
Re:Open-sourcing MonkeyType – Let your Python code type-hint...
by user5994461 on Friday December 22, 2017 @07:09PM
(#15991983)
I wouldn't say excellent encapsulation. It's just normal to use sub directories to split things. The project was over ten millions lines of python.
Re:Open-sourcing MonkeyType – Let your Python code type-hint...
by AlexCoventry on Sunday December 24, 2017 @04:26PM
(#16001368)
Subdirectory structure is sort of orthogonal to the issue of encapsulation. It's more about providing API's and clean abstractions which prevent incidental interactions between implementation details across module boundaries.
It's not that bad.
The first thing you learn when you're in a million lines codebase is that you will only work within your project of maybe a hundred files.
Once in a while, there is a guy who is asking for help on his project or there is an old weird bug to fix and you dive in other stuff. Otherwise, it's like it's not there.