Comment by mlsu

2 days ago

Why not take it a step further? Make each function in the codebase its own project. Then the codebase can fit into the context window easily. All you have to do is debug issues between functions calling each other.

Wait, is this a joke about Lambda?

  • I don't think it's a joke about left-pad, but the idea that the complexity increases tremendously when you take a cloud of "small" things all communicating with each other. You've just pushed the complexity elsewhere. Claude can easily crunch the small microservice, but you're pushing the complexity to communications issues, race conditions, etc.

    • Oddly enough I constantly run into the same issue on monolithic codebases too.

      Things could just be one file but they end up being 12. I had to look through 12 levels of indirection for a single boolean recently. Twice, on two separate projects in the same week.

      At least in a single codebase, that issue is at least theoretically solvable. At least the indirection wasn't split across 12 repos!