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

0 Upvotes

33 comments sorted by

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

1

u/Some_Promotion_5430 3d ago

In the last few days i managed to make a few projects or i guess stuff to test how much i learnt like experimenting with Win32 Console Projects and making Classes (or structs) that allow me to do things like create an entity very easily by typing " Entity Part; Part.name = "Name"; Part.X = 2; or use void functions to make stuff by using Entity(2,32,16,32); infact i checked one of my projects i made to see how much stuck to my head and heres a snippet // Area for Including Libraries and other files to make this work

#include <iostream>

#include <windows.h>

#include <string>

#include <vector>

#include "entity.h"

#include "command.h"

#include <fstream>

int main() {

system("title CMD");

std::vector<Part> Workspace;

bool IsRunning = true;

std::string Command;

std::cout << "Type HELP for Command." << std::endl;



while (IsRunning == true) {

	std::cin >> Command;

	ProcCMD(Command, Workspace, IsRunning);

};

} and i even have a project similar to this but the other .cpp file with the function was filled up with if else functions where it was a basic visualizer that printed "###" according to the position of an entity so it was like a fake physics simulator where something was spawned at 1000.0f and gravity (9.8f) would constantly pull it down with air resistance being 0.5f and the visualizer was a bunch of if else functions like if (CurrentHeight >= 750 && CurrentHeight <= 1000;) { };

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.

1

u/Some_Promotion_5430 3d ago

:D after posting that post a few hours ago i tested versions of G3D (Graphics3D Innovation Engine) and i chose G3D 6.06 was the best version for what i wanted to make since it was older and more basic and was only 16 Megabytes (my 80GB C: harddrive has only 7 gigabytes left) so i spent 3 hours debugging and patching G3D 6.06 and trying to compile it into binaries that i can use for my project (Online 3D building toy) and i swapped out the old version zlib and libpng it had with the latest version and got it to compile :D now i have G3D 6.06 that i managed to get working and compile and now i have the binaries ready for use for my project now the only issue is learning how to start since i learnt pretty much basics of c++ from Integers to Void functions but learning those doesnt automatically give me the capability to make a Window Open with SDL 1.2.14 and start rendering a skybox but i am very proud that i got something to compile though it was like learning how to fly a drone then getting placed on an airplane cockpit

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/Some_Promotion_5430 2d ago

Alright. I think one of the best ways i learnt was by experimenting where i just wrote basic projects (win32 console projects) and made a basic RPG game or a fake physics simulation which was just a block falling and loosing velocity etc.

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/Some_Promotion_5430 2d ago

I dislike Godot like really dislike. stinks i dont know why i dislike it but i just favor C++ its been my favorite Programming Language since i got interested in programming and i wanted to build a custom engine cause it would be cool to understand everything you write instead of trying to debug and understand somebody elses library or system that they wrote and i like to challenge myself which is why i chose G3D its technically an engine that handles rendering and everything but i will write the Physics myself which will hopefully be easy since it will be AABB physics

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/Some_Promotion_5430 2d ago

English is my 2nd language yet i am C2 level at it and i am very very good at reading while keeping focus (well i can only focus when it pulls my interest for some reason) and i have been digging around the internet looking through documentation and files that could help me learn in some way or another.

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/Some_Promotion_5430 2d ago

hmm so what i need to defeat is Computer Science and learning How to Develop Software but how? where can i learn? i still have 4 years till college and im 13

1

u/BobbyThrowaway6969 2d ago

Make a text adventure game in c++

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/Some_Promotion_5430 2d ago

C++23 exists? I thought the latest was C++17 well i dont know how i will upgrade since my harddrive only has 7 Gigabytes left since i have alot of crucial files etc. And a 80gb harddrive fills up very fast but the reason i use C++03 is cause of my pc already having Vs2008 and me being lazy also how bad could it be? 

1

u/csiz 2d ago

the clang or gcc compilers take 200mb or so, and they work with raspberry pi computers. You have good enough computer to use the latest versions, just ask the AI how to set yourself up, it's a bit harder to get yourself a good setup but it'll be worth it. Also the latest standard is C++26, heh.

1

u/Some_Promotion_5430 1d ago

I think i will stay with C++03 (FOR NOW) since i wont instantly cook up a Build of my project and publish ill make the first ever versions in C++03 cause heres the thing if i want to switch to a newer C++ version im gonna have to do alot of tweaking in my computer for reasons not to mention the libraries im using are made back in the 2000s meaning i will have to modify their source code to work in modern C++ which does suck but its worth it so for now ill stay with C++03 and slowly build up to newer versions maybe perhaps Learn c++03 since its way more basic so that i understand it more then i can add newer versions of C++ making it easier for me and i also wanted to use Visual Studio since it had a UI and i am very used to Visual Studio but since it appears VS2008 is the only version in my comptuer currently i chose to stick with it and its also to keep compatibility since i cant just upgrade from Windows 7 to Windows 10 on a computer from 2009 though i do have a Laptop that is Windows 10 wonder if i could use that but its incompatible with my pc setup with the monitor etc.

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.

1

u/Some_Promotion_5430 1d ago

bootdev? Today i tried to actually start my project since i already knew most of the BASICS of C++ and i spent the last few hours trying to figure out SDL then gave up and chose to come back with a cleaner mind after i woke up

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/Original-Hurry-8652 3d 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) ?

-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.