Giter Club home page Giter Club logo

rankoverflow's People

Contributors

filnor avatar

Watchers

 avatar

rankoverflow's Issues

Generate scoreboard on server-side

Generating the scoreboard on the server-side would enhance the site workflow in serveral ways:

  • No exposed fkey from the site's JS code
  • Improved stability due to the removed client-side code and removal of a API method (which may fail)
  • Faster speed due to missing client-side code

Read the user id over SE auth

As suggested in this comment, there should be a way users can start the process without the need to copy their user profile link every time, which can be achieved using the authentication functionality provided by the Stack Exchange API.

In order that we don't need to request write access or something like that from the users, we don't specify the scope parameter, as the following is stated in the authentication docs:

With an empty scope, authentication will only allow an application to identify a user via the /me method.

The /me method gives us all the information we need (the user id).

Python rewrite

After the initial development of this project using PHP (to get the website's markup) and then parsing everything together using JavaScript and jQuery, I wasn't really happy with it because it's very hard to maintain in a state like that and easily leads to a broken page (see issue #2 for an example).

Due to that fact, I decided to rewrite everything in Python. That way, it would be much easier to parse the needed content using PyQuery and because that code would run server-side, no JS from the SE sites (which led and very likely would lead again to problems/bugs) would be executed.

I can't really give an ETA at this time, but you can subscribe to this issue and I'll add a comment once I started working on it.

Add a site switcher

As requested on Stack Apps, a possibility to choose a specific SE site should be added.
This is not a hard thing to implement, since the change isn't so big. But there are two questions that we need to answer:

Do we really want to check all sites?

Concern:

If a beta site gets taken down or a new one starts, that would need a manual change, as the site switcher needs a change (we can't read the numeric site id from the API)

Solution:

For that start, I think it would be OK to only provide sites that have the largest userbase. Please suggest other sites you would like to be added from start.

Has the user really a profile on this page?

Concern:

With the SE authentication (#4), this would be rather easy since items array that the API returns just would be empty. If the user specifies a link or an id to a profile, we can't check that directly.

Solution:

In another project, I also needed to check the user id. This can be reused here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.