Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing an online leaderboard - easy/hard?  RSS feed

 
Chris Blanchard
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, we're currently writing a typing tutor program, how easy would it be to write some sort of online leaderboard with a sorted list of everybodies scores, or the top 10 scores? The leaderboard would only have to be viewable through the software.

Creating an actual leader board from data would be easy, and retriving a leaderboard from online wouldn't be too hard, but the bit I don't understand is how the program would upload the users score to an online server/website.

If possible can somebody give me a possible break down of this stage, or some ideas of how it could be done?

Thanks
[ January 03, 2007: Message edited by: Chris Blanchard ]
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the typing tutor a standalone Java program running on a user's PC? A Java program can send data to a web application via an HttpURLConnection. Then your web app would read the data as if the user has POSTed a form to the site, and update a database or whatever data store it likes.

Are you comfortable with any or all of those moving parts?
 
Chris Blanchard
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K thanks, yeah it'd be a standalone Java file on a users PC. I think I'd be able to cope with sending the data to the server,but I have no idea how I'd go about doing a webapp. I have no expierience in creating websites/running servers.

Would the webapp be a java program that runs on the server and waits for me to send it data, then stores it?
 
David McCombs
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you stated it would only have to be viewable through your client it does not have to be a web app. It could be another Java program that accepts connections through SocketServer, but doesn't have to be Java, although it would make it easier if it were.

Whether it is a standalone server or a web app you need to learn the underlying concepts. For the former, that means understanding basic TCP/IP and the java.net and java.io packages, and likely a bit of threads.

For the latter, that likely means learning JSP/Servlets.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!