Sitemap

UI Constructivism

7 min readMay 30, 2017

--

Press enter or click to view image in full size
illustration by Yakov Chernikhov

Everyone who is only closely confronted with the task of justifying the mutual linking of elements is infected with constructive ideas. Yakov Chernikhov

A special art philosophy appeared around a century ago called constructivism. It originated in communist Russia but is associated with Scandinavian functionalism and German Bauhaus. No doubt it influenced all the postmodern architecture and design.

One of the theorists of the new art movement was Yakov Chernikhov, and in his very illustrated book “Construction of architectural and machinery forms” he specifies art principles of this movement and describes all the possible ways of simple object compilations. All illustrations and weird funny quotes are from the mentioned book.

I’d like to propose the same notion of constructivism to the movement we can see now in web UI development (aka frontend). There is a hype about making independent components which could be the blocks of the later big applications. Github has tons of projects with UI components libraries. Major javascript frameworks propose the solutions for using component-based approach. React, Ember, Angular — all have this feature. Finally, there is a long-standing proposal as a W3C standard called Web Components driven by Google and consisting of several parts, most relevant of which is Custom Elements. (here you can read about previous attempts to standardize components).

The topic of making user interfaces from enumerating a set of components is not new, of course. My generation remembers the time of coprorate-looking UI for desktop applications. The bright example here is Delphi IDE. I don’t know whether it had much hype at that period, but it seems like such enterprise semi-finished GUI was mainstream. And even now different SDKs follow the main idea of this approach, giving way to many platform-specific components. I’m talking about XCode and AndroidStudio, both have a layout view where a developer can drag-n-drop any control element from a predefined list right onto the canvas, and this canvas represents viewport of the application.

More importantly, it’s already well known how to effectively implement GUI from a code perspective. Martin Fowler has a great article about software design of UI. He describes all code patterns and considers differences between MVC, MVP and MVVM. I think all the modern frontend techniques for state management including Redux and RX just replicate the best practices of the aforementioned patterns. Of course, they suit very well for current javascript constraints and community skill level. But nothing new on a fundamental level (I am aware that this is a highly opinionated statement).

On the other hand, Web UI was very different in its early stage. Web consisted of the documents and that’s why it was mainly declarative in the languages describing such documents. HTML and CSS are such domain specific languages (DSL) which strictly constraint a view interaction for the certain cases (such as HTML forms). As we know, so-called Web 2.0 became a game changer, and since then we see the rise of Javascript as a language. I assume that Javascript became to be a language for components composition in just the past 5 years. I’ve witnessed React playing the role of a catalyst for this process due to its simplicity and the wide community.

Get Ivn Cote’s stories in your inbox

Join Medium for free to get updates from this writer.

So nothing surprising that there are attempts to make special tools, both for developers and designers, which allow constructing an application from the assembled parts nice and easy. I need to stress the difference between early existing similar processes. Consider well known Dreamviewer. It gave the ability to create web sites without knowing any web technology at all. But as a result, you would get a set of web pages only, not a web application.

back in time, before Dreamviewer was bought by Adobe

Also, there were frameworks like ExtJS which allow developers to construct a corporate-looking application given minimal familiarity with frontend stack. But it is a very programmatic approach with strong constraints in product vision and in the development process, as I can imagine. One could recall the existence of jquery ecosystem with numerous plugins, patterns, and antipatterns. I think it was the former component vision, but the quality of the architecture in those attempts was too low to succeed. Also, some established software companies had very sophisticated libraries which could be named as ancestors of current component-based frameworks, though such solutions were not commonly accepted. I can point out BEM tech stack developed at Yandex as an example. There are special components libraries written in BEMJSON/BEMHTML with bem.js, but they are widely spread inside Yandex only. And even BEM notation for CSS class names is far from acceptance in the frontend community despite being the easiest part of BEM.

Press enter or click to view image in full size
illustration by Yakov Chernikhov

The notion of constructivism defines any compact combination and connection of various objects that can be united into one. Besides, construction it a notion which introduces us to various unity principles in readily-visible, tangible and experienced images. When some bodies, linked with others, create something whole, harmonious, and this whole represents a certain connected composition, this solves the constructivism problem. The community of all participating items attests that the combination of these items creates a phenomenon that we call a construction. Yakov Chernikhov

Press enter or click to view image in full size
Module system in action, https://www.npmjs.com/package/webpack-bundle-analyzer

All right, what exactly we do have now to be able to compose our applications by using only mouse or trackpad? Let’s start with ReactStudio which enables you to create responsive layouts from basic components without coding at all. This sounds crazy. I’m not sure that quality of such code is production ready. Anyway, for prototyping it is big. The emergence of such products is natural because developers have so many sandboxes for components development. And the idea of visual UI sandbox is so close to the conception of assembling final page by using prepared blocks. Such projects as ReactStorybook or ReactStyleguidist make us believe that it’s possible to create more than a simple sandbox, where we can not only view a component and its behavior but also to connect it with several others in a way that makes the whole thing work smoothly.

ReactStudio official presentation

All I want to say is that tools for the rapid app prototyping are almost here. The difference between them and InVision is that now a designer can use actually implemented web components and not just graphics primitives. The funny thing is that there is also an counter move from the designers camp. Some of them assume we can program visual blocks ourselves for the later use inside the design software like Sketch. A very fresh article from Airbnb describes this miracle in details.

Press enter or click to view image in full size
illustration by Yakov Chernikhov

The very notion of constructivism in every case is that it creates the impression of the need to tie one element to another. Watching the functional interdependence of a number of objects and justifying this dependence, we, thereby, affirm that constructive rationalism which we seek. The meaning of constructivism is also in that it creates in us the conviction of the aspiration of girth, which some objects possess. There is legitimization of the adhesion principle in the tenacious connection and mutual soldering of individual items. When one body intrudes in another and, thus, begets dependence of one from the other, such in the summation of their mutual action a finished work is created. Here, too, we find meaning, in that collective merging of a number of elements create one definite whole. While an individual item is something impersonal in whole, a group of constructively-united items is a formed unit, i.e., a defined and holistic unity. Yakov Chernikhov

Press enter or click to view image in full size
Dependencies graph for Kibana

Generally speaking all this is awesome news! Though frontenders could be a bit in a panic. Imagine that designers could easily make not only web pages but also web applications. It would shift the job IT market! To be honest I don’t think this is that simple. More importantly it would be another relations type of relations between frontend and design. Let’s breathe deeply because we know a similar situation before, when agile movement made devops appear as a notion of the special mindset inside an agile team and created new relations between developers and operation engineers. Let’s be clear: obvious, the components should still be implemented and delivered, in order to compose UI. They should exist in code. Frontend engineers can finally focus on the performance and other important stuff!

I expect next two years to give us an opportunity to create great web applications with ease! It could be thrilling, but remember to breathe )

Upd 07 June. I forget to mention a special project for React developers called Structor, obviously worth mentioning!

Many thanks to Tanya for helping me in publishing this article and for the translations of Yakov Chernikhov especially!

--

--

Ivn Cote
Ivn Cote

Written by Ivn Cote

Ivan Kotov, Web Software Enthusiast. "Liberté, Courage, Générosité"