Hacker News new | ask | show | jobs
by aerugo_ 704 days ago
I was asked in a PM how I use the prompts. Basically, whenever I need to write some new code for a project, I start by making a prompt out of the relevant parts of the repo, paste it into GPT or Claude, and follow up with something like (random made up example):

——

I want to add a feature to my Content.js component. In the table that displays names of animals, I want to add an Edit button in a new column on each row. When clicked, it should bring up a modal that allows me to edit the name and emoji of the animal.

Review my codebase to see how CRUD actions are implemented for other features. Make sure you follow the established code patterns in the project.

Before starting to code, consider best practices for UX of a feature like this and make sure the implementation is user friendly and follows best practices.

After reviewing the code, describe how you will implement the feature make a plan for how to implement. After that, write the complete code for the implementation.