|
|
|
|
|
by samsquire
1304 days ago
|
|
Most of my code I write is small projects where all the code is in one or two files I don't enjoy working on enterprise codebase where there's thousands of files that do very little and the code is refactored so hard that you need to jump between 20 classes to understand how it all works and fits together. Leetcode solutions are usually single file solutions. My programming language and interpreter are more than one file though. A parser that lexes and creates an AST and an interpreter class and a class for each kind of AST node that do codegen. I could probably hast used a single file and inner classes. |
|