📜 ⬆️ ⬇️

Oh this web

About a year ago, I seriously thought about the themes of hate to html that had recently become lame in Habré. Indeed, html is just a text layout tool, it cannot be used to build a UI, which consists of layouts for 90%. Rather, you can, but it turns out hell. Among other things, the html case is when the data is mixed with the presentation. It will not be possible to download html separately, but separate data. There is an idea of ​​parsers.

And even if in a thousand and one templates, this division is explicit, it ceases to be such at the output. Someone wondered why the server is engaged in generating the view that the user needs, but does not need the server? In addition, there is the problem of checking the data displayed for all users: these xss and so on. I did not close the tags - I killed the site, which also fell on users.

In my opinion, the only html task is to display br, strong, a, and so on. There is no need to try to create a block layout, because block layout is an attempt to make layout using html tools. And this whole idea of ​​the hierarchy of block content crumbles into dust when a child crawls out of parent'a. Who ever thought of such a mocking idea of ​​collection, why is it POSSIBLE at all? In terms of code, WYSIWYG turns out to be some kind of weird - you see one code, but it can be displayed as and anywhere. Why is this ambiguity necessary?
')
And it will not be possible to make a complex block ui without crutches of the form -999px, etc. By the way, why is there still no native support for layouts? Already in a low level language it is faster to describe the interface than on the web. And note: each designer is creating over / creating / styling / placing controls, which FOR A LONGLY have in ANY OS. So why so many gestures to create the same, but different? For what? By the way, why should each site have a unique design? Is it something forced? Why desktop ui with the same control is not boring, and very motley non-standard interfaces on the desktop are considered moveton? Well, yes, you can write another 20 templates that allow you to abstract from the sad realities. And let the designers themselves -99999px nails nail ui to html.

In the comments offered Qill in browsers. This, IMHO, is a very interesting approach. By the way, no one bothers to generate qml by the same methods as html.



To sum up, the logical web for me will be:


There are several projects that use redis in this way, but this is not the mainstream. The idea itself is pleasant because the data is not given there (and not then) from which they were asked. The user himself repeatedly applies for the data he needs. And he does with them what he wants. In this case, let him write at least his ui.

As a result, the programmer’s task will be just one: to write a business logic that generates the correct data. And that's all. That is all. And what to do with this data, how, when, why and why is the tenth matter. There is no need to edit patterns, change the order of requests, etc. Then the server part of the web-app will initially look like a set of interfaces for receiving data. We don’t care what data the user’s home page and personal account will consist of. If the user wants - he will write his ui.

And one more assumption that I really want to do: the data and the code should always be separate. And the web is no exception.

If you divide the roles:


So:


Almost any interesting site today is not just a page, but a mass of interfaces and data processing methods. Why not separate the interface from the data right away? It turns out that any site today imposes its presentation on me. And I really do not like it. I go to the site for information, and not for looking at pictures and new css3 zamanuh (I do not argue that sometimes it is very beautiful, but the beauty distracts and ultimately falls usability). It infuriates me that I am searching for the search button on the page. It infuriates me that on all sites of the same destination the buttons are located in different places. I want to see sites just like all desktop apps.

I do not want to incite holivar, just think: how many unforced assumptions do today's technologies contain. How many times have you asked yourself questions like: “Why am I here?” It is quite possible that if you do not take everything from a threshold as a given, one ideological regroup will put everything in its place.

Personally, I think that too much of the effort in designing is deposited on ui. It is there that crutches and redundancy center. This is the first thing you need to make comfortable. And you will not manage generators here: they do not solve the problem in itself, they only facilitate the spikach.

Taking this opportunity, I congratulate everyone on the holiday and wish you creative success.

Source: https://habr.com/ru/post/143496/


All Articles