r/badcode • • Oct 06 '21

sql So umm this is from Twitch source code leak . NSFW

Post image
2.9k Upvotes

400 comments sorted by

View all comments

Show parent comments

14

u/douglasg14b Oct 07 '21

in the Business Layer above

See, that's where you're wrong. No need for a business layer above if the database IS the business layer. Just throw it all in procs and you now have something only a very small handful of people are able to work on or debug.

internal screaming intensifies

7

u/TigreDeLosLlanos Oct 07 '21

No need for a business layer above if the database IS the business layer.

That's what it was originally intended when making SQL, but it's so shitty that everyone ended using it as a data storage manager exclusively.

1

u/douglasg14b Oct 07 '21

Yeah, I kinda with the DBAs that I've worked with throughout my career thus far thought differently...

1

u/CenlTheFennel Oct 10 '21

You work were I work? 😂