in reply to OT: Data Structure First or Code First?
Neither. Write a unit test first. I'm serious.
Starting with a real client, even if it's just a test, forces you to focus on the interface. Once you've got the client interface thought through, work from interface into data structures.
If you start from the data structures, you risk influencing the API from the data structures, rather than from a client perspective. Many unusable messes are made this way.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: OT: Data Structure First or Code First?
by jerrygarciuh (Curate) on Mar 29, 2002 at 21:19 UTC | |
by dws (Chancellor) on Mar 29, 2002 at 21:25 UTC |