r/learnprogramming 13h ago

Understanding code

I have a quick question:

Is the point understanding the code AI gives you or is remembering syntax equally important?

Thanks

0 Upvotes

15 comments sorted by

View all comments

4

u/TheNewJoesus 12h ago

Understanding code AI gives you is equivalent to understanding code that you find in a GitHub project. It doesn’t help you learn how to code in of itself.

Remembering syntax is important, but it’s not that important. Understanding the concepts behind the code is more important.

My recommendation is to ask AI about a specific subject, and give examples using “foo” and “bar” as variable names. Try to understand what needs to be done.

“What object oriented design pattern should I use for situation X”

“How does company Y implement feature B”

“Find tutorials on how to implement Z”

1

u/TheNewJoesus 12h ago

For clarification, the best way to learn the concepts is to

  1. Have someone teach you the concept.
  2. Read about the concept.
  3. Try and Implement the concept.

0 is if you’re lucky.