ai-assisted_coding

AI-Assisted Coding

Return to ChatGPT, ChatGPT Customization, ChatGPT Pro, ChatGPT Desktop

Devin is another AI FUD fraud

https://www.youtube.com/watch?v=a2MDENSvzJk

I used all of these programmer AI subscriptions and they literally induce bug after bug and then “help” you to “solve” the bugs it itself created. You go running around in circles chasing down AI created bugs and getting nothing done.

As one of my Java Champion programming colleagues said who is very known in the community, “You have to be a Java Champion to detect all of the subtle bugs that these AIs introduce into programs”. He later was forced by his employer to stop saying that since they wanted him to promote JetBrains AI.

This comment from that YouTube video above says it all:

“I tried GPT4o yesterday, I made it write a simple C++ template to match exact callable signature, 6 times in a row it got it wrong, and it went from compiling code that didn't work as required to code that wouldn't even compile. I'd point out everything wrong with it, and every time it would “understand” and offer me a correct solution… that wasn't correct. I honestly felt bad for the thing - it started to sound embarrassed and frustrated. But I kept on remembering - it doesn't actually understand, it simply randomly tosses the bones, in a way that mimics the answer, but not quite the answer, which for something as strict as C++ simply means it can't produce a working solution. It is 90% right and 10% wrong every time, it if fixes one issue it creates another. It produces a few hundred times the code that was actually required, and in the end it took a lot of time and code to ultimately fail to provide valid answer.”

Of course that comment was responded to by a lot of AI fan boys and/or bots/agents trying to criticize that he should have used this or that competing LLM instead of “ChatGypity” 4o. Bottom line is, I tried all of the top 5 AI “programmer” subscriptions and they ALL suck and I cancelled all of them except for Google Gemini who make it VERY hard to cancel without a LOT of work and losing existing Google Drive benefits – damned Googlag grifters. At first they seem impressive for 5 minutes. Then, they just make me work away for hours spinning my wheels instead of getting something accomplished.

The worst part, that is a universal complaint, is that rather than correct the one or two errors / bugs it created and leave the rest of the working code, it will go and REWRITE the entire code solution introducing different bugs and forcing you to reread through a whole different coding solution. It does not do small incremental visible changes.


Your new Replit “Al” is insanely buggy and not worth my time. Huge fraud hype. Just fake. So much iteration of testing the buggy fake Al code and getting zero improvements. REFUND please. Garbage Al so USELESS! Way worse than ChatGPT4o and Google Galaxy which both built me the same app without bugs in half the time. Your fake Al didn't even succeed building basic functionality working in 1 hour of it constantly regenerating code for a SIMPLE app. I think your CEO did a fake canned demo on his YouTube interview. SCAM! REFUND!


@BryantSuiskens 4 hours ago (edited) To everyone, always remember:

  • LLMs are a fancy auto complete
  • Hallucinations are a feature, not a bug, and you cannot rid yourself of them without crippling the ability of an LLM to provide difficult answers
  • Chain of Thought isn't. It is literally letting the AI do the data preprocessing by asking it to first break up a problem (which a competent prompter would do themselves) and then individually and sequentially query each problem. It will not remain relevant for long because it is simply too inefficient and time consuming compared to direct responses.
  • Chain of Thought is irrelevant if the person querying the AI has a clue, because they can do the preprocessing for it. If you need Chain of Thought, then you almost definitionally are incapable of validating the result it produces
  • Most software engineering on earth isn't high end code crafting, but wrangling the intrusive thoughts of tech leads into semi-coherent requirements and turning those into a semi-maintainable solution. Even if AI was that good, the amount of therapy that would have to go into removing the human intermediary would offset the savings twofold.
  • This is the 4th AI boom in 70 years. All of them had everyone convincing everyone AGI was around the corner, all of them had ludicrous amounts of investments pouring in, and all of them made a near 0 return on investment before inevitably blaming some random shit as to why AGI wasn't around the corner yet before sending AI funding into a 15 year winter. This one is just exceptionally awful because we finally got past the processing bottleneck
  • LLMs simply cannot be scaled into AGI, because an AGI is by definition a form of neural network we haven't figured out yet, rather than the guessing algorithm that we currently use. We still haven't the faintest idea on how to make a machine that actually builds a heuristic understanding of concepts and objects, let alone bring such a system within 5 orders of magnitudes of a human in terms of processing efficiency.
  • We are probably still 2 AI booms out from seeing actual AGI, and anyone trying to convince you otherwise is a fraud or clueless.

https://www.youtube.com/watch?v=QvNJ-akOgPw

https://www.youtube.com/watch?v=927W6zzvV-c

