3 ms·
Honestly - a layered approach ends up paying dividends even if used solely for code organization. Options like microservices and event frameworks work quite we
by munk-a 5y ago
Honestly - a layered approach ends up paying dividends even if used solely for code organization. Options like microservices and event frameworks work quite well when using layered approaches internally.
Basically, I've seen SQL in controllers and I don't ever want that again.
- keithnz 5y agodepends, some systems are such that all they are doing is pumping SQL results into JSON, in that case, I don't want to see some general purpose programming language in the controller. Which is kind of the idea behind https://postgrest.org/ https://postgrest.org/ ( written in haskell if anyones interested )
- radicalbyte 5y agoIf all you're doing is pumping SQL into json, you should either be generating code, or if you don't care about performance using a dynamic language with meta-programming techniques such that you write almost 0 code to achieve your results.