Click here to Skip to main content
15,901,205 members
Home / Discussions / Java
   

Java

 
GeneralRe: java Pin
TorstenH.11-Jul-12 8:29
TorstenH.11-Jul-12 8:29 
GeneralRe: java Pin
Richard MacCutchan11-Jul-12 23:27
mveRichard MacCutchan11-Jul-12 23:27 
GeneralRe: java Pin
Nagy Vilmos12-Jul-12 0:11
professionalNagy Vilmos12-Jul-12 0:11 
GeneralRe: java Pin
TorstenH.12-Jul-12 1:23
TorstenH.12-Jul-12 1:23 
QuestionRequest for Help in Java Datagrid Implementation. Pin
haranath.nadella10-Jul-12 18:44
haranath.nadella10-Jul-12 18:44 
AnswerRe: Request for Help in Java Datagrid Implementation. Pin
Richard MacCutchan10-Jul-12 21:19
mveRichard MacCutchan10-Jul-12 21:19 
QuestionHow do I decide for class responsibilities? Pin
Neo101018-Jul-12 5:56
Neo101018-Jul-12 5:56 
AnswerRe: How do I decide for class responsibilities? PinPopular
Nagy Vilmos8-Jul-12 6:31
professionalNagy Vilmos8-Jul-12 6:31 
This is something that gets easier the more you practice. Start by writing down in PROPER prose what the software will do. Now take all the nouns out, they are your candidate classes.
Firstly find the items that are synonyms - blog, post, posting and entry will most likely be used to reference the same thing. Then have a look at what is left and if the items actually perform anything or if they just record a state. If all they are recording is state, then they are probably attributes rather than classes. In your case, I think you'll find the body and title are probably just attributes.

However, there is not a single way to do these things and it is an experience thing that will tell you which is best. Alas there is not really enough here for me to give you a fuller answer.


Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

GeneralRe: How do I decide for class responsibilities? Pin
Neo101018-Jul-12 7:44
Neo101018-Jul-12 7:44 
GeneralRe: How do I decide for class responsibilities? Pin
Nagy Vilmos8-Jul-12 8:19
professionalNagy Vilmos8-Jul-12 8:19 
GeneralRe: How do I decide for class responsibilities? Pin
Neo101018-Jul-12 8:44
Neo101018-Jul-12 8:44 
GeneralRe: How do I decide for class responsibilities? Pin
Nagy Vilmos8-Jul-12 8:49
professionalNagy Vilmos8-Jul-12 8:49 
GeneralRe: How do I decide for class responsibilities? Pin
Richard MacCutchan8-Jul-12 22:22
mveRichard MacCutchan8-Jul-12 22:22 
GeneralRe: How do I decide for class responsibilities? Pin
Nagy Vilmos9-Jul-12 8:31
professionalNagy Vilmos9-Jul-12 8:31 
GeneralRe: How do I decide for class responsibilities? Pin
Stingrae7899-Jul-12 4:02
Stingrae7899-Jul-12 4:02 
GeneralRe: How do I decide for class responsibilities? Pin
Neo101019-Jul-12 6:48
Neo101019-Jul-12 6:48 
GeneralRe: How do I decide for class responsibilities? PinPopular
Dave Kreskowiak9-Jul-12 7:11
mveDave Kreskowiak9-Jul-12 7:11 
GeneralRe: How do I decide for class responsibilities? Pin
Nagy Vilmos9-Jul-12 8:30
professionalNagy Vilmos9-Jul-12 8:30 
GeneralRe: How do I decide for class responsibilities? Pin
Richard MacCutchan9-Jul-12 8:43
mveRichard MacCutchan9-Jul-12 8:43 
GeneralRe: How do I decide for class responsibilities? Pin
Nagy Vilmos9-Jul-12 8:48
professionalNagy Vilmos9-Jul-12 8:48 
GeneralRe: How do I decide for class responsibilities? Pin
Richard MacCutchan9-Jul-12 9:03
mveRichard MacCutchan9-Jul-12 9:03 
GeneralRe: How do I decide for class responsibilities? Pin
Nagy Vilmos9-Jul-12 9:12
professionalNagy Vilmos9-Jul-12 9:12 
GeneralRe: How do I decide for class responsibilities? Pin
jschell9-Jul-12 12:13
jschell9-Jul-12 12:13 
GeneralRe: How do I decide for class responsibilities? Pin
pasztorpisti14-Jul-12 0:03
pasztorpisti14-Jul-12 0:03 
GeneralRe: How do I decide for class responsibilities? Pin
jschell9-Jul-12 12:01
jschell9-Jul-12 12:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.