AI Is Making You An Illiterate Programmer

https://nmn.gl/blog/ai-illiterate-programmers

https://www.youtube.com/watch?v=cQNyYx2fZXw


https://www.youtube.com/watch?v=kQo-YJl-Rl8

Tech is Dead

https://www.youtube.com/watch?v=ycfPF1gkNpE


https://www.youtube.com/watch?v=tNmgmwEtoWE

https://www.youtube.com/watch?v=YoYMIx7J2Gs

https://www.youtube.com/watch?v=ZehQ4XQs9NA

Introduction to ChatGPT Canvas

ChatGPT Canvas is OpenAI’s latest offering, built on top of their powerful GPT-4 language model. It’s designed to enhance the collaboration between developers and AI, providing a more interactive and flexible environment for writing and coding projects. Canvas operates in a separate window, allowing users to work side-by-side with ChatGPT on various tasks.

Key features of ChatGPT Canvas include:

Inline editing and feedback Code review capabilities Debugging assistance Language translation for code Adjustable writing length and reading level

https://www.youtube.com/watch?v=7I0BJyebaek

https://www.youtube.com/watch?v=HeGHI6lNy1M

https://www.youtube.com/watch?v=KklCueumLeA

Which Is Better at Coding? Cursor AI or ChatGPT For Programming Comparison

25 AI tips to boost your programming productivity with ChatGPT

With ChatGPT in your toolkit, coding can be faster and smoother. I share the best ways of using AI to overcome common coding challenges, so you can streamline your development projects.

Over the past year or so, I've been experimenting with using ChatGPT to help turbocharge my programming output. When ChatGPT helped me find a troubling bug, I realized there was something worthwhile in AI.

Also: Your dream programming job demands this language, every site agrees

Many people I talk to think that AI is a magic genie that can manifest an entire program or app out of a single, barely-formed wish. Here's a much better analogy: AI is a power tool. Sure, you can use an old-fashioned saw to cut wood, but a table saw goes much faster. Neither tool makes furniture. They simply help you make furniture. Keep in mind that the AI isn't going to write your code for you. It's going to help you write your code.

Although there's no objective way for me to tell you exactly how much ChatGPT has helped me, I am fairly convinced it has doubled my programming output. In other words, I've gotten twice as much done by using ChatGPT as part of my toolkit.

I've mostly been using ChatGPT Plus rather than the free version of ChatGPT. Initially, it was because the GPT-4 model in Plus was better at coding than the GPT-3.5 model in the free version. But now that both support some variant of the GPT-4o model, their coding capabilities are identical. However, you only get so many queries with the free version before you're asked to wait a while, and I find that interrupts my programming flow. So, I use the $20/month Plus version.

Also: The best AI for coding (and what not to use)

Thinking back on all my projects, I realized there are some tangible tips I can share about how to get the most out of an AI programming partner. Here you go.

1. Give the AI lots of small jobs

The AI doesn't handle complex sets of instructions well, especially if you expect it to essentially do product design. But it is extremely good at parsing and processing small, very well-defined sets of instructions.

2. It's helpful if you think of the bot as someone at the other end of a Slack conversation

Rather than the pacing that might come from an email back-and-forth with a colleague, which might have each interaction separated by hours, imagine you're in a Slack chat where each interaction is much smaller, but separated by seconds.

3. For more complex routines, prompt iteratively

Start with a simple assignment and when that's been properly written, add more to it, element by element. I simply cut and paste the previous prompt, adding and removing bits of the prompt, as I get chunks of code that work for what I'm looking for.

4. Test every little chunk of code the AI returns

Don't ever assume the code will just work. Patch it into your project and see how it performs.

5. Use the debugger

For a more in-depth test, don't hesitate to drop into the debugger and walk through the code generated by the AI step-by-step. Watch the variables and exactly what it does. Remember, it's OK to let it write code snippets for you as long as you check every single statement and line for proper functioning.

6. You don't need Al coding assistance built right into your IDE

Many coding tool vendors are pitching the idea of integrated AIs right in their tools. Among other things, this enables them to upsell you on the AI features. However, I prefer using ChatGPT for coding as a tool completely separate from my development environment. I don't want an AI to be able to reach into my primary coding environment and change what's there.

7. Feel free to cannibalize lines of code from generated routines

You don't always have to use everything the AI produces for you. In the same way that you might go to Stack Overflow to look for code samples, and then pick and choose the lines you want to copy, you can do the same with AI-generated code.

8. Avoid asking the AI to do proprietary coding or use institutional knowledge it doesn't have

