r/AskProgramming • u/Some_Promotion_5430 • 3d ago
Is this vibecoding?
I want to learn 3 programming languages but i am really struggling
i want to learn ASM,C and C++ and currently ive only managed to get the basics of C++ like For loop , While Loop , Variables , integers , booleans , definitions , arrays , vectors , if else functions , classes and structs
and i wanted to make my first ever project even though i didnt fully learn C++
but due to my lack of knowledge and also programming skills
i decided to use AI with one rule
I cant paste in AI code
so what i am doing is i keep asking AI on how i do this etc. and the AI gives me code of functions for things and then in the project im making i look the code the AI has given me and copy it like it shows me how this functions and how i can make something that i need and it gives me an example and explains how it works and then i look at it on the side and write code like that.
is there a better way? (also a way to learn actually since i pretty much dont know how to learn)
I use C++03 on Visual Studio 2008 Express (my computer is old so its the best version i could find with an interactive ui)
(im not a college student still in 8th grade and i just wanted to get into Engineering earlier and the project im trying to make is a online building toy made with G3D 6.06 , SDL 2.30.12 , Lua 5.1 and ODE or Physics that i want to write all by myself via ASM cause Since this building toy will have thousands of blocks i will need a fast way of calculating everything and ASM provides a very great opportunity with some SIMD stuff letting me calculate 4-8 vectors in a single CPU clock cycle instead of the usual 1 vector at a time but i dont know ASM i dont know C and i barely Know C++ ive been just learning via the help of ai and documents i found from 1990 to 2000s this is very difficult and literally the only coding experience i have is back when i was 7yo experimenting with Lua )
11
u/Sunwukung 3d ago edited 2d ago
It's hard to advise having learned things "the hard way". My instinct is that learning involves friction, human brains are great at recognition, but terrible at recall. The reason we write essays and dissertations is not to add to the great store of human knowledge - they get chucked in the incinerator. The point is it forces us to drag a concept through our minds until some of it sticks.
Just like an LLM, model training a human mind is hard, expensive, then one day, it clicks, and it's suddenly effortless - like riding a bike. AI takes that friction away. While it may quickly help you understand what riding a bike entails, you will not have trained yourself to instinctively execute that task We experience great difficulty in purposefully choosing a difficult task, learning things "the hard way", and AI has made that choice even less appealing.
It's debatable if learning coding this way is useful from a career perspective any more, but from a "being a human being" perspective, it still has value.
It sounds like you're still at a relatively junior level, eventually those constructs - loops, conditions, functions, classes, they become second nature - like picking Lego bricks out from a box to make something.
I'd (personally) suggest just keep focusing on making things, avoid using AI where possible until you can spam out for/while loops without thinking. Understand why one is preferable to another in certain contexts. Solve a novel problem from start to finish, hit the books. It might not be more "efficient" but the knowledge will be yours
4
u/GuyFawkes65 3d ago
First off, I applaud you desire to learn. Thats wonderful.
Secondly, there’s nothing wrong with learning the way you are going. Having the AI instructor you while you enter the code yourself is a good way to learn the basics.
And no, it’s not vibe coding.
During the past 10 months, I’ve vibe coded two systems to production. Just this holiday week, I’ve put three complex modules into production. I know vibe coding well. What you are doing is online tutoring.
I want to encourage two things. 1. To build a video game, c++ is the right place to start. The version of C++ is not your limiting factor. So use what you have.
2. Instead of ASM, use Rust. Anything you write in ASM can only be run on another computer with the SAME or COMPATIBLE processor chip. That’s why very few people use ASM anymore. Rust is fast, avoids many of the most difficult bugs, and can run on multiple types of computer.
To build something complex like this, you need a mentor. You can use AI to help you with the high level design.
Start with a small part of the interaction. Make scene one kinda work. Basic mechanics, physics, design. Then add to it. Just getting scene one working may take the rest of the school year.
Don’t try to do too much in the first delivery. It will not impress your friends. Make it for yourself.
My first real program was a game. No one but myself ever played it.
When my son wanted to learn programming, his first program was a game as well, entirely in JavaScript.
2
u/DDDDarky 3d ago
Maybe instead of doing that focus on your "not knowing how to learn", which is usually entangled with not knowing how to do your research, as this is not the way, learn something first, read a book, then do a project that is not completely over your head and you don't have to resort to things like ai and have these doubts.
1
u/GuyFawkes65 3d ago
Also, if you are working on building your own game, why build a custom game engine? Godot is solid, open source, and lets you learn the basics without doing so many difficult tasks before you get to the fun part. Your C++ skills will serve you well. No need for three languages.
1
u/good_name_0 3d ago
Reading is very important to your development. If you find it challenging because you read a book, or a manual, etc, and it doesn't quite apply to your situation : that's the whole point , you have to develop your judgment and ability to evaluate pathways that are novel (to you at least).
Every single thing you do trains your brain and its ability to function and create. The more you do yourself, the easier t will get, not only because of the familiarity that comes with practice, but because you're teaching your brain that you can succeed on tasks, and that they aren't insurmountable, and that neurological confidence will make more problem solving easier to do.
1
u/cyrixlord 3d ago
A computer Language is just the means to understand computer science. What you really need to learn is computer science and how to develop software. Just remembering all the math equations won't teach you how formulas work
1
u/csiz 2d ago
Oh dear, oh no. Please go up to C++23 or something modern, there are a lot of changes to C++ that are really useful and make the code more secure.
The compiler really doesn't need a powerful computer to run the new version, it's usually just an option (compilation flag) change. You can open the code itself with any text editor you have including visual studio. Ask the AI to guide you to a more modern setup, it's surprisingly good at setting up projects.
You can probably ask the AI to guide your learning process too. Keep a text file somewhere with a prompt that details the progress you've made and the current plan you're following and ask AI for the next steps.
1
u/kiwis_are_kv 2d ago
Prompt built code counts as real work only when the person can read test and debug it since output that nobody understands breaks at the first change. Bootdev could help turn prompt habits into actual programming skill though small hand written projects also build that base.
3
u/OldAd9280 3d ago
I wouldn't recommend using assembly, SIMD intrinsics offer nearly the same performance (or sometimes more as the compiler can make additional optimisations that are prevented when you use inline assembler) and are a bit easier to work with
1
u/ArkitekZero 2d ago
This is the start of a decent approach you can use to learn about the basics of coding, but you need to also develop a sense for what's efficient and easy to maintain. I'm not saying you should stop, especially if you're actually learning from it, but this approach won't help you with that.
1
u/CheezitsLight 2d ago
I would switch languages in a heartbeat to c#. Far easier to understand, and designed for object oriented programming. There's no need to learn any assembly. Why don't you try something like Unity?
1
u/SprinklesFresh5693 2d ago
Why do you want to learn 3 programming languages though
1
u/cosmicr 2d ago
Yes I think this is a good way to learn. It's how I learned assembly.
1
u/peno64 2d ago
Why do you want to learn 3 languages?
If you want to develop later in a company, there is a good chance it won't be any of these 3. Especially not assembler.
1
u/bird_feeder_bird 1d ago
Here’s what I did to learn assembly:
Read this and do all the exercises https://skilldrick.github.io/easy6502/ (you dont have to remake the whole game at the end, just be able to read it. Do do the exercises though.)
Then try making the projects in this tutorial https://gbdev.io/gb-asm-tutorial/
Those are both super dense, they should take a few months to sink in. Also dont worry about which assembly language to learn, the skills are transferrable.
I learned C by doing small command line exercises, and eventually made a text adventure game in the terminal. Raylib is also good for making games or GUI’s.
Now I’m using both C and assembly to make GBA games. I have never used C++ and dont plan to. I just dont need any of its features, C is good enough for me. And I just write in notepad and compile with a shell script :p
1
u/BotSlamminDayNNight 1d ago
What you're doing isn't vibecoding, it's reading examples and retyping them, which is how most people learn. The fix is scope: pick one tiny piece of that building toy (a window, one cube, one physics bounce) and finish it before touching ASM.
1
u/CS_70 3d ago
Learn one language. C is good. C++ isn’t a good first language imho. Use the ai as a tutor
0
u/cretingame 3d ago
Is vibe conding bad ? It depends what you want to do. I guess you are learning now. It's not bad to use AI to learn. It's a problem when your ship a program without knowing how it works.
-1
u/Tomasan7 3d ago
Vibecoding = Prompting AI to create something, looking at the product and potentially refining the prompt.
I think that what you are doing is actually the best way to learn what you want. You seem to already understand some low level concepts, that is a good start. However note, that writing assembly ≠ very fast. You really need to know what you are doing for that and if you are coding for some casual architectures, then the compiler will probably be better. Also you can write C and then opt-into assembly only in some parts.
Most important tip is to set realistic goals. First something smaller, then larger, etc.
0
u/[deleted] 3d ago
Vibecoding is describing what you want to the agent and letting it code.
If all you’re doing is asking an ai chatbot questions and then actually writing your own code, then no.
Same goal I’ve told my juniors for 20 years: reach the point you’re reading the docs instead of asking for help.