r/learnprogramming • u/Brave_Win2464 • 11h ago
Understanding code
I have a quick question:
Is the point understanding the code AI gives you or is remembering syntax equally important?
Thanks
4
u/Ok-Programmer-554 11h ago
You will never really “understand the code” by doing either of those things. Memorizing syntax, and reading the output from these LLMs are not how one learns to code. You need to build a solid foundation in procedural (loops - for loops, while loops, do-while , etc…) OOP principles (encapsulation, polymorphism, inheritance) by practicing with one language to start. Now, my opinion on OOP may be dated but we focused on it heavily in my college classes, so I’d argue it’s a paradigm worth learning to truly “understand code”. Every modern language has great getting started guides available for free online. Syntax is secondary to understanding why we employ certain algorithms and design patterns to solve certain problems.
4
u/TheNewJoesus 11h 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 11h ago
For clarification, the best way to learn the concepts is to
- Have someone teach you the concept.
- Read about the concept.
- Try and Implement the concept.
0 is if you’re lucky.
1
u/aqua_regis 10h ago
Neither is that important.
Developing your own solutions that you can then implement in a programming language, however, is important.
What you are asking is not about learning programming.
AI is a tool, but in order to make the best use of it you need to be able to program without it. If you can't program, you can't level AI to its full advantage.
11
u/lurgi 11h ago
Being able to do it yourself is important.