Welcome, Guest. Please login or register.

Author Topic: two beginners programming book, which to learn?  (Read 3791 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Ni72ousTopic starter

  • Sr. Member
  • ****
  • Join Date: Feb 2003
  • Posts: 406
    • Show only replies by Ni72ous
two beginners programming book, which to learn?
« on: September 29, 2004, 06:43:24 PM »
Right i have a biginners c book and a biginners c++ book, what do you think i should use, i only want to stick with one language at the moment.
Ni72ous
 

Offline adolescent

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 3056
    • Show only replies by adolescent
Re: two beginners programming book, which to learn?
« Reply #1 on: September 29, 2004, 06:48:37 PM »
Read the C book first, then you'll be in love with C++ because of it's improvements.  (and it'll be a breeze because there isn't a whole lot of differences).
Time to move on.  Bye Amiga.org.  :(
 

Offline BigBenAussie

  • Sr. Member
  • ****
  • Join Date: Feb 2004
  • Posts: 313
    • Show only replies by BigBenAussie
Re: two beginners programming book, which to learn?
« Reply #2 on: September 29, 2004, 07:18:43 PM »
Based on your question, I just wanted to make sure you realise that knowing how to program in either of those languages does not mean you'll immediately be able to program something for the Amiga platform. But its a good start.

If you haven't realised, there's more to it than the programming language. You'll need to learn about the Amiga Application Programming Interface(API) and there are different flavours to consider as well. Not to mention details about the Amiga OS architecture.
 

Offline Jose

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Re: two beginners programming book, which to learn?
« Reply #3 on: September 29, 2004, 07:23:41 PM »
I have a pretty good C++ book that says that every good C++ programmer should be a good C programmer first.
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Ni72ousTopic starter

  • Sr. Member
  • ****
  • Join Date: Feb 2003
  • Posts: 406
    • Show only replies by Ni72ous
Re: two beginners programming book, which to learn?
« Reply #4 on: September 29, 2004, 10:03:43 PM »
@BigBenAussie

yup i got that, i understand there are many differences, i have both Amiga NDK and Windows SDK for the different platforms etc, its just the C++ book say no need to bother with C, should i do C or just go with C++?.
Ni72ous
 

Offline Ni72ousTopic starter

  • Sr. Member
  • ****
  • Join Date: Feb 2003
  • Posts: 406
    • Show only replies by Ni72ous
Re: two beginners programming book, which to learn?
« Reply #5 on: September 29, 2004, 10:06:16 PM »
@Jose

My book contradicts (Think thats how you spell it oO) that, it say no need to bother with C  :-x
Ni72ous
 

Offline Cyberus

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 5696
    • Show only replies by Cyberus
Re: two beginners programming book, which to learn?
« Reply #6 on: September 29, 2004, 10:22:18 PM »
When I learned C/C++ at university, we started with C and then moved onto C++ pretty quickly. This gave us a pretty good grounding in both.
I like Amigas
 

Offline Cymric

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1031
    • Show only replies by Cymric
Re: two beginners programming book, which to learn?
« Reply #7 on: September 29, 2004, 11:04:27 PM »
My advice would be 'it depends'. If your main goal is to learn how to use object-oriented languages, spend as little time as you can in the C-book and then move on to C++, or begin with C++ straight away. The problem is that both languages force a certain, but different way of problem solving on you. Either language supports the method of the other, but the result is never pretty. Writing OO-programs in C involves a heck of a lot of pointer wizardry; writing procedural programs in C++ inevitably abuses the OO-ness of the language, making it very hard to properly OO-ify the program later on.

While learning C++, you are faced with the aditional problem that almost no book teaches you how to properly design an OO-program. The syntaxis of C++ is not very difficult, but understanding the semantics requires a surprising amount of effort, much more than just working through the book on C++ itself. To use C++ effectively without shooting yourself in the foot (not with a big gun, at least) you require specialised literature. Despite its not-so-young age I recommend Cay Horstmann's Practical Object-Oriented Development in C++ and Java (Wiley, ISBN 0-471-14767-2) for the finer points. Read that along with your Teach Yourself C++, and you'll become a proficient OO-coder.

However, I am of the opinion that every C and C++ programmer should have torn out their hair at least once over a frustrating and exceedingly subtle pointer problem. You won't really start to appreciate languages which don't have pointers until you have had your nose rubbed in it.
Some people say that cats are sneaky, evil and cruel. True, and they have many other fine qualities as well.
 

Offline iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: two beginners programming book, which to learn?
« Reply #8 on: September 30, 2004, 12:29:33 AM »
Quote

NitrousB wrote:
Right i have a biginners c book and a biginners c++ book, what do you think i should use, i only want to stick with one language at the moment.

If you plan on doing something professional, or getting a job from programming, start with C++.

If your not sure that you want to be serious, try C. 'C' if you like it (Sorry, couldn't resist!), if so, then you might start in C++ later.

 

Offline Waccoon

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 1057
    • Show only replies by Waccoon
Re: two beginners programming book, which to learn?
« Reply #9 on: September 30, 2004, 02:21:26 AM »
Quote
I have a pretty good C++ book that says that every good C++ programmer should be a good C programmer first.

C++ is an enhanced C.  You really should be good at C before you move on to C++.  That way, you also better understand when to use it, and when NOT to use it.  OO programming has its drawbacks for many simple tasks, and OO programming only really shines with large, group projects.  Learning how to make good, structured programs resusable is a major step towards understanding OOP.

I'd recommend learning a bit about OS architecture, too.  C is about processing data, but if you know how the OS works, you may find there's already tools out there that do the job so you don't end up re-inventing everything.  I recommend this book for budding programmers, especially those that don't really know why Linux is so popular for servers:  UNIX Programming.  I just wish he didn't dump on Microsoft so much.  It's unprofessional.  He also mentions the Amiga in the book, but compares it more to OS/2, which I find a bit strange.  I used OS/2 for a few years, and while I liked it, I didn't find it Amiga-like at all.

Quote
While learning C++, you are faced with the aditional problem that almost no book teaches you how to properly design an OO-program.

Indeed, documentation is pretty poor.  I have the same problem with Perl books.  Why people still parse their own CGI data manually and use fully exposed regex statements instead of subroutines is beyond me.

That's one nice thing about Java.  The docuentation is excellent.  Too bad Java just works so poorly in practice.
 

Offline Cymric

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1031
    • Show only replies by Cymric
Re: two beginners programming book, which to learn?
« Reply #10 on: September 30, 2004, 09:41:56 AM »
Quote
Waccoon wrote:
C++ is an enhanced C. You really should be good at C before you move on to C++. That way, you also better understand when to use it, and when NOT to use it. OO programming has its drawbacks for many simple tasks, and OO programming only really shines with large, group projects. Learning how to make good, structured programs resusable is a major step towards understanding OOP.

Excellent point. Something was itching in the back of my mind when I wrote my first reply, and you put it to words.

@original poster:
So, what's it going to be? Which language are you going to learn first?
Some people say that cats are sneaky, evil and cruel. True, and they have many other fine qualities as well.
 

Offline nex4060

  • Full Member
  • ***
  • Join Date: Sep 2004
  • Posts: 238
    • Show only replies by nex4060
Re: two beginners programming book, which to learn?
« Reply #11 on: September 30, 2004, 10:21:05 AM »
I would learn C++ first! because then the object oriented part of the programming language will be a natural part for you.
If you can program C++ then C will be very easy.
That's the way I have learned C/C++ :-)

\\"Computer games don\\\'t affect kids; I mean if Pac-Man affected us as kids, we\\\'d all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music.\\"
- Kristian Wilson, Nintendo, Inc,1989  :lol:
 

Offline Ni72ousTopic starter

  • Sr. Member
  • ****
  • Join Date: Feb 2003
  • Posts: 406
    • Show only replies by Ni72ous
Re: two beginners programming book, which to learn?
« Reply #12 on: September 30, 2004, 11:35:42 AM »
Thanks for all your input, i think i will start with C++.
One thing before i start, someone suggested i read a book about Jackson structured programming if i learnt C, would this book be of any use whilst learning C++ or is it only useful for C programming?

Ni72ous
 

Offline nex4060

  • Full Member
  • ***
  • Join Date: Sep 2004
  • Posts: 238
    • Show only replies by nex4060
Re: two beginners programming book, which to learn?
« Reply #13 on: September 30, 2004, 11:54:25 AM »
I would start with a C++ book. Because the syntax is a bit different in C. If you want to get started fast then find a book called "C++ in 21days".
\\"Computer games don\\\'t affect kids; I mean if Pac-Man affected us as kids, we\\\'d all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music.\\"
- Kristian Wilson, Nintendo, Inc,1989  :lol: