|
I really care about a simple question,
why most of frontend developers, which one i know, obsessed with new frameworks.
In fact React / Angular / Backbone / Knockout are born and die again in a couple of years.
Everyone can see some interesting things (virtual dom (simply wonderful!)),
and begin to write / rewrite their applications using the new framework. At the same time, most of the projects, which you can see
would be just fine by simply using server-side rendering and for example PostCSS. The development would be simpler, code usually much simple and without MBs of JS libraries. And, important for business, time to market, hiring of developers i suppose would move faster. I understand that this is all very interesting things, good to be in trend and understand whats going on,
but to be aware of technology and immediately implement it in production system...hm, not so sure about this. Now I look at ClojureScript as an acceptable replacement for JS development,
because after release of ES6, and reading ES7 specs, there is a feeling that the direction in which the ecosystem moving is wrong one. So, the frontend world is changing a lot quickly and in different directions,
but which one is right one, i have a serious doubts. |
I do however, work in ClojureScript, using Reagent, which is an opinionated binding to React with a special emphasis on functional reactive programming.
I discovered the FRP approach through Hoplon, and then soon moved to Reagent, and I must say that it was an absolute godsend.
It is the first real alternative paradigm to interface development in years, and the first one that actually interfaces well with functional programming at the most basic level.
FRP allows you to write an interface in a declarative, functional style that is easy to follow, and largely easy to predict. State is kept to a minimum, and can be organized and localized in sane ways. View updating is basically automated, left to the underlying mechanisms of the virtual DOM.
With CLJS' Hiccup syntax, even defining and passing HTML values becomes painless.
Discovering FRP was basically the same light bulb moment for me as a programmer that discovering Lisp and FP themselves were. I only wish I could find a framework for developing desktop applications that was as easy to learn and use.