{"id":444787,"date":"2025-01-12T15:00:09","date_gmt":"2025-01-12T15:00:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=444787"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=444787","title":{"rendered":"<span>\u0422\u043e\u043f-5 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 Android \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 [2025]<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/6b4\/fc9\/c13\/6b4fc9c1339d7c9f71440c5fd2077b2a.jpeg\" alt=\"\u0422\u043e\u043f-5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 Android \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e\" title=\"\u0422\u043e\u043f-5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 Android \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e\" width=\"1792\" height=\"1024\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6b4\/fc9\/c13\/6b4fc9c1339d7c9f71440c5fd2077b2a.jpeg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u0422\u043e\u043f-5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 Android \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e<\/figcaption><\/div>\n<\/figure>\n<p>C\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0432 IT &#8212; \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0437\u043e\u0432 \u0438 Android \u0442\u0443\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043d\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u0432 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0438 \u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0442\u0441\u0432\u043e \u043e\u0431\u043b\u0430\u0441\u0442\u0435\u0439: \u043e\u0442 &#171;\u0431\u0430\u0437\u044b&#187; \u0432 \u0432\u0438\u0434\u0435\u00a0<strong>Computer Science\u00a0<\/strong>(\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b) \u0438 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b, System Design) \u0434\u043e \u0437\u043d\u0430\u043d\u0438\u044f\u00a0<strong>Java, Kotlin<\/strong>\u00a0\u0438, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f\u00a0<strong>Android SDK<\/strong>. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u044e\u0434\u0430 \u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0430\u044e\u0442 \u043a\u0430\u0436\u0434\u044b\u0435 \u043f\u0430\u0440\u0443 \u043b\u0435\u0442!) \u0432\u0440\u043e\u0434\u0435\u00a0<strong>RxJava<\/strong>\u00a0\u0438\u00a0<strong>Kotlin Coroutines\u00a0<\/strong>\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436, \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043d\u0435\u043f\u043e\u0434\u044a\u0435\u043c\u043d\u044b\u0439 \u0431\u0430\u0433\u0430\u0436 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439&#8230; \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u043d\u043e\u0433\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u043c\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e &#171;\u0431\u0430\u0437\u0443&#187; \u0438\u0437 \u043d\u0438\u0445 \u0432\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u0435 \u0441\u0432\u043e\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u0437\u0430\u0432\u0435\u0442\u043d\u044b\u0439 \u043e\u0444\u0444\u0435\u0440 \ud83d\ude42 \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c<strong>\u00a0\u0422\u041e\u041f-5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432<\/strong>, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0445 \u043d\u0430 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u043c \u0440\u044b\u043d\u043a\u0435, \u043f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<p>1.\u00a0<strong>\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b, \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0432\u00a0<\/strong><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSOLID\" rel=\"noopener noreferrer nofollow\"><strong>SOLID<\/strong><\/a><strong>.<\/strong><\/p>\n<p>\u0412\u043e\u043f\u0440\u043e\u0441 \u0432\u043d\u0435 \u0432\u0440\u0435\u043c\u0435\u043d \u0438 \u0442\u0440\u0435\u043d\u0434\u043e\u0432: \u0433\u043e\u0434\u044b \u0438\u0434\u0443\u0442, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043d\u0435 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u044b. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432\u0441\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0438 \u0438\u0445 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0440\u0430\u0442\u043a\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0438\u0445.<\/p>\n<p><code>Single Responsibility<\/code>:<strong>\u00a0<\/strong>\u0447\u0430\u0441\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a &#171;\u043c\u043e\u0434\u0443\u043b\u044c \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430 \u0447\u0442\u043e-\u0442\u043e \u043e\u0434\u043d\u043e&#187;. \u042d\u0442\u043e \u043e\u0442\u0447\u0430\u0441\u0442\u0438 \u0432\u0435\u0440\u043d\u043e, \u043d\u043e \u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u0430, \u043d\u043e \u0435\u0449\u0435 \u0438 \u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u0445 \u0434\u043b\u044f \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0442\u043e\u0447\u043d\u0435\u0435 \u043e \u0433\u0440\u0443\u043f\u043f\u0435 \u043b\u0438\u0446, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c: &#171;\u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0430\u043a\u0442\u043e\u0440\u0430&#187; (\u0433\u0434\u0435 \u0430\u043a\u0442\u043e\u0440 &#8212; 1 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u043b\u0438\u0446, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u043e\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &#8212; &#171;\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u044f&#187;, &#171;\u043e\u0442\u0434\u0435\u043b \u043a\u0430\u0434\u0440\u043e\u0432&#187;).<\/p>\n<p><code>Open-Closed:<\/code>\u00a0\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b \u0434\u043b\u044f \u0438\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 (\u0430 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435) \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u0435\u0441\u0442\u0438 \u043a \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c \u043a\u043e\u0434\u0430, \u0438\u043d\u0430\u0447\u0435 &#8212; \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u0434\u0448\u0430\u044f \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430.<\/p>\n<p><code>Liskov Substitution:<\/code> \u0442\u0443\u0442 \u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 1 \u043a\u043b\u0430\u0441\u0441 (\u0431\u0430\u0437\u043e\u0432\u044b\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440), \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432 \u0431\u0435\u0437 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u041c\u043e\u0440\u0430\u043b\u044c &#8212; \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u0438 \u0434\u043e\u043b\u0436\u043d\u044b\u00a0<em>\u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c<\/em>, \u0430 \u043d\u0435\u00a0<em>\u0437\u0430\u043c\u0435\u0449\u0430\u0442\u044c<\/em>\u00a0\u0438\u043b\u0438\u00a0<em>\u0438\u0441\u043a\u0430\u0436\u0430\u0442\u044c<\/em>\u00a0\u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.<\/p>\n<p><code>Interface Segregation<\/code><em>:<\/em><strong>\u00a0<\/strong>\u00a0\u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0438\u0437 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432, \u0433\u0434\u0435 \u043d\u0435 \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438. \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0437\u043a\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439. \u041e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442, \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u043c \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043b\u0438\u0448\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u043b\u0438 \u0437\u0430\u0441\u043e\u0440\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430 \u043f\u0443\u0441\u0442\u044b\u043c\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p><code>Dependency Inversion<\/code>: \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0433\u043b\u0430\u0441\u0438\u0442, \u0447\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u0438 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0438\u0436\u043d\u0435\u0433\u043e, \u0438 \u0442\u0435 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439 \u0418 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0434\u0435\u0442\u0430\u043b\u0435\u0439, \u0434\u0435\u0442\u0430\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: \u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u042d\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0418\u0417\u0412\u041d\u0415, \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p><u>\u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u044f\u043c \u0438 \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/u><\/p>\n<ul>\n<li>\n<p>\u041a\u0430\u043a\u043e\u0439 \u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u043d\u0430 \u0432\u0430\u0448 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0439?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a\u0438\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 SOLID \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u0438\u0437 Java, Kotlin \u0438\u043b\u0438 Android SDK?<\/p>\n<\/li>\n<\/ul>\n<h4>\u0427\u0442\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c:<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/ru.wikipedia.org\/wiki\/SOLID_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5)\" rel=\"noopener noreferrer nofollow\"><u>Wikipedia<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.ozon.ru\/product\/chistaya-arhitektura-iskusstvo-razrabotki-programmnogo-obespecheniya-martin-robert-1352666003\/?asb=oGoK2l5vsIj%252BpJqmyuflb9MPjoaDUdHst4J7XxvcUTA%253D&amp;asb2=z41dp3FlVIplJnIpUCf_hnX7sVf3Fl1H4amduDlNX92P56FMk_Y4JiJKzWxj7IIi&amp;avtc=1&amp;avte=2&amp;avts=1724159405&amp;keywords=%D1%87%D0%B8%D1%81%D1%82%D0%B0%D1%8F+%D0%B0%D1%80%D1%85%D0%B8%D1%82%D0%B5%D0%BA%D1%82%D1%83%D1%80%D0%B0+%D1%80%D0%BE%D0%B1%D0%B5%D1%80%D1%82+%D0%BC%D0%B0%D1%80%D1%82%D0%B8%D0%BD\" rel=\"noopener noreferrer nofollow\"><u>\u0420\u043e\u0431\u0435\u0440\u0442 \u041c\u0430\u0440\u0442\u0438\u043d (Uncle Bob) &#8212; \u0427\u0438\u0441\u0442\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/u><\/a>\u00a0&#8212; \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b, \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0432 SOLID,  \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.baeldung.com\/solid-principles\" rel=\"noopener noreferrer nofollow\"><u>Baeldung<\/u><\/a>\u00a0(c \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043d\u0430 Java)<\/p>\n<\/li>\n<\/ul>\n<p>2.\u00a0<strong>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <\/strong><code>HashMap<\/code><strong>? \u041a\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u043d\u0430 \u0431\u0430\u043a\u0435\u0442\u044b? \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438? \u041a\u0430\u043a\u0443\u044e \u0440\u043e\u043b\u044c \u0438\u0433\u0440\u0430\u044e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 <\/strong><code>equals\/hashCode<\/code><strong> \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432?<\/strong><\/p>\n<p><em>HashMap<\/em>\u00a0&#8212; \u0438\u0437\u043b\u044e\u0431\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u0443\u044e\u0449\u0438\u0445. \u0422\u0435\u043c\u0430 \u044d\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f, \u043d\u043e, \u043a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0447\u0451\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e:<\/p>\n<ul>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0431\u043b\u043e\u0433\u0430\u0445: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u044f\u043c\u043e \u0442\u0443\u0442 \u043d\u0430\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fhabr.com%2Fru%2Farticles%2F128017%2F\" rel=\"noopener noreferrer nofollow\">\u0425\u0430\u0431\u0440\u0435<\/a><\/p>\n<\/li>\n<li>\n<p>\u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430: \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u043e\u0439 \u0434\u043b\u044f Java \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043a\u043d\u0438\u0433\u0430\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fwww.ozon.ru%2Fproduct%2Fstruktury-dannyh-i-algoritmy-v-java-lafore-robert-211439421%2F%3F__rr%3D1\" rel=\"noopener noreferrer nofollow\">\u0420\u043e\u0431\u0435\u0440\u0442\u0430 \u041b\u0430\u0444\u043e\u0440\u0435 &#8212; \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Java<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>3. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <\/strong><code>data<\/code><strong> \u043a\u043b\u0430\u0441\u0441\u044b \u0432 Kotlin? \u0417\u0430\u0447\u0435\u043c \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b, \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0445?<\/strong><\/p>\n<p>Data classes &#8212; \u044d\u0442\u043e \u043f\u043e \u043f\u0440\u0430\u0432\u0443 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0444\u0438\u0447 \u041a\u043e\u0442\u043b\u0438\u043d\u0430! \u0421\u043e\u0431\u0435\u0441\u0435\u0434\u0443\u044e\u0449\u0438\u0435, \u043f\u0440\u0430\u0432\u0434\u0430, \u0442\u043e\u0436\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u044d\u0442\u0443 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e, \u043f\u043e\u0442\u043e\u043c\u0443 \u043e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u0438 \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u044f\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043e \u043d\u0435\u0439 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u041d\u0430\u0447\u0430\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043d\u0438\u043c\u0438 \u0441\u0442\u043e\u0438\u0442 \u0432\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fkotlinlang.org%2Fdocs%2Fdata-classes.html%23properties-declared-in-the-class-body\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0438\u0434\u0435\u0438.<\/p>\n<p>\u041d\u043e \u0441\u0442\u043e\u0438\u0442 \u0431\u044b\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0438 \u043a \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u044f\u043c:<\/p>\n<ul>\n<li>\n<p>\u0427\u0435\u043c\u00a0<code>data<\/code>\u00a0\u043a\u043b\u0430\u0441\u0441 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u00a0<code>value<\/code>\u00a0\u043a\u043b\u0430\u0441\u0441\u0430? <em>(\u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u044b, \u0441\u043c.\u00a0<\/em><a href=\"https:\/\/kotlinlang.org\/docs\/inline-classes.html\" rel=\"noopener noreferrer nofollow\"><em><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/em><\/a><em>\u00a0\u0434\u043b\u044f value \u043a\u043b\u0430\u0441\u0441\u0430)<\/em><\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435\u00a0<code>data object?<\/code> \u0412 \u0447\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443<em>\u00a0<\/em><code>data class<\/code>\u00a0\u0438\u00a0<code>data object<\/code>? <em>(\u0441\u043c.\u00a0<\/em><a href=\"https:\/\/kotlinlang.org\/docs\/object-declarations.html#data-objects\" rel=\"noopener noreferrer nofollow\"><em><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/em><\/a><em>)<\/em><\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 data \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438\u00a0<code>equals\/hashCode\/toString<\/code><em>? (\u043f\u043e\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u043d\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f)<\/em><\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 <code>data<\/code> \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u0430\u043a\u00a0<code>var<\/code>, \u0430 \u043d\u0435\u00a0<code>val<\/code>? <em>(\u043d\u0438\u0447\u0435\u0433\u043e \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e, \u043d\u043e \u044d\u0442\u043e \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442 \u0438\u0434\u0435\u044e data \u043a\u043b\u0430\u0441\u0441\u043e\u0432 &#8212; \u043a\u043b\u0430\u0441\u0441 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0copy()\u00a0\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0438 \u0442.\u0434.)<\/em><\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u0442\u044c \u043b\u0438 \u0443 <code>data<\/code> \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438? \u041d\u0435\u043b\u044c\u0437\u044f \u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u0430\u043a <code>data<\/code>? <em>(\u0435\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043d\u0438\u00a0<\/em><a href=\"https:\/\/medium.com\/bumble-tech\/data-classes-in-kotlin-the-real-impact-of-using-it-6f1fdc909837\" rel=\"noopener noreferrer nofollow\"><em><u>\u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/u><\/em><\/a><em>\u00a0\u0438\u0437-\u0437\u0430 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438)<\/em><\/p>\n<\/li>\n<\/ul>\n<p><strong>4. \u041a\u0430\u043a\u0438\u0435 &#171;\u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435&#187; \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0410\u043d\u0434\u0440\u043e\u0438\u0434 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0438 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f?<\/strong><\/p>\n<p>\u041f\u043e\u0434 \u201c\u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438\u201d \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u00a0<code>AndroidManifest<\/code>, \u0432 \u044d\u0442\u043e\u043c \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Fguide%2Fcomponents%2Ffundamentals\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0432\u0441\u0435\u0433\u043e \u0438\u0445 4:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fapp%2FActivity\" rel=\"noopener noreferrer nofollow\">Activity<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fapp%2FService\" rel=\"noopener noreferrer nofollow\">Service<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fcontent%2FBroadcastReceiver\" rel=\"noopener noreferrer nofollow\">Broadcast receiver<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fcontent%2FContentProvider\" rel=\"noopener noreferrer nofollow\">Content provider<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0422.\u0435. \u0434\u0430, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e UI \u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043b\u0438\u0448\u044c\u00a0<code>BroadcastReceiver<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>Service<\/code>\u00a0\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u0430\u0436\u0435 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0433\u043e \u0432 Google Play.<\/p>\n<p>5.<strong> \u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u0443? \u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0432\u0441\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u043d\u0430\u0435\u0442\u0435.<\/strong><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u0440\u0443\u0442\u0438\u043d &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442.\u043d. <strong>Coroutine Builders<\/strong>:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/launch.html\" rel=\"noopener noreferrer nofollow\"><strong>launch<\/strong><\/a><strong>: <\/strong>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u0443 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0441 \u043d\u0435\u0439 <a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/-job\/\" rel=\"noopener noreferrer nofollow\">Job<\/a>. \u042d\u0442\u043e\u0442 <code>Job<\/code> \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u0443\u0436\u0438\u0442 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f + \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0438\u043b\u0438 \u043d\u0435 \u0432\u0430\u0436\u0435\u043d \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0435 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/async.html\" rel=\"noopener noreferrer nofollow\"><strong>async<\/strong><\/a>:\u00a0\u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 <code>launch<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0435 <code>Job<\/code>, \u0430 <a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/-deferred\/\" rel=\"noopener noreferrer nofollow\">Deferred&lt;T&gt;<\/a><strong>. <\/strong>\u042d\u0442\u043e future\/promise, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 (\u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>start<\/code><em>)<\/em>. \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c <code>await<\/code> \u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043d\u043e\u043c <code>Deferred<\/code> \u043e\u0431\u044a\u0435\u043a\u0442\u0435. \u042d\u0442\u043e\u0442 \u0431\u0438\u043b\u0434\u0435\u0440 \u0443\u0434\u043e\u0431\u0435\u043d, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u00a0<code>Job<\/code> \u0438\u0437\u00a0<code>launch<\/code>.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/run-blocking.html\" rel=\"noopener noreferrer nofollow\"><strong>runBlocking<\/strong><\/a>: \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u0443 \u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0432\u0448\u0438\u0439 \u043f\u043e\u0442\u043e\u043a \u0434\u043e \u0435\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0435 <code>Job<\/code> \u0438\u043b\u0438 <code>Defferred<\/code>, \u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0438\u043f <code>T<\/code>. \u042d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c, \u0442.\u043a. \u043e\u043d \u0441\u0432\u043e\u0434\u0438\u0442 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 <code>suspending<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0430 &#171;\u043d\u0435\u0442&#187;, \u043d\u043e \u043e\u043d \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0432 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b \u0438\u0437 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0431\u0435\u0437 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 kotlin \u0438\/\u0438\u043b\u0438 \u043a\u043e\u0440\u0443\u0442\u0438\u043d + \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p><code>launch<\/code><em>, <\/em><code>async<\/code><em>\u00a0<\/em>\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f\u00a0extension \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043d\u0430\u0434\u00a0<code>CoroutineScope<\/code>, \u0442.\u0435. \u0438\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043a\u043e\u0440\u0443\u0442\u0438\u043d (\u0437\u0430 \u0441\u0447\u0435\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f context \u0438 \u043f\u0440\u043e\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f cancellation).\u00a0<code>runBlocking<\/code>\u00a0\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043e\u0442\u043e\u0432\u0441\u044e\u0434\u0443 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f extension \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439.\u00a0<\/p>\n<p>\u0412\u0441\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0435 \u0431\u0438\u043b\u0434\u0435\u0440\u044b\u00a0\u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u00a0<code>CoroutineScope.()<\/code>\u00a0\u043b\u044f\u043c\u0431\u0434\u0443 \u043d\u0430 \u0432\u0445\u043e\u0434, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0438\u043b\u0434\u0435\u0440\u044b \u0438\u00a0<code>suspend<\/code>\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<hr\/>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451! \u0423\u0434\u0430\u0447\u0438 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445 \ud83d\ude42 <\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d \u0442\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0438 \u0432\u044b \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0437\u0430\u0432\u0435\u0442\u043d\u044b\u0439 \u043e\u0444\u0444\u0435\u0440, \u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u0440\u0441 &#171;<a href=\"https:\/\/android-interview.ru\/\" rel=\"noopener noreferrer nofollow\"><strong>Android \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442 \u0410 \u0434\u043e \u042f: \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043a \u043d\u0438\u043c<\/strong><\/a>&#171;.  \u041a\u0443\u0440\u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0430\u0437\u0431\u043e\u0440 <strong>\u0431\u043e\u043b\u0435\u0435 350-\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 Android \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445 \u0432\u00a0\u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0432\u00a0\u0420\u0424\u00a0\u2014 <strong>Ozon<\/strong>, <strong>Tinkoff<\/strong>, <strong>\u0410\u043b\u044c\u0444\u0430\u0431\u0430\u043d\u043a<\/strong>, <strong>\u0421\u0431\u0435\u0440<\/strong> \u0438\u00a0\u0434\u0440.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/873088\/\"> https:\/\/habr.com\/ru\/articles\/873088\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\">\n<div><figcaption>\u0422\u043e\u043f-5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 Android \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e<\/figcaption><\/div>\n<\/figure>\n<p>C\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0432 IT &#8212; \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0437\u043e\u0432 \u0438 Android \u0442\u0443\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043d\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u0432 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0438 \u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0442\u0441\u0432\u043e \u043e\u0431\u043b\u0430\u0441\u0442\u0435\u0439: \u043e\u0442 &#171;\u0431\u0430\u0437\u044b&#187; \u0432 \u0432\u0438\u0434\u0435\u00a0<strong>Computer Science\u00a0<\/strong>(\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b) \u0438 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b, System Design) \u0434\u043e \u0437\u043d\u0430\u043d\u0438\u044f\u00a0<strong>Java, Kotlin<\/strong>\u00a0\u0438, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f\u00a0<strong>Android SDK<\/strong>. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u044e\u0434\u0430 \u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0430\u044e\u0442 \u043a\u0430\u0436\u0434\u044b\u0435 \u043f\u0430\u0440\u0443 \u043b\u0435\u0442!) \u0432\u0440\u043e\u0434\u0435\u00a0<strong>RxJava<\/strong>\u00a0\u0438\u00a0<strong>Kotlin Coroutines\u00a0<\/strong>\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436, \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043d\u0435\u043f\u043e\u0434\u044a\u0435\u043c\u043d\u044b\u0439 \u0431\u0430\u0433\u0430\u0436 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439&#8230; \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u043d\u043e\u0433\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u043c\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e &#171;\u0431\u0430\u0437\u0443&#187; \u0438\u0437 \u043d\u0438\u0445 \u0432\u044b \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u0435 \u0441\u0432\u043e\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u0437\u0430\u0432\u0435\u0442\u043d\u044b\u0439 \u043e\u0444\u0444\u0435\u0440 \ud83d\ude42 \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c<strong>\u00a0\u0422\u041e\u041f-5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432<\/strong>, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0445 \u043d\u0430 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u043c \u0440\u044b\u043d\u043a\u0435, \u043f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<p>1.\u00a0<strong>\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b, \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0432\u00a0<\/strong><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSOLID\" rel=\"noopener noreferrer nofollow\"><strong>SOLID<\/strong><\/a><strong>.<\/strong><\/p>\n<p>\u0412\u043e\u043f\u0440\u043e\u0441 \u0432\u043d\u0435 \u0432\u0440\u0435\u043c\u0435\u043d \u0438 \u0442\u0440\u0435\u043d\u0434\u043e\u0432: \u0433\u043e\u0434\u044b \u0438\u0434\u0443\u0442, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043d\u0435 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u044b. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432\u0441\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0438 \u0438\u0445 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0440\u0430\u0442\u043a\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0438\u0445.<\/p>\n<p><code>Single Responsibility<\/code>:<strong>\u00a0<\/strong>\u0447\u0430\u0441\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a &#171;\u043c\u043e\u0434\u0443\u043b\u044c \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430 \u0447\u0442\u043e-\u0442\u043e \u043e\u0434\u043d\u043e&#187;. \u042d\u0442\u043e \u043e\u0442\u0447\u0430\u0441\u0442\u0438 \u0432\u0435\u0440\u043d\u043e, \u043d\u043e \u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u0430, \u043d\u043e \u0435\u0449\u0435 \u0438 \u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u0445 \u0434\u043b\u044f \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0442\u043e\u0447\u043d\u0435\u0435 \u043e \u0433\u0440\u0443\u043f\u043f\u0435 \u043b\u0438\u0446, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c: &#171;\u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0430\u043a\u0442\u043e\u0440\u0430&#187; (\u0433\u0434\u0435 \u0430\u043a\u0442\u043e\u0440 &#8212; 1 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u043b\u0438\u0446, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u043e\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &#8212; &#171;\u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u044f&#187;, &#171;\u043e\u0442\u0434\u0435\u043b \u043a\u0430\u0434\u0440\u043e\u0432&#187;).<\/p>\n<p><code>Open-Closed:<\/code>\u00a0\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b \u0434\u043b\u044f \u0438\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 (\u0430 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435) \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u0435\u0441\u0442\u0438 \u043a \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c \u043a\u043e\u0434\u0430, \u0438\u043d\u0430\u0447\u0435 &#8212; \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u0434\u0448\u0430\u044f \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430.<\/p>\n<p><code>Liskov Substitution:<\/code> \u0442\u0443\u0442 \u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 1 \u043a\u043b\u0430\u0441\u0441 (\u0431\u0430\u0437\u043e\u0432\u044b\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440), \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432 \u0431\u0435\u0437 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u041c\u043e\u0440\u0430\u043b\u044c &#8212; \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u0438 \u0434\u043e\u043b\u0436\u043d\u044b\u00a0<em>\u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c<\/em>, \u0430 \u043d\u0435\u00a0<em>\u0437\u0430\u043c\u0435\u0449\u0430\u0442\u044c<\/em>\u00a0\u0438\u043b\u0438\u00a0<em>\u0438\u0441\u043a\u0430\u0436\u0430\u0442\u044c<\/em>\u00a0\u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.<\/p>\n<p><code>Interface Segregation<\/code><em>:<\/em><strong>\u00a0<\/strong>\u00a0\u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0438\u0437 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432, \u0433\u0434\u0435 \u043d\u0435 \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438. \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0437\u043a\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439. \u041e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442, \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u043c \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043b\u0438\u0448\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u043b\u0438 \u0437\u0430\u0441\u043e\u0440\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430 \u043f\u0443\u0441\u0442\u044b\u043c\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p><code>Dependency Inversion<\/code>: \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0433\u043b\u0430\u0441\u0438\u0442, \u0447\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u0438 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0438\u0436\u043d\u0435\u0433\u043e, \u0438 \u0442\u0435 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439 \u0418 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0434\u0435\u0442\u0430\u043b\u0435\u0439, \u0434\u0435\u0442\u0430\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: \u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u042d\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0418\u0417\u0412\u041d\u0415, \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p><u>\u0411\u0443\u0434\u044c\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u044f\u043c \u0438 \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/u><\/p>\n<ul>\n<li>\n<p>\u041a\u0430\u043a\u043e\u0439 \u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u043d\u0430 \u0432\u0430\u0448 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0439?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a\u0438\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 SOLID \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u0438\u0437 Java, Kotlin \u0438\u043b\u0438 Android SDK?<\/p>\n<\/li>\n<\/ul>\n<h4>\u0427\u0442\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c:<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/ru.wikipedia.org\/wiki\/SOLID_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5)\" rel=\"noopener noreferrer nofollow\"><u>Wikipedia<\/u><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.ozon.ru\/product\/chistaya-arhitektura-iskusstvo-razrabotki-programmnogo-obespecheniya-martin-robert-1352666003\/?asb=oGoK2l5vsIj%252BpJqmyuflb9MPjoaDUdHst4J7XxvcUTA%253D&amp;asb2=z41dp3FlVIplJnIpUCf_hnX7sVf3Fl1H4amduDlNX92P56FMk_Y4JiJKzWxj7IIi&amp;avtc=1&amp;avte=2&amp;avts=1724159405&amp;keywords=%D1%87%D0%B8%D1%81%D1%82%D0%B0%D1%8F+%D0%B0%D1%80%D1%85%D0%B8%D1%82%D0%B5%D0%BA%D1%82%D1%83%D1%80%D0%B0+%D1%80%D0%BE%D0%B1%D0%B5%D1%80%D1%82+%D0%BC%D0%B0%D1%80%D1%82%D0%B8%D0%BD\" rel=\"noopener noreferrer nofollow\"><u>\u0420\u043e\u0431\u0435\u0440\u0442 \u041c\u0430\u0440\u0442\u0438\u043d (Uncle Bob) &#8212; \u0427\u0438\u0441\u0442\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/u><\/a>\u00a0&#8212; \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b, \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0432 SOLID,  \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.baeldung.com\/solid-principles\" rel=\"noopener noreferrer nofollow\"><u>Baeldung<\/u><\/a>\u00a0(c \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043d\u0430 Java)<\/p>\n<\/li>\n<\/ul>\n<p>2.\u00a0<strong>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <\/strong><code>HashMap<\/code><strong>? \u041a\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u043d\u0430 \u0431\u0430\u043a\u0435\u0442\u044b? \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438? \u041a\u0430\u043a\u0443\u044e \u0440\u043e\u043b\u044c \u0438\u0433\u0440\u0430\u044e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 <\/strong><code>equals\/hashCode<\/code><strong> \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432?<\/strong><\/p>\n<p><em>HashMap<\/em>\u00a0&#8212; \u0438\u0437\u043b\u044e\u0431\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u0443\u044e\u0449\u0438\u0445. \u0422\u0435\u043c\u0430 \u044d\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f, \u043d\u043e, \u043a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0447\u0451\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e:<\/p>\n<ul>\n<li>\n<p>\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0431\u043b\u043e\u0433\u0430\u0445: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u044f\u043c\u043e \u0442\u0443\u0442 \u043d\u0430\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fhabr.com%2Fru%2Farticles%2F128017%2F\" rel=\"noopener noreferrer nofollow\">\u0425\u0430\u0431\u0440\u0435<\/a><\/p>\n<\/li>\n<li>\n<p>\u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430: \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u043e\u0439 \u0434\u043b\u044f Java \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043a\u043d\u0438\u0433\u0430\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fwww.ozon.ru%2Fproduct%2Fstruktury-dannyh-i-algoritmy-v-java-lafore-robert-211439421%2F%3F__rr%3D1\" rel=\"noopener noreferrer nofollow\">\u0420\u043e\u0431\u0435\u0440\u0442\u0430 \u041b\u0430\u0444\u043e\u0440\u0435 &#8212; \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Java<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>3. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <\/strong><code>data<\/code><strong> \u043a\u043b\u0430\u0441\u0441\u044b \u0432 Kotlin? \u0417\u0430\u0447\u0435\u043c \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b, \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0445?<\/strong><\/p>\n<p>Data classes &#8212; \u044d\u0442\u043e \u043f\u043e \u043f\u0440\u0430\u0432\u0443 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0444\u0438\u0447 \u041a\u043e\u0442\u043b\u0438\u043d\u0430! \u0421\u043e\u0431\u0435\u0441\u0435\u0434\u0443\u044e\u0449\u0438\u0435, \u043f\u0440\u0430\u0432\u0434\u0430, \u0442\u043e\u0436\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u044d\u0442\u0443 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e, \u043f\u043e\u0442\u043e\u043c\u0443 \u043e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u0438 \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u044f\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043e \u043d\u0435\u0439 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u041d\u0430\u0447\u0430\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043d\u0438\u043c\u0438 \u0441\u0442\u043e\u0438\u0442 \u0432\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fkotlinlang.org%2Fdocs%2Fdata-classes.html%23properties-declared-in-the-class-body\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0438\u0434\u0435\u0438.<\/p>\n<p>\u041d\u043e \u0441\u0442\u043e\u0438\u0442 \u0431\u044b\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0438 \u043a \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u044f\u043c:<\/p>\n<ul>\n<li>\n<p>\u0427\u0435\u043c\u00a0<code>data<\/code>\u00a0\u043a\u043b\u0430\u0441\u0441 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u00a0<code>value<\/code>\u00a0\u043a\u043b\u0430\u0441\u0441\u0430? <em>(\u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u044b, \u0441\u043c.\u00a0<\/em><a href=\"https:\/\/kotlinlang.org\/docs\/inline-classes.html\" rel=\"noopener noreferrer nofollow\"><em><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/em><\/a><em>\u00a0\u0434\u043b\u044f value \u043a\u043b\u0430\u0441\u0441\u0430)<\/em><\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435\u00a0<code>data object?<\/code> \u0412 \u0447\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443<em>\u00a0<\/em><code>data class<\/code>\u00a0\u0438\u00a0<code>data object<\/code>? <em>(\u0441\u043c.\u00a0<\/em><a href=\"https:\/\/kotlinlang.org\/docs\/object-declarations.html#data-objects\" rel=\"noopener noreferrer nofollow\"><em><u>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/u><\/em><\/a><em>)<\/em><\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 data \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438\u00a0<code>equals\/hashCode\/toString<\/code><em>? (\u043f\u043e\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u043d\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f)<\/em><\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 <code>data<\/code> \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u0430\u043a\u00a0<code>var<\/code>, \u0430 \u043d\u0435\u00a0<code>val<\/code>? <em>(\u043d\u0438\u0447\u0435\u0433\u043e \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e, \u043d\u043e \u044d\u0442\u043e \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442 \u0438\u0434\u0435\u044e data \u043a\u043b\u0430\u0441\u0441\u043e\u0432 &#8212; \u043a\u043b\u0430\u0441\u0441 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0copy()\u00a0\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0438 \u0442.\u0434.)<\/em><\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u0442\u044c \u043b\u0438 \u0443 <code>data<\/code> \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438? \u041d\u0435\u043b\u044c\u0437\u044f \u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u0430\u043a <code>data<\/code>? <em>(\u0435\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043d\u0438\u00a0<\/em><a href=\"https:\/\/medium.com\/bumble-tech\/data-classes-in-kotlin-the-real-impact-of-using-it-6f1fdc909837\" rel=\"noopener noreferrer nofollow\"><em><u>\u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/u><\/em><\/a><em>\u00a0\u0438\u0437-\u0437\u0430 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438)<\/em><\/p>\n<\/li>\n<\/ul>\n<p><strong>4. \u041a\u0430\u043a\u0438\u0435 &#171;\u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435&#187; \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0410\u043d\u0434\u0440\u043e\u0438\u0434 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0438 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f?<\/strong><\/p>\n<p>\u041f\u043e\u0434 \u201c\u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438\u201d \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u00a0<code>AndroidManifest<\/code>, \u0432 \u044d\u0442\u043e\u043c \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e\u00a0<a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Fguide%2Fcomponents%2Ffundamentals\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u0432\u0441\u0435\u0433\u043e \u0438\u0445 4:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fapp%2FActivity\" rel=\"noopener noreferrer nofollow\">Activity<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fapp%2FService\" rel=\"noopener noreferrer nofollow\">Service<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fcontent%2FBroadcastReceiver\" rel=\"noopener noreferrer nofollow\">Broadcast receiver<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Fdeveloper.android.com%2Freference%2Fandroid%2Fcontent%2FContentProvider\" rel=\"noopener noreferrer nofollow\">Content provider<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0422.\u0435. \u0434\u0430, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e UI \u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043b\u0438\u0448\u044c\u00a0<code>BroadcastReceiver<\/code>\u00a0\u0438\u043b\u0438\u00a0<code>Service<\/code>\u00a0\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u0430\u0436\u0435 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0433\u043e \u0432 Google Play.<\/p>\n<p>5.<strong> \u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u0443? \u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0432\u0441\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u043d\u0430\u0435\u0442\u0435.<\/strong><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u0440\u0443\u0442\u0438\u043d &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442.\u043d. <strong>Coroutine Builders<\/strong>:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/launch.html\" rel=\"noopener noreferrer nofollow\"><strong>launch<\/strong><\/a><strong>: <\/strong>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u0443 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0441 \u043d\u0435\u0439 <a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/-job\/\" rel=\"noopener noreferrer nofollow\">Job<\/a>. \u042d\u0442\u043e\u0442 <code>Job<\/code> \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u0443\u0436\u0438\u0442 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f + \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0438\u043b\u0438 \u043d\u0435 \u0432\u0430\u0436\u0435\u043d \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0435 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/async.html\" rel=\"noopener noreferrer nofollow\"><strong>async<\/strong><\/a>:\u00a0\u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 <code>launch<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0435 <code>Job<\/code>, \u0430 <a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/-deferred\/\" rel=\"noopener noreferrer nofollow\">Deferred&lt;T&gt;<\/a><strong>. <\/strong>\u042d\u0442\u043e future\/promise, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0443\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 (\u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>start<\/code><em>)<\/em>. \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c <code>await<\/code> \u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043d\u043e\u043c <code>Deferred<\/code> \u043e\u0431\u044a\u0435\u043a\u0442\u0435. \u042d\u0442\u043e\u0442 \u0431\u0438\u043b\u0434\u0435\u0440 \u0443\u0434\u043e\u0431\u0435\u043d, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u00a0<code>Job<\/code> \u0438\u0437\u00a0<code>launch<\/code>.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/kotlinlang.org\/api\/kotlinx.coroutines\/kotlinx-coroutines-core\/kotlinx.coroutines\/run-blocking.html\" rel=\"noopener noreferrer nofollow\"><strong>runBlocking<\/strong><\/a>: \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u0443 \u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0432\u0448\u0438\u0439 \u043f\u043e\u0442\u043e\u043a \u0434\u043e \u0435\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0435 <code>Job<\/code> \u0438\u043b\u0438 <code>Defferred<\/code>, \u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0438\u043f <code>T<\/code>. \u042d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c, \u0442.\u043a. \u043e\u043d \u0441\u0432\u043e\u0434\u0438\u0442 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 <code>suspending<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0430 &#171;\u043d\u0435\u0442&#187;, \u043d\u043e \u043e\u043d \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0432 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b \u0438\u0437 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0431\u0435\u0437 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 kotlin \u0438\/\u0438\u043b\u0438 \u043a\u043e\u0440\u0443\u0442\u0438\u043d + \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p><code>launch<\/code><em>, <\/em><code>async<\/code><em>\u00a0<\/em>\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f\u00a0extension \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043d\u0430\u0434\u00a0<code>CoroutineScope<\/code>, \u0442.\u0435. \u0438\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043a\u043e\u0440\u0443\u0442\u0438\u043d (\u0437\u0430 \u0441\u0447\u0435\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f context \u0438 \u043f\u0440\u043e\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f cancellation).\u00a0<code>runBlocking<\/code>\u00a0\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043e\u0442\u043e\u0432\u0441\u044e\u0434\u0443 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f extension \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439.\u00a0<\/p>\n<p>\u0412\u0441\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0435 \u0431\u0438\u043b\u0434\u0435\u0440\u044b\u00a0\u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u00a0<code>CoroutineScope.()<\/code>\u00a0\u043b\u044f\u043c\u0431\u0434\u0443 \u043d\u0430 \u0432\u0445\u043e\u0434, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0438\u043b\u0434\u0435\u0440\u044b \u0438\u00a0<code>suspend<\/code>\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<hr\/>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451! \u0423\u0434\u0430\u0447\u0438 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445 \ud83d\ude42 <\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d \u0442\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0438 \u0432\u044b \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0438 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0437\u0430\u0432\u0435\u0442\u043d\u044b\u0439 \u043e\u0444\u0444\u0435\u0440, \u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u0440\u0441 &#171;<a href=\"https:\/\/android-interview.ru\/\" rel=\"noopener noreferrer nofollow\"><strong>Android \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442 \u0410 \u0434\u043e \u042f: \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043a \u043d\u0438\u043c<\/strong><\/a>&#171;.  \u041a\u0443\u0440\u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0430\u0437\u0431\u043e\u0440 <strong>\u0431\u043e\u043b\u0435\u0435 350-\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 Android \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445 \u0432\u00a0\u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0432\u00a0\u0420\u0424\u00a0\u2014 <strong>Ozon<\/strong>, <strong>Tinkoff<\/strong>, <strong>\u0410\u043b\u044c\u0444\u0430\u0431\u0430\u043d\u043a<\/strong>, <strong>\u0421\u0431\u0435\u0440<\/strong> \u0438\u00a0\u0434\u0440.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/873088\/\"> https:\/\/habr.com\/ru\/articles\/873088\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-444787","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/444787","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=444787"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/444787\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=444787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=444787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=444787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}