Where AI fails without your help, and how fundamentals save the day
This is Part 4 of a 5-part beginner-focused guide to using AI for coding. If you missed earlier parts, start with Part 1 to see what AI can do and where it needs your help.
Today's post focuses on a critical truth: AI is powerful, but it's not magic. If you don't know the basics, you won't know when the AI is wrong or when it needs guidance.
Why Fundamentals Still Matter
Even the smartest AI can't replace a developer's intuition or problem-solving ability. Here's why a solid foundation still matters:
-
You need to know what you're building
If you don't understand HTML/CSS, Python, or shell scripting basics, you can't verify what AI generates. -
You need to know when it's wrong
AI doesn't know what you meant. It just guesses. And sometimes those guesses are wrong. If you can't spot syntax issues or logic flaws, you'll build on broken code. -
AI fails without structure
If your project structure, naming, or intent isn't clear, tools like Windsurf or Cursor will either stall out or make confusing edits.
What to Focus On as a Beginner
Learn core concepts like:
- Variables, functions, loops, conditionals
- HTML layout and CSS selectors
- Terminal basics and file paths
Use AI to explain why, not just what. Build your "gut check" - if it looks wrong, ask why.
Book Recommendations for Beginners
-
Automate the Boring Stuff with Python by Al Sweigart
A hands-on introduction to Python for absolute beginners, focused on real-world tasks. -
HTML and CSS: Design and Build Websites by Jon Duckett
Great visual layout and structure for beginners learning web fundamentals. -
The Linux Command Line by William Shotts
If you want to understand terminal basics and scripting, this book is approachable and practical.
These books pair well with AI. Use the book to learn the concept, and the AI to help explain, extend, or practice it.
I earn nothing from these links. They're just personal recommendations to help beginners get started.
Examples Where AI Falls Short
- Bad logic in a loop that looks right but never exits
- Broken CSS that renders but doesn't behave as expected
- Misused APIs - AI calls functions that don't exist or assumes wrong parameters
- Silent breakage - code runs but returns the wrong output due to bad assumptions
If you don't know enough to catch these, your project will slowly drift off course and the AI won't tell you.
Tip: Use AI to Learn, Not Skip
You don't have to be an expert to use AI. But you do need to be curious. Use the tools to teach you, not just to do the work for you.
- Ask "what's wrong with this?"
- Ask "what does this error mean?"
- Ask "can you explain this function step-by-step?"
Coming Up Next
In Part 5, the final part of this series, we'll wrap things up with a set of best practices for beginners using AI. How to stay productive, keep your projects clean, and avoid common mistakes early on.