+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 11

Thread: How to tackle a programming problem?

  1. #1
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    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. #2
    Learning Programmer keller is an unknown quantity at this point keller's Avatar
    Join Date
    Dec 2007
    Location
    Iowa
    Age
    32
    Posts
    34
    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.

  3. #3
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,877
    Blog Entries
    25
    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.

  4. #4
    Retired v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light v0id is a glorious beacon of light
    Join Date
    Apr 2007
    Posts
    2,978
    Blog Entries
    3
    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.

  5. #5
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6
    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?

  6. #6
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,609
    Blog Entries
    57
    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.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  7. #7
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6
    with sketch work you mean... flowcharts? or pseudo code.. or some other method?

  8. #8
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,877
    Blog Entries
    25
    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.

  9. #9
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6
    Hmm I always have problems in creating GUI's :S I'm not much of a designer.. that it another problem I encounter.

  10. #10
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,609
    Blog Entries
    57
    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.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. programming or virus problem
    By mukul in forum C and C++
    Replies: 2
    Last Post: 09-30-2007, 10:33 AM

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