Software Design and Development

Status
Not open for further replies.

jfmiller28

Ars Centurion
206
Subscriptor
OK,

I'm a "self taught" programmer. (My spelling however is the reuslt of an intensive effort by the CA school system.) I do it as a hobby and occasionally write small programmettes for work. (Access Database stuff :rolleyes: ) Recently I have been trying to work on a couple of more signifigant efforts then my usual code equivialent of a one night stand. I find that, having laughted at the CS majors in college who would spend hours doing design for a program I could hack together in 20 min, I don't have a clue as to how to go about designing and developing a program that might take more that a day or two to program.

So now having experenced the error of my ways, I humbly ask for advice and direction (Books, websites, personal advice, flame wars etc...) as to how to desigh and develope a half baked crack pot ieda in to a working piece of usless software.

Thanks,
JFMILLER
 

uberfunk

Seniorius Lurkius
15
Code Complete by Steve McConnell is an excellent book partially aimed at people like you who are self taught. It covers a number of software construction issues in a non-serial fashion, so you can read what you're interested in and skip the rest until you are ready for it. I am just starting it and I'm liking it. It seems to be highly regarded by others also.
 

gumbo

Ars Tribunus Angusticlavius
6,107
My QB teacher (IMO he is mostly an idiot) wants us to make several things.

Structure chart - plan of how all the modules and such of a program are going to be divided - can be quite large for a complicated problem.

Flowchart - created from the structure chart, it is supposed to cause you to think about all necessaru i/o, processing, etc. In reality, a big PITA.

Pseudocode - is supposed to help you get thinking more in code about how things are going to be solved. It is essentially the flowchart in pseudo Delphi. Also a big PITA, and an incredible waste of time and effort.

Personally, also being self-taught ;), I would just create a UML diagram of the modules and thier interactions, and figure out which each module requires for io - a more useful structure chart. Then, create method definitions that all work together (compile correctly), and implement them.

The teacher wants us to do the above for printing our name out and formatting it differently. :rolleyes: As you said, know how large a project needs to be before diagramming is needed. I unfortuantely, don't realize the size/complexity of most projects until I need that master plan. :)

gubmo
 
There are several UML books that teaches you how to do
design and analysis for a large scale program.

For example, UML Distilled, by Martin Fowler with Kendall Scott,
is a descent read. Not only is he teaching UML, the language, he is
also passing down some of his wisdom in analysis and implementation.

Although I haven't finished reading the book-- roughly 200 pages,
I feel I have gained many insights into software construction already.

Oh, most universities' CS department focuses more on the theoretical stuff rather than design and analysis. So, don't feel bad learning how to design.
 

jtanner

Wise, Aged Ars Veteran
101
An introductory computer science book will teach you the basics: top-down vs. bottom up, modular design, etc.

One of the best books I've read is Stroustrup's The C++ Programming Language. He discusses OO program design as well as the structure of C++.

For a different approach, try Donald Knuth's Literate Programming. It's pretty theoretical, and the system he describes in one section (WEB) isn't used much outside of acadamia. It's easy to read though, as each chapter is actually a paper or exerpt.

Jim
 
UML is great for massive projects involving 10s or 100s of people and perhaps many QA and verification people, but generally if you are writing a piece of software yourself then using something as rigorous as UML or IEEE's Software Requirements Specification Template is more trouble than the benefits they procure.

Use flow charts, state machines, tables, graphs, and pseudocode to design your software. At the end, ask yourself: "Does this design exactly describe the functional operation and characteristics of my software and all associated cases and details in all expected circumstances?". If you said "yes", either:

1) start designing a test harness based off the initial design
OR
2) start implementing (programming) your design and test later

Clearly, this approach varies depending on the complexity of your intended design, the language used, the platform, your operational goals etc. but the fundamentals are the same.
 

jfmiller28

Ars Centurion
206
Subscriptor
Thanks for the replies. I will check out a few of the suggestions. I don't know about how large (number of lines, modules, etc...) my projects are but they are both more complex then I'm used to and don't have an obvious OO structure.

To fill in some of the detials (remember I said that this was a half baked idea) I am trying to write a fairly basic 3d Modeling program that used OpenGL and DirectInput so that in addation to mouse and keyboard, Joysticks and in my case a flight yoke and rudder peddals, which are much better suited to movement a 3d envrioment can be used. I have started this 2 or three times but I continue to get lost in program structure and never write any real code.

While I'm at it, Can someone describe UML what it does and where one would use it?

JFMILLER
 
Status
Not open for further replies.