Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #30708
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Martin Gregorie <martin@address-in-sig.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: "How do you arrive at classes?" |
| Date | Wed, 14 Jan 2015 14:00:46 +0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 20 |
| Message-ID | <m95sqe$45o$1@dont-email.me> (permalink) |
| References | <classes-20150114054030@ram.dialup.fu-berlin.de> <chmim5F33onU1@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Wed, 14 Jan 2015 14:00:46 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="4280"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+oZdyE7sEJuvKybLF9aOfqnOMwq7PT1c=" |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Cancel-Lock | sha1:oozZ7DVKAwZt8vjrudwDf5sn36M= |
| Xref | csiph.com comp.lang.java.programmer:30708 |
Show key headers only | View raw
On Wed, 14 Jan 2015 08:03:31 +0100, Robert Klemme wrote: > One of the simplest approaches I am aware of is to write down a > description of the problem in prose and identify nouns. These are then > candidate classes. > I do something similar but with a fairly long exposure to database design as well as programming, I tend to start by drawing an Entity Relationship Diagram that describes the data structure needed to underpin the problem. Then the entities become the main data-related classes with closely related operations as their methods. The various relationships become Collections (TreeMaps of key sequence is important, HashMap where it isn't and Lists to support other types of ordering such as arrival sequence. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: "How do you arrive at classes?" Robert Klemme <shortcutter@googlemail.com> - 2015-01-14 08:03 +0100 Re: "How do you arrive at classes?" Martin Gregorie <martin@address-in-sig.invalid> - 2015-01-14 14:00 +0000
csiph-web