{"id":477192,"date":"2026-04-24T05:48:12","date_gmt":"2026-04-24T05:48:12","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=477192"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=477192","title":{"rendered":"\u0420\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b, \u0438\u043b\u0438 \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c JavaScript \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0436\u0438\u0442\u044c"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u041e\u0431\u0437\u043e\u0440 <\/em><strong><em>Phoenix LiveView<\/em><\/strong><em> \u0438 \u0435\u0433\u043e \u0434\u0440\u0443\u0437\u0435\u0439 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0435\u043a\u043e\u0432: <\/em><strong><em>Rails Hotwire<\/em><\/strong><em>, <\/em><strong><em>Laravel Livewire<\/em><\/strong><em> \u0438 <\/em><strong><em>Go Live\/HLive<\/em><\/strong><\/p>\n<hr\/>\n<h4>\u041f\u0440\u0435\u0430\u043c\u0431\u0443\u043b\u0430: \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u0438\u044f<\/h4>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0434\u0432\u0443\u0445\u0442\u044b\u0441\u044f\u0447\u043d\u044b\u0445, \u043a\u043e\u0433\u0434\u0430 <code>jQuery<\/code> \u0435\u0449\u0435 \u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432\u0435\u0440\u0448\u0438\u043d\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u043c\u044b\u0441\u043b\u0438, \u0430 \u0441\u043b\u043e\u0432\u043e \u00ab\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u00bb \u043f\u0440\u043e\u0438\u0437\u043d\u043e\u0441\u0438\u043b\u043e\u0441\u044c \u0441 \u043f\u0440\u0438\u0434\u044b\u0445\u0430\u043d\u0438\u0435\u043c \u0438 \u043b\u0435\u0433\u043a\u0438\u043c \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u043c \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c, \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0431\u044b\u043b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u043c. \u041e\u043d \u043f\u0438\u0441\u0430\u043b HTML, \u043d\u0435\u043c\u043d\u043e\u0433\u043e CSS, \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430\u00a0\u2014 \u0438 \u0443\u0445\u043e\u0434\u0438\u043b \u0434\u043e\u043c\u043e\u0439 \u043a \u0448\u0435\u0441\u0442\u0438. <code>Ajax<\/code> \u043e\u0431\u0440\u0435\u043b \u0432\u0442\u043e\u0440\u043e\u0435 \u0434\u044b\u0445\u0430\u043d\u0438\u0435, \u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u0432\u0435\u0442\u0432\u0438\u043b\u0438\u0441\u044c, \u043a\u0430\u043a \u0433\u0435\u043d\u0435\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u0440\u0435\u0432\u043e \u0440\u0430\u0437\u043e\u0440\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0430\u0440\u0438\u0441\u0442\u043e\u043a\u0440\u0430\u0442\u0430.<\/p>\n<p>\u041a 2010-\u043c \u0442\u0440\u0435\u0449\u0438\u043d\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0430\u0441\u044c \u0432 \u043f\u0440\u043e\u043f\u0430\u0441\u0442\u044c. \u041f\u043e \u043e\u0434\u043d\u0443 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438\u00a0\u2014 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0435, \u0447\u0442\u043e \u0442\u0432\u043e\u044f \u043f\u043e\u0436\u0438\u043b\u0430\u044f \u043d\u0435\u043c\u0435\u0446\u043a\u0430\u044f \u043f\u0430\u0440\u0430 \u043d\u0430 \u0424\u0440\u0438\u0434\u0440\u0438\u0445\u0448\u0442\u0440\u0430\u0441\u0441\u0435, \u0432 \u043e\u0442\u0443\u0442\u044e\u0436\u0435\u043d\u043d\u044b\u0445 \u0440\u0443\u0431\u0430\u0448\u043a\u0430\u0445 \u0438 \u0441 \u043f\u0440\u044f\u043c\u043e\u0439 \u0441\u043f\u0438\u043d\u043e\u0439. \u041f\u043e \u0434\u0440\u0443\u0433\u0443\u044e\u00a0\u2014 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435\u0440\u044b, \u0432\u0435\u0447\u043d\u043e \u0432\u0437\u044a\u0435\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435, \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438, \u043a\u0430\u043a \u0447\u0435\u0442\u043a\u0438: <code>Backbone<\/code>, <code>Angular<\/code>, <code>React<\/code>, <code>Vue<\/code>, <code>Svelte<\/code>, <code>Solid<\/code>, <code>$mol<\/code>, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043a\u0443\u0434\u0430 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e,\u00a0\u2014 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443. \u041c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043f\u0440\u043e\u043b\u0435\u0433\u0430\u043b\u0430 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u043b\u043e\u0441\u0430 \u0438\u0437 <code>JSON<\/code>-\u043e\u0432 \u0438 <code>REST API<\/code>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u0431\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u043b\u0438 \u0441 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c \u043b\u0438\u0446\u0430 \u0442\u0430\u043c\u043e\u0436\u0435\u043d\u043d\u0438\u043a\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b.<\/p>\n<p>\u0418 \u0432\u043e\u0442, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a 2018 \u0433\u043e\u0434\u0443, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0435\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u0434\u0435\u0435: \u0430 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443? \u0427\u0442\u043e, \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c HTML, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u043f\u043e <code>WebSocket<\/code>\u00a0\u2014 \u0438 \u043f\u0443\u0441\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0435\u043c \u0435\u043c\u0443 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e: \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a?<\/p>\n<p>\u0418\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u043d\u0435 \u043d\u043e\u0432\u0430. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432\u0435\u0441\u044c \u0432\u0435\u0431 \u0434\u043e \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u044f <code>XMLHttpRequest<\/code>. \u041d\u043e \u0432 \u043d\u043e\u0432\u043e\u0439 \u0440\u0435\u0438\u043d\u043a\u0430\u0440\u043d\u0430\u0446\u0438\u0438 \u043e\u043d\u0430 \u043e\u0431\u0440\u043e\u0441\u043b\u0430 \u0434\u0438\u0444\u0444\u0430\u043c\u0438, \u043f\u0430\u0442\u0447\u0430\u043c\u0438, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 DOM-\u0430\u043c\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u0440\u043e\u0441\u043a\u043e\u0448\u044c\u044e, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043b\u043b\u044e\u0437\u0438\u044e \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u043b\u0438\u043a\u0430 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e <code>JavaScript<\/code>. \u041d\u0443, \u043f\u043e\u0447\u0442\u0438 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439.<\/p>\n<p>\u0422\u0430\u043a \u0440\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043a \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435: <a href=\"https:\/\/hexdocs.pm\/phoenix_live_view\/Phoenix.LiveView.html\" rel=\"noopener noreferrer nofollow\"><em>Phoenix LiveView<\/em><\/a> (2018, Elixir), <a href=\"https:\/\/hotwired.dev\/\" rel=\"noopener noreferrer nofollow\"><em>Rails Hotwire<\/em><\/a> (2020, Ruby), <a href=\"https:\/\/livewire.laravel.com\/\" rel=\"noopener noreferrer nofollow\"><em>Laravel Livewire<\/em><\/a> (2019, PHP) \u0438 \u0446\u0435\u043b\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e Go-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439: <a href=\"https:\/\/github.com\/jfyne\/live\" rel=\"noopener noreferrer nofollow\"><em>Live<\/em><\/a> (jfyne), <a href=\"https:\/\/github.com\/SamHennessy\/hlive\" rel=\"noopener noreferrer nofollow\"><em>HLive<\/em><\/a> (SamHennessy), <a href=\"https:\/\/github.com\/livefir\/fir\" rel=\"noopener noreferrer nofollow\"><em>Fir<\/em><\/a> (livefir\u00a0\u2014 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0432 2025). \u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043d\u0438\u0445\u00a0\u2014 \u043e\u0442\u0432\u0435\u0442 \u0441\u0432\u043e\u0435\u0439 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u043e: \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u044f \u0438\u0437 \u0437\u043e\u043d\u044b \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u0430?<\/p>\n<hr\/>\n<h4>I. Phoenix LiveView: \u0434\u0435\u043c\u0438\u0443\u0440\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/h4>\n<p><em>LiveView<\/em> \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c &#8212; \u0435\u0441\u043b\u0438 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c <em>Meteor<\/em>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0432\u043f\u0440\u043e\u0447\u0435\u043c, \u0440\u0435\u0448\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0438 \u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0441 \u0440\u0430\u0437\u043c\u0430\u0445\u043e\u043c \u043f\u044c\u044f\u043d\u043e\u0433\u043e \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430. <a href=\"https:\/\/chrismccord.com\/\" rel=\"noopener noreferrer nofollow\">\u041a\u0440\u0438\u0441 \u041c\u0430\u043a\u043a\u043e\u0440\u0434<\/a> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b <em>LiveView<\/em> \u043d\u0430 <em>ElixirConf 2018<\/em>, \u0438 \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043f\u0440\u043e\u0448\u0435\u043b \u043f\u0443\u0442\u044c \u043e\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.0 (\u0434\u0435\u043a\u0430\u0431\u0440\u044c 2024), \u043e\u0431\u0440\u0435\u0442\u044f \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 HEEx-\u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0441\u0442\u0440\u0438\u043c\u044b \u0438 \u043f\u0440\u043e\u0447\u0443\u044e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u043a\u0443 \u0437\u0440\u0435\u043b\u043e\u0441\u0442\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0441\u0442 \u0434\u043e \u0441\u043c\u0435\u0448\u043d\u043e\u0433\u043e: \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u0417\u0430\u0442\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 <em>WebSocket<\/em>-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0438\u0444\u0444\u043e\u0432. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0436\u0438\u0432\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u043e\u043c BEAM-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435\u00a0\u2014 \u0442\u043e\u043c \u0441\u0430\u043c\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 <em>Erlang VM<\/em> \u0443\u043c\u0443\u0434\u0440\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u0434\u0432\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435, \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0442\u0435\u044f.<\/p>\n<pre><code class=\"elixir\">defmodule DemoLive do  use Phoenix.LiveView  def mount(_params, _session, socket) do    {:ok, assign(socket, count: 0)}  end  def render(assigns) do    ~H\"\"\"    &lt;div&gt;      &lt;h1&gt;\u0421\u0447\u0435\u0442\u0447\u0438\u043a: {@count}&lt;\/h1&gt;      &lt;button phx-click=\"inc\"&gt;+&lt;\/button&gt;      &lt;button phx-click=\"dec\"&gt;-&lt;\/button&gt;    &lt;\/div&gt;    \"\"\"  end  def handle_event(\"inc\", _, socket) do    {:noreply, update(socket, :count, &amp;(&amp;1 + 1))}  end  def handle_event(\"dec\", _, socket) do    {:noreply, update(socket, :count, &amp;(&amp;1 - 1))}  endend<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0437\u0434\u0435\u0441\u044c \u043d\u0435\u0442 \u043d\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u043d\u0438 JSON, \u043d\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435. \u041e\u0434\u0438\u043d \u043c\u043e\u0434\u0443\u043b\u044c. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u00a0\u2014 \u0436\u0438\u0432\u0435\u0442 \u0432 <code>assigns<\/code>. \u0420\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u00a0\u2014 \u0432 <code>~H<\/code>-\u0441\u0438\u0433\u0438\u043b\u0435. \u0421\u043e\u0431\u044b\u0442\u0438\u044f\u00a0\u2014 \u0432 <code>handle_event<\/code>. \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0431\u0435\u0440\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0435\u0447\u043d\u0438\u043a \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0438\u0437 \u043a\u0438\u0440\u043f\u0438\u0447\u0435\u0439 \u043d\u0435\u0447\u0442\u043e \u043a\u0440\u0438\u0432\u043e\u0431\u043e\u043a\u043e\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u0441\u0438\u0432\u0448\u0435\u0435\u0441\u044f\u00a0\u2014 \u043d\u043e \u043e\u043d\u043e \u043f\u0440\u043e\u0442\u0430\u043f\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430, \u043a\u0430\u043a \u0440\u043e\u0434\u043d\u043e\u0435.<\/p>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0440\u0435\u0430\u043b\u0442\u0430\u0439\u043c \u0447\u0435\u0440\u0435\u0437 <em>WebSocket<\/em>. \u041d\u0435 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u044f, \u043d\u0435 \u043f\u043e\u043b\u043b\u0438\u043d\u0433 (\u0445\u043e\u0442\u044f \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0432\u0435\u0431\u0441\u043e\u043a\u0435\u0442\u043e\u0432 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043e\u0442\u043a\u0430\u0442 \u043d\u0430 \u043d\u0435\u0433\u043e)\u00a0\u2014 \u0436\u0438\u0432\u043e\u0435, \u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u044b\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 <em>Fault tolerance<\/em> \u043f\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0443 \u043e\u0442 BEAM\/OTP. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u043f\u0430\u043b\u00a0\u2014 <s>\u043e\u0442\u0436\u0430\u043b\u0441\u044f<\/s> \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a: \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0438\u0444\u0444\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 DOM.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041e\u0434\u0438\u043d \u044f\u0437\u044b\u043a, \u043e\u0434\u0438\u043d \u0441\u0442\u0435\u043a, \u043e\u0434\u043d\u0430 \u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 <em>LiveView<\/em>-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.<\/p>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 <em>Elixir<\/em>\u00a0\u2014 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u043e\u0447\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0441 \u043f\u0430\u0442\u0442\u0435\u0440\u043d-\u043c\u0430\u0442\u0447\u0438\u043d\u0433\u043e\u043c, \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0435\u0439. \u041d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u0437\u043d\u0430\u043a\u043e\u043c\u0443\u044e \u0441 \u043d\u044e\u0430\u043d\u0441\u0430\u043c\u0438\u00a0\u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u042d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0443 <em>Ruby<\/em> \u0438\u043b\u0438 <em>PHP<\/em>. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c API \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443. \u0425\u043e\u0442\u044f, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043e\u043f\u044b\u0442\u0443, \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u043e\u0435\u00a0\u2014\u00a0\u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041a\u0430\u0436\u0434\u043e\u0435 WebSocket-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 (~40KB). \u041f\u0440\u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0443\u044e\u0442\u043d\u043e\u0439. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u044d\u0442\u043e \u043d\u0435 <em>CGI<\/em>, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438 \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0432\u043e\u0442\u043a\u043d\u0443\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<hr\/>\n<h4>II. Rails Hotwire: HTML \u043f\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0430\u043c, \u043a\u0430\u043a \u0437\u0430\u0432\u0435\u0449\u0430\u043b \u0414\u0435\u0434\u0443\u0448\u043a\u0430 \u0425\u0430\u0440\u0438\u0437\u043c\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0425\u0430\u0439\u043f\u0430 (\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0432 \u0443\u0437\u043a\u0438\u0445 \u043a\u0440\u0443\u0433\u0430\u0445, \u043a\u0430\u043a DHH)<\/h4>\n<p><em>Hotwire<\/em>\u00a0\u2014 \u044d\u0442\u043e Basecamp\/37signals, DHH, Ruby on Rails, \u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442: \u043a\u043e\u043d\u0432\u0435\u043d\u0446\u0438\u044f \u043f\u0440\u0435\u0432\u044b\u0448\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043c\u043d\u0435\u043d\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0435 \u043c\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u0438 \u0442\u0432\u0435\u0440\u0434\u0430\u044f \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d React (\u0447\u0442\u043e \u0442\u0430\u043a \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0438 \u0435\u0441\u0442\u044c, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435). \u042d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a: <em>Turbo<\/em> (\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0435\u0439 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b) \u0438 <em>Stimulus<\/em> (\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 JS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f).<\/p>\n<p>\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f <em>Hotwire<\/em>\u00a0\u2014 \u00abHtml Over The WIRE\u00bb \u0432 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435: \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u0443\u0441\u043a\u0438 HTML, \u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0438\u0444\u0444\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e DOM. \u0413\u0440\u0443\u0431\u043e, \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e, \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u00a0\u2014 \u043a\u0430\u043a \u043a\u0438\u0440\u043f\u0438\u0447\u043d\u0430\u044f \u043a\u043b\u0430\u0434\u043a\u0430.<\/p>\n<pre><code>&lt;%# app\/views\/posts\/index.html.erb %&gt;&lt;%= form_with url: posts_path, method: :get,              data: { turbo_frame: \"results\" } do %&gt;  &lt;input type=\"search\" name=\"q\" value=\"&lt;%= params[:q] %&gt;\"&gt;&lt;% end %&gt;&lt;turbo-frame id=\"results\"&gt;  &lt;% @posts.each do |post| %&gt;    &lt;div&gt;&lt;%= post.title %&gt;&lt;\/div&gt;  &lt;% end %&gt;&lt;\/turbo-frame&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<pre><code class=\"ruby\"># Turbo Stream: \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438# app\/models\/message.rbclass Message &lt; ApplicationRecord  after_create_commit -&gt; {    broadcast_append_to \"messages\",      target: \"messages\",      partial: \"messages\/message\"  }end<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><em>Turbo Frames<\/em>\u00a0\u2014 \u044d\u0442\u043e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u044b \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438: \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0440\u0435\u0439\u043c\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0440\u0435\u0439\u043c, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0442\u0440\u043e\u043d\u0443\u0442\u043e\u0439. <em>Turbo Streams<\/em>\u00a0\u2014 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b (<code>append<\/code>, <code>prepend<\/code>, <code>replace<\/code>, <code>remove<\/code>), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP-\u043e\u0442\u0432\u0435\u0442, \u0442\u0430\u043a \u0438 \u0447\u0435\u0440\u0435\u0437 WebSocket (<em>Action Cable<\/em>).<\/p>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u043e\u0433\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 <em>Rails<\/em>\u00a0\u2014 \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 <em>Hotwire<\/em>.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u0413\u0438\u0433\u0430\u043d\u0442\u0441\u043a\u0430\u044f \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0436\u0435\u043c\u043e\u0432. \u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438 \u0442\u044b\u0441\u044f\u0447\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u043e\u0432.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041d\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043a <em>WebSocket<\/em>: <em>Turbo Frames<\/em> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP. <em>Turbo Streams<\/em> \u0443\u043c\u0435\u044e\u0442 \u0438 \u0442\u0430\u043a, \u0438 \u0442\u0430\u043a.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 <em>Stimulus<\/em> \u0434\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0441\u0442\u043e\u043b\u044c\u043a\u043e <em>JavaScript<\/em>, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0443\u0436\u043d\u043e, \u0438 \u043d\u0438 \u0433\u0440\u0430\u043c\u043c\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 <em>Hotwire<\/em>\u00a0\u2014 \u043d\u0435 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u042d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0439 \u043f\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0435 HTML. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0436\u0438\u0432\u0435\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435. \u042d\u0442\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u0440\u0443\u0433\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c, \u043d\u0435\u0436\u0435\u043b\u0438 \u0447\u0435\u043c \u0443 <em>LiveView<\/em>.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u0421\u043b\u043e\u0436\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c (drag-and-drop, nested modals, client-side state) \u0431\u044b\u0441\u0442\u0440\u043e \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 <em>JavaScript<\/em>.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c <em>Ruby<\/em> \u043f\u0440\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438\u00a0\u2014 \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e, \u0433\u0440\u0443\u0441\u0442\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0432\u043e\u0442\u043a\u043d\u0443\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043a\u043b\u0435\u043d\u043d\u044b\u0445 \u043a \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0437\u0430 \u0431\u0430\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u043c, \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/shopify.engineering\/shopify-made-patterns-in-our-rails-apps\" rel=\"noopener noreferrer nofollow\"><em>Shopify<\/em><\/a>.<\/p>\n<hr\/>\n<h4>III. Laravel Livewire: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0437 \u0436\u0438\u0437\u043d\u0438<\/h4>\n<p><em>Livewire<\/em>\u00a0\u2014 \u0441\u0430\u043c\u044b\u0439 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0440\u0435\u0434\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432 <em>LiveView<\/em>. \u041a\u0430\u043b\u0435\u0431 \u041f\u043e\u0440\u0446\u0438\u043e \u0441\u043e\u0437\u0434\u0430\u043b \u0435\u0433\u043e \u0432 2019 \u0433\u043e\u0434\u0443, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u0438\u043c\u0435\u043d\u043d\u043e <em>Phoenix LiveView<\/em>, \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0434\u0435\u0438 \u043d\u0430 \u043f\u043e\u0447\u0432\u0443 Laravel \u0438 PHP. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u00a0\u2014 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 PHP-\u043a\u043b\u0430\u0441\u0441 \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0430 Blade-\u0448\u0430\u0431\u043b\u043e\u043d \u0435\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0438 (\u043a\u043b\u0438\u043a, \u0432\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u043e\u0440\u043c\u044b) Livewire \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 AJAX-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 HTML.<\/p>\n<pre><code class=\"php\">\/\/ app\/Livewire\/Counter.phpclass Counter extends Component{    public int $count = 0;    public function increment(): void    {        $this-&gt;count++;    }    public function decrement(): void    {        $this-&gt;count--;    }    public function render(): View    {        return view('livewire.counter');    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<pre><code>{{-- resources\/views\/livewire\/counter.blade.php --}}&lt;div&gt;    &lt;h1&gt;\u0421\u0447\u0435\u0442\u0447\u0438\u043a: {{ $count }}&lt;\/h1&gt;    &lt;button wire:click=\"increment\"&gt;+&lt;\/button&gt;    &lt;button wire:click=\"decrement\"&gt;-&lt;\/button&gt;&lt;\/div&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a, \u0441\u043b\u043e\u0432\u043d\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430 <em>PHP<\/em>? \u041d\u0435\u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0442\u043e\u0442 \u0436\u0435: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u043e \u0434\u044c\u044f\u0432\u043e\u043b, \u043a\u0430\u043a \u0432\u043e\u0434\u0438\u0442\u0441\u044f, \u043f\u0440\u044f\u0447\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445.<\/p>\n<p><em>PHP<\/em> \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0435 WebSocket-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u043a \u0436\u0435 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e, \u043a\u0430\u043a <em>Erlang VM<\/em>. <em>Livewire 2<\/em> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b AJAX-\u043f\u043e\u043b\u043b\u0438\u043d\u0433; <em>Livewire 3<\/em> \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 WebSocket \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/reverb.laravel.com\/\" rel=\"noopener noreferrer nofollow\"><em>Laravel Reverb<\/em><\/a>, \u043d\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435 \u0435\u0449\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 HTTP. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432 JSON, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442, \u0430 \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0438\u00a0\u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0441 \u0433\u0440\u0430\u0446\u0438\u0435\u0439 \u0431\u0440\u0438\u0433\u0430\u0434\u044b \u0433\u0440\u0443\u0437\u0447\u0438\u043a\u043e\u0432, \u0437\u0430\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u0440\u043e\u044f\u043b\u044c \u043d\u0430 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u044d\u0442\u0430\u0436 \u0432 \u0434\u043e\u043c\u0435 \u0431\u0435\u0437 \u0433\u0440\u0443\u0437\u043e\u0432\u043e\u0433\u043e \u043b\u0438\u0444\u0442\u0430.<\/p>\n<p>\u0417\u0430\u0442\u043e <em>Livewire<\/em> \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 <em>Alpine.js<\/em>\u00a0\u2014 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c JavaScript-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0435\u0440\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0442\u043e\u0433\u0433\u043b\u044b \u0438 \u043f\u0440\u043e\u0447\u0443\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u043c\u0435\u043b\u043e\u0447\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0433\u043e\u043d\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u044b\u043b\u043e \u0431\u044b \u0440\u0430\u0441\u0442\u043e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0421\u0432\u044f\u0437\u043a\u0430 <code>Livewire + Alpine<\/code>\u00a0\u2014 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0432 \u043c\u0438\u0440\u0435 <em>Laravel<\/em>.<\/p>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 <code>wire:model<\/code>\u00a0\u2014 \u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442 \u0432 \u043f\u043e\u043b\u0435\u00a0\u2014 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 <em>Laravel<\/em>. <em>Filament<\/em>, <em>Jetstream<\/em>, <em>Breeze\u00a0\u2014<\/em> \u0432\u0441\u0435 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 <em>Livewire<\/em> \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f PHP-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 <em>Alpine.js<\/em> \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0442\u0435 \u0441\u043b\u0443\u0447\u0430\u0438, \u043a\u043e\u0433\u0434\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u0435\u043d.<\/p>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e). \u041a\u0430\u0436\u0434\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u00a0\u2014 \u044d\u0442\u043e HTTP round-trip. \u041d\u0430 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u044d\u0442\u043e \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442. \u041d\u043e \u043c\u044b \u0438 \u0442\u0430\u043a \u043d\u0430 PHP.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u0421\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435\u00a0\u2014 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b, \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0435 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 PHP \u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c\u00a0\u2014 \u043e\u043a\u0441\u044e\u043c\u043e\u0440\u043e\u043d \u0442\u043e\u0433\u043e \u0436\u0435 \u0442\u043e\u043b\u043a\u0430, \u0447\u0442\u043e \u00ab\u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438\u00bb \u0438\u043b\u0438 \u00ab\u0438\u043d\u0442\u0435\u043b\u043b\u0438\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0432\u043e\u0435\u043d\u0440\u0443\u043a\u00bb.<\/p>\n<hr\/>\n<h4>IV. Go Live\/HLive: \u0441\u0443\u0440\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0437\u043c<\/h4>\n<p>\u0412 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 <em>Go<\/em> \u043d\u0435\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u00a0\u2014 \u0441\u043a\u043e\u0440\u0435\u0435, \u0440\u043e\u0441\u0441\u044b\u043f\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0440\u0430\u0437\u043d\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0437\u0440\u0435\u043b\u043e\u0441\u0442\u0438, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u0449\u0435\u0439 \u0438\u0434\u0435\u0435\u0439 \u0438 \u043e\u0431\u0449\u0438\u043c \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043c\u0435\u0439\u043d\u0441\u0442\u0440\u0438\u043c\u043e\u043c. \u0414\u0432\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445: <strong>Live<\/strong> (jfyne, ~730 \u0437\u0432\u0435\u0437\u0434 \u043d\u0430 GitHub) \u0438 <strong>HLive<\/strong> (SamHennessy, ~98 \u0437\u0432\u0435\u0437\u0434). \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 <strong>Fir<\/strong> (livefir), \u043d\u043e \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u0440 \u0443\u0436\u0435 \u043e\u0431\u044a\u044f\u0432\u0438\u043b \u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p><em>Live<\/em>\u00a0\u2014 \u043f\u0440\u044f\u043c\u043e\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a <em>Phoenix LiveView<\/em> \u043f\u043e \u0434\u0443\u0445\u0443. <em>WebSocket<\/em>, \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0438\u0444\u0444\u044b. \u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 <code>net\/http<\/code>.<\/p>\n<pre><code class=\"go\">\/\/ \u0422\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442 \u043d\u0430 Go Live (jfyne\/live)func thermoMount(ctx context.Context, s *live.Socket) (any, error) {    return &amp;ThermoModel{C: 19.5}, nil}func tempUp(ctx context.Context, s *live.Socket, p live.Params) (any, error) {    model := s.Assigns().(*ThermoModel)    model.C += 0.1    return model, nil}\/\/ \u0428\u0430\u0431\u043b\u043e\u043d\/\/ &lt;div&gt;{{.Assigns.C}}&lt;\/div&gt;\/\/ &lt;button live-click=\"temp-up\"&gt;+&lt;\/button&gt;\/\/ &lt;button live-click=\"temp-down\"&gt;-&lt;\/button&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><em>HLive<\/em> \u0438\u0434\u0435\u0442 \u0434\u0430\u043b\u044c\u0448\u0435: \u0432\u043c\u0435\u0441\u0442\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432\u00a0\u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f DOM \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 (\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 DOM a\u0300 la <em>React<\/em>, \u043d\u043e \u043d\u0430 <em>Go<\/em>). \u041d\u0438\u043a\u0430\u043a\u0438\u0445 HTML-\u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 template engines. \u0427\u0438\u0441\u0442\u044b\u0439 <em>Go<\/em>.<\/p>\n<pre><code class=\"go\">\/\/ HLive: \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f DOMfunc home() *l.Page {    var message string    input := l.C(\"input\",        l.Attrs{\"type\": \"text\"},        l.OnKeyUp(func(ctx context.Context, e l.Event) {            message = e.Value        }),    )    page := l.NewPage()    page.DOM.Body.Add(        l.T(\"div\", input),        l.T(\"hr\"),        \"Hello, \", &amp;message,    )    return page}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 <em>Go<\/em>\u00a0\u2014 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439, \u0431\u044b\u0441\u0442\u0440\u044b\u0439. \u041e\u0434\u0438\u043d \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 <code>net\/http<\/code>\u00a0\u2014 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043e\u0442 \u043c\u0435\u0433\u0430-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0430\u0434\u043c\u0438\u043d\u043e\u043a, \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u043e\u0432.<\/p>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041d\u0435\u0437\u0440\u0435\u043b\u043e\u0441\u0442\u044c. <em>Live<\/em>\u00a0\u2014 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043d\u043e \u0438 \u043e\u043d \u0434\u0430\u043b\u0435\u043a \u043e\u0442 production-ready \u0432 \u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0432 \u043a\u0430\u043a\u043e\u043c \u044d\u0442\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442 \u0432 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u041d\u0435\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0430 <a href=\"https:\/\/www.curiosum.com\/blog\/phoenix-component\" rel=\"noopener noreferrer nofollow\"><em>Phoenix Components<\/em><\/a> \u0438\u043b\u0438 <a href=\"https:\/\/blade-components.com\/\" rel=\"noopener noreferrer nofollow\"><em>Blade<\/em>-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/a>.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u00a0\u2014 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 README \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u0414\u043b\u044f \u0441\u043a\u043e\u043b\u044c\u043a\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438.<br \/>\u00a0\u00a0\u00a0\u00a0\u25b8 \u041d\u0435\u0442 \u0433\u043e\u0440\u044f\u0447\u0435\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u043d\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u043d\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432. \u0412\u044b \u043e\u0434\u0438\u043d \u043d\u0430 \u043e\u0434\u0438\u043d \u0441 \u044f\u0437\u044b\u043a\u043e\u043c \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439.<\/p>\n<hr\/>\n<h4>V. \u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0430\u043d\u0430\u0442\u043e\u043c\u0438\u044f<\/h4>\n<h3>\u041c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f<\/h3>\n<p><strong>LiveView<\/strong>: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0436\u0438\u0432\u0435\u0442 \u0432 BEAM-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u043c \u043a WebSocket-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044e. \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u00a0\u2014 \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u044b\u0439 (~2KB), \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439, \u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043a\u0443\u0447\u0435\u0439. \u041f\u0430\u0434\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435.<\/p>\n<p><strong>Hotwire<\/strong>: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0435\u0442. \u041a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u00a0\u2014 stateless. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u00a0\u2014 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432 \u0441\u0435\u0441\u0441\u0438\u0438, \u0432 URL-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445. \u042d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 (\u043d\u0443, \u0438\u043b\u0438 \u0447\u0443\u0432\u0430\u043a\u0438 \u043d\u0435 \u043e\u0441\u0438\u043b\u0438\u043b\u0438 \u0444\u0430\u0439\u0431\u0435\u0440\u044b :).<\/p>\n<p><strong>Livewire<\/strong>: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0438 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435. \u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u0437 JSON, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e.<\/p>\n<p><strong>Go Live\/HLive<\/strong>: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u00a0\u2014 \u0432 \u0433\u043e\u0440\u0443\u0442\u0438\u043d\u0435, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u043a WebSocket-\u0441\u0435\u0441\u0441\u0438\u0438. \u041c\u043e\u0434\u0435\u043b\u044c \u0431\u043b\u0438\u0436\u0435 \u0432\u0441\u0435\u0433\u043e \u043a LiveView, \u043d\u043e \u0431\u0435\u0437 OTP-\u0441\u0443\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u043e\u0432 \u0438 \u0433\u043e\u0440\u044f\u0447\u0435\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u043e\u0434\u0430.<\/p>\n<h3>\u0422\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442<\/h3>\n<p><strong>LiveView<\/strong>: WebSocket (\u0432\u0441\u0435\u0433\u0434\u0430). \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u00a0\u2014 \u043f\u043e HTTP, \u0434\u0430\u043b\u0435\u0435\u00a0\u2014 \u0442\u043e\u043b\u044c\u043a\u043e WS.<\/p>\n<p><strong>Hotwire<\/strong>: HTTP (<em>Turbo Frames<\/em>) \u0438\u043b\u0438 WebSocket (<em>Turbo Streams<\/em> \u0447\u0435\u0440\u0435\u0437 <em>Action Cable<\/em>). \u0412\u044b\u0431\u043e\u0440 \u0437\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c.<\/p>\n<p><strong>Livewire<\/strong>: HTTP (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e). WebSocket\u00a0\u2014 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e, \u0447\u0435\u0440\u0435\u0437 <em>Laravel Reverb<\/em>.<\/p>\n<p><strong>Go Live\/HLive<\/strong>: WebSocket (\u0432\u0441\u0435\u0433\u0434\u0430).<\/p>\n<h3>\u0413\u0440\u0430\u043d\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439<\/h3>\n<p><strong>LiveView<\/strong>: \u0434\u0438\u0444\u0444\u044b \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0437\u043d\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b, \u0430 \u043a\u0430\u043a\u0438\u0435 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u043d\u044b, \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0447\u0430\u0441\u0442\u044f\u0445.<\/p>\n<p><strong>Hotwire<\/strong>: \u0437\u0430\u043c\u0435\u043d\u0430 \u0446\u0435\u043b\u044b\u0445 HTML-\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432. <em>Turbo Stream<\/em> \u043a\u043e\u043c\u0430\u043d\u0434\u044b (<code>append<\/code>, <code>replace<\/code>, <code>remove<\/code>) \u043e\u043f\u0435\u0440\u0438\u0440\u0443\u044e\u0442 DOM-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c.<\/p>\n<p><strong>Livewire<\/strong>: \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u0437\u0430\u0442\u0435\u043c <em>morphdom<\/em> \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 DOM-\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439.<\/p>\n<p><strong>Go Live\/HLive<\/strong>: <em>Live<\/em>\u00a0\u2014 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e LiveView (\u0434\u0438\u0444\u0444\u044b \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432). <em>HLive<\/em>\u00a0\u2014 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 DOM \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 tree diffing.<\/p>\n<hr\/>\n<h4>\u0418 \u0447\u0451?<\/h4>\n<p>\u0412\u0441\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0440\u0435\u0448\u0430\u044e\u0442 \u043e\u0434\u043d\u0443 \u0437\u0430\u0434\u0430\u0447\u0443\u00a0\u2014 \u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0443\u044e\u0442\u043d\u043e \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0439 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p><em>Phoenix LiveView<\/em>\u00a0\u2014 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0437\u0440\u0435\u043b\u044b\u0439 \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439. \u0415\u0441\u043b\u0438 \u0432\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u0438\u043d\u0432\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 <em>Elixir<\/em>, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0432\u0438\u043d\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u042d\u0442\u043e \u043f\u0435\u0447\u044c, \u0441\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u043c: \u043a\u0440\u0438\u0432\u043e\u0431\u043e\u043a\u0430\u044f, \u043d\u043e \u0433\u0440\u0435\u0435\u0442.<\/p>\n<p><em>Rails Hotwire<\/em>\u00a0\u2014 \u043f\u0440\u0430\u0433\u043c\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 \u0437\u0440\u0435\u043b\u043e\u0439 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430 \u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u044e, \u0437\u0430\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043b\u044e\u0431\u043e\u043c Rails-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u044f\u0442\u044c \u043c\u0438\u043d\u0443\u0442 \u043f\u043e\u0441\u043b\u0435 <code>bundle install<\/code>. \u041f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0441\u0435\u043c\u044c\u0434\u0435\u0441\u044f\u0442 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0435\u0439\u00a0\u2014 \u0438 \u044d\u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.<\/p>\n<p><em>Laravel Livewire<\/em>\u00a0\u2014 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043a\u043b\u043e\u043d <em>LiveView<\/em>, \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434 \u0440\u0435\u0430\u043b\u0438\u0438 PHP. \u0418\u0434\u0435\u0430\u043b\u0435\u043d \u0434\u043b\u044f Laravel-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0442\u044f\u0442 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 JavaScript, \u043d\u043e \u0433\u043e\u0442\u043e\u0432\u044b \u043c\u0438\u0440\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u043c\u0438 \u0440\u0430\u0441\u0445\u043e\u0434\u0430\u043c\u0438 HTTP round-trip.<\/p>\n<p><em>Go Live\/HLive<\/em>\u00a0\u2014 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439, \u043d\u043e \u043f\u043e\u043a\u0430 \u043d\u0435\u0437\u0440\u0435\u043b\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442. \u041f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u043e\u0432 \u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u043e\u0432, \u0433\u0434\u0435 Go \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u0438 \u0442\u044f\u043d\u0443\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0441\u0442\u0435\u043a\u00a0\u2014 \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u043e\u0441\u043a\u043e\u0448\u044c.<\/p>\n<p>\u0412\u044b\u0431\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438\u00a0\u2014 \u043d\u0435 \u0432\u043e\u043f\u0440\u043e\u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u0441\u0442\u0432\u0430. \u042d\u0442\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0438 \u0442\u043e\u0433\u043e, \u0432 \u043a\u0430\u043a\u043e\u043c \u043a\u0440\u0435\u0441\u043b\u0435 \u0432\u0430\u043c \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0441\u0438\u0434\u0435\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0441\u0430\u043c\u043e\u043b\u0435\u0442, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430\u0431\u0435\u0440\u0435\u0442 \u0432\u044b\u0441\u043e\u0442\u0443.<\/p>\n<hr\/>\n<p>\u0410 \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u044d\u0442\u0438\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c JavaScript \ud83d\ude42<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1027304\/\">https:\/\/habr.com\/ru\/articles\/1027304\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0431\u0437\u043e\u0440 Phoenix LiveView \u0438 \u0435\u0433\u043e \u0434\u0440\u0443\u0437\u0435\u0439 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0435\u043a\u043e\u0432: Rails Hotwire, Laravel Livewire \u0438 Go Live\/HLive\u041f\u0440\u0435\u0430\u043c\u0431\u0443\u043b\u0430: \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u0438\u044f\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0434\u0432\u0443\u0445\u0442\u044b\u0441\u044f\u0447\u043d\u044b\u0445, \u043a\u043e\u0433\u0434\u0430 jQuery \u0435\u0449\u0435 \u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432\u0435\u0440\u0448\u0438\u043d\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u043c\u044b\u0441\u043b\u0438, \u0430 \u0441\u043b\u043e\u0432\u043e \u00ab\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u00bb \u043f\u0440\u043e\u0438\u0437\u043d\u043e\u0441\u0438\u043b\u043e\u0441\u044c \u0441 \u043f\u0440\u0438\u0434\u044b\u0445\u0430\u043d\u0438\u0435\u043c \u0438 \u043b\u0435\u0433\u043a\u0438\u043c \u043d\u0435\u043c\u0435\u0446\u043a\u0438\u043c \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c, \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0431\u044b\u043b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u043c. \u041e\u043d \u043f\u0438\u0441\u0430\u043b HTML, \u043d\u0435\u043c\u043d\u043e\u0433\u043e CSS, \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430\u00a0\u2014 \u0438 \u0443\u0445\u043e\u0434\u0438\u043b \u0434\u043e\u043c\u043e\u0439 \u043a \u0448\u0435\u0441\u0442\u0438. Ajax \u043e\u0431\u0440\u0435\u043b \u0432\u0442\u043e\u0440\u043e\u0435 \u0434\u044b\u0445\u0430\u043d\u0438\u0435, \u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u0432\u0435\u0442\u0432\u0438\u043b\u0438\u0441\u044c, \u043a\u0430\u043a \u0433\u0435\u043d\u0435\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u0440\u0435\u0432\u043e \u0440\u0430\u0437\u043e\u0440\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0430\u0440\u0438\u0441\u0442\u043e\u043a\u0440\u0430\u0442\u0430.\u041a 2010-\u043c \u0442\u0440\u0435\u0449\u0438\u043d\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0430\u0441\u044c \u0432 \u043f\u0440\u043e\u043f\u0430\u0441\u0442\u044c. \u041f\u043e \u043e\u0434\u043d\u0443 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438\u00a0\u2014 \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0435, \u0447\u0442\u043e \u0442\u0432\u043e\u044f \u043f\u043e\u0436\u0438\u043b\u0430\u044f \u043d\u0435\u043c\u0435\u0446\u043a\u0430\u044f \u043f\u0430\u0440\u0430 \u043d\u0430 \u0424\u0440\u0438\u0434\u0440\u0438\u0445\u0448\u0442\u0440\u0430\u0441\u0441\u0435, \u0432 \u043e\u0442\u0443\u0442\u044e\u0436\u0435\u043d\u043d\u044b\u0445 \u0440\u0443\u0431\u0430\u0448\u043a\u0430\u0445 \u0438 \u0441 \u043f\u0440\u044f\u043c\u043e\u0439 \u0441\u043f\u0438\u043d\u043e\u0439. \u041f\u043e \u0434\u0440\u0443\u0433\u0443\u044e\u00a0\u2014 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435\u0440\u044b, \u0432\u0435\u0447\u043d\u043e \u0432\u0437\u044a\u0435\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435, \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438, \u043a\u0430\u043a \u0447\u0435\u0442\u043a\u0438: Backbone, Angular, React, Vue, Svelte, Solid, $mol, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043a\u0443\u0434\u0430 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e,\u00a0\u2014 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443. \u041c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043f\u0440\u043e\u043b\u0435\u0433\u0430\u043b\u0430 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u043b\u043e\u0441\u0430 \u0438\u0437 JSON-\u043e\u0432 \u0438 REST API, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u0431\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u043b\u0438 \u0441 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c \u043b\u0438\u0446\u0430 \u0442\u0430\u043c\u043e\u0436\u0435\u043d\u043d\u0438\u043a\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b.\u0418 \u0432\u043e\u0442, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a 2018 \u0433\u043e\u0434\u0443, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0435\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u0434\u0435\u0435: \u0430 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443? \u0427\u0442\u043e, \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c HTML, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u043f\u043e WebSocket\u00a0\u2014 \u0438 \u043f\u0443\u0441\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0435\u043c \u0435\u043c\u0443 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e: \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a?\u0418\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u043d\u0435 \u043d\u043e\u0432\u0430. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432\u0435\u0441\u044c \u0432\u0435\u0431 \u0434\u043e \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u044f XMLHttpRequest. \u041d\u043e \u0432 \u043d\u043e\u0432\u043e\u0439 \u0440\u0435\u0438\u043d\u043a\u0430\u0440\u043d\u0430\u0446\u0438\u0438 \u043e\u043d\u0430 \u043e\u0431\u0440\u043e\u0441\u043b\u0430 \u0434\u0438\u0444\u0444\u0430\u043c\u0438, \u043f\u0430\u0442\u0447\u0430\u043c\u0438, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 DOM-\u0430\u043c\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0439 \u0440\u043e\u0441\u043a\u043e\u0448\u044c\u044e, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043b\u043b\u044e\u0437\u0438\u044e \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u043b\u0438\u043a\u0430 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e JavaScript. \u041d\u0443, \u043f\u043e\u0447\u0442\u0438 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0439.\u0422\u0430\u043a \u0440\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043a \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435: Phoenix LiveView (2018, Elixir), Rails Hotwire (2020, Ruby), Laravel Livewire (2019, PHP) \u0438 \u0446\u0435\u043b\u043e\u0435 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e Go-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439: Live (jfyne), HLive (SamHennessy), Fir (livefir\u00a0\u2014 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0432 2025). \u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043d\u0438\u0445\u00a0\u2014 \u043e\u0442\u0432\u0435\u0442 \u0441\u0432\u043e\u0435\u0439 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u043e: \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u044f \u0438\u0437 \u0437\u043e\u043d\u044b \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u0430?I. Phoenix LiveView: \u0434\u0435\u043c\u0438\u0443\u0440\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438LiveView \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c &#8212; \u0435\u0441\u043b\u0438 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c Meteor, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0432\u043f\u0440\u043e\u0447\u0435\u043c, \u0440\u0435\u0448\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0438 \u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0441 \u0440\u0430\u0437\u043c\u0430\u0445\u043e\u043c \u043f\u044c\u044f\u043d\u043e\u0433\u043e \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430. \u041a\u0440\u0438\u0441 \u041c\u0430\u043a\u043a\u043e\u0440\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b LiveView \u043d\u0430 ElixirConf 2018, \u0438 \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043f\u0440\u043e\u0448\u0435\u043b \u043f\u0443\u0442\u044c \u043e\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.0 (\u0434\u0435\u043a\u0430\u0431\u0440\u044c 2024), \u043e\u0431\u0440\u0435\u0442\u044f \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435 HEEx-\u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0441\u0442\u0440\u0438\u043c\u044b \u0438 \u043f\u0440\u043e\u0447\u0443\u044e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u043a\u0443 \u0437\u0440\u0435\u043b\u043e\u0441\u0442\u0438.\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0441\u0442 \u0434\u043e \u0441\u043c\u0435\u0448\u043d\u043e\u0433\u043e: \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u0417\u0430\u0442\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 WebSocket-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0438\u0444\u0444\u043e\u0432. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0436\u0438\u0432\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u043e\u043c BEAM-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435\u00a0\u2014 \u0442\u043e\u043c \u0441\u0430\u043c\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Erlang VM \u0443\u043c\u0443\u0434\u0440\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u0434\u0432\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435, \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0442\u0435\u044f.defmodule DemoLive do  use Phoenix.LiveView  def mount(_params, _session, socket) do    {:ok, assign(socket, count: 0)}  end  def render(assigns) do    ~H&#187;&#187;&#187;    &lt;div&gt;      &lt;h1&gt;\u0421\u0447\u0435\u0442\u0447\u0438\u043a: {@count}&lt;\/h1&gt;      &lt;button phx-click=&#187;inc&#187;&gt;+&lt;\/button&gt;      &lt;button phx-click=&#187;dec&#187;&gt;-&lt;\/button&gt;    &lt;\/div&gt;    &#171;&#187;&#187;  end  def handle_event(&#171;inc&#187;, _, socket) do    {:noreply, update(socket, :count, &amp;(&amp;1 + 1))}  end  def handle_event(&#171;dec&#187;, _, socket) do    {:noreply, update(socket, :count, &amp;(&amp;1 &#8212; 1))}  endend\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0437\u0434\u0435\u0441\u044c \u043d\u0435\u0442 \u043d\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u043d\u0438 JSON, \u043d\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435. \u041e\u0434\u0438\u043d \u043c\u043e\u0434\u0443\u043b\u044c. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u00a0\u2014 \u0436\u0438\u0432\u0435\u0442 \u0432 assigns. \u0420\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u00a0\u2014 \u0432 ~H-\u0441\u0438\u0433\u0438\u043b\u0435. \u0421\u043e\u0431\u044b\u0442\u0438\u044f\u00a0\u2014 \u0432 handle_event. \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0431\u0435\u0440\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0435\u0447\u043d\u0438\u043a \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0438\u0437 \u043a\u0438\u0440\u043f\u0438\u0447\u0435\u0439 \u043d\u0435\u0447\u0442\u043e \u043a\u0440\u0438\u0432\u043e\u0431\u043e\u043a\u043e\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u0441\u0438\u0432\u0448\u0435\u0435\u0441\u044f\u00a0\u2014 \u043d\u043e \u043e\u043d\u043e \u043f\u0440\u043e\u0442\u0430\u043f\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430, \u043a\u0430\u043a \u0440\u043e\u0434\u043d\u043e\u0435.\u041f\u043b\u044e\u0441\u044b:\u00a0\u00a0\u00a0\u00a0\u25b8 \u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0440\u0435\u0430\u043b\u0442\u0430\u0439\u043c \u0447\u0435\u0440\u0435\u0437 WebSocket. \u041d\u0435 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u044f, \u043d\u0435 \u043f\u043e\u043b\u043b\u0438\u043d\u0433 (\u0445\u043e\u0442\u044f \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0432\u0435\u0431\u0441\u043e\u043a\u0435\u0442\u043e\u0432 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043e\u0442\u043a\u0430\u0442 \u043d\u0430 \u043d\u0435\u0433\u043e)\u00a0\u2014 \u0436\u0438\u0432\u043e\u0435, \u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u044b\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.\u00a0\u00a0\u00a0\u00a0\u25b8 Fault tolerance \u043f\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0443 \u043e\u0442 BEAM\/OTP. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u043f\u0430\u043b\u00a0\u2014 \u043e\u0442\u0436\u0430\u043b\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.\u00a0\u00a0\u00a0\u00a0\u25b8 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a: \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0438\u0444\u0444\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 DOM.\u00a0\u00a0\u00a0\u00a0\u25b8 \u041e\u0434\u0438\u043d \u044f\u0437\u044b\u043a, \u043e\u0434\u0438\u043d \u0441\u0442\u0435\u043a, \u043e\u0434\u043d\u0430 \u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 LiveView-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.\u041c\u0438\u043d\u0443\u0441\u044b:\u00a0\u00a0\u00a0\u00a0\u25b8 Elixir\u00a0\u2014 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u043e\u0447\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0441 \u043f\u0430\u0442\u0442\u0435\u0440\u043d-\u043c\u0430\u0442\u0447\u0438\u043d\u0433\u043e\u043c, \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0435\u0439. \u041d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u0437\u043d\u0430\u043a\u043e\u043c\u0443\u044e \u0441 \u043d\u044e\u0430\u043d\u0441\u0430\u043c\u0438\u00a0\u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e.\u00a0\u00a0\u00a0\u00a0\u25b8 \u042d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0443 Ruby \u0438\u043b\u0438 PHP. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c API \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443. \u0425\u043e\u0442\u044f, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043e\u043f\u044b\u0442\u0443, \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u043e\u0435\u00a0\u2014\u00a0\u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e.\u00a0\u00a0\u00a0\u00a0\u25b8 \u041a\u0430\u0436\u0434\u043e\u0435 WebSocket-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 (~40KB). \u041f\u0440\u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0443\u044e\u0442\u043d\u043e\u0439. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u044d\u0442\u043e \u043d\u0435 CGI, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438 \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0432\u043e\u0442\u043a\u043d\u0443\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440.II. Rails Hotwire: HTML \u043f\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0430\u043c, \u043a\u0430\u043a \u0437\u0430\u0432\u0435\u0449\u0430\u043b \u0414\u0435\u0434\u0443\u0448\u043a\u0430 \u0425\u0430\u0440\u0438\u0437\u043c\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0425\u0430\u0439\u043f\u0430 (\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0432 \u0443\u0437\u043a\u0438\u0445 \u043a\u0440\u0443\u0433\u0430\u0445, \u043a\u0430\u043a DHH)Hotwire\u00a0\u2014 \u044d\u0442\u043e Basecamp\/37signals, DHH, Ruby on Rails, \u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442: \u043a\u043e\u043d\u0432\u0435\u043d\u0446\u0438\u044f \u043f\u0440\u0435\u0432\u044b\u0448\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043c\u043d\u0435\u043d\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0435 \u043c\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u0438 \u0442\u0432\u0435\u0440\u0434\u0430\u044f \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d React (\u0447\u0442\u043e \u0442\u0430\u043a \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0438 \u0435\u0441\u0442\u044c, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435). \u042d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a: Turbo (\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0435\u0439 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b) \u0438 Stimulus (\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 JS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f).\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f Hotwire\u00a0\u2014 \u00abHtml Over The WIRE\u00bb \u0432 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435: \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u0443\u0441\u043a\u0438 HTML, \u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0438\u0444\u0444\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e DOM. \u0413\u0440\u0443\u0431\u043e, \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e, \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u00a0\u2014 \u043a\u0430\u043a \u043a\u0438\u0440\u043f\u0438\u0447\u043d\u0430\u044f \u043a\u043b\u0430\u0434\u043a\u0430.&lt;%# app\/views\/posts\/index.html.erb %&gt;&lt;%= form_with url: posts_path, method: :get,              data: { turbo_frame: &#171;results&#187; } do %&gt;  &lt;input type=&#187;search&#187; name=&#187;q&#187; value=&#187;&lt;%= params[:q] %&gt;&#187;&gt;&lt;% end %&gt;&lt;turbo-frame id=&#187;results&#187;&gt;  &lt;% @posts.each do |post| %&gt;    &lt;div&gt;&lt;%= post.title %&gt;&lt;\/div&gt;  &lt;% end %&gt;&lt;\/turbo-frame&gt;# Turbo Stream: \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438# app\/models\/message.rbclass Message &lt; ApplicationRecord  after_create_commit -&gt; {    broadcast_append_to &#171;messages&#187;,      target: &#171;messages&#187;,      partial: &#171;messages\/message&#187;  }endTurbo Frames\u00a0\u2014 \u044d\u0442\u043e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u044b \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438: \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0440\u0435\u0439\u043c\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0440\u0435\u0439\u043c, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0442\u0440\u043e\u043d\u0443\u0442\u043e\u0439. Turbo Streams\u00a0\u2014 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b (append, prepend, replace, remove), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP-\u043e\u0442\u0432\u0435\u0442, \u0442\u0430\u043a \u0438 \u0447\u0435\u0440\u0435\u0437 WebSocket (Action Cable).\u041f\u043b\u044e\u0441\u044b:\u00a0\u00a0\u00a0\u00a0\u25b8 \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u043e\u0433\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 Rails\u00a0\u2014 \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 Hotwire.\u00a0\u00a0\u00a0\u00a0\u25b8 \u0413\u0438\u0433\u0430\u043d\u0442\u0441\u043a\u0430\u044f \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0436\u0435\u043c\u043e\u0432. \u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438 \u0442\u044b\u0441\u044f\u0447\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u043e\u0432.\u00a0\u00a0\u00a0\u00a0\u25b8 \u041d\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043a WebSocket: Turbo Frames \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP. Turbo Streams \u0443\u043c\u0435\u044e\u0442 \u0438 \u0442\u0430\u043a, \u0438 \u0442\u0430\u043a.\u00a0\u00a0\u00a0\u00a0\u25b8 Stimulus \u0434\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0441\u0442\u043e\u043b\u044c\u043a\u043e JavaScript, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0443\u0436\u043d\u043e, \u0438 \u043d\u0438 \u0433\u0440\u0430\u043c\u043c\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0435.\u041c\u0438\u043d\u0443\u0441\u044b:\u00a0\u00a0\u00a0\u00a0\u25b8 Hotwire\u00a0\u2014 \u043d\u0435 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u042d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0439 \u043f\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0435 HTML. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0436\u0438\u0432\u0435\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435. \u042d\u0442\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u0440\u0443\u0433\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c, \u043d\u0435\u0436\u0435\u043b\u0438 \u0447\u0435\u043c \u0443 LiveView.\u00a0\u00a0\u00a0\u00a0\u25b8 \u0421\u043b\u043e\u0436\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c (drag-and-drop, nested modals, client-side state) \u0431\u044b\u0441\u0442\u0440\u043e \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 JavaScript.\u00a0\u00a0\u00a0\u00a0\u25b8 \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c Ruby \u043f\u0440\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438\u00a0\u2014 \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e, \u0433\u0440\u0443\u0441\u0442\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0432\u043e\u0442\u043a\u043d\u0443\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043a\u043b\u0435\u043d\u043d\u044b\u0445 \u043a \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0437\u0430 \u0431\u0430\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u043c, \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Shopify.III. Laravel Livewire: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0437 \u0436\u0438\u0437\u043d\u0438Livewire\u00a0\u2014 \u0441\u0430\u043c\u044b\u0439 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0440\u0435\u0434\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432 LiveView. \u041a\u0430\u043b\u0435\u0431 \u041f\u043e\u0440\u0446\u0438\u043e \u0441\u043e\u0437\u0434\u0430\u043b \u0435\u0433\u043e \u0432 2019 \u0433\u043e\u0434\u0443, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u0438\u043c\u0435\u043d\u043d\u043e Phoenix LiveView, \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0434\u0435\u0438 \u043d\u0430 \u043f\u043e\u0447\u0432\u0443 Laravel \u0438 PHP. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u00a0\u2014 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 PHP-\u043a\u043b\u0430\u0441\u0441 \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0430 Blade-\u0448\u0430\u0431\u043b\u043e\u043d \u0435\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0438 (\u043a\u043b\u0438\u043a, \u0432\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u043e\u0440\u043c\u044b) Livewire \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 AJAX-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 HTML.\/\/ app\/Livewire\/Counter.phpclass Counter extends Component{    public int $count = 0;    public function increment(): void    {        $this-&gt;count++;    }    public function decrement(): void    {        $this-&gt;count&#8212;;    }    public function render(): View    {        return view(&#8216;livewire.counter&#8217;);    }}{{&#8212; resources\/views\/livewire\/counter.blade.php &#8212;}}&lt;div&gt;    &lt;h1&gt;\u0421\u0447\u0435\u0442\u0447\u0438\u043a: {{ $count }}&lt;\/h1&gt;    &lt;button wire:click=&#187;increment&#187;&gt;+&lt;\/button&gt;    &lt;button wire:click=&#187;decrement&#187;&gt;-&lt;\/button&gt;&lt;\/div&gt;\u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a, \u0441\u043b\u043e\u0432\u043d\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430 PHP? \u041d\u0435\u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0442\u043e\u0442 \u0436\u0435: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041d\u043e \u0434\u044c\u044f\u0432\u043e\u043b, \u043a\u0430\u043a \u0432\u043e\u0434\u0438\u0442\u0441\u044f, \u043f\u0440\u044f\u0447\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445.PHP \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0435 WebSocket-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u043a \u0436\u0435 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e, \u043a\u0430\u043a Erlang VM. Livewire 2 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b AJAX-\u043f\u043e\u043b\u043b\u0438\u043d\u0433; Livewire 3 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 WebSocket \u0447\u0435\u0440\u0435\u0437 Laravel Reverb, \u043d\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435 \u0435\u0449\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 HTTP. \u041f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432 JSON, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442, \u0430 \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0438\u00a0\u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0441 \u0433\u0440\u0430\u0446\u0438\u0435\u0439 \u0431\u0440\u0438\u0433\u0430\u0434\u044b \u0433\u0440\u0443\u0437\u0447\u0438\u043a\u043e\u0432, \u0437\u0430\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u0440\u043e\u044f\u043b\u044c \u043d\u0430 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u044b\u0439 \u044d\u0442\u0430\u0436 \u0432 \u0434\u043e\u043c\u0435 \u0431\u0435\u0437 \u0433\u0440\u0443\u0437\u043e\u0432\u043e\u0433\u043e \u043b\u0438\u0444\u0442\u0430.\u0417\u0430\u0442\u043e Livewire \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 Alpine.js\u00a0\u2014 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c JavaScript-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0435\u0440\u0435\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0442\u043e\u0433\u0433\u043b\u044b \u0438 \u043f\u0440\u043e\u0447\u0443\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u043c\u0435\u043b\u043e\u0447\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0433\u043e\u043d\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u044b\u043b\u043e \u0431\u044b \u0440\u0430\u0441\u0442\u043e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0421\u0432\u044f\u0437\u043a\u0430 Livewire + Alpine\u00a0\u2014 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0432 \u043c\u0438\u0440\u0435 Laravel.\u041f\u043b\u044e\u0441\u044b:\u00a0\u00a0\u00a0\u00a0\u25b8 wire:model\u00a0\u2014 \u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442 \u0432 \u043f\u043e\u043b\u0435\u00a0\u2014 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.\u00a0\u00a0\u00a0\u00a0\u25b8 \u041e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 Laravel. Filament, Jetstream, Breeze\u00a0\u2014 \u0432\u0441\u0435 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 Livewire \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.\u00a0\u00a0\u00a0\u00a0\u25b8 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f PHP-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432.\u00a0\u00a0\u00a0\u00a0\u25b8 Alpine.js \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0442\u0435 \u0441\u043b\u0443\u0447\u0430\u0438, \u043a\u043e\u0433\u0434\u0430&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-477192","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/477192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=477192"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/477192\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=477192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=477192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=477192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}