AI large language models run off of training data or what they can find on the web. That means they generally don't know anything about your unique application or business logic. So avoid trying to get the AI to write anything that requires that level of knowledge. That's your job.

9. Give the AI examples to work on so it understands the context of your code

I gave ChatGPT a snippet of an HTML page and asked it to add a feature to expand a block of text. It gave me back HTML, JS, and CSS. I later asked it for an additional CSS selector and then asked it to justify its work, whereupon it explained to me why it did what it did. All of that worked because the examples I gave it to start helped it understand the context.

10. Use the AI for common knowledge coding

I find the biggest benefit from AI code is when I use it to write blocks of code that use common knowledge, popular libraries, and regular practices. The AI won't be able to write your unique business logic. But if you ask it to write code for capabilities that come from libraries and APIs, it will save you a ton of time.

11. Feel free to ask for one- or two-line snippets

Even if you need something that might only generate a line or two of a response, use the AI as you would use any research tool if it can save you time.

12. Tell the AI when the code it wrote doesn't work

This, of course, can only work if you test the code generated. I find that the AI often spits out incomplete or non-functional code. Tell it what isn't working, and perhaps make a suggestion to clarify. Then ask it to write something new. It usually does, and that revised code is sometimes better than the original.

13. Use one Al to check the work of another Al

It's often interesting to see how two different language models interpret the same block of code. As we've seen, not all language models work all that well, but their results can be instructive. You can even have one ChatGPT session check the results from another ChatGPT session.

14. Use the AI to write CSS selectors

CSS selectors are the expressions coders use to define an element on a web page for styling or other actions. They get complex and arcane quickly. I often copy a block of HTML and ask for a selector for a given piece of that HTML. It can save a lot of time, but keep in mind that you'll usually have to iterate, telling the AI that the first few selectors don't work until it generates one that does.

15. Use the AI to write regular expressions for you

Regular expressions are symbolic math sequences most often used for parsing text. I dislike writing them almost as much as I dislike writing CSS selectors. The AI is great at writing regular expressions, although you'll definitely need to test them.

16. Use the AI to test regular expressions

I use an app called Patterns for testing generated regular expressions on my Mac Studio. But the AI can help as well. I often feed a separate instance of the AI a regular expression generated by ChatGPT. Then I ask that separate instance, “What does this do?” If I get back a description in line with what I wanted the function to do, I feel more confident the AI did what I wanted.

17. Let the AI do complex loop math

As with CSS selectors and regular expressions, complex loop math can be tedious and error-prone. This is an ideal application for an AI. When specifying the prompt, don't tell the AI what's in the loop. Just let it write the appropriate loop wrapper elements, then write the business logic after that's working.

18. Use “What is wrong with this code?” as a prompt

I will often feed blocks of code, especially regular expressions generated by the AI, to the AI. It can be very instructive to see what the AI thinks is wrong with the code, often highlighting error conditions that the code doesn't test for. Then, of course, ask the AI to regenerate the code fixing the errors it found.

19. Use “What does this do?” as a prompt

Likewise, I like to feed blocks of code to the AI and ask it “What does this do?” It's often instructive, even for my own code. But the biggest benefit is when I'm working on code written by someone else. Feeding a function or a block to the AI can save a ton of time reverse engineering that original code.

20. Know when to give up on the AI

Sometimes, the AI just can't do the job. I've found that if you try to have it rewrite its code more than two or three times, you're past the point of no return. If you really want AI-generated code, start with a brand-new, reworded prompt and see what you get from there. And sometimes, you'll just have to go it on your own.

21. Be specific in your function and variable naming

The AI picks up intent from variable and function names and writes better code. For example, specifying a variable name as $order_date helps tell the AI that you're dealing with both an order and a date value. It's a lot better than something like $od. Even better, code generated from well-named variable names is also often more readable, because it knows to use more descriptive names for the other variables it creates as well.

22. Read the pre- and post-code notes

The AI usually generates some notes about each prompt before and after the code it writes. There can be gems in there that can help you understand what the AI did or how it approached the problem. Sometimes, the AI will also point you to other libraries or functions that could be useful as well.

23. It's OK to later go back and ask for more help on a code snippet

Grab the various pieces of code from your project to illustrate what you need, tell ChatGPT to read them, and then ask for what you want. I needed to build in an exclusion for input fields in an expanded area, and I went back in and asked. Less than a minute later I had code that would have taken me somewhere between 10 minutes and an hour to write myself.

24. Use the Al to help you rewrite obsolete code blocks

I had a PHP module written in an older version of PHP that used a language feature now deprecated. To update the code, I pasted the deprecated code segment into ChatGPT and asked it to tell me how to rewrite it to be compatible with most current PHP release. It did, and it worked.

