by caust1c · 1y ago · 0 comments
I've personally found LLMs to have recently crossed the "uncanny valley" of programming for me, meaning that I'm much much more productive than without them.
I find that if you're really good at describing a problem and the constraints you want to solve, using a language it knows well (like Go) and following well known patterns in that language, you can describe thousands of lines of code and get accurate results.
Maybe this isn't vibe coding speicfically, but I actually review every line of code that the LLM puts out. It doesn't take long if you know what you're reading, and the LLM make a weird solution to the problem. Usually if I'm specific about how I want it solved, it does it well.
I also found it useful to say "Please tell me your plan to implement the solutions and ask me about any ambiguities that need clarification." In other words, don't make your own assumptions.
The results are incredible. Thousands of lines of code that maybe not stylistically like mine, but are structurally very accurate to what I'm looking for. Giving function/interface signatures and code examples works wonders.
Writing thousands of lines? I'm actively thinking about the specific method.
Reading thousands of lines of someone else's code? I might fall into a more passive mode and miss a problem.
I am more likely to do the reverse: write it myself, have LLMs summarize it or suggest how to test it/break it/whatever.
In many situations a sufficiently-described statement of "here is exactly what I want the code to do" is not significantly easier to write than the code itself. Especially when the AI is doing the annoying tedious bits through autocomplete suggestions, vs letting it try to do the whole thing based on a sufficiently-described prompt.
Or just bad design. I use AI a fair amount for my personal work (my employer currently bans it), and what I've found is it's a great accelerant, BUT you have to be super vigilant with it to keep the quality decent. It's very good at producing code that will make it past your average code review but has design issues that are going to make things harder down the road and getting it to refactor these itself can be quite difficult at times. I generally find myself in a loop of asking the AI to do something, doing a few rounds of refinement with it, especially around test cases, then a manual refactor/cleanup pass over the tests, followed by a manual refactor of the code.
When I read accounts of other people gushing over AI, allowing them to do some semi-complicated thing in under an hour, it really makes me worry about how this is going to affect the readability of the average codebase in a few years' time.
I think I'll experiment with this as well.
Also great with figuring a regex pattern in 5-10s instead of getting derailed by SO or Google search.
AI handles the boring bits very well, and to me that is the most energetically draining part of coding (the hard parts are fun and invigorating).
Whether it only fits the current codebase’s context or not doesn’t really matter, you just give it important samples from and info about the codebase at the start of your prompt. My baseline prompt length is ~30k tokens due to that.
I do review and polish everything that’s generated though, as needed. Vibe coding (not even reading / understanding the generated code) I believe was coined primarily for having fun in side projects. If you’re using it for production code then you’re likely holding it wrong.
It really was another leap forward for me with AI. Using it for exploratory analysis of solutions is the best rubber duck I’ve ever had
It contains:
- AI assistant instructions (with things like: "for a new task, ALWAYS first present and discuss different approaches before starting implementation", "update this file with relevant information while working", "unless prompted otherwise, work on the first task in the current tasks section of this file")
- basic info about the project: general, technical (general architecture, dev setup, etc.)
- locations of generally important stuff in the repo
- general context of the current task
- task specific locations of important stuff in the repo
- relevant (non-sensitive) task specific data/variables
- list of the current active/relevant tasks.
I tweak the file a bit for a new task and then just add only the taskfile.md as context, add a '.' as text in the Cursor agent chat window and it's off. Works like a charm.
Next step will be to add MCP servers and just point it at an issue in the relevant issue tracker in the task file.
There was a time when I felt my greatest programming ability is googling, I think that transferred well to LLMs since googling and asking question on stackoverflow required a very similar skill set.
Often grepping through a codebase where I know another example resides of something similar with a vague idea of what i'm looking for helps.
I've had basically zero luck with RAG myself so far, especially as I always try to go the local route for better infosec vs relying on cloud solutions like copilot. But trying to tap an LLM to help grok a public github repo wouldn't cover any sensitive data so I wouldn't mind using the cloud for a task like that.
Especially if the behavior is strange enough that trigger the look into the source.
and if I am familiar, how is prose literally ever more terse than the actual code?
to me it just comes down to which one is less typing and that's still Just Writing The Code Myself as far as I can tell
I mean maybe it'd be different if I spent hundreds of dollars on 4o-pro but trying the free models have made me want to pay even less, it's all a massive waste of time compared to just using Kagi to look things up
All the time. Open an android project and tell Claude to create a social feed, or as a recent example I told Claude to add waitlist support to a registration system in Django. It did a better job than most juniors I've worked with, and I think it cost a couple dollars. I tuned it a bit afterwards, but saved me lots of time and energy. With one one sentence prompt it updated the models, created the migrations, found and updated all the views...
The Python solution took me most of a day to write, and I've been curious on how an LLM would handle it.
But yeah, the better you know how to describe what you want, the better the results. Not really a difference from humans, eh?