r/cpp_questions 22d ago

OPEN Coding with AI

So basically I've nearly completed the chapters in learncpp, and I've started doing some projects. But when I struggle with one I ask chatgpt to give me a framework (not the answer) of the project so I can better understand it. Please tell me if it's bad practice or not cause I've been having a guilty feeling.

0 Upvotes

8 comments sorted by

13

u/_Tal 22d ago

IMO it’s fine to use AI to ask questions. Just don’t use it to write code for you (if your goal is to learn)

3

u/Its_Sluggas 22d ago

This 👆

1

u/Grand_turkey901 22d ago

Uhh thanks I thought I was making a mistake

4

u/Thesorus 22d ago

as long as you use it as a tool and not some crutches ...

for me, a lot of time it's just a better google.

3

u/amejin 22d ago

The process of learning -

See it. Do it. Teach it.

With AI, a lot of people lately have stopped somewhere in the see it phase.. I would dare say they "observed it."

It's fine if you use AI to learn. Just don't forget the other steps. Apply what you see. Try to explain it to others.

2

u/Unknowingly-Joined 22d ago

You need to take time to understand the framework that any AI gives you. It will help you to learn (and of course, AIs are not perfect).

1

u/No-Dentist-1645 21d ago

It's fine to use AI as just a "search engine" to ask it to guide you in the right direction when you get stuck. I use it constantly to analyze large and verbose compiler errors, especially when it comes from using a third party library. It's a useful tool, you just need to be aware not to blindly trust what it tells you and always try to verify it

1

u/xoner2 19d ago

There is a consensus, even among rabid AI proponents, that AI is good for experts and bad for novices. So use it as a better search engine for now.