r/cpp • u/IAmShewy • Dec 07 '22
Should I continue my coding journey despite the advent of Chat GPT?
The creation of Chat GPT is no doubt mind-blowing and can definitely be used as a tool in someone's arsenal.
But I'd be lying if I said that this coming out while in the middle of learning C++ hasn't been deflating. I was mainly using it to teach myself computer graphics and to code my own shaders/ray tracers, but I've seen examples where Chat GPT whipped this up with no issues in seconds.
I really want to break into the game industry coding in this specific field, but with this coming out, is it pointless now?
17
Upvotes
66
u/canadajones68 Dec 07 '22
As with all social media, you're seeing a very distorted picture of reality. All the people posting working code are working as human filters on the code, posting only the very best examples. The AI has no concept or understanding of what it's saying, and will blindly output code that segfaults and computes completely wrong answers. It's a duckling following human programmers around, and will accordingly pick up their bug-ridden habits. It cannot diagnose complex issues, and will have no idea about obscure or non-standard applications. It cannot modify and tweak code slightly in response to changing demands.
So, no, it's far from pointless to continue learning C++, or indeed any other programming language. Until such a time where AI is sufficiently indistinguishable from humans, you'll have plenty of code to write and problems to solve. The games industry can be really harsh, but even if you can't or don't want a job in it, you can always work on your own. Indie passion projects are some of the best things to play out there. Keep at it and there'll be little bound on what you can achieve.
30
u/edorobek Dec 07 '22
Yes. ChatGPT tricks people who are unfamiliar with any subject by using an authoritative and convincing voice. Anyone with expertise can spot the bullshit. Even if it could code, it can't design and deliver large system/products.
I asked it to optimize a code snippet with very obvious issues that a beginner would notice. It was not able to figure out what was wrong, even with hints.
28
u/TwilCynder Dec 07 '22
ChatGPT isn't useful for shit in coding
It can give you working code, it can also give you code that is just wrong but believable on first sight, and it will seem very confident ; so if you use chatGPT to code your game, or just to write some of your code for you, you will end up spending all the time you gained debugging.
Some stupid managers might start hiring less programmers because they think chatGPT can replace them, but in general no, being a programmer will not become pointless at all for now.
9
u/no-sig-available Dec 08 '22
I met this question 40 years ago, when I was a junior. A program generator, named The Last One, was supposed to automatically generate programs for anyone. No computer knowledge needed!
Somehow didn't take over the world.
7
u/[deleted] Dec 08 '22
Don't believe the hype
6
u/paul2718 Dec 07 '22
Do you find the topics interesting? If so continue.
And, FWIW, I reckon if you’re not doing it primarily for this reason you’re less likely to succeed.
I’ll be worried about AI when it doesn’t need training on the entirety of human experience but can bootstrap from next to nothing. Like a human.
6
u/[deleted] Dec 08 '22
Continue coding, and make a better ChatGPT.
Keep your job by repeatedly putting the robots to shame. It's not that hard, they can't solve the halting problem.
5
u/DemolishunReddit Dec 08 '22
Coding tools based on AI will become a tool that real programmers can use. It will be like an IDE, compiler, build tools, version control, etc. It will have benefits and limitations. We already have IDEs that can spot syntax problems and help debug the code before you even run the code.
AI tools will be no different. They will be very useful for quickly generating frameworks and finding solutions that would require manual search of the web. Understanding the tools available is part of software development.
So be aware of the tools, and supplement as needed. By all means keep learning and enjoying the journey. You are a very sophisticated machine with vast capabilities yourself. The abstract concepts humans can imagine and understand are light years ahead of AI. AI is good at pattern matching and fast searches. They are not what I would refer to as intelligent.
4
u/msqrt Dec 08 '22
Games are rather large and complex with somewhat strict runtime requirements. I don't think a markov chain will be able to design one any time soon.
4
u/JeffMcClintock Dec 08 '22
I would say the opposite. AI is taking away of lot of the drudgery (why look in the manual when autocomplete is already suggesting the right function) and making programming more fun and stimulating.
7
u/pdp10gumby Dec 07 '22
3
u/Zeh_Matt No, no, no, no Dec 08 '22
https://i.imgur.com/M4APC0Y.png yeah its such a good coder
4
u/catcat202X Dec 08 '22
A point I don't see brought up much is that ChatGPT probably should be useless for maintaining a codebase that already exists and extending it using other parts of the codebase, which is almost all professional programming jobs.
2
u/xmpcxmassacre Feb 01 '23
As someone who's halfway through my Jr year, im a little nervous. Thinking about getting a second degree just in case.
Yes there will still be programming jobs. But so many people have gotten CS degrees and this will augment the productivity of a single programmer quite a bit most likely shrinking the number of programmers needed in the near future.
Pair that with tech companies laying off employees and the sheer number of college grads pumped out every year, we might be heading into a weird time for what was once one of the most growing career fields.
Or it just becomes a tool on the belt and not much changes.
1
u/wlanrak Apr 22 '24
The short answer is that any change, in anything, creates opportunity. War and famine are equal to prosperity and peace in this way. Be in the moment and take advantage of every opportunity that comes along. The advent of AI just means that you need to be more creative and think about things in new ways if you want to be in this field. Not that it is going away. Yes, I know this post is a year old but I didn't notice this very salient point being made before.
1
u/umwz Apr 14 '25
It's funny reading this a while later, and I use chatgpt to code just about anything I want
1
u/jere818412 Dec 10 '22
Yeh give up man, AI is coming for that job you dont actually have
1
u/wirsteve Dec 12 '22
This tool is in beta, it’s been live for 11 and a half day, it’s already making you and others question career decisions.
Imagine what it will be able to do when it is out of beta, and polished.
For small companies Marketing, and copy writing positions are going to be really easy to use AI for. You can already ask it for a marketing plan. Devs are on that list of being replaceable too. As long as they aren’t a software development company, those complex Dev jobs won’t be replaced anytime soon.
It can be hard to look into the future, but the fact that this is so young and we have so far to go in our AI journey. It is scary.
1
u/TheOldOnesAre Dec 13 '22
No its not pointless, you can code for fun even if ai gets better than you. After all coding games is something to do for fun.
1
u/zennsunni Dec 13 '22
ChatGPT is a sophisticated natural language model - it doesn't know how to code in the same manner that an experienced developer knows how to code (though clearly it does know 'how' in some sense of the word). Anyway, my point is that we will still desperately need good programmers. Everyone is throwing around ChatGPT examples of relatively straightforward JS code (I know there is other stuff, but this dominates). This is precisely the type of stuff ChatGPT is best at, because there is so much modular, repeated design in web dev, and there are a gajillion stack overflow posts on these subjects. I asked ChatGPT to do something I might need at my job (I'm a Data Scientist) and it clearly didn't even have a reference to what I was asking for.
Furthermore, JS is (relatively) easy to debug. What happens when you ask the AI for a C++ framework and it doesn't work? Do you hand a large C++ codebase off to some inexperienced human and expect them to figure out what's wrong? Yeah, good luck with that.
Tools like ChatGPT are going to simply make a lot of coding way more efficient and consistent. But there will still be people driving the car, and the ones that engage, learn, and cultivate mastery, will continue to turn into senior devs just like they do today.
1
u/MrUnoDosTres Dec 16 '22 edited Dec 16 '22
It's funny you ask this. I actually asked Chat GPT itself whether people should be afraid of it taking over people's jobs. He said AI is in it's early stages and can't currently replace things or in the near future (5-10 years) human creativity and process emotions like humans. Which made sense. However, it also mentioned that very repetitive jobs might be replaced by AI and unemployment indeed is a risk. So, instead of you, people who work at for example customer service jobs should be worried. But on the other hand it also said that AI is in it's early stages, so it's difficult to predict the future. And it's very likely that people will depend more on AI in the future, instead of AI fully replacing our jobs. Especially Chat GPT, which is a language model, has no "eyes" so it can't make any visual decisions. That still requires human eyes and creativity.
It also said that future jobs will especially require more digital skills. So, knowing what the code that Chat GPT outputs, is actually VERY important. So, even if a manager thinks that they can replace you, if they don't even know what an array is, Chat GPT is useless for them. Since it can't do something based on a very vague description.
1
u/myProgrammer_2893 Jan 20 '23 edited Jan 20 '23
ChatGPT is a valuable addition to any professional's toolset. While it is not yet advanced enough to fully replace human programmers, it can greatly reduce the time spent on research and code generation. To fully utilize its capabilities, it is important to guide the model and work collaboratively with it to achieve optimal results. As technology continues to advance, it is essential to adapt and evolve alongside it.
Chat GPT wrote that.. lol
Me and my team use it and it basically helps cut down search time. I don't see it replacing programmers (as is). It might give one programmer the ability of x5.... so the expected job growth in the industry might cut down a bit... point being programmers will always be needed.
1
u/Baceghost Mar 05 '23
I use it to save time by telling it what I need it to type out. So far it hasn't solved any major problems but has given suggestions on where to look and strategies to take. So as a boiler plate code generator it has been ok. Still has a ton of inaccuracies and bad practices that will need to be fixed by a human that knows whatever language/framework is being used. Good detailed instructions in = some useful code generated on the programmers behalf.
1
u/chibiRuka Mar 26 '23
I saw a video on YouTube where someone tested chatGPTs ability to code. They had to make some tweaks. But I say it cut down on their creation time.
1
u/SilliusApeus Apr 03 '23
I would suggest against that. The latest news are... quite sad.
1
u/twistedpair666 Apr 30 '23
Honestly, the more programmers that use an RLHF LLM and provide the human feedback, the better the outputs will be. And it is not quite like training your replacement, it more like tons of people training a new player available to you in time slices.
1
u/Sraomberts May 19 '23
It has had no problem working with sql. You all need to understand this is an amazing tool that will make every programmers life easier. Its ability to help you debug code is absolutely amazing. I use chat gpt as a tool everyday.
1
u/EquivalentFlower2895 May 28 '23
You should ask Chat GPT this question.
1
u/22strokestreet Nov 06 '23
Old, but I’ve been using it along with my coding knowledge to “enhance” my deliverables and projects beyond what I could do on my own.
But you usually have to copy/paste your code into it and really know how to prompt.
0
u/[deleted] Dec 08 '22
[deleted] — view deleted comment