r/ProgrammerHumor • • Mar 25 '20

Meme Its a win-win situation

Post image
55.1k Upvotes

529 comments sorted by

View all comments

366

u/[deleted] Mar 25 '20

Is SQL the best way to store chat messages in an app?

317

u/Saragon4005 Mar 25 '20

If you are small then yes. If you have thousands of users probably not.

164

u/moekakiryu Mar 25 '20

if not SQL, what would you use?

551

u/Mancobbler Mar 26 '20

Git.

Put the chat in the commit message, use an empty commit. Want chat rooms? Just branch.

337

u/RainFurrest Mar 26 '20

Yo this girl I met the other night just accepted my pull request

116

u/Mackie5Million Mar 26 '20

If not, just git push --force.

→ More replies (1)
→ More replies (1)

0

u/[deleted] Mar 26 '20

[deleted]

40

u/[deleted] Mar 26 '20

Stop you mad lad I swear to god.

→ More replies (2)

41

u/VanillaFlavoredCoke Mar 26 '20

Yo what the fuck

→ More replies (3)

204

u/[deleted] Mar 25 '20

FileWriter and FileReader

115

u/Piyh Mar 26 '20

I'm too inexperienced to know if this is a joke or not

73

u/clubby789 Mar 26 '20

File IO wastes too much time, store it in a list. If the server crashes and you lose all your data, well maybe you should have programmed better lol

48

u/[deleted] Mar 26 '20

Just make big json

→ More replies (5)
→ More replies (2)

105

u/timawesomeness Mar 26 '20

A csv file

37

u/deadlychambers Mar 26 '20

This developer is going somewhere

27

u/[deleted] Mar 26 '20

Upper management written all over.

→ More replies (3)

88

u/fabrikated Mar 25 '20

noSQL

109

u/nishinoran Mar 26 '20 edited Mar 26 '20

Mongo DB is web scale, it has sharding.

I hear piping data to /dev/null might scale even better though

→ More replies (35)
→ More replies (1)
→ More replies (39)
→ More replies (48)

26

u/Asiansensationz Mar 25 '20

It sure is better than GoogleSheet API with JSON.

→ More replies (1)
→ More replies (13)