| ▲ | m_ke 2 hours ago | |||||||
After running out of Fable credits in a day on my max plan I started looking around for ways to trim down my token usage and came to the realization that all of the type spaghetti that opus wrote is probably eating up like 50-70% of my tokens. A clean django project is probably 3-4x less code than the equivalent TS based service. It made me consider dropping strict mode and defaulting to js for most simple things. | ||||||||
| ▲ | jw1224 2 hours ago | parent | next [-] | |||||||
Interesting, I've come to the opposite conclusion: a lack of types (or types that are only weakly enforced) costs me significantly more tokens in the long-run to maintain, and makes it far too easy for models to silently introduce bugs. I run all my projects now in TypeScript with the strictest possible settings, including disabling `ts-ignore` markers. (This would drive me absolutely insane, but my agents get over it pretty quickly!) | ||||||||
| ▲ | kodama-lens 2 hours ago | parent | prev | next [-] | |||||||
In a world where code generation is cheap, why use untyped languages? Types add confidence, stricter interfaces, and most likely a better runtime performance. | ||||||||
| ||||||||
| ▲ | IceDane 2 hours ago | parent | prev [-] | |||||||
Why not just do like.. actual engineering, and stay in control of what the LLM builds? | ||||||||