|
-
Oct 3rd, 2002, 07:19 PM
#1
Thread Starter
Fanatic Member
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?
-
Oct 3rd, 2002, 07:51 PM
#2
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.
-
Oct 3rd, 2002, 09:17 PM
#3
Thread Starter
Fanatic Member
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
-
Oct 5th, 2002, 02:24 PM
#4
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|