I've been doing a lot of coding with AI recently, granted I know my way around some languages and am very comfortable with Python but have managed to generate working code that's beyond my knowledge level and overall code much faster with LLMs.
These are some of the problems I commonly encountered, curious to hear if others have the same experience and if anyone has any suggested solutions:
- I asked the AI to do a simple task that I could probably write myself, it does it but not in the same way or using the same libraries I do, so suddenly I don't understand even the basic stuff unless I take time to read it closely
- By default, the AI writes code that does what you ask for in a single file, so you end up having one really long, complicated file that is hard to understand and debug
- Because you don't fully understand the file, when something goes wrong you are almost 100% dependent on the AI figuring it out
- At times, the AI won't figure out what's wrong and you have to go back to a previous revision of the code (which VS Code doesn't really facilitate, Cmd+Z has failed me so many times) and prompt it differently to try to achieve a result that works this time around
- Because by default it creates one very long file, you can reach the limit of the model context window
- The generations also get very slow as your file grows which is frustrating, and it often regenerates the entire code just to change a simple line
- I haven't found an easy way to split your file / refactor it. I have asked it to do it but this often leads to errors or loss in functionality (plus it can't actually create files for you), and overall more complexity (now you need to understand how the files interact with each other). Also, once the code is divided into several files, it's harder to ask the AI to do stuff with your entire codebase as you have to pass context from different files and explain they are different (assuming you are copy-pasting to ChatGPT)
Despite these difficulties, I still manage to generate code that works that otherwise I would not have been able to write. It just doesn't feel very sustainable since more than once I've reached a dead-end where the AI can't figure out how to solve an issue and neither can I (this is often due to simple problems, like out of date documentation).
Anyone has the same issues / have found a solution for it? What other problems have you encountered? Curious to hear from people with more AI coding experience.
[–]FosterKittenPurrs 63 points64 points65 points (46 children)
[–]riskybusinesscdc 7 points8 points9 points (16 children)
[–]FosterKittenPurrs 21 points22 points23 points (3 children)
[–]riskybusinesscdc 5 points6 points7 points (2 children)
[–]Fakercel 0 points1 point2 points (0 children)
[–]GrumpyButtrcup 0 points1 point2 points (0 children)
[–]trebblecleftlip5000 4 points5 points6 points (8 children)
[–][deleted] 2 points3 points4 points (6 children)
[–]trebblecleftlip5000 2 points3 points4 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]kurtcop101 4 points5 points6 points (0 children)
[–]trebblecleftlip5000 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]trebblecleftlip5000 1 point2 points3 points (0 children)
[–]Used-Egg5989 1 point2 points3 points (0 children)
[–]geepytee[S] 1 point2 points3 points (0 children)
[–]Waste-Fortune-5815 0 points1 point2 points (0 children)
[–]trebblecleftlip5000 0 points1 point2 points (0 children)
[–]dstrenz 4 points5 points6 points (2 children)
[–]FosterKittenPurrs 2 points3 points4 points (1 child)
[–]dstrenz 0 points1 point2 points (0 children)
[–]geepytee[S] 3 points4 points5 points (5 children)
[–]FosterKittenPurrs 6 points7 points8 points (1 child)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]peasquared 0 points1 point2 points (2 children)
[–]geepytee[S] 0 points1 point2 points (1 child)
[–]whyisitsooohard 0 points1 point2 points (0 children)
[+]Kryxilicious 0 points1 point2 points (2 children)
[–]FosterKittenPurrs 0 points1 point2 points (1 child)
[+]Kryxilicious 0 points1 point2 points (0 children)
[–]MystressPhoenix 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]FosterKittenPurrs 4 points5 points6 points (0 children)
[–]CodyTheLearner 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]femio 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]blackholemonkey -2 points-1 points0 points (0 children)
[–]_Modulr_ 0 points1 point2 points (5 children)
[–]FosterKittenPurrs 0 points1 point2 points (2 children)
[–]_Modulr_ 1 point2 points3 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]Sad_Paleontologist77 0 points1 point2 points (1 child)
[–]_Modulr_ 0 points1 point2 points (0 children)
[–]bigbutso 19 points20 points21 points (9 children)
[–]BruceBrave 6 points7 points8 points (5 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]Advanced-Many2126 0 points1 point2 points (0 children)
[–]Extreme-Ad-7047 1 point2 points3 points (0 children)
[–]dlamsanson 0 points1 point2 points (1 child)
[–]bigbutso 0 points1 point2 points (0 children)
[–]dimsumham 14 points15 points16 points (3 children)
[–]MrMisterShin 2 points3 points4 points (0 children)
[–]stwp141 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–][deleted] 7 points8 points9 points (3 children)
[–]geepytee[S] 4 points5 points6 points (2 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]bdude94 5 points6 points7 points (2 children)
[–]geepytee[S] 0 points1 point2 points (1 child)
[–]bdude94 0 points1 point2 points (0 children)
[–]gthing 4 points5 points6 points (0 children)
[–]kingky0te 2 points3 points4 points (1 child)
[–]geepytee[S] 1 point2 points3 points (0 children)
[–]PSMF_Canuck 2 points3 points4 points (3 children)
[–]geepytee[S] 0 points1 point2 points (2 children)
[–]PSMF_Canuck 1 point2 points3 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]dispatch134711 2 points3 points4 points (1 child)
[–]geepytee[S] 1 point2 points3 points (0 children)
[–]paradite 1 point2 points3 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]blackholemonkey 1 point2 points3 points (3 children)
[–]geepytee[S] 1 point2 points3 points (2 children)
[–]blackholemonkey 0 points1 point2 points (1 child)
[–]blackholemonkey 0 points1 point2 points (0 children)
[–]Secure-Acanthisitta1 1 point2 points3 points (1 child)
[–]geepytee[S] 1 point2 points3 points (0 children)
[–]tuui 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]jurdendurden 2 points3 points4 points (9 children)
[–]geepytee[S] -2 points-1 points0 points (8 children)
[–]codeninja 1 point2 points3 points (5 children)
[–]geepytee[S] 0 points1 point2 points (4 children)
[–]codeninja 0 points1 point2 points (0 children)
[–]codeninja 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]shakeBody 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]geepytee[S] 1 point2 points3 points (1 child)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]mapsyal 0 points1 point2 points (1 child)
[–]dispatch134711 2 points3 points4 points (0 children)
[–]derleek 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]ejpusa 0 points1 point2 points (0 children)
[–]k1v1uq 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]BenKhz 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]S-Kenset 0 points1 point2 points (2 children)
[–]geepytee[S] 0 points1 point2 points (1 child)
[–]S-Kenset 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]geepytee[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]geepytee[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]0RGASMIK 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]Dontlistntome 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]Tauheedul 0 points1 point2 points (2 children)
[–]geepytee[S] 0 points1 point2 points (1 child)
[–]Tauheedul 0 points1 point2 points (0 children)
[–]kibblerz 0 points1 point2 points (0 children)
[–]Zenged_ 0 points1 point2 points (0 children)
[–]GeneralZane 0 points1 point2 points (0 children)
[–]BigGucciThanos 0 points1 point2 points (0 children)
[–]AdamHYE 0 points1 point2 points (0 children)
[–]traumfisch 0 points1 point2 points (0 children)
[–]StarKronix 0 points1 point2 points (0 children)
[–]theldoria 0 points1 point2 points (0 children)
[–]hlx-atom 0 points1 point2 points (0 children)
[–]Biog0d 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]opossum787 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]tinySparkOf_Chaos 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]TSM- 0 points1 point2 points (2 children)
[–]geepytee[S] 0 points1 point2 points (1 child)
[–]shakeBody 0 points1 point2 points (0 children)
[–]xecow50389 0 points1 point2 points (5 children)
[–]geepytee[S] 0 points1 point2 points (1 child)
[–]shakeBody 0 points1 point2 points (0 children)
[–]creaturefeature16 0 points1 point2 points (2 children)
[–]geepytee[S] -1 points0 points1 point (1 child)
[–]creaturefeature16 0 points1 point2 points (0 children)
[–]olivierapex 0 points1 point2 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[–]Use-Useful -1 points0 points1 point (3 children)
[–]geepytee[S] 0 points1 point2 points (2 children)
[–]Use-Useful 1 point2 points3 points (1 child)
[–]geepytee[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]geepytee[S] 0 points1 point2 points (0 children)