cjelli: (hal9000)
Роман Михайлович ([personal profile] cjelli) wrote2022-08-15 10:57 am

Ходим кругами

Из Линкедина:
 
In the '90s web development was writing #Perl CGI script that would print HTML. Once #JavaScript and #CSS were born people started to embed those too in the same file. If the code was using some relational database we also had #SQL in the same file. 5 language in every file.

It was a mess, so people started to develop better practices and templating system to separate the various languages. Generating each page needed more files, but each file contained one, maximum two languages. (e.g. HTML + the template language)

Now I started to see code that uses #Python, HTML, CSS, JavaScript, and yes also SQL in the same file and it is now called a "component".
Is there a trend now to go back to the one-page one-file strategy and use multiple languages in the same file?

Только тридцать лет назад мы это делали не от хорошей жизни...
skittishfox: (Default)

[personal profile] skittishfox 2022-08-15 03:30 pm (UTC)(link)
В мене таке враження, що цей "стиль" має за мету перенести "непотрібні" операції на обчислювальні потужності споживача, а не сервера.