3 ms·
I‘d say Rails is a combination of framework and libraries. Some parts (ActiveSupport, the part that simplifies e.g. date calculations) are clearly libraries. T
by Lukas_Skywalker 4y ago
I‘d say Rails is a combination of framework and libraries.
Some parts (ActiveSupport, the part that simplifies e.g. date calculations) are clearly libraries. They can be used outside of Rails as well, because they totally ignore the shape of your other code.
Other parts (ActionPack, the component that calls your code depending on the incoming web request) are working like a framework. Your code must adhere to their requirements, otherwise it won‘t work.
- ItsMonkk 4y agoI think it might be better if instead of trying to redefine libraries and frameworks we instead used the terms impure application(frameworks) and pure application(libraries). That would make it evident as to which libraries are actually tainted with impure work and need to be redefined as impure. When you extend this pure/impure idea all the way throughout the computing eco-system, it quickly becomes apparent that something went wrong a long time ago, and every-time, instead of untangling the mess that is pure and impure into their own buckets, we find a way to run a framework in a framework. What is an Operating System? What is a container? What is k8s? What is a Programming Language? What is a browser? What is a website? What is next?