• Considering C++ as a hobby...
    79 replies, posted
I'm not aiming to be a mega game designer or anything, I just kinda want to play around with it. I've messed around a tiny bit in C#, and it was interesting to me to create things from code, so I wanted to give C++ a shot. By "hobby", I mean I don't want to have to go out and buy books and stuff. If anyone could help point to some online tutorials, and maybe where to start with playing around with it?
From some first-hand experience, and some reports from friends, I can offer you this, as a good place to start: [url]http://www.cplusplus.com/[/url]
If you don't want any books and just want to look around you won't learn C++.. you're better off learning C#
Python or C, depending on how patient you are. But seriously, I'm not trying to deter you from learning C++, I just figured that if efeX was going to turn this into a language war my two should be represented.
I found that [url=http://learncpp.com]this[/url] was really helpful for me. *lurks back into the shadows*
[QUOTE=Whitewater;24723897]I found that [url=http://learncpp.com]this[/url] was really helpful for me. *lurks back into the shadows*[/QUOTE] Thats the site I recommend. Their tutorials are really well written.
Any place recommended for reference? I've got [url]http://www.cplusplus.com/[/url] but not sure if there are any better ones.
[QUOTE=Pepin;24726074]Any place recommended for reference? I've got [url]http://www.cplusplus.com/[/url] but not sure if there are any better ones.[/QUOTE] That's probably the best online reference there is. The onlly one that could be better would probably be [url=http://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Language]The C++ Programming Language -book[/url]
[QUOTE=efeX;24722301]If you don't want any books and just want to look around you won't learn C++.. you're better off learning C#[/QUOTE] That is certainly not true as it is the way I learned C++.
As a programmer who has studied lots of C++, I do not consider it a hobby. It's really not as fun as Python or Lua or Perl or even some awful specialized BASIC variant for games. If you have a need for the fine control that C++ gives you, then it becomes a necessity. Some people love it though.
[QUOTE=Spoco;24729585]That is certainly not true as it is the way I learned C++.[/QUOTE] You're just not gonna know as much as someone who takes the time to read proper in-depth references about C++. (Unless you spend a LOT of time on the internet, but that'd just be a waste of time compared to reading a proper book containing all the info in one place) But sure, your hello world will compile and probably not segfault.
[QUOTE=gparent;24730149]But sure, your hello world will compile and probably not segfault.[/QUOTE] Completely undermining the power of the Internet. Most of a programming language is the syntax. The rest is just a whole lot of logic. I'd consider myself proficient in C++ and I've never boughten a book. Books aren't for everyone. I spent $40 on a book to learn Objective-C. Haven't had the slightest incentive to pick it up. Especially since most books act like "OHMYGODTHISISYOURFIRSTLANGUAGEANDYOUHAVENOLOGICALREASONINGORMATHETMATICSKILLSATALL"
Learning from the Internet might take longer, but at least you will be learning from more than one/few authors, which you can't say about books. And up-to-date stuff, that you'd have to buy a new edition of a book for.
Don't listen to gparent. That looks like a pretty damn good tutorial. It points out that arrays are syntactic sugar for pointer arithmetic and covers a number of topics that most C++ books pretty much skip.
[QUOTE=<ToD> Aaron;24735425]Completely undermining the power of the Internet. Most of a programming language is the syntax. The rest is just a whole lot of logic.[/QUOTE] I mean if you want to have a deep understanding of the language. Sure if you just want your program to compile and work, you can find everything you need from the internet. That's how I started too. But I got wayyyy better after reading a few books. [QUOTE=ROBO_DONUT;24736065]Don't listen to gparent. That looks like a pretty damn good tutorial.[/QUOTE] Don't listen to ROBO_DONUT. I never said the tutorial was bad, I don't know where he pulled that out of.
Could you recommend a good C++ book that goes pretty in depth?
[QUOTE=Pepin;24745451]Could you recommend a good C++ book that goes pretty in depth?[/QUOTE] ditto please I am starting C++ this year on my game dev course...
My first indepth book was Effective C++ by Scott Meyers. It analyzed some common pitfalls of different areas of C++, and explained nicely some confusing concepts about OOP. There's also a great chapter about public / protected / private inheritance. Second one was Effective STL, which goes into good detail about how to use the STL part of the standard library efficiently and correctly. I'm looking for my next one to read right now, and I should start a practice project to revise.
[QUOTE=gparent;24746640]My first indepth book was Effective C++ by Scott Meyers. It analyzed some common pitfalls of different areas of C++, and explained nicely some confusing concepts about OOP. There's also a great chapter about public / protected / private inheritance. Second one was Effective STL, which goes into good detail about how to use the STL part of the standard library efficiently and correctly. I'm looking for my next one to read right now, and I should start a practice project to revise.[/QUOTE] Effective C++ is an absolutely fantastic book. However, I would warn you away from it until you have a basic grasp of C++, as it pretty much assumes you know the concepts.
[QUOTE=Whitewater;24746685]Effective C++ is an absolutely fantastic book. However, I would warn you away from it until you have a basic grasp of C++, as it pretty much assumes you know the concepts.[/QUOTE] Yep, it is definitely not a learning book but rather an intermediate to advanced book for people with some decent C++ knowledge.
I myself have been reading, [url]http://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Language[/url] Though I have been learning a lot from that I do find myself knowing things for no reason in a instant.
[QUOTE=Spoco;24729585]That is certainly not true as it is the way I learned C++.[/QUOTE] Define "learned" C++. How much do you know?
I find video tutorials a great help when it comes to learning any language, although for the more advanced techniques you'd probably need a book or good tutorial. [url]http://xoax.net/comp/cpp/console/[/url]
I'd also recommend [url=http://www.amazon.com/Common-Knowledge-Essential-Intermediate-Programming/dp/0321321928]C++ Common Knowledge[/url] as a good intermediate C++ book. It doesn't teach the basics of the language, but it teaches how to write C++ [i]well[/i] once you know the basics. As a free web resource, there's the [url=http://www.parashift.com/c++-faq-lite/]C++ FAQ[/url], and an expanded [url=http://www.amazon.com/FAQs-2nd-Marshall-P-Cline/dp/0201309831]book version[/url] too.
[url]http://projecteuler.net/[/url] Is a great place to test your knowledge. There are over 200 problems that can be solved by using C++ or any other programming language. Feels really great when you manage to solve one problem.
[QUOTE=Swebonny;24757653]There are over 200 problems that can be solved by using C++ or any other programming language. [/QUOTE] Technically all Project Euler challenges can be done by hand, too, it just... Is a little hard. :smile:
[QUOTE=efeX;24750025]Define "learned" C++. How much do you know?[/QUOTE] How do I tell you that? I don't exactly have a portfolio to show to you. I've been using it for over 5 years for various projects for my own purposes (though I rarely get ideas for these projects). I'd say I know more than one can possibly learn from one book.
[url]http://www.ouwho.co.uk/eckel/index.html[/url] read Thinking in Cpp 2nd edition vol1&2
[QUOTE=esalaka;24759113]Technically all Project Euler challenges can be done by hand, too, it just... Is a little hard. :smile:[/QUOTE] That's because english is turing complete :science: [editline]10:48PM[/editline] [QUOTE=G71tc4;24720773]I'm not aiming to be a mega game designer[/QUOTE] All good game devs program as a hobby as well - you simply don't pick up the knowledge and skills that you need unless you have an active interest in the subject.
if (youtubechannel != thenewboston){ cout << "find an online book"; } else { cout << "picky..."; } happy..?
Sorry, you need to Log In to post a reply to this thread.