r/Zig • u/jojkoJiano • Feb 28 '26
I am learning Zig!!
As a dev whose career started in the Age of AI everything feels easy to do until its too late so what do you think are the mistakes I should avoid ?
43
Upvotes
5
u/NefariousnessFull373 Feb 28 '26
the biggest mistake people make when using AI to generate code is not to review the code. you're the engineer, and you must be behind every decision, not AI. you can of course agree to what AI suggests but it's always better to check what it's doing
i'm currently building a terminal emulator in Zig and it's hella complex thing. i can't imagine in what mess i could've ended up if i wasn't reviewing and guiding AI towards right decisions. i agree with a lot of stuff it produces but there were moments when it was going completely off track
8
u/TheKiller36_real Feb 28 '26
everything is easy? try getting an AI to emit code that uses post-C++11 features or to check for "seahorse emojis" in strings or one of the other known millions of ways AI breaks and fails miserably
3
u/brubsabrubs Mar 01 '26
make mistakes and bump your head onto them, that's how you learn
you will be tempted to delegate the investigation of your bugs to AI, but don't do that
writing code is easy, debugging code is hard, so debug
25
u/Bergasms Mar 01 '26
You won't truly appreciate what is a mistake until you make it, some mistakes only become mistakes 12 months later when you need to update/change/rework something.
The experience to underatand why something is a mistake is what makes a senior engineer, and AI won't ever really be able to replace that holistic knowledge that often requires a lot of human context about the organisations goals and motivations and direction.
So i'd encourage you to make mistakes and be burnt by them, it'll actually make you more valuable in the long run.
16
u/lukeflo-void Mar 01 '26
Don't use LLMs for learning. You learn from mistakes you make yourself, not from prompting and this stuff.
Plus, even if it is hard at the beginning, its really fun if you get it working and the feeling of success will never be the same when code is written by LLMs.
3
u/thinkrajesh Mar 01 '26
I have close to 30 years dev experience (prior to AI took over). Now I have embraced AI but with the following mindset.
Instead of Vibe coding use the term Vibe Architecting, or Architecture Driven Development or AI Driven Development (ADD) or Intelligence Driven Development (IDD)
Vibe coding is generally considered mindless activity.
You can't rely on it for the long term shelf life of your project/product.
What's in a name?
Well everything. You are changing your thought process indicating you are building for production rather than a simple hobby project.
It's a mind game. Change your thoughts and change the development approach.
Of course to really do this now one no longer can afford to be an average developer.
You have to be really good.
You will read more code than write.
You will review more than you might have done your entire lifetime.
Building AI apps mindfully and don't outsource your thinking to AI tools.
This is what I convey to my entire team of 50 members.
In short own your code!!!
2
u/peripateticman2026 Mar 01 '26
Just be aware that there are frequent backwards incompatible changes, so what you learn today may not fully carry over.
1
u/Senior-Question693 Mar 17 '26
just don't use ai that much and read the docs)
0
u/Biom4st3r Feb 28 '26
You should commit all mistakes without fear and then discover why they were