• Advertisement
Sign in to follow this  

How much time do you need to finish a beginners book?

This topic is 1357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, I'm new to this site and i just started learning C++ through a book I'm reading 'Beginning C++ Through Game Programming' by Michael Dawson and I feel like I'm too slow...

 

I know a bit of java, html, and php (I made a basic website once) and after 2 weeks and I'm in chapter 6. Am i too slow? too fast?

 

And i read a lot about game programming (because thats what i want to do) they said as a beginner, stick to small project or games (because once you finish it, it is more rewarding than large projects and failing it) and I think tic-tac-toe is a small game but I'm just copying or typing the code (It's my first AI), i understand the code(except for the AI part) but if i want to remake it without looking at the book i don't think i can do it. Is it normal to know the code but can't remake it? I'm feeling kind of incompetent, the reviews of the book said it's easy and good for beginners.

 

I remade the Hangman on chapter 4 but i was looking at the pseudocode.

 

After running the game should i know the code without looking at the book?

How do you know if you're not a beginner anymore?

 

Sorry for having a lot of questions, I'm new to this, and all of those programming language I know is self thought so I don't know if I'm a beginner at those or not.

 

 

Share this post


Link to post
Share on other sites
Advertisement

Hopefully you're feeling a more re-assured about your pace.

If you feel as though you're just typing things in and not learning, try to think of a project that's not in the book but applies what you've covered so far. If you have to go back to the book to review how to use something, then do it. Until something becomes second nature, everybody returns to the book.

A few ideas for small projects that might be at your skill level:

 

A trading game (a buy low sell high sort of a thing).
Memory
Blackjack
 

Share this post


Link to post
Share on other sites

std::string str("This is a string");

std::cout << "The length of this string is" << str.length() << " characters."

Share this post


Link to post
Share on other sites


Make sure you do all of the exercises in your book
This. Resist that "Oh that's just too easy, I'll skip it" thought. It's tempting, but practice makes perfect-ish.

Share this post


Link to post
Share on other sites

Thank you for the replies, I just feel a bit overwhelmed and I don't know anyone else who's studying programming right now, my friends aren't serious, so I don't know if I'm doing good or if I'm having results.

 

Anyway thanks again, and I'll read the book again at my own pace and do paper coding with my own version of the examples.

Share this post


Link to post
Share on other sites
As a comparison a university course takes 4 months and on average covers half the content in a text book.

I'm not saying that's a good or bad pace, just that it is a common pace.

It all depends on the density and complexity of information in your particular book of course. C++ is also such a big topic that no single or even a dozen books could contain everything you need to know.

Learning to program is a life long commitment. It also requires an endless amount of practice. Never stop practicing.

Edit: Don't restrict yourself to examples from books. Experiment. Don't code because you feel you have to write x lines of code to get to the next stage. Consider what matters to you and write code for that. My coding practices tends to be silly little utilities that solve random tasks for me. Edited by orizvi

Share this post


Link to post
Share on other sites

I know a bit of java, html, and php (I made a basic website once) and after 2 weeks and I'm in chapter 6. Am i too slow? too fast?

 

Thorough study so you understand each step and travelling at your own pace is the ideal. If you follow this and do not unnecessarily repeat steps, then you are doing very well. Comparing to the pace of other people is not reliable in many ways. You will forget most of what you learn and need to return to those chapters anyhow, so don't worry about anything.  In reality, all programmers take years to make everything stick permanently in memory and to make all the endless relationship connections.  I've been at it a couple years and have a long way to go in declaring myself an expert.  By the way, added to this, some of what you are learning will be rarely used by you. Don't sweat it.

 

Work at your pace and be thorough.

Edited by 3Ddreamer

Share this post


Link to post
Share on other sites

I would say it really depends on you. C++ isn't the easiest of languages to get off the bat, and it can take quite a while to really master it as opposed to learning it. Even if you finish the book and learning how it works, it takes time and practice to really master it. It depends mainly on how quickly you grasp concepts. Frankly, whatever works for you is good. I wouldn't worry about whether you are going fast enough. Work on understanding the language rather than going through as fast as possible. So if you feel that you are understanding it, then that's great. Good luck with your endeavors, and I hope that this has helped! 

Share this post


Link to post
Share on other sites

The only thing you have to keep in mind when you read these kind of books is that they are teaching you the C++ language and really don't cover programming. This is how a lot of these books get people to buy them. I've met a lot of programmers online that have read that book, but had admitted to having no clue how to do the process of going from idea to finished product/project and had never heard of top-down or bottom-up. I've heard a lot say it is learned with experience, but IMO that is just brute forcing your way through and may either get overwhelmed or give up on an idea. Sadly, I don't know of any sites to recommend off-hand, but a book I've been recommended in the past and one that I've been planning to get is Bjarne Stroustrup's Programming: Principles and Practices Using C++ (new edition comes out next month). 

Edited by BHXSpecter

Share this post


Link to post
Share on other sites

The only thing you have to keep in mind when you read these kind of books is that they are teaching you the C++ language and really don't cover programming

 

This is so true. Any book that claims to teach you a particular programming language isn't really teaching you how to program. Its teaching you the syntax of that particular programming language along with some convenient examples. Maybe in a lot of cases this distinction doesn't really matter, but when you start working on larger and more complex projects or collaborating with other programmers, you'll start noticing that there is an entire set of terminology and problem solving techniques used which are far more generalized than just a particular language's syntax.

 

The gang of four's design pattern book is great example of such a book but there are many others. Once you're comfortable with the syntax of your chosen language, I would suggest reading the gang of four's design pattern book. It will really help you with managing complexity, which is an absolutely critical skill if you want to move beyond textbook examples and onto writing non-trivial code.

Edited by orizvi

Share this post


Link to post
Share on other sites


The gang of four's design pattern book is great example of such a book but there are many others. Once you're comfortable with the syntax of your chosen language, I would suggest reading the gang of four's design pattern book. It will really help you with managing complexity, which is an absolutely critical skill if you want to move beyond textbook examples and onto writing non-trivial code.

A related link, discussing various game programming patterns. Free, online.

http://gameprogrammingpatterns.com/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement