5 ms·
Ask HN: Any AI-based Code Assistants for web CRUD apps?
I'm looking for something to help me faster code CRUD endpoints for a Rails side project. Is there something more integrated than ChatGPT4? Like, I give it access to my codebase, it parses it and understands the models etc. and can then crank simple features?
- cloudking 3y agoGitHub Co-pilot can take into context your codebase.
- jcpst 3y agoThis is what I use github copilot for.
- endorphine 3y agoI have Copilot in vim, but it only autocompletes things. Can you tell it something like "I want you to introduce a new view that will be rendered when the user does X and it will have 3 buttons that will do Y"?
- vunderba 3y agoI think Copilot Chat X is supposed to introduce these kinds of features, but it's still in beta atm. Could look into Continue, an extension for vs code and jetbrains.
- iamflimflam1 3y agoTry it in VS Code. There’s a much richer interface including chat.
- gitgud 3y agoI think if you write what you want in a “code comment” then below it will try to implement that comment in the autocomplete
- jcpst 3y agoThat’s been my experience. Also, if I’m doing CRUD, and I’ve already written code for one resource, it will give me completions in the style of that first one.
- qup 3y agoAider: https://github.com/paul-gauthier/aider https://github.com/paul-gauthier/aider
- lfciv 3y agoI used to use Github Copilot, but I find Cursor (https://cursor.sh/ https://cursor.sh/) to be even better. You can add an OpenAI API Key and it'll use the GPT-4 API. It indexes your code for you and it'll crawl documentation for you if you give it the link. Then you can reference specific files or documentation with "@". There are also some really intuitive hot keys.
- lfciv 3y agoAlso regarding CRUD apps – I actually was able to automate code generation of most of my CRUD pretty easily using cursor. I hand wrote a couple of them and now I just create the new file and prompt it referencing the Model and one of the other CRUD files as an example.
- rblalock 3y agoCursor is amazing and I can't figure out why. Is it just because their UX is better than what Copilot is doing? The whole cmd+K and doing a live edit/diff is so useful. I realize Copilot has almost the same short cut key(s) for the same purpose..but it's just not as smooth.