Readit News logoReadit News
brunooliv commented on How I use Claude Code to implement new features in an existing complex codebase   sabrina.dev/p/ultimate-ai... · Posted by u/plentysun
chrisvalleybay · a month ago
I mostly do the same. My workflow is usually like this: 1. Supply CC with a simple user story with light spec / business logic, asking it to write a specification for the feature and ask me any questions that need to be answered to make it complete. 2. Build up the context with all relevant files that I want to use. In Ruby on Rails it means refercing models, views and controllers that show the structure we are going to use. 3. Write the code and tests.
brunooliv · a month ago
Nice to see!! I wrote a longer post about this: https://open.substack.com/pub/boliv/p/claude-code-usage-patt...
brunooliv commented on How I use Claude Code to implement new features in an existing complex codebase   sabrina.dev/p/ultimate-ai... · Posted by u/plentysun
brunooliv · a month ago
Am I the only one who uses CC in a one-shot fashion? I rely on what has been generated by the init slash command at the root of my monorepo and then when I have a complex task I manually create a md file called CONTEXT.md inside the package/area where I want to implement the new task. I try to be as detailed as possible, think like writing a ticket for a junior dev. Then my only command for CC is something like: “Focus on the project structure described in CLAUDE.md and work through the task planned in CONTEXT.md. Follow current codebase standards, keep code reusable and easy to follow and modify.”

This is like 99% of my CC interactions working on top of a well structured codebase and it just works perfectly for almost any task I throw at it.

brunooliv commented on Developing our position on AI   recurse.com/blog/191-deve... · Posted by u/jakelazaroff
brunooliv · a month ago
It’s a thin line to walk for me, but I feel that the whole “skill atrophy” aspect of it is the hardest to not slip into. What I’ve personally liked about these tools is that they give me ample room to explore and experiment with different approaches to a particular problem because then translating a valid one into “the official implementation” is very easy.

I’m a guy who likes to DO to validate assumptions: if there’s some task about how something should be written concurrently to be efficient and then we need some post processing to combine the results, etc, etc, well, before Claude Code, I’d write a scrappy prototype (think like a single MVC “slice” of all the distinct layers but all in a single Java file) to experiment, validate assumptions and uncover the unknown unknowns.

It’s how I approach programming and always will. I think writing a spec as an issue or ticket about something without getting your hands dirty will always be incomplete and at odds with reality. So I write, prototype and build.

With a “validated experiment” I’d still need a lot of cleaning up and post processing in a way to make it production ready. Now it’s a prompt! The learning is still the process of figuring things out and validating assumptions. But the “translation to formal code” part is basically solved.

Obviously, it’s also a great unblocking mechanism when I’m stuck on something be it a complex query or me FEELING an abstraction is wrong but not seeing a good one etc.

brunooliv commented on Developing with Kiro: Amazon's New Agentic IDE   yehudacohen.substack.com/... · Posted by u/cebert
danr4 · a month ago
Crtl + F -> "Claude Code" -> No Results -> Close tab

Can't really get value out reading this if you don't compare it to the leading coding agent

brunooliv · a month ago
I think a big reason why Claude Code is winning is because it’s such a thin wrapper over a very strong base model which is why people are afraid of comparing it directly. All these IDE integrations and GUIs and super complex system prompts etc are only bloating all these other solutions with extra complexity, so comparing something inherently different becomes also harder.
brunooliv commented on Apache HTTP Server: 'RewriteCond expr' always evaluates to true   github.com/apache/httpd/c... · Posted by u/Bogdanp
brunooliv · a month ago
Damn, this is the type of code that probably makes sense to the original writer but good luck maintaining it. Even AI would struggle with this type of convoluted conditional logic without a test harness. None of these things should be merged without tests. Even basic unit tests would catch these. Code quality is an illusion.

u/brunooliv

KarmaCake day394June 2, 2021View Original