logoalt Hacker News

mpalmertoday at 1:01 PM1 replyview on HN

Check out `print.ts` to see how "more LOC" doesn't mean "more polished"


Replies

hombre_fataltoday at 1:07 PM

Okay, I'm looking at it. Now what?

This file is exactly what I'm talking about.

Take the loadInitialMessage function: It's encumbered with real world incremental requirements. You can see exactly the bolted-on conditionals where they added features like --teleport, --fork-session, etc.

The runHeadlessStreaming function is a more extreme version of that where a bunch of incremental, lateral subsystems are wired together, not an example of superfluous loc.

show 1 reply