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 ]
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?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
posted 12 years ago
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?
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.
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle