6

How did you learn to think "like a programmer"?

I am starting to learn C++ and I am trying it out on exercism. I am really at the beggining but when I make it work after so much frustration(based on devrant posts I guess that's part of the job) I always see people having shorter/better/more effective codes which makes sense to me but I wouldn't thought of it that way.

Is there way to make such thinking better or does it simply come with practice ?

Comments
  • 1
    while(alive){
    practise();
    }
  • 1
    In terms of doing everything shorter.
    1. Write code
    2. Analyze what can be done faster (e.g. search for appropriate functions)
    3. Rewrite
    4. Go to no. 2
  • 3
    If you really want to get good at it, you need to obsess over it. If seeing unoptimal code makes you cringe, you're on the right track. :)
  • 1
    I've always looked for some magic pill to programming, but the truth is there ain't any. you gotta practice your ass off and build stuff. period
  • 2
    Reading other people's code also helps. It let's you see different ways of doing things (you're already doing that so you're on the right track), and practice....a lot
Add Comment