Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Which languge do i have to choose to develop a social netwking site ?

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Which languge do i have to choose to develop a social netwking site ?

    Hello friend's
    I have to develop a social networking site.I have 2 month to make it live.
    I am not able to decide which language do i have to choose php or java.
    Actually i am good in java but the requirement of the project is to load faster.
    Till now i haven't found any social networking site developed in java.Even Facebook is developed using php.
    .
    So help me friend.


  2. #2
    Member
    Join Date
    Oct 2011
    Posts
    42
    My Mood
    Sneaky
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Which languge do i have to choose to develop a social netwking site ?

    If you have two months to make it live, go with php, unless you have lots of experience and can develop an application quickly in java.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Which languge do i have to choose to develop a social netwking site ?

    Actually i am good in java but the requirement of the project is to load faster.
    And this sways your decision how?

    You should sit down and figure out your requirements, as this is a decision that we cannot make for you. Php is installed by default on many servers....do you have access to a server which runs java? Do you have any php experience, and if not are you a quick learner? What is your client...and/or do you want more than a single client for your application - for example desktop applications, webstart applications, etc...(java would avoid code duplications for the clients(s) and server(s))? Are there libraries in java that do not have a corresponding library in php (or vice-versa) that you may need? Both java and php are great languages.

    I personally default to php for web pages/scripting...but if I needed to write a full blown enterprise application that consists of things like Desktop applications, Server applications, webpages, REST systems, etc...php would slowly fall off my radar. My .02
    Last edited by copeg; December 7th, 2011 at 06:39 PM.

  4. #4
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Which languge do i have to choose to develop a social netwking site ?

    @copeg i am a 4th year student i have developed no of web,standalone and mobile apps as my friend's project.But didn't have much experience of host them on online server.
    Some days a go i hosted my project(a technical forum developed on struts framework) for demo(server provide 11 day hosting for free) but it works little slower(realy i worked very hard to make it speedy but still it is slower).I think i need some tutorial to optimize the java codes.If you have please give the link.

    Look i created the connection width database for every event that occur on my interface.Is there any way by which once the connection is created we can pass all the sql queries and do not need to create connection until user close the tab.
    .
    Well i don't have much time with php(frankly i dont like php).

  5. #5
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Which languge do i have to choose to develop a social netwking site ?

    Without knowing why 'its slow', one should NEVER jump to the conclusion that it would work faster if implemented in a different language. Is the database indexed properly? Do you have connection pools? Do you cache information that is frequently used? Is your database on the localhost? Do you optimize your SQL queries? Do you only pull the necessary information (as opposed to SELECT *)? These are all things unrelated to java and could slow you down whether you use java, php, ruby, perl, or what have you.

  6. #6
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Which languge do i have to choose to develop a social netwking site ?

    Thanks copeg for your useful suggestion.
    I have no idea about the optimization.Now i am going to start reading the stuffs what you have told.
    If you have some good link where i found these things explained easily please provide me.
    .
    Isn't there any way to get some experience in optimization ?
    I mean open source project development or any prototyping model provide by oracle to explain it properly.

Similar Threads

  1. Social networking with java
    By tah_206207 in forum Web Frameworks
    Replies: 4
    Last Post: December 2nd, 2011, 03:57 PM
  2. Social Planner-Arrays and Super and Sub Classes
    By Laxman2809 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 15th, 2011, 03:03 PM
  3. develop an application of sychronisation j2me
    By Boudour in forum Member Introductions
    Replies: 1
    Last Post: March 31st, 2011, 10:12 AM
  4. Site to site communication (applet)
    By sanyi007 in forum Java Theory & Questions
    Replies: 0
    Last Post: May 16th, 2010, 07:19 AM
  5. Develop Superfast Programs - Avoid Threads
    By freespirit in forum The Cafe
    Replies: 2
    Last Post: March 18th, 2010, 01:49 AM