How do i learn how to code c++

how do i learn how to code c++

Attached: 1124948851.jpg (351x450, 41K)

Other urls found in this thread:

youtube.com/watch?v=4YosBh61waA
amazon.com/Elements-Programming-Alexander-Stepanov/dp/032163537X/ref=cm_cr_arp_d_product_top?ie=UTF8
twitter.com/SFWRedditVideos

Slowly and painfully. It's a long, long road. The most important thing is to not learn old stuff. I recommend stroustrups programming principles and practice, using c++.

Also you will need a reference

you dont
learn newer, better languages

Effective C++
More Effective C++
Effective Modern C++
Effective STL
Exceptional C++
More Exceptional C++

Come back when you're read those.

Attached: three.png (1047x517, 1.1M)

easily
youtube.com/watch?v=4YosBh61waA

There's a gajillion books and websites

you missed Essential C++

is that dr.disrespect in the middle?

become a cuck. it's the only way to get good at C++

Right

Who? It's Herb Sutter

>Originally published: 1992
>Originally published: 1992
>Actually modern
>Originally published: 2001
>Originally published: 2000
>Originally published: 2002

Is it really ok to recommend these books anymore? A lot has changed.

newly added features are mostly cosmetic

you must be stupid if you actually want to learn OOP

C++ is multi-paradigm, you don't need to use OOP.

In fact I wish C++ had a -betterC flag since D is pretty much dead. Adding in templates, RAII, modules, and a few other nice features to C would go a long way.

>He doesn't know who drdisrespect is.

Attached: 1536764714088.gif (350x263, 2.79M)

We still recommend K&R to people looking to learn C...

Originally published means nothing, look at when the latest editions were published.

Is it some rapper?

I believe is a James bond villain

chinesium at its finest

This is how you do it:
amazon.com/Elements-Programming-Alexander-Stepanov/dp/032163537X/ref=cm_cr_arp_d_product_top?ie=UTF8

Attached: stepanov.jpg (241x346, 9K)

All I ever hear about C++ is that you should avoid tutorials and books that still teach C++99 like the plague.

>We still recommend K&R to people looking to learn C...
Yeah, because learning C99 won't make you a bad C11 programmer, not to mention that C99 is still used for many things.

How do you know OOP is so bad if you've never learnt it?

>not knowing twitch streamers is bad
You can only post here if you're over 18.

if you already know another language, read a book or google for online shit
if you dont know how to program, learn another easier language first. if you start with c++ you will be wrestling with the language more than learning how to program

By starting somewhere very simple and then spending years practising. C++ has so many facets and ways of doing things, it's impossible to truly master.

zoomer

Not a single book by a black author, don't be such a bigot!

I think learning how to code in c++ or any language for that matter, is like learning how to write an essay.

Read a lot of code and think through only one piece of code at a time.
Don't leave any loose ends.

Don't divide your thought process between a bunch of things you haven't fully thought through.

Do take time off from programming when you're stuck, your mind is like a pinball machine -- sometimes it gets stuck in a thought loop.

Always ask yourself if you truly understand something.

Never just copy and paste code from a website, but be inspired by it.

When I mean inspired, I mean only use that programmer's thought process because it makes sense.

Write your thoughts in your own words.

Just reading a book doesn't make you a programmer; programmers read and write.

Remember that programs = data structures + algorithms.

K.I.S.S. (Keep it simple stupid.)

Bad programmers worry about code. Good programmers worry about data structures and their relationships.

Make a shitty solution. Iteratively make it better.

Programming = 80% modeling, 20% coding.

Is it fast enough? Does it fit the memory?

Attached: cropped-computer-wizard-clipart-5.gif (750x573, 28K)

nu4chan

based.

Attached: Thundercat_outfit_zpsmm2x0qkx.jpg (490x734, 58K)

wise post
knowing a programming language and knowing how to program are two different things and the latter is far more important.

Here's a few more.

Algorithm = Fancy word for procedure.

Algorithm: method for solving a problem.

Data Structure: method for storing information.

Premature optimization is the root of all evil.

Comment your code no matter how simple it seems, but keep it brief.

Don't use magic numbers -- these are numbers variable.

Take criticism gracefully, even the smallest thing like naming a variable differently so the program is more legible.

Make your variables meaningful. Not something like "int a = 3;". What is a in the first place?

Don't use a fancy method that no one can follow. Making the program more convoluted makes it harder to debug. (KISS)

Most of the books revolving around computer science are used for reference, don't read them like novels.
(Example: Introduction to Algorithms)

Attached: png;base648df2123e44d2015d.png (331x362, 52K)

* Don't use magic numbers -- these have no meaning to the reader.

Clearly nobody cares who he is, whoever he is.

Fuck you.

this class of question needs to be removed by the mods

C++ is shit, learn C.

back to >>>/reddit/