Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Social Network class hiearchy

 
Aditya Bhasale
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I'm trying to build a social networking website in JSP & Servlets. I'm wondering what basic and advanced model classes I should include.
So I'm stuck at this step to implement my classes.

Please help.

Thanks in Advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a pretty early step to be stuck at.

I'm assuming you've used other social sites--what classes do you believe you'd need so far? In other words, how far have you gotten?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As with any other class modeling exercise, start with a list of the various things that will be a part of the model. I'll start the list with one, you continue:

  • Member

  •  
    David Newton
    Author
    Rancher
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    (Although... if we're talking a real-life social hierarchy, I don't want to play, 'cuz I'm always at the bottom :(

     
    Jeanne Boyarsky
    author & internet detective
    Marshal
    Posts: 34672
    367
    Eclipse IDE Java VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Before design, you probably want to think about requirements. What is a "social networking website" ? What does it do?
     
    David Newton
    Author
    Rancher
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It highlights how socially isolated I am. All we really need is a picture and a "0"--might not need any classes at all.
     
    Aditya Bhasale
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks a lot for replies.

    I have included some classes like

    User/Member
    Group/Community
    Media
    Profiles
    Messages

    I just need to know what other classes I could implement.

    Also, please suggest me any presentation framework for the same.
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Pie
    Posts: 64970
    86
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You seem to be misunderstanding how things work. You do the work, we help. We do not do your work for you.
     
    David Newton
    Author
    Rancher
    Posts: 12617
    IntelliJ IDE Ruby
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Aditya Bhasale wrote:I just need to know what other classes I could implement.

    You *could* implement an essentially infinite number of classes--it depends on what you want or need to do. Without any actual requirements, it's impossible to help.
     
    Jeanne Boyarsky
    author & internet detective
    Marshal
    Posts: 34672
    367
    Eclipse IDE Java VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Aditya Bhasale wrote:Also, please suggest me any presentation framework for the same.

    JSF, Spring MVC, Struts 2, plain Servlets/JSPs. You could use any framework. Without requirements or knowing what you want to learn, this question doesn't have much meaning.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic