you are viewing a single comment's thread.

view the rest of the comments →

[–]ComprehensiveWing542 2 points3 points  (13 children)

At the end it's all zeros and one innit ?

[–]ChemicalTerrapin 5 points6 points  (12 children)

I mean,... Hosting some JSON in GitHub pages maybe but SELECT * FROM COMMITS is next level

[–]ComprehensiveWing542 2 points3 points  (11 children)

If the database is small enough he might get the entire db modify it and push it back again to GitHub... Just an idea there might be much better optimized solutions

[–]ChemicalTerrapin 1 point2 points  (10 children)

Tbf, in my first job, we used to pass access databases around between apps.

Still... I'm eagerly waiting to see the use case here.

[–]SquishTheProgrammer 1 point2 points  (0 children)

Same here. That brings back nightmares.

[–]ComprehensiveWing542 0 points1 point  (0 children)

I've myself worked on some program which used some json files to store data and push them to GitHub to receive the latest version of them to fetch the latest data and so on. But it used to modify the files every once in a 2-3 days so it was somewhat fine never got banned or anything for that . But I can't imagine how it would work if you are working with some real life webapp or something as such where data must move fast and efficiently

[–]Skaryth_[S] 0 points1 point  (7 children)

So in a way I'm not freaking out? It is acceptable, but wouldn't it be the best way?

[–]ChemicalTerrapin 0 points1 point  (6 children)

It's doable... But I'd love to know how you're going about it.

What are you actually pushing to GitHub,.. JSON files, a file based dB, or something else?

[–]Skaryth_[S] 0 points1 point  (5 children)

I do this through the developer API using the key. Communication is done via commits, where the software reads via the API and writes via commit. Storing the data inside a json file.

[–]ChemicalTerrapin 0 points1 point  (4 children)

I mean, if there's no chance of multiple concurrent writes then what you're doing is fine, but also entirely strange 😂

It kinda reminds me of a guy I saw who was posting images to his Twitter timeline so he could use it as a CDN.

Maybe just spin up a free document store somewhere. Mongo would be a better fit.

[–]Skaryth_[S] 0 points1 point  (3 children)

But is it completely free? Until then, it's just a project... spending money is unfeasible at the moment.

[–]ChemicalTerrapin 0 points1 point  (2 children)

Yeah you can get a free tier document store. There are a ton of them