11 ms·
> I like slim and stupid servers, where each endpoint wraps a very dumb DB query. I thought I was alone in this, but I build all my personal projects this way!
by stack_framer 10mo ago
> I like slim and stupid servers, where each endpoint wraps a very dumb DB query.
I thought I was alone in this, but I build all my personal projects this way! I wish I could use this approach at work, but too many colleagues crave "engineering."
- stronglikedan 10mo agoDoesn't that make for exponentially more requests to get the same data, or possibly more data than you really need (bloated responses)?
- never_inline 10mo agoSome people really overdo HTTP verbs /GET, /POST, /PUT, /DELETE and leave much work to frontend. Irks me a lot. But then again, there's GraphQL because frontend developers thought backend developers are anti social.
- dragonwriter 10mo ago> Some people really overdo HTTP verbs /GET, /POST, /PUT, /DELETE and leave much work to frontend. Irks me a lot. If I understand you correctly, I don't think of it as overdoing HTTP verbs so much as using an excessively naive mapping between HTTP resources and base table entities.