r/AskProgramming • • 1h 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 )

0 Upvotes

9 comments sorted by

3

u/Sunwukung 1h 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 if 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, and we experience great difficulty in purposefully choosing a difficult task. Then one day, it clicks, and it's suddenly effortless - like riding a bike.

It's debatable if learning coding this way is meaningful 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

2

u/GuyFawkes65 1h 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/CS_70 1h ago

Learn one language. C is good. C++ isn’t a good first language imho. Use the ai as a tutor

1

u/Tomasan7 1h 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. 

1

u/GuyFawkes65 1h 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/OldAd9280 1h 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/DDDDarky 52m 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.

0

u/cretingame 1h 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/Original-Hurry-8652 26m ago

Could one compare vibe coding to instructing a jury how to handle the testimony they will hear in a court trial but, not actually instructing them how to think? Some parallel similar to this, or using a automobile assembly line to fabricate a car door, step by step, adding a motor to drive the window up and down, or a lock mechanism to allow or prevent the handle from working but, NOT actually designing these "base pieces" (i.e. the window motor, the lock cylinder and key controlled bits) ?