Results 1 to 4 of 4

Thread: Does this ever happen to you?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518

    Red face Does this ever happen to you?

    Here I am noodling around in this bloated module I'm working on, it's around 3000 lines now, and I'm scratching my head trying to design a function to solve a particular problem - then I get it figured out and the function's written and it works. A little later I'm scrolling around and looking at another problem, and I spy, with my little eye, a block of code that looks suspiciously familar. As it turns out, I've just written a function that does exactly the same thing as something I'd done yesterday. EVEN MORE DISTURBING, the two functions get their result in COMPLETELY DIFFERENT WAYS - but they both get the right answer?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    LOL Nope that doesn't really happen to me, but its funny!

    Do you mainly use modules or classes? Classes help you organize against stuff like that.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    I'm pretty new to programming really. Most of my past efforts have been small little command line utilities that were too simple to have problems like this, but what I'm working on right now is a much more complicated task (at least to me). Right now most of the guts of my app are in one module. I think most of the reason I have problems like what I described is that I didn't start out with a good idea of how I was going to do what I wanted, and so my app has gotten more and more barroque. I'm learning to resist the urge to add a new function and to make pieces of code as generic as I know how, but sometimes I still run across these stretches of logic where I goofed and re-invented the wheel

  4. #4
    Member
    Join Date
    Oct 2002
    Location
    la la la you can't see me
    Posts
    46
    that sounds rather familiar...
    What does "formatting drive C..." mean?!

Posting Permissions

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



Click Here to Expand Forum to Full Width