Hacker News new | ask | show | jobs
by gavmor 719 days ago
Wow, CSS in a style tag in a string in try block in an anonymous function all declared right there in index.ts—no units, to say nothing of tests!

Would be a huge nuisance to maintain.

1 comments

Huge nuisance to manually maintain, but the suggestion is that you maintain it with an LLM.

Is the code bad? Sure.

Could I build this in 10 hours without an LLM having no experience with cloudflare workers and typescript? Probably not.

Could I build this in 10 hours with an LLM? Probably.

Look, maybe I'm naive but the "technical debt" this approach generates is appalling. Someone's going to have to shave that yak or you'll trip over it on your way to market.

Whatever happened to "write code like it'll be maintained by an axe murderer?"[0]

0. https://wiki.c2.com/?CodeForTheMaintainer

What if the maintainer is assumed to be an LLM?
The jury's still out on that one.

Personally, I don't think the GUI's yet been invented which can reliably wrangle LLMs to those ends.