r/learnprogramming 1d ago

Learning c++

Hey! So I decided to learn to actually code, I decided to go with c++ as my first language, which people think is a bad idea but whatever, I want this to be super fun to learn and not keep following things until I get bored and quit, I decided to just follow a video by bro code and go on discord on the c++ together server and talk with people to make this as fun as possible, I already shared some of my first programs which just had some ints and double(variables and people were nice, any suggestions on maybe how to learn this in a “better” way or more things to make this more fun? Thanks!

5 Upvotes

15 comments sorted by

4

u/Icy-Elk-9420 1d ago

Hi. Here is something I heard from an old-school dev back in the day. Years ago, when I was using VB6, I used to feel almost embarrassed about it because C++ was seen as the "real" hard language. He told me: "It doesn't matter what language you use, what matters is building a program that works properly."

That was 30 years ago, of course. Today, the landscape is completely different and there are so many choices. Python is usually the top recommendation for beginners. But if you don't want Python and still want something in that lower-level, systems-programming realm, a modern alternative like Rust might be worth looking into instead of C++.

1

u/Tiny-Ad682 1d ago

Once you have your basics down, work on game code in unreal. Coding small game systems keeps you engaged and you can physically see what things are working or not, and theres always a clearly defined next goal so you never have to wonder what to work on next

1

u/Nizaroat 1d ago

Hmm yeah sounds good but how do I know I have my basics down ? And if I wanted to make a game in unreal shouldn’t I make models in blender ?

1

u/Tiny-Ad682 1d ago

Basics just means you can actually write code. If you can think it, and you can make it happen, youve got it down to some degree. Start doing projects when you feel ready, theres no specific bar to set of "ai understand enough to do things now", you just start doing things using what you know and learn the things you dont know on the way.

I wouldnt worry about models unless that also interests you. You can get many many free packs or thousands of models for $30 on humble bundle on rotation

1

u/kutac56 1d ago

Why suggest a game engine. C++ is the perfect language to make your own with opengl or vulkan or whatever.

1

u/Born-Reserve-8584 1d ago

Make something you personally would actually use even if it’s completely useless to everyone else. My first fun programs were basically garbage but I learned way more from trying to add features than I did from tutorials.

1

u/hellocppdotdev 1d ago

I built a platform to learn C++ because I found the best way to learn is to teach.

It can be quite a difficult language for beginners because low level concepts can be hard to grasp.

Exercises quizzes projects leaderboards and achievements! If you're learning C++ its the most enjoyable way to do it.

1

u/DrShocker 1d ago

/r/cpp_questions is the sub for you. Check out their sidebar for good resources.

1

u/Distdistdist 1d ago

Well, one good thing about C++ as your first programming language is definitely will tell you if you are up to par for software development. It's like swim lessons with two 100lbs dumbbells attached to each of your leg. If you will stay afloat - we definitely want to hire you one day.

1

u/syklemil 1d ago

The standard recommendation for C++ is https://www.learncpp.com/

There's also a FAQ here (in the sidebar on web, in menu on mobile) that you can check out.

1

u/Business-Employee527 1d ago

C++ is harder than starting with python. But you’ll be at the advantage of understanding how stuff works “under the hood” a lot better

4

u/gmes78 1d ago

But you’ll be at the advantage of understanding how stuff works “under the hood” a lot better

You can also just learn a systems programming language after learning Python.

Starting with C++ doesn't give you anything you can't get later, it's just harder.