logoalt Hacker News

q3ktoday at 9:36 AM3 repliesview on HN

  1. Randomly peeking at process.argv and process.env all around. Other weird layering violations, too.
  2. Tons of repeat code, eg. multiple ad-hoc implementations of hash functions / PRNGs.
  3. Almost no high-level comments about structure - I assume all that lives in some CLAUDE.md instead.

Replies

delamontoday at 10:06 AM

What is wrong with peeking at process.env? It is a global map, after all. I assume, of course, that they don't mutate it.

show 4 replies
loevborgtoday at 9:50 AM

You're right about process.argv - wow, that looks like a maintenance and testability nightmare.

show 1 reply
s3ptoday at 10:05 AM

It probably exists only in CLAUDE or AGENTS.md since no humans are working on the code!