#Can anyone help me?

1 messages · Page 1 of 1 (latest)

thorny bay
#

Please do not use ChatGPT to transcribe any code, it's harmful.

For example here you can see how it scattered catch {} everywhere instead of using idiomatic try for cases where you do not want to explictely handle errors.

catch {} means "i don't care if this failed, let's just continue as if nothing happened".

The unnescessary use of optionals makes the code more complex and offsets some problems to runtime.

Unlearning is harder than learning from scratch. Please browse language reference, checkout ziglings and other zig tutorials

broken gust
#

I dont get that way of learning. using chatgpt to basically "generate" code and then just trying to fix the errors? you will most likely not remember the syntax and how to do things. Looking at things does not make your brain memorize how it works.

You should try to write what you are trying to do the way you think it should work, if it doesnt you look at the reference DONT copy it, make it not visible anymore and try to write what you saw by remembering

thorny bay
#

The issue runs deeper - not only copy-pasting and adhoc fixing is less efficient way to learn, but it's learning subtly or sometimes very incorrect information. Whether you think about it or not, it's forming a mental model that you'll use to reason about the concepts. Now not only you need to learn the new thing, you also need to spend effort to unlearn the bad things and try to understand how much of your mental model is "corrupt". You'll now be debugging your brain.

ChatGPT is fundementally a parrot - it does not have a structured knowledge, it does not abstract information in mental models. Artificial neural networks theoretically could do that, but we're not there and we have no guaratnees that they might "know what they are talking about".

#

Trying to build a mental model from the ChatGPT output could be compared to trying to build a building by looking at it's shadow or photograph

#

original message deleted :/
this is an educational and a good example of what not to do - this is a reoccuring issue so it might be useful for others to think about

broken gust
#

I don't think people don't know this, they just search for an easy solution to solve the problem, I was not buying it either way that he wanted to learn how it works since the error that he posted was easily findable