Skip to main content

How are you successfully using generative AI to develop high quality code

Created
Active
Viewed 21 times
1 replies
0

I’ve been using gen AI tools like GitHub Copilot for a while now, and while they’re great for quick snippets, I’ve run into some issues. Copilot often misses the bigger picture of my projects, like recognizing patterns in my code or reusing functions from other modules. This means I end up copying and pasting code into ChatGPT a lot to get more complete answers, which isn't the most efficient workflow.

The problem is, ChatGPT tends to ALWAYS rewrite entire chunks of my codebase, sometimes changing function signature, breaking unit tests and causing more work. It’s clear that while AI is super helpful especially just to get a some initial code out, it’s not perfect yet for maintaining the broader context of an application especially as it increases in complexity.

I’ve been trying to balance using AI for initial coding and repetitive tasks while still doing the integration and refinement myself. It helps, but I’m curious how others are handling this. Are there any tips or tricks you’ve found to make AI more context-aware and less disruptive to existing code? Maybe I'm missing something entirely?

1 reply

Sorted by:
78742958
0
  • 95k
  • 16
  • 165
  • 183

Simply learn to identify where it would be useful, and where it would not. Given it's terrible at interpreting the context of an entire system, it'd be best used for small pieces that don't need to care about any of that context.

Or, just don't waste the time.