2 karma · joined Jun 10, 2023 (3y ago) · 3 submissions
comment 4h ago · link · parent
With agents I’ve become even more of a zealot for consistency. High level approach:
1. Deterministic code generators (not just the api layer) 2. Custom linters (deterministic, of course) 3. Generative tests (property based tests, model based tests) with snapshot/goldens and runtime assertions 4. Templates - template repos, template patterns, bespoke templates for a particular project so I can generate more code 5. Observability and analysis - Leveraging observability tooling locally. LGTM stack locally by default. I can generate traffic and observe my system locally and debug before I even open a PR.
I find code gen particularly powerful. By actually automating (not agentic automation), I reduce the surface area required to review. Agentic review does not reduce the surface area required of a review, it just outsources it. I still use agentic review, but it doesn’t waste tokens looking at generated code.
I’ve been working like this before LLMs and now with LLMs amplifying this pattern has only been better. I’ve eliminated BS work either for myself or my coworkers (where they agreed to adopt).
For whatever reason, I’m consistently met with resistance to codegen but somehow AI adoption is more acceptable. I have resorted to pairing my codegen with a “skill” to make it palatable.
Unfortunately, none of this solves the biggest problem which is bad ideas, poor taste. Code gen can also make shitty patterns 100% consistent and amplify them. IMO it is easier to reauthor templates and regenerate code than it is to prompt your way out of it.
comment 3mo ago · link · parent
IMO it's still a problem with LLMs; we still have to build in a way that makes it easier for an LLM to make changes later and arguably it's the same things that made software development easier for humans. IME LLMs tend to not know how to do that for themselves and instead just amplify/copy patterns that already exist.
If an LLM can't pave the way for itself then ultimately shared understanding is required to take advantage of LLMs in the first place.
comment 3y ago · link · parent
IME some organizations are just not open to alternative suggestions. Some genuinely just want people to do exactly as they’re told and work within the limitations of their system without question. This is IMO the worst type of organization to work for. Even in these environments, I would hope that people speak up.