View previous topic :: View next topic |
Author |
Message |
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
Complex, Large Project Coding |
Posted: Sun Nov 04, 2007 8:10 pm |
|
|
I believe I've finally reached a cranial limitation on project size. I'm up to 11,000 lines (or so the compiler says) and 6 or 7 includes and I can't keep a running tab on what I'm doing and where, etc.
What do the pros use for organization, tracking, etc. Is there a text that presents an approach for project management?
I think most of the problem may have to do with my coding technique... sit in front of the computer and write from scratch, with little if any pre-planning or organization (spaghetti code at its best.)
I understand the basics of either top down or bottom up. But, there's got to be a better way to keep organized.
Thanks,
John |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Guest
|
|
Posted: Sun Nov 04, 2007 9:36 pm |
|
|
Yep - it's just so darn fun to sit down and code! Who needs to think. :-)
Steve McConnell's book Code Complete is the best book ever written on code as far as I have found.
Clearly this is a universal problem (check out the broken updates at CCS)
I also have a program that just went through a revision and I found myself qualifying some data, the same data, in three different ways! Yikes! What was I thinking?! Well I was working on it on and off and I forgot what I had done.
About the only thing I can do to make this situation better is to make include files of canned routines - that I will not touch - then I write a users guide that I can refer to when I need one of those functions.
This is encapsulation and is what Active X, COM and DLL's were all about. Repositories of known working code that don't change (except for bug fixing).
You can also study "refactoring" as a method - this can be a useful way to think about the inevitable - re-coding cuz things got out of hand.
Another problem with maintaining code is - well it grows as it ages - people want this feature and that feature or they don't want this special case, etc. This leads to all sorts of 'if-then-else' statements in the code - even if the maintenance was very well done this happens, because it grows just one feature at a time and this is the fastest way to add or delete a feature.
Eventually you just have to say enough and the - next feature is going to require a large chunk of time to 'refactor' the code to make it understandable again. The boss won't like the extra time, but he will be caught like a Racoon washing a 'shinny object' in a stream when you use big words like re-factoring! ;-)
Well hang in there - we all do this - you just have to decide when it's time to, well.... Start Refactoring.....
;-0
HTH - Steve (Been there, done that) H. |
|
|
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
|
Posted: Mon Nov 05, 2007 10:28 am |
|
|
PCM,
Thanks, I'd never heard of Lint. I'm going to spend some time poking around on the links. What Lint software do you use/recommend?
I'd gotten use to Hungarian in VB, mainly because it is usually included in the instructional material. But I have gotten away from it in C. I think I'll make a point to start using it again.
Steve,
I'll get my copy of Code Complete out and dust it off and look through it again. I've heard the term refactoring, but never thought of it as a particular method. I'll do some research.
Thanks,
John
EDIT:
I found your post regarding LINT. Thanks. I'll give it a try. |
|
|
tavioman
Joined: 22 Feb 2006 Posts: 65
|
|
Posted: Wed Nov 07, 2007 1:32 am |
|
|
I alwayas use a third party IDE. In fact I use Micr***t Visual Studio as IDE.
You can organize code the best with this IDE. The only draw back is the compiler output format, that is not compatible with VS IDE. Maybe CCS will think on the format posibilities of the output of their compiler.
Hi-Tech's compiler on the other hand has an output that you can format as you wish. |
|
|
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
MS Visual Studio |
Posted: Fri Nov 09, 2007 3:16 pm |
|
|
tavioman wrote: | I alwayas use a third party IDE. In fact I use Micr***t Visual Studio as IDE. You can organize code the best with this IDE. The only draw back is the compiler output format, that is not compatible with VS IDE. Maybe CCS will think on the format posibilities of the output of their compiler. |
I like Visual Studio (VS) a lot too. I also think that the CCS compiler lack a lot of productivity features. Thank goodness, at least we should be getting a linker in V4.
How do you hook up the CCS compiler to VS?
How do the incompatibilities in the CCS compiler output manifest themselves?
Were you able to add the debugger to this mash-up? _________________ Read the label, before opening a can of worms. |
|
|
tavioman
Joined: 22 Feb 2006 Posts: 65
|
|
|
|