CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 23

Thread: How to be a good programmer?

  1. #1
    Join Date
    Dec 2011
    Posts
    0

    How to be a good programmer?

    I am laughing_rex.
    I am from kolkata, India. I am a B-tech student. I am very much interested in programming, and I wish to become a pro. I googled for good programming forums and that brought me here.
    I was hoping someone over here could tell me, how to be a good programmer. Looking forward to replies...:-)

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,153

    Re: How to be a good programmer?

    Practice, a lot of practice.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: How to be a good programmer?

    Quote Originally Posted by Marc G View Post
    Practice, a lot of practice.
    ... and when you're done with that... practice even more.

  4. #4
    Join Date
    Dec 2009
    Posts
    145

    Re: How to be a good programmer?

    You don't come back stay with your parents these days ?

  5. #5
    Join Date
    Oct 2005
    Location
    Minnesota, U.S.A.
    Posts
    680

    Re: How to be a good programmer?

    The way to do that is understand how everything works. Not just the top level functions and operations, but how they actually work.

    For Example: (this is VERY basic, but a simple example)
    C++ string concatinate:
    Code:
     
    a << b;
    which translates (crudly) to:
    Code:
     
    strcat(a, b);
    Note: the C++ function has more overhead maintaining the size of the "a" buffer, but I am ignoring that here - another thing to learn about.

    Which is:
    Code:
     
    char *_a = a; *_b = b;
    while( *_a ) ++_a;
    while( *_b ) *_a++ = *_b++;
    Which translates directly to assembly. (This is why C is the fastest language above Assembly.)
     
    Then, of course, practice, practice, practice...

  6. #6
    Join Date
    Dec 2009
    Posts
    145

    Re: How to be a good programmer?

    I don't get it.

  7. #7
    Join Date
    Oct 2005
    Location
    Minnesota, U.S.A.
    Posts
    680

    Re: How to be a good programmer?

    Quote Originally Posted by Ledidas View Post
    You don't come back stay with your parents these days ?
    Quote Originally Posted by Ledidas View Post
    I don't get it.
    I don't get what his/her parents have to do with it either.

    What don't you get?

    -Erik

  8. #8
    Join Date
    Dec 2009
    Posts
    145

    Re: How to be a good programmer?

    a << b;

    which translates (crudly) to:
    Code:


    strcat(a, b);

    ?
    What practice ? and what does
    "Which translates directly to assembly. (This is why C is the fastest language above Assembly.)" actually mean ?

  9. #9
    Join Date
    Dec 2009
    Posts
    145

    Re: How to be a good programmer?

    Quote Originally Posted by egawtry View Post
    I don't get what his/her parents have to do with it either.



    -Erik
    Why do you care ?

  10. #10
    Join Date
    Jun 2010
    Posts
    115

    Re: How to be a good programmer?

    Whenever there are police, I can't be a good programmer. I become nervous and unable to program anything as they stand behind me.

  11. #11
    Join Date
    Oct 2005
    Location
    Minnesota, U.S.A.
    Posts
    680

    Re: How to be a good programmer?

    Quote Originally Posted by Ledidas View Post
    Why do you care ?


    I don't, except that this isn't Facebook.

    ====================

    As for your question, what I am saying is that a good programmer needs to understand the fundamentals. It is impossible to write efficient code otherwise.

    -Erik

  12. #12
    Join Date
    Jun 2010
    Posts
    115

    Re: How to be a good programmer?

    Quote Originally Posted by egawtry View Post

    I don't, except that this isn't Facebook.

    ====================

    As for your question, what I am saying is that a good programmer needs to understand the fundamentals. It is impossible to write efficient code otherwise.

    -Erik
    Hey, I kinda like you code. Looks like a good transformation.

  13. #13
    Join Date
    Oct 2005
    Location
    Minnesota, U.S.A.
    Posts
    680

    Re: How to be a good programmer?

    Quote Originally Posted by Maejie View Post
    Whenever there are police, I can't be a good programmer. I become nervous and unable to program anything as they stand behind me.
    Police??!?

    I also hate it when someone is peering over my shoulder. If it is my boss, I just grit my teeth and bear it. Anyone else, I tell them to move. One of my main pet peeves.

    As long as you aren't doing anything wrong, you have nothing to worry about. What made them stop standing behind me is that I got good enough that they couldn't make head or tails of what I was doing, so they left.

    -Erik

  14. #14
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to be a good programmer?

    Logical...
    Code:
    Delegate Function myCheck(ByVal x As String) As Boolean
    Sub mySub()
    Dim myDelegate As myCheck = Function(x As String) _
       If(x = "LAMBDA Function", True, False)
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  15. #15
    Join Date
    Jan 2012
    Location
    Ahmedabad, Gujarat, India
    Posts
    0

    Re: How to be a good programmer?

    Hello,

    It's depend on knowledge of programming.

    If you have a more knowledge on that topic than you can easily catch up the funda.

    And you also do more an more practice.

    Thanks & Regards,
    Jacob
    http://www.esparkinfo.com/

Page 1 of 2 12 LastLast

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)