Thread: When you started learning programming...

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    46

    When you started learning programming...

    ...when did you go from doing simple console applications to learning about GUI stuff?

    I'm really interested in learning this, just need some smart people to guide me in the right direction.

    Should I wait until I have decent understanding of C++ before worring about the graphics stuff. I have a tendency to eat before the food is cooked so to say. :P

    I have really been enjoying this forum. Thanks all.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by tabl3six
    When you started learning programming...

    ...when did you go from doing simple console applications to learning about GUI stuff?
    I err... really got started with programming when I started learning PHP, so it was kind of like immediately since the GUI would be the webpages in HTML and CSS.

    Quote Originally Posted by tabl3six
    Should I wait until I have decent understanding of C++ before worring about the graphics stuff.
    "Decent" is subjective, but yes.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Doing graphics or gui stuff in C/C++ involves some pretty complex APIs. Those are much much easier to understand if you have a "decent" grasp of the language and some practical experience with its use. I'd say at a minimum, wrt C++, you are going to want to be comfortable with types, pointers, classes, the common STL containers, and probably templates.

    That's a plenty decent amount of material . You'd have to actually complete a decent C++ intro book, all 13 chapters and 350 pages or whatever. Honestly. It's an interesting trip too. A few months if you work at it. Then you'll be ready to take a crack at the GUI stuff.
    Last edited by MK27; 08-10-2011 at 01:26 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    ...when did you go from doing simple console applications to learning about GUI stuff?
    I went from simple console applications to not simple console applications. GUI stuff isn't a requirement; it really depends on where your interests lie. My interests, for example, are on the back-end rather than the front-end.

    Should I wait until I have decent understanding of C++ before worring about the graphics stuff.
    You don't have to, but it's a good idea to avoid being frustrated by both the language and the new concepts/GUI library.
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    HOLY CRAP! Prelude is back! *yay*
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  6. #6
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Prelude View Post
    I went from simple console applications to not simple console applications. GUI stuff isn't a requirement; it really depends on where your interests lie. My interests, for example, are on the back-end rather than the front-end.
    Ditto. I've found GUI programming to be particularly boring. Even if you can use a nice editor (Qt Designer, Win Rc Editor, etc).

    Ironically though, I initially got into programming, _only_ because I wanted to make video games. Well, years later and that has really turned around.
    That being said, don't rush yourself. Enjoy your temporary GUI-less innocence while you still can

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by tabl3six View Post
    ...when did you go from doing simple console applications to learning about GUI stuff?

    I'm really interested in learning this, just need some smart people to guide me in the right direction.

    Should I wait until I have decent understanding of C++ before worring about the graphics stuff. I have a tendency to eat before the food is cooked so to say. :P

    I have really been enjoying this forum. Thanks all.
    Typical of me, I learned C while learning WinAPI coding... I'd never written a console program until I joined this forum last year....

  8. #8
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    For me it's been several decades and I have not programmed a GUI interface, if you don't count text based menus. Most of my work has been on embedded systems with at most a 4 x 20 LCD screen.

    Jim

  9. #9
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    There was no GUI when I started programming. I had to wait another decade.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by jimblumberg View Post
    For me it's been several decades and I have not programmed a GUI interface, if you don't count text based menus. Most of my work has been on embedded systems with at most a 4 x 20 LCD screen.

    Jim
    My condolences...

  11. #11
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Mario F. View Post
    There was no GUI when I started programming. I had to wait another decade.
    Yeah, same here... started off on CP/M with GWBasic and Bascom... Moved to Turbo Basic on DOS, then Pascal on Dos, Pascal on Windows and now C almost everywhere... been quite the journey.

  12. #12
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by tabl3six View Post
    Should I wait until I have decent understanding of C++ before worring about the graphics stuff. I have a tendency to eat before the food is cooked so to say. :P
    Quote Originally Posted by MK27 View Post
    I'd say at a minimum, wrt C++, you are going to want to be comfortable with types, pointers, classes, the common STL containers, and probably templates.
    I am going to second MK27. Although it is technically possible to learn both at the same time, specifically with C++, you will have a more enjoyable time if you understand and are comfortable with C++ first. Most of the libraries that you will be dealing with to implement GUIs in C++ make extensive uses of classes and the other finer points of the C++ language.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  13. #13
    Registered User muffinman8641's Avatar
    Join Date
    Feb 2011
    Location
    Eastern-Central PA
    Posts
    76
    I tried things like Allegro and C++ guis, but Microsoft Visual C# 2010 Express turned out to be the best tool for making visual things like games and fonts and pictures and fancy things like that. A good book on this is THIS one, except maybe the 4.0 version. I have the 3.0 one and it works ok but there are a few changes.

  14. #14
    Registered User
    Join Date
    Jul 2010
    Posts
    86
    I've been doing c++ for a little bit, and I've just begun dabbling with QT (which, having shopped around, I think is a great start for beginning to learn GUIs after C++--assuming you are you using the C++ flavor). I think you should definitely get your hands dirty, really put some hours into C++ console applications before you get into GUIs. Underneath the hood you are still going to have to have some nice "regular" code anyways. I think of the normal C++ code as the engine and the GUI framework as your car's look or body. My two cents.

  15. #15
    Registered User
    Join Date
    Jun 2011
    Posts
    46
    Thanks for the advice. Guess I'll take it slow and stick with the console apps for now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just started learning...
    By Ignoramus in forum C++ Programming
    Replies: 6
    Last Post: 12-07-2009, 11:08 PM
  2. My learning proccess started
    By vishnukumar in forum C Programming
    Replies: 6
    Last Post: 10-03-2009, 03:10 AM
  3. Hello, I just started learning C
    By Pupp3t Master in forum C Programming
    Replies: 2
    Last Post: 02-12-2009, 08:00 AM
  4. Just started learning C++
    By Matt51723 in forum C++ Programming
    Replies: 9
    Last Post: 12-20-2007, 01:20 AM
  5. Zero background in programming.Started learning C.
    By abhim25 in forum C Programming
    Replies: 6
    Last Post: 04-23-2006, 04:59 PM