New to programming: newbie ??'s

This is a discussion on New to programming: newbie ??'s within the C Programming forums, part of the General Programming Boards category; Hello all! First, I'd like to say what a great website this is! LOTS of very helpful information! I'd like ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    1

    New to programming: newbie ??'s

    Hello all!
    First, I'd like to say what a great website this is! LOTS of very helpful information! I'd like to ask all you experienced programmers out there a few questions.( if you don't mind).

    I'm currently in a C programming class and am doing very well. We're learning flow control and that kind of newbie stuff. My question is: What are some good ways to learn how to code effectively? Is it all book knowledge? hands-on experience? or both? I plan on making a career out of programming and I'm just looking for advice. Should you have a very good backround of C before taking C++? What are the main differences between the two?
    I appreciate ANY feedback or just a "hello"!

    Thanks again,
    Nathan =)

  2. #2
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,161
    Naturally it's both. Books to expand your knowledge. Hands-on to solidify that knowledge.

    Come up with small programs outside of your class that help you understand the topics discussed so far. As you learn more, rewrite what you did earlier with the new information and techniques. That way you can see how to use different techniques to do the same job, and which are cleaner/easier solutions.

    Don't be afraid to "reinvent the wheel", or write code that already exists, to understand how these work. For example, it's easy to compare two strings by calling the function strcmp(), but to understand how strcmp() works, write your own version of it.

    Most of all, have fun!
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    19
    C++ makes it easier to follow use a programming paradigm called "object oriented programming". C++ is a super-set of C, which means (almost) all C features work exactly the same way. So yes, you should learn C pretty well first.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    I disagree with vikas.

    There is a subset of C++ that is very much like C in code (close enough that you can compile most C programs as C++), but the important thing is not syntax, it is style. C is a strict procedural language. If you learn it well, you'll get into the habit of a C coding style. When you then move on to C++ this habit will make you write bad C++ code, since C++ code is more about classes and maybe templates.

    So you can learn basic C, but if you plan to use mainly C++ you should move on to this language before you are too much in to C style.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    14
    A quick piece of advise.

    In order to be a great programmer you should be
    able to take real life tasks, and be able to map
    them out ... doesn't have to be in a specific
    progamming language.

    After you are done, you should be able to apply
    your definitions to any programming language
    that you are used to.

    I hope that this piece of quick of advise helped you.

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    hello



















    jk
    learn from the books as much as you can then experiment with what you learn to help you burn the information into your brain. many people disagree with me, but i know from experience that its easier to learn C first before you tackle C++. when you learn C, you can understand everything(not everything but at least the concept) that goes on behind the standard functions and such. when you learn C++ however, you have no clue what happens behind the cout<< before you learn how to define operators and classes and such.

  7. #7
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    > What are some good ways to learn how to code effectively? Is
    > it all book knowledge? hands-on experience? or both?

    Learn from books, do programming projects and read code from others.

    Here you will find a lot of open source projects. A lot of projects probably require a bit more understanding of C than the newbie level, but it is never wrong to take a look at it and try to understand what is going on.
    http://sourceforge.net/

    > Should you have a very good backround of C before taking
    > C++? What are the main differences between the two?

    You don't need to know C before learning C++. The two are different programming languages and can be learned indpendently from each other. The main differences are the ways of programming. C++ has a lot of elements supporting the object oriented way of programming, C was meant to support the procedural way of programming.

    Note that in C++ it is possible to do the procedural way of programming and in C it is possible to do the object oriented way of programming. A way of programming is just a way of thinking and in basic language independent. However some languages support a certain way of programming better than others.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newbie: array question :(
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-09-2008, 07:46 AM
  2. getting to grips with allegro and ms vc++ (newbie)
    By jimjamjahaa in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2005, 07:49 PM
  3. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 12:53 PM
  4. Newbie Programmer
    By Extropian in forum C++ Programming
    Replies: 3
    Last Post: 05-18-2004, 02:17 PM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 03:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21