Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Which comes first data structure or code?
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.
In reply to Re: OT: Data Structure First or Code First?
by dws
|
|