Andrej Karpathy introduced the world to Vibe Coding. With tools like Cursor, yes now anyone can code.
But that brings some questions to the mind.
- If you have never coded before, should you skip the "learning" and directly jump into writing code with AI?
- Should you blindly trust the code that AI gave us?
- Should you focus more on the speed of development rather than understanding the codebase?
- If you are a developer, how often should you Vibe code?
- Should you skip learning the basics, and syntax of a new programming language?
Let's answer them here -
- Now, if you are new to programming or have never coded before, I would definitely suggest at least going through the basic syntax of a Programming Language. Python is a good option. The good news is, you can do it inside of Cursor itself. Just use the Chat. Ask it, about the syntax. Ask it to elaborate. Ask for examples. Use Chat to learn the language.
- Once you know the basic syntax, "do not" trust the code the AI gave you. And the reason is, there are several ways of doing a particular thing in coding. For eg. there are many ways to write a function to find the nth Fibonacci number like using loops, or recursion. You might need a recursion-based solution, but AI gave a loop-based solution. You know what you are looking for, but AI doesn't. It's a good idea to cross-check what AI gave you.
- Careless speed coding every time is like eating fast food every day. They have their repercussions. If you (blindly) rely on AI to code every day, your code base can eventually grow very complex. So complex that you've to spend hours figuring it out when debugging something. Do not sacrifice the code quality with speed. Understanding what you are doing is important. Small progress is better than making big progress that you don't understand.
- I have a rule, you can Vibe code often, but not without reviewing the AI-generated code. Some give an 80-20 rule, but many developers admit using it 99% of the time. AI coding is the future. As models get more powerful, developers will eventually rely more on them. You should get good at coding with AI. But with caution. Understand what you write. Keep your code organized.
- No, you should not. You should learn the basics. Nothing replaces our ability to think and come up with creative solutions. When coding with AI, sometimes you will hit a wall. And then you'll have to use your thinking brain.
Vibe coding is the future. Let me know what you think about coding with AI. I would love to know your thoughts in the comments below.
Thanks for reading!
Shahrukh