Jump to content

C++, good for noobs?

Go to solution Solved by madknight3,

C++ can certainly be learned as a first language though you will likely have an easier time with something like Python.

Hi guys!

 

I gave myself the objective to learn a coding language this summer, is C++ a good way to start?

 

Thanks!

What do you want to programm? Website, programms like games, emedded system, microcontrollers.... ?

This will require different languages.

Mineral oil and 40 kg aluminium heat sinks are a perfect combination: 73 cores and a Titan X, Twenty Thousand Leagues Under the Oil

Link to comment
https://linustechtips.com/topic/372814-c-good-for-noobs/#findComment-5044618
Share on other sites

Link to post
Share on other sites

from my experience, it helps to have some programming knowledge before trying C++.

 

Ruby, VB, FreeBasic or Python may be a good place to start.

 

But it really does depend on what you want to code

 

What do you want to programm? Website, programms like games, emedded system, microcontrollers.... ?

This will require different languages.

KK thx, im just lokking for a common language to start, i admit it, imma noob in the programming world :P

Link to comment
https://linustechtips.com/topic/372814-c-good-for-noobs/#findComment-5044669
Share on other sites

Link to post
Share on other sites

KK thx, im just lokking for a common language to start, i admit it, imma noob in the programming world :P

There is no "common" language.

- For embedded systems / microcontrollers C or C++ is often used.

- For high level systems Java is preferred....

 

When you mastered you language, what do you want to do with it?

Mineral oil and 40 kg aluminium heat sinks are a perfect combination: 73 cores and a Titan X, Twenty Thousand Leagues Under the Oil

Link to comment
https://linustechtips.com/topic/372814-c-good-for-noobs/#findComment-5044703
Share on other sites

Link to post
Share on other sites

 I would recommend getting the basics of programming in a easier higher level language like python then move to C++.

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to comment
https://linustechtips.com/topic/372814-c-good-for-noobs/#findComment-5045771
Share on other sites

Link to post
Share on other sites

C++ is very easy to learn, at my study we used a book called: Starting out with c++

 

i would not reccomend youtube videos as they take too long and often are missing important info.

 

We have been programming microcontrollers, as C++ is a low api and is used to performe tasks peformed in realtime. 

 

I guess C++ is going to be very similar to googles new api, also it is going to be similar to huaweis new api for home automation. 

Link to comment
https://linustechtips.com/topic/372814-c-good-for-noobs/#findComment-5045796
Share on other sites

Link to post
Share on other sites

C++ is plenty easy to learn, but you need to know the order by which to approach various aspects of the language. Go through functional programming using your standard loops and conditionals before jumping into use of the standard library, and build monolithic code files until you start getting intricate. At that point, break it down into objects and learn your object oriented basics. Then when you get a handle on how to do that with defined types, take a good 3-5 weeks (not remotely joking) to learn generics, templates, virtual functions, and inheritance (C++ has multiple inheritance, so it will take extra time to REALLY learn it)

 

Then get into pointers, references, copy constructors, move constructors, and operator overloading. Then go for data structure concepts and the correct uses for "new", "delete", and "delete[]" (which is pretty much never use these unless it's absolutely required. A good C++ programmer should almost never need to use those keywords). At this point you can learn math libraries and vectorization using CilkPlus, learn multithread concepts using C++ native threads, getting environment variables/interacting with the OS directly, using a multithreading library such as OpenMP, or go into networking and whatever else.

 

C++ is no more difficult a language than Java. It just has so many moving pieces which are fully independent even the best programmers get daunted and lost. It's not hard. It's just huge.

Software Engineer for Suncorp (Australia), Computer Tech Enthusiast, Miami University Graduate, Nerd

Link to comment
https://linustechtips.com/topic/372814-c-good-for-noobs/#findComment-5049217
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×