Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
What helped me finally grasp how pointers work was writing an implementation of a linked list. Then it finally clicked for me, so my advice would be to write something functional that need/uses pointers.
-
perotti7877y@Pavr what confuses me is the implementation of classes in STL. What I find hardest to grasp is separation of algorithms from data structures, which doesn't happen when you are working with business logic models; thus making this piece of code confusing as fuck to me.
Also: streams.
Also: JS and python background. -
perotti7877y@teganburns the point is to discover all the facets there are to c++ not make it 100% optimized. Keyword here "learning"
Thanks for the heads-up though -
perotti7877y@teganburns Since you replied, I take you are most capable of reading. Though I should refrain from asserting it to be true, kiss[3].
-
I would suggest making a small project with C++, like a mini game or a raytracer. That really helps solidify concepts. Also read a lot of C++ code to see how others use it.
This might help: http://lazyfoo.net/tutorials/SDL/
The problem is that C++ is basically three languages in one: the C-style base with pointers and stuff, the object oriented part, and templates. Learning it in that order is a good thing because it's sorted by increasing complexity (no point doing template metaprogramming if you don't get method overriding or something).
Also, as @teganburns said, C++ can have hideously complicated ways of doing simple stuff. There's usually a much better way. -
deepgoel7447yIf u r a beginner then I would recommend you to refrain learning STL as of now. Try learning basic syntax and basic oops concepts.
Once you master the syntax and oops u can easily switch to STL
ATB 👍 -
Don't learn C++ from TC++PL. It's not Bjarne's book for learning C++. It's meant to be a reference guide for people who already have a hold on C++. Instead, read his "Programming: Principles and Practice Using C++".
-
C++ syntax is the fugliest I've ever seen.
How can someone enjoy programming in such a horrible- looking language. -
@Chlodovechus funny thing about languages with rigid and elaborate syntax - it makes the code much easier to read. Say, take the "ugly" C++ and Erlang, vs. the "beautiful" Haskell and Python. I've dealt with large, well written codebases in all four languages, and I felt that C++ and Erlang code was much, much easier to read. All the extra dots and commas and semicolons really help increasing readability.
Note: I love all four languages. And their respective syntax. -
The book that really helped me grasp pointers was the "C Puzzle book"
https://books.google.co.in/books/...
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
dfox7If you're not learning anything new at your job it's probably time to move on.
dev
Learning C++ from God himself (stroutstrup's book)
Am hella confused how it works still
rant
damn classes
learning
c++