wood burning stoves*
The moose likes JSP and the fly likes Social Network class hiearchy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Social Network class hiearchy" Watch "Social Network class hiearchy" New topic
Author

Social Network class hiearchy

Aditya Bhasale
Greenhorn

Joined: May 16, 2009
Posts: 6
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 10, 2002
Posts: 61103
    
  66

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


  • [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    (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
    internet detective
    Marshal

    Joined: May 26, 2003
    Posts: 30382
        
    150

    Before design, you probably want to think about requirements. What is a "social networking website" ? What does it do?


    [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
    Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    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

    Joined: May 16, 2009
    Posts: 6
    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

    Joined: Jan 10, 2002
    Posts: 61103
        
      66

    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

    Joined: Sep 29, 2008
    Posts: 12617

    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
    internet detective
    Marshal

    Joined: May 26, 2003
    Posts: 30382
        
    150

    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.
     
    Consider Paul's rocket mass heater.
     
    subject: Social Network class hiearchy