25. Use AI to help you write for less familiar languages

I'm very comfortable picking up new programming languages, but I've found that the AI can be really helpful if I need to code in a language I'm not an expert in. I just ask it how to write what I want, and specify the language. Let's say I want to know how to do a case statement in Python and I've been doing them forever in Perl. Just ask “compare writing a case statement in Perl and Python” or “how to concatenate a string in Python vs PHP.” You'll get a great comparison, and it makes writing that unfamiliar code much easier.

Here's a bonus tip. Check with your company about the legal issues of code generated. If you're not sure where to start, read my article on AI and code ownership. If you use the tips I shared with you, you'll never be using the AI to write unique business logic or the core of what makes your code unique. As such, you'll likely be able to retain the copyright of that code, which should make up the key element of your unique value.

I write code for internal company use or open-source code, so I'm not terribly concerned with ownership issues when it comes to AI-generated snippets.

https://www.zdnet.com/article/25-ai-tips-to-boost-your-programming-productivity-with-chatgpt

AI-Assisted Coding - AI-Assisted Programming: AI Code Generators - Generative AI–Powered Assistants: JetBrains AI - JetBrains AI Assistant (JetBrains Mellum LLM), Amazon Q Developer, Amazon CodeWisperer, OpenAI 1o, ChatGPT 4o, ChatGPT Plus - ChatGPT Pro - ChatGPT Desktop, Devin AI the “AI software engineer”, Meta LLaMA, Gemini (chatbot)Google Gemini, Google Vertex AI Workbench in Vertex AI platform, LINQPad AI, Google BardGoogle Gemini https://gemini.google.com, Google DeepMind, Google's Duet Al for Developers, Tabnine, CodeGPT, Cody, CodeWP, Warp, Bito AI, Cursor AI, Code Llama, WizardCoder, Sourcegraph Cody, CodiumAI, Replit Agent in Replit, Spring AI

AI-Assisted Coding - ChatGPT Plus - GitHub Copilot - JetBrains AI - Amazon CodeWisperer - Gemini - Devin AI Bibliography: AI-Powered Developer - Build great software with ChatGPT and Copilot, Learn AI-Assisted Python Programming With GitHub Copilot and ChatGPT, Automate Everyday Tasks with ChatGPT Plus, Manning ChatGPT Series, AI-Assisted Programming by Tom Taulli, ChatGPT for Java - A Hands-on Developer's Guide to ChatGPT and Open AI APIs

AI-Assisted Coding - ChatGPT Plus - GitHub Copilot - JetBrains AI - Amazon CodeWisperer - Gemini - Devin AI Courses: Generative AI for Python Developers, ChatGPT Prompt Engineering Cookbook, GitHub Copilot Jumpstart, Generative AI for Web Developers, GenAI Toolbox, Hands-on AWS Operations with ChatGPT, ChatGPT for Software Engineers, Complete LangChain & LLMs Guide, Master ChatGPT and OpenAI APIs By Building AI Tools in Python, Generative AI Essentials with ChatGPT, Copilot, and Gemini, Generative AI for Developers - Creating Apps with the ChatGPT API, ChatGPT and GitHub Copilot in 4 Hours, LLMs, GPT, and Prompt Engineering for Developers, Building Text-Based Applications with the ChatGPT API and LangChain,

https://learning.oreilly.com/live-events/?page=1&topic=gpt

GitHub Copilot, GitHub Copilot Extensions (GitHub Copilot for Visual Studio, GitHub Copilot for Visual Studio Code, GitHub Copilot for JetBrains), Codex AI Model

AI Autocompletion

Commit messages generation

Coding Suggestions, Coding Autocomplete - IntelliSense

Context-aware smart chat IntelliSense is a general term for various code editing features including: code completion, parameter info, quick info, and member lists. IntelliSense features are sometimes called by other names such as “code completion”, “content assist”, and “code hinting.” https://code.visualstudio.com/docs/editor/intellisense

Machine-learning-assisted completion ranking IntelliJ IDEA allows you to prioritize completion suggestions based on choices that other users made in similar situations. https://www.jetbrains.com/help/idea/auto-completing-code.html#ml_completion

Code completion

Word predictionAutocomplete

AI Pair Programmer,

https://twitter.com/linqpad/status/1770728962802467284

Generative artificial intelligence (generative AI, GenAI, GAI)

AI winter, AI spring (AI boom), AI era

Awesome Prompt Engineering.

(navbar_ai_coding - see also navbar_github_copilot, navbar_chatbot, navbar_ide)

ai-assisted_coding.txt · Last modified: 2025/02/01 07:22 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki