C / Unix/ GCC

This is a discussion on C / Unix/ GCC within the C Programming forums, part of the General Programming Boards category; Hey, I'm brand new to these forums and kinda really new to programming. I was wondering if any higher level ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    5

    C / Unix/ GCC

    Hey,

    I'm brand new to these forums and kinda really new to programming. I was wondering if any higher level programmer was looking to help tutor or teach me some programming techniques and styles.

    aim: vCuRee

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    No offence but this sort of sounds like Dilbert: "Teach me how to be an engineer, I don't care if it takes all day!".
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    5
    Quote Originally Posted by claudiu View Post
    No offence but this sort of sounds like Dilbert: "Teach me how to be an engineer, I don't care if it takes all day!".
    Nah its not like that at all. Im currently enrolled in computer information science classes. I have a bunch of problems and experience but i mean i just would want to see other ways a better programmer might go about problems per say. In my class our professors dont really always have time to meet one on one so yeahh.

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    200
    Quote Originally Posted by KevinH123 View Post
    Nah its not like that at all. Im currently enrolled in computer information science classes. I have a bunch of problems and experience but i mean i just would want to see other ways a better programmer might go about problems per say. In my class our professors dont really always have time to meet one on one so yeahh.
    One good thing to do would be to hack around some open-source projects. They won't always be fantastic examples of how to do stuff, but dealing with rubbish code is part of the learning experience as well!

    Also, have you ever done a medium-sized project of your own? It's a good learning experience. Just don't be afraid to throw out your first few attempts if you realise your design was doomed from the start (which you probably will...). That happens to all levels of programmers - but part of being a good programmer is knowing when to stop flogging a dead horse.
    Last edited by JohnGraham; 11-03-2010 at 06:52 AM.

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by JohnGraham View Post
    One good thing to do would be to hack around some open-source projects. They won't always be fantastic examples of how to do stuff, but dealing with rubbish code is part of the learning experience as well!
    Now that's just nasty ... but I do tend to agree. There is a LOT of really bad code out there.


    Also, have you ever done a medium-sized project of your own? It's a good learning experience. Just don't be afraid to throw out your first few attempts if you realise your design was doomed from the start (which you probably will...). That happens to all levels of programmers - but part of being a good programmer is knowing when to stop flogging a dead horse.
    Excellent advice...

    I'm working on a project after a long interregnum, so I find myself almost back to beginner level and yep... the first three tries ended up on CDs in a storage closet.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling GNU MP
    By mattnp12 in forum C Programming
    Replies: 3
    Last Post: 06-23-2011, 04:58 PM
  2. Undefined reference to.. probably Makefile problem
    By mravenca in forum C Programming
    Replies: 11
    Last Post: 10-20-2010, 05:29 AM
  3. Undefined reference to...
    By legendus in forum C Programming
    Replies: 19
    Last Post: 10-25-2009, 07:18 AM
  4. Buidl Library with ./configure script
    By Jardon in forum C Programming
    Replies: 6
    Last Post: 07-24-2009, 10:36 AM
  5. Compilation error under Unix with GCC
    By marcusg in forum C Programming
    Replies: 2
    Last Post: 06-01-2005, 09:16 AM

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