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

Thread: How to tackle a programming problem?

  1. #1
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    How to tackle a programming problem?

    How you tackle a programming problem? If you have a programming problem from where do you start? I usually find it quite a problem when I have a problem.. I usually solve it by myself (as you can see I don't ask much programming related questions) but I still end up wasting a lot of time I think.

    Any tips?

    Thanks

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    keller's Avatar
    keller is offline Learning Programmer
    Join Date
    Dec 2007
    Location
    Iowa
    Posts
    38
    Rep Power
    0
    I usually start with a sheet of paper and determine what it is that I really need to do, and what I want to do. I try to start very abstract and work down to the concrete levels, but I tend to race down to the concrete a little early. Guess that's why I'm still in school for this stuff, so much more to learn.

  4. #3
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    I too start with a sheet of paper which usually contains charts, diagrams, and some UML. Some times I use CRC *cards* depending on the size of the project.

    I then create a abstract framework with no functionality, then slowly construct specific functions / methods.

    Organization is the best programming strategy.

  5. #4
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    I usually try to figure it out in my head, and when I've got an idea of what's working, then I try to write some code. If I'm struggling with mathematics- or low-level-problems in programming, then I'm using a random text-editor on the computer, or a sheet of paper.

  6. #5
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Sidewinder so you make use of flowcharts? or you have your own 'drawing' method?

    v0id you are exactly like me.. but sometimes while thinking I end up thinking on other 2 ideas and eventually I forget what the first one was.. and end up confused. Does this happen to you?

  7. #6
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143
    It tends to depend on the scale of the problem. For something math related, making sure I have a list of the necessary formulas and an understanding of how they work is a start. For other problems, a sketch of the logic is key. I usually do my scratch work electronically or on a white board.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  8. #7
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    with sketch work you mean... flowcharts? or pseudo code.. or some other method?

  9. #8
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Quote Originally Posted by TheComputerMaster View Post
    Sidewinder so you make use of flowcharts? or you have your own 'drawing' method?

    v0id you are exactly like me.. but sometimes while thinking I end up thinking on other 2 ideas and eventually I forget what the first one was.. and end up confused. Does this happen to you?
    Well flowcharts are one aspect especially when working with forms and algorithms that send/receive information, I also try to make visual representations of objects, and if I'm creating a GUI - I will always sketch what I vision the final project to look like.

  10. #9
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Hmm I always have problems in creating GUI's :S I'm not much of a designer.. that it another problem I encounter.

  11. #10
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143
    My sketch work sometimes includes flowcharts, sometimes it's just a set of functions with a comment about what I expect them to do. It depends a lot on the scope of the project. When I do DB conversions, I tend to have an excel sheet with a rough field conversion list and a few functions for the major chunks of the conversion.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

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. Help with a Programming problem
    By king_koder in forum C and C++
    Replies: 4
    Last Post: 10-07-2010, 05:32 AM
  2. Replies: 2
    Last Post: 12-14-2009, 02:57 AM
  3. modular programming problem
    By kakarukeys in forum Python
    Replies: 5
    Last Post: 05-29-2009, 08:34 AM
  4. programming or virus problem
    By mukul in forum C and C++
    Replies: 2
    Last Post: 09-30-2007, 07:33 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