Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: C Programming Beginners Questions

  1. #1
    thunderclap82 is offline Newbie
    Join Date
    Jul 2009
    Location
    Chicago
    Posts
    3
    Rep Power
    0

    C Programming Beginners Questions

    First a little back story, but I promise I will get to my questions.

    Like many people I've become more and more interested in the possibilities of programming for the iPhone. I have always wanted to learn programming, and I even studied it briefly my first year of college, but then I got sidetracked with another career path. Ten years later I'm ready to dig in and really try to learn C.

    I'm primarily a Mac user and plan to learn and develop my programs on Mac, but I do use Windows on a daily basis and do like it, especially the prospect of Windows 7.

    Anyway, here is my thought process for learning programming. I know there are a variety of languages that can be learned but, again, my first goal is to design apps and games for the iPhone. Researching iPhone app development it says to program in Objective-C. In researching Objective-C it says it's best to know C first. So I have picked up Learning C on the Mac. From there I plan to go to Learning Objective-C on the Mac, and then finally Beginning iPhone 3 Development: Exploring the iPhone SDK. (It also seems most languages derive from C, sort of like many spoken languages derive from Latin, so it seemed that C was the best choice.)

    This is fine for iPhone and Mac development but when I start preparing to program games I really want to do something that's cross platform. Again, here it seems C is a wise choice for the foundation of the program but I realize re-programming for Windows specifically will be necessary.

    Then I started hearing about SDL development which many cross platform developers seem to swear by. So now I'm thinking I should learn C as planned, then SDL and then look into more specific C programming for Windows. Does this make the most sense? What do you recommend? I know that this is very ambitious for someone who has never programmed, but I'm very determined to succeed in this.

    I appreciate any thoughts you may have.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,525
    Blog Entries
    75
    Rep Power
    144

    Re: C Programming Beginners Questions

    Personally, I would skip C and go to C++ if you want to do cross-platform development, especially with games. For iPhone, I would go straight to Objective-C.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    thunderclap82 is offline Newbie
    Join Date
    Jul 2009
    Location
    Chicago
    Posts
    3
    Rep Power
    0

    Re: C Programming Beginners Questions

    Quote Originally Posted by WingedPanther View Post
    Personally, I would skip C and go to C++ if you want to do cross-platform development, especially with games. For iPhone, I would go straight to Objective-C.
    I'm curious why you recommend skipping C. It is my understanding that C++ and Objective-C are both based on C, and it is easier to pick up these languages after understanding C. And why C++ over SDL for cross platform development?

  5. #4
    Mathematix is offline Programmer
    Join Date
    Jun 2009
    Posts
    112
    Rep Power
    0

    Re: C Programming Beginners Questions

    Quote Originally Posted by thunderclap82 View Post
    Then I started hearing about SDL development which many cross platform developers seem to swear by. So now I'm thinking I should learn C as planned, then SDL and then look into more specific C programming for Windows. Does this make the most sense? What do you recommend? I know that this is very ambitious for someone who has never programmed, but I'm very determined to succeed in this.

    I appreciate any thoughts you may have.
    This sounds like a plan to me. You will be learning C, which you cannot possibly go wrong with, the using SDL for your Windows based stuff that would further teach you C in a real-world context.

    Good luck!

  6. #5
    jwxie518's Avatar
    jwxie518 is offline Speaks fluent binary
    Join Date
    Jan 2009
    Location
    New York City
    Posts
    1,175
    Blog Entries
    1
    Rep Power
    19

    Re: C Programming Beginners Questions

    I heard the old saying that unless you want to write an operating system on your own, then C is the way to go. I don't know how true it is but C has been a question to many people as you may search the forum. Many replies and many respond to rather or not should someone skip C.

    You are not like me who has years to spend on learn programming language (I am only 18). I could spend the next 5 years to finish C++, Java, C, Python, and a few others if I choose to. It seems like you are a working person. But let see what Panther has to say about his comment. Mathematix is right too. These two guys are the real MAN, they know what they are talking about. They helped me a lot on the forum.

    xDDDD sorry I am a beginner C++. Just my 2 cents.
    http://i3physics.com/blog
    *-*-*-*__ C++ revolutionized the modern programming language, but what happen to C+? Programming is just a study of chemistry __*-*-*-*

  7. #6
    Join Date
    Jul 2006
    Posts
    16,525
    Blog Entries
    75
    Rep Power
    144

    Re: C Programming Beginners Questions

    Quote Originally Posted by thunderclap82 View Post
    I'm curious why you recommend skipping C. It is my understanding that C++ and Objective-C are both based on C, and it is easier to pick up these languages after understanding C. And why C++ over SDL for cross platform development?
    SDL is just a library. You can use it with C++ or C.

    My experience is that to move from C to C++, you have to unlearn a lot of C habits that are considered bad practices in C++. It's easier to just start with C++ and pick up the C tidbits you need along the way. I also find C++ code much easier to create/understand, since it gives me far more options for how to create code.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  8. #7
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: C Programming Beginners Questions

    C before C++ was discussed quite thoroughly here: C necessary before C++?

    Objective C is a smaller step from C than C++ is, so you might want to take that into account when viewing the thread.
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  9. #8
    Mathematix is offline Programmer
    Join Date
    Jun 2009
    Posts
    112
    Rep Power
    0

    Re: C Programming Beginners Questions

    Quote Originally Posted by WingedPanther View Post
    Personally, I would skip C and go to C++ if you want to do cross-platform development, especially with games. ...
    With all due respect, I very strongly disagree with this from personal experience.

    With cross-platform game development we do a lot of low-level code that has little to no requirement for C++ but makes C an absolutely essential language. When writing low-level code you have no need for higher level constructs like the STL, and when strings are handled, the 'string' class/wrapper is actually a big hindrance for a variety of reasons.

    When C++ becomes useful is when we wish to make use of specific OO properties that it offers.

    Particularly for games, knowing C is an essential skill.

  10. #9
    thunderclap82 is offline Newbie
    Join Date
    Jul 2009
    Location
    Chicago
    Posts
    3
    Rep Power
    0

    Re: C Programming Beginners Questions

    Thank you to everyone who weighed in. I appreciate the input. Since I posted my original question one big change has happened: I'm moving back to Windows as my primary OS from Mac (I'm building a Hackintosh). Because of this and the advice posted here I am forgoing learning C and jumping into C++ on Windows instead of Mac. Then I'll move to Objective-C. This seems like a better method over the one I originally laid out.

    I appreciate all the information and support. Thanks again!

  11. #10
    Mathematix is offline Programmer
    Join Date
    Jun 2009
    Posts
    112
    Rep Power
    0

    Re: C Programming Beginners Questions

    Quote Originally Posted by thunderclap82 View Post
    ... Because of this and the advice posted here I am forgoing learning C and jumping into C++ ...
    Bad move. Good luck!

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 09-24-2011, 12:03 AM
  2. Programming Questions
    By brownhead in forum C and C++
    Replies: 2
    Last Post: 02-12-2011, 07:09 AM
  3. Programming Projects for Beginners
    By ahmed in forum C and C++
    Replies: 4
    Last Post: 01-03-2009, 10:35 PM
  4. Programming Language for Beginners
    By SBN in forum General Programming
    Replies: 10
    Last Post: 12-11-2007, 10:40 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts