Coder Social home page Coder Social logo

Comments (5)

caniszczyk avatar caniszczyk commented on August 26, 2024

I'm all for contributions :)

from opensource-website.

jeroen avatar jeroen commented on August 26, 2024

Are you OK with using jQuery plugins? E.g. http://imakewebthings.com/jquery-waypoints/

from opensource-website.

caniszczyk avatar caniszczyk commented on August 26, 2024

Yep, it's under the MIT license so we're OK with it:
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt

from opensource-website.

augbog avatar augbog commented on August 26, 2024

If we decide to do this, how would we handle sorting? As of right now, I believe it sorts all the repos before showing them. If we pull data based on scroll, would we want it to resort them everytime?

from opensource-website.

mbad0la avatar mbad0la commented on August 26, 2024

@augbog @caniszczyk @jeroenooms Hey guys! I know this thread has been open for a really long time but i've recently started to explore github and try to contribute. Hence, i came upon this Repo and would like to help in this issue. Are you guys still interested in this?

About the issue, dont flame because im really a newbie :P
But i went through the code and previous comments in this thread and i think we have two solutions -

  1. Store the repo object and append next 30 or something repo data on detecting page end -> Though this method does implement the UI aspect of loading info after reaching the end of the page, it defeats the purpose of avoiding rate limiting because as mentioned earlier for orgs with a huge amount of data, the user might not even go through all of it therefore, we have some wasted API calls.
  2. Initiate api call to append next 30 or something repo data on detecting page end
    -> This method implements the UI Element and helps optimisation of api calls but in the process we end up trading our hotness sorting functionality for this implementation. But we do have every 30 (or whatever threshold we set) repos sorted according to our hotness functionality.
    A small deviation to this method can be to add every iterations' data to the repo list, sort the list again and then clear the "#repo" div and append the whole list into it again. Though this maintains the hotness sort and limits Api calls along with the UI functionality, it has a big flaw, of the user to miss out on some newly added repos if they attain positions for which user has to scroll up.

Please let me know what you think about this.
I'd like to submit a pull-request once we reach a conclusion.

from opensource-website.

Related Issues (20)

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.