gabrielecirulli / 2048

A small clone of 1024 (https://web.archive.org/web/20140328011720/https://play.google.com/store/apps/details?id=com.veewo.a1024)
MIT License
12.08k stars 16.92k forks source link

Save ranking on a mysql database #114

Open wbecher opened 10 years ago

wbecher commented 10 years ago

Is there a way to optionally save the records to a mysql database?

stuntguy3000 commented 10 years ago

No, if the hosting is to remain on GitHub that is.

DJLunacy commented 7 years ago

Are you saying if a MySQL saves feature were added, GitHub would no longer host the project?

Rabadash8820 commented 7 years ago

I think what @stuntguy3000 means is that, in order to save data to a MySQL (or any) database, your program needs a connection string for that database. However, storing connection strings in open-source repositories (like GitHub) is not at all secure, because now essentially anyone can connect to your database. Therefore, if rankings were to be stored in a database, then 2048's source code (or at least the connection string) would need to be moved off GitHub to a private repository.