Rant about Frameworks
I'm targeting React here, because it's very popular and considered "the best" framework among my peers. But my rant could be about any framework.
What is a programming language?
You want to control main
You want to write code that calls other's code, not code that are called by other's code, where it's difficult to know what will happen.
Something might seem very simple, but it's actually very complicated.
If you control main, you control the program, otherwise the program controls you.
What if the company that made your framework stops supporting it, or make a new version, or drops support for your code ? It's then up to you to rewrite your code, or work around bugs and issues with your current version of the framework.
If you want to do something outside "the frame" of your framework, it will be like swimming upstream, or not even possible.
If your project will be long lived, best practises will change, and new API's will be developed, which might not be supported by the framework.
Hard to replace
It will be hard to replace the framework without rewriting your whole application.
If you do not use a framework, you can continuously adapt, and rewrite in small steps.
And the framework might lock you into a proprietary ecosystem. While the framework is free to use, you might have to pay licenses for the platform and special tools needed.
Written by Johan Zetterberg October 11, 2016.