I’ve started working on a fairly complicated software. It is for a personal project, but nonetheless I’m putting a lot of effort into it. Now, I’m used to work on other people’s solutions / designs or on projects that grow in a very controllable way.
This time, I started twice to code the basics and I rapidly found myself stuck. So i took a rest and decided to write down the complete solution before coding a single line. What I’ve done (in order) is:
- writing the use cases in the form of CLI commands (this is a command line application)
- write some help
- design the classes, the structure of the data files and the functional workflow for the various parts.
Now, I’m going really slow in this whole part. I’ve set up a personal wiki and I’m using it to write those specifications, but i clearly feel my lack of experience and a clear methodology.
I’m aware that software design is a very complex subject and that a pletora of books have been written about it, but I’d love you to share your experience / advices / methodology.
When working on personal, middle-sized projects, what do you specify before starting to code? How?
Thanks in advance
I specify the functional specification:
For the sake of risk management I’ll add that some of what I wanted to develop implied using some software that I wasn’t familiar with; to minimize the risk associated with that, I also did a little throw-away prototyping.
I outlined a functional specification, using pen a paper. Some of what I wrote was high-level (a business-level ‘vision’ document), and some was lower-level, more like design (some of the UI details). Sometimes I stopped and puzzled about how to organize it, but then went on, reasoning that each page is more-or-less cohesive about each topic, and that I can puzzle later about how to organize the pages (much like your wiki, perhaps).
I both did and didn’t specify the software architecture in advance:
I do have a theoretical justification for the architecture as it is now, but I haven’t documented these reasons:
If (only if) I weren’t the sole developer, then I might think it worth documenting the architecture and its rationale.
What I said above about the architecture of the software is also true of the data which the software processes.
As for testing, I code a bit and then test it; or write a test and then code the functionality which will pass that test. I’m not doing ‘big bang integration’, i.e. months of writing without any testing.
One of the biggest weaknesses in (or thing missing from) my process is estimating effort in advance, and then tracking implementation against the estimate … this is one of the differences between this ‘personal’ project process versus a paid project that I’d do for someone else commercially. I doubt whether this is good though: if estimation is a best practice commercially, then perhaps I ‘should’ be doing it too on a personal project.