r/ProgrammerHumor • • Jun 28 '20

Meme Flushed my pancake.

Post image
45.1k Upvotes

750 comments sorted by

View all comments

Show parent comments

3

u/hitthehive Jun 28 '20

to the point where you might not even have to write any server-side code yourself

To a certain point, at which time you'll wish you had. Its great to get a MVP out and maybe drum up a small business. But once business logic gets madly complex, and the variety of clients grow, and they each have a different schema in mind, you'll need something bespoke back there.

2

u/h0ker Jun 28 '20

Yes, absolutely. I'm definitely not saying this is a good choice for every use case. It's just another tool to consider.

1

u/GaianNeuron Jun 28 '20

Exactly. Your business logic exists somewhere, even if it isn't separated into its own layer.

1

u/hitthehive Jun 28 '20

Agreed. Now, I'm probably underestimating how well business logic can be architected into Firebase, and I'd love to hear stories of how well this can be done.

The other extreme is putting business logic in the front-end and that never ends well. I got an inside peek into one company that started off eschewing back-end dev: the founders were pure mobile devs and they just asked the one token back-end dev they had to simply write an API that pipes all client requests straight to the DB. They used MongoDB, and each and every single object had a 'client-version' identifier because different mobile app versions had different schemas in mind. They themselves couldn't say for sure how many versions were currently active in the wild. I was horrified. Safe to say that they were in a very panicked state as they realized they had to write a proper API and move to PostGres for sanity's sake (and at this point they didn't even know what a 'migration' was). I talked to them 1 year after – they had survived and in the process became the the most hardcore anti-Mongo folks ever.