Git Product home page Git Product logo

Comments (6)

laurentS avatar laurentS commented on June 12, 2024

Here's an idea: download N groups to the app, and randomly select one of them to actually use. The data to download isn't more than a couple hundred bytes * N, which should be negligible compared to the volume of imagery.

from mapswipe.

Hagellach37 avatar Hagellach37 commented on June 12, 2024

Hey,
I like that idea. It seems to reduce the chance of getting the same group again. I discussed with @Matthias-Schaub another potential option here: mapswipe/python-mapswipe-workers#134

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

The advantage of this is that it's 2 lines of code. I had a look at your other proposed solutions, which seem more complicated in terms of code to write. Given that there is a limited number of groups to choose from, I think there will always be a (number of groups / numbers of concurrent users) situation where two users get the same group at the same time, or a user sees the same group twice. Any of our proposed solutions will only reduce the likelihood of it. So I'd go for easy to implement :)

from mapswipe.

Hagellach37 avatar Hagellach37 commented on June 12, 2024

Hey,
sounds perfect. Let's go for the simple 2-line solution.
Download a limited number of groups. (Maybe it's even enough to download just the group keys. But that's up to you.) Then select one group randomly to work on. 👍

from mapswipe.

Hagellach37 avatar Hagellach37 commented on June 12, 2024

and maybe just one additional question:

  • How much effort is it to check the downloaded groups and the groups a users has already finished?

The finished groups should be available from the user profile. A strategy on the app side could be

  1. to download 15 groups from firebase
  2. remove the groups a user has already worked on (based on user profile)
  3. randomly select one of the remaining groups

from mapswipe.

laurentS avatar laurentS commented on June 12, 2024

I've implemented your suggestion above, and it seems to work ok. There will be an edge case where a user has worked on all 15 groups that have the highest requiredCount, which would result in no groups left to work on at a given point in time. While this is theoretically possible, I think the practical risk of this happening is pretty low, so I'd go with it anyway. Maybe you could check what the highest number of groups a single user has mapped in one project is, which would give us a clue as to how likely that case is to happen, but I don't think it's a high priority :)

from mapswipe.

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.