EvilZone

Programming and Scripting => C - C++ => : Traitor4000 November 06, 2013, 03:18:21 AM

: Trying to Learn C
: Traitor4000 November 06, 2013, 03:18:21 AM
Ok so I have been learning C from a book called C A Modern Approach however im having some trouble. I got up to Chapter 6 no problem but after that writing these small pointless programs got a little boring actually really boring. I have literally taken an unhealthy two week break. So... how do you get motivated to push through and do those exercises and projects?
: Re: Trying to Learn C
: ArkPhaze November 06, 2013, 03:53:58 AM
You can't just read a book, write the code they ask you to write, and learn C, or any programming language that way for that matter. You'd get tired of it, as you are now, and that is, or would be normal for most people. You have to try experimenting with the concepts on your own. Try creating interesting things with the concepts you learned, then move to the next project within that book perhaps. That book isn't going to teach you everything about C, so I don't see any harm in using external resources and experimenting while you're going through that book.
: Re: Trying to Learn C
: rasenove November 06, 2013, 05:09:22 AM
It is common that people start getting bored of the little programs they make for educational purposes. But in future you'll be writing these small programs and use them together to create something useful. Now, what can get you're motivation going again? Well, try http://www.cprogramming.com/cgi-bin/source/source.cgi this has some games some projects lots of functions etc source code of C & C++ . Try to really go through them and understand each line of code. If you don't understand something, Google it, still don't get it? ask here. This should inspire you to get back to you're studies.
Apart from that, search for more source codes and lurk around some blogs to finde something interesting.
Good luck.
: Re: Trying to Learn C
: I_Learning_I November 06, 2013, 02:37:57 PM
I have to say I never got bored, but then again I never learn a language just to know it, I believe in learning what you want, either because you're curious or because you need to or want to or any other reason you might have.
So every time I was learning a new language I was constantly comparing it to other languages, or I would actually want to make something using that language, so I never really got to be bored.

Whenever I was bored of coding because it started being too "repetitive" I would just check other stuff I could do with it (learn the next step or pick the step you just learned and take it to a new level, implementing it into something bigger) or code in another language.

I guess it depends on why you're learning it, why are you?
: Re: Trying to Learn C
: Raavgo November 06, 2013, 03:13:17 PM
I know it is hard to learn a new coding language if you don't have tasks to use this particular coding language.
There is a Coding challenge here, where you get points for your source code:http://coderbyte.com/CodingArea/Challenges/ (http://coderbyte.com/CodingArea/Challenges/)
You can choose the language you want to code in and you can code directly on the website.
: Re: Trying to Learn C
: Xires November 06, 2013, 04:25:09 PM
ArkPhaze is absolutely right.  A book alone, or even a set of books, will not teach you everything about C.  And whilst you could learn some of the syntax and commonly used pieces of the standard library, you're unlikely to learn to put them together in creative ways from the book itself.  You need to experiment.  In the same manner, educational facilities never teach programming adequately; the assumption is that you're passionate enough about it to experiment & learn on your own.
: Re: Trying to Learn C
: ArkPhaze November 07, 2013, 12:51:42 AM
Something that I think you may enjoy, is trying out some Project Euler questions. Write some solutions to those problems in C. Even try some other challenges out there like past Google CodeJam programming questions perhaps.