{"id":329928,"date":"2022-02-21T15:00:24","date_gmt":"2022-02-21T15:00:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=329928"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=329928","title":{"rendered":"<span>\u0421\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e Javascript, \u043c\u043e\u0439 \u043e\u043f\u044b\u0442. \u0427\u0430\u0441\u0442\u044c \u0432\u0442\u043e\u0440\u0430\u044f<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p><em>\u201c<\/em>\u0418 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0431\u0435\u043b\u044b\u0435, \u0431\u0435\u043b\u044b\u0435 \u0434\u043d\u0438, \u0431\u0435\u043b\u044b\u0435 \u0433\u043e\u0440\u044b \u0438 \u0431\u0435\u043b\u044b\u0439 \u043b\u0435\u0434.<br \/> \u041d\u043e \u0432\u0441\u0435, \u0447\u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e &#8212; \u044d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0432 \u0438 \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u0448\u0430\u0433\u0430 \u0432\u043f\u0435\u0440\u0435\u0434.<em>\u201d<\/em><\/p>\n<p><em>(\u0412\u0438\u043a\u0442\u043e\u0440 \u0426\u043e\u0439)<\/em><\/p>\n<\/blockquote>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u042d\u0442\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438 \u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u043d\u0438\u0445. \u042f \u043d\u0435 \u0431\u0435\u0440\u0443\u0441\u044c \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0438\u0445 \u0441\u043c\u044b\u0441\u043b. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0448\u0443 \u0432\u0441\u0435 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043d\u0430\u0434\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043c\u0435\u043d\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u043e\u0431\u0435\u0441\u043a\u0443\u0440\u0430\u0436\u0438\u043b\u0438 \u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0443\u0445\u043e\u0434\u0438\u0442\u044c <em>\u043d\u0435 \u0441\u043e\u043b\u043e\u043d\u043e \u0445\u043b\u0435\u0431\u0430\u0432\u0448\u0438<\/em>, \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u043e\u0434\u0438\u043d \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u0430\u043d\u0435\u043a\u0434\u043e\u0442: <\/p>\n<blockquote>\n<p><em>&#171;- \u041d\u0443 \u043a\u0430\u043a \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0445\u043e\u0434\u0438\u043b? \u0423\u0441\u043f\u0435\u0448\u043d\u043e? &#8212; \u0414\u0430. \u0420\u0443\u0447\u043a\u0443 \u0443 \u043d\u0438\u0445 \u0441\u043f\u0435\u0440&#187; (<\/em><a href=\"https:\/\/vse-shutochki.ru\/shutka\/33619\" rel=\"noopener noreferrer nofollow\"><em>\u0441\u0441\u044b\u043b\u043a\u0430<\/em><\/a><em>)<\/em><\/p>\n<\/blockquote>\n<p>\u0427\u0430\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e typescript, \u0447\u0430\u0441\u0442\u044c \u043f\u043e javascript, \u0447\u0442\u043e-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0437 html, Node.js, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438. \u0412 \u043e\u0431\u0449\u0435\u043c \u0432\u0441\u0451 \u0442\u043e, \u043e \u0447\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445. <\/p>\n<h2>\u0412\u043e\u043f\u0440\u043e\u0441\u044b<\/h2>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 1 (typescript):<\/strong> <\/p>\n<p>\u0414\u0430\u043d \u043c\u0430\u0441\u0441\u0438\u0432:\u00a0<\/p>\n<pre><code class=\"javascript\"> let a = [{a:1},{b:2},{c:3,d:4}];<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044e \u0432\u0441\u0435\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code class=\"javascript\">let c = {}; Object.assign(c,...a); console.log(c);<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 2 (typescript):<\/strong> <\/p>\n<pre><code class=\"javascript\">interface IEvent {} interface ISimpleEvent extends IEvent {}  interface IComplexEvent extends IEvent {}  class T implements ISimpleEvent {}  class D implements IComplexEvent {}  function processEvent(event: IEvent) {    if(event instanceof IComplexEvent) {      \/\/ do something complex }    else {        \/\/ do something simple    }  }<\/code><\/pre>\n<p> \u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code>interface IEvent {} interface ISimpleEvent extends IEvent {} interface IComplexEvent extends IEvent {} class T implements ISimpleEvent {} class D implements IComplexEvent {}  function isComplexEvent(event: IEvent): event is IComplexEvent {   return event instanceof D; }  function processEvent(event: IEvent) {   if(isComplexEvent(event)) {     console.log(\"IComplexEvent\");   } else {     console.log(\"ISimpleEvent\");   } }  let e: D = new D(); processEvent(e);<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 3 (typescript):<\/strong> <\/p>\n<pre><code class=\"javascript\">interface A {   prop1: {     a: number;     b: string;   } }  function someFunc(k: typeOf A.prop1): void {}<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code class=\"javascript\">interface A {   prop1: {     a: number;     b: string;   } } type sw = A[\"prop1\"]; function someFunc(a: sw) {   console.log(a.b) }  let q = {   prop1: {     a: 5,     b: \"dddd\"   } }  someFunc(q.prop1);<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 4 (javascript):<\/strong> <\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u043d\u0435\u0442: <\/p>\n<pre><code class=\"javascript\">console.log(counter()); \/\/ output: 0 console.log(counter()); \/\/ output: 1 console.log(counter()); \/\/ output: 2<\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code class=\"javascript\">function getCounter() {   var count = 0;   return function() {     return count++;   } }  let counter = getCounter();  console.log(counter()); \/\/ output: 0 console.log(counter()); \/\/ output: 1 console.log(counter()); \/\/ output: 2<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 5 (javascript):<\/strong> <\/p>\n<p>\u0427\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f match?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u041e\u0431\u044a\u0435\u043a\u0442 Array, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 null, \u0435\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e.   <\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 6:<\/strong> <\/p>\n<p>Emit, on, once \u0432 Node.js   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u042d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f events, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0438 \u0432\u0441\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0438 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<ul>\n<li>\n<p><strong>emit<\/strong> \u2013 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>on<\/strong> &#8212; \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c listener \u0432 \u043a\u043e\u043d\u0446\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 listeners \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439. \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0431\u044b\u043b \u043b\u0438 listener \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u0433\u0434\u0430-\u043b\u0438\u0431\u043e, \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>once<\/strong> &#8212; \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c listener \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 listeners \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u041d\u043e \u044d\u0442\u043e\u0442 listener \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e 1 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u041f\u043e\u0442\u043e\u043c \u043e\u043d \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 7 (javascript):<\/strong> <\/p>\n<p>\u00a0 \u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434?<\/p>\n<pre><code class=\"javascript\">console.log('Hi'); var to = setTimeout(function() {   console.log('callback'); }, 0); \/\/clearTimeout(to); console.log('Bye');<\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code>Hi Bye callback<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \/\/clearTimeout(to), \u0442\u043e <\/p>\n<pre><code>Hi Bye<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 setTimeout \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0435\u043a \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442, \u0442.\u0435. \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u0434\u0435. setTimeout \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043b\u044e\u0441 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0441\u0442\u0435\u043a\u0435 \u043f\u043b\u044e\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Callback Queue, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0430\u043c \u0443\u0436\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 SetTimeout().<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 8 (html):<\/strong> <\/p>\n<pre><code class=\"javascript\">box-sizing: border-box <\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f width \u0438 height \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0432 \u0441\u0435\u0431\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u044b padding \u0438 border, \u043d\u043e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 margin.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 9:<\/strong> <\/p>\n<p>\u0421lean architecture    <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u041c\u043e\u0434\u043d\u0430\u044f \u043d\u044b\u043d\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Web \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043d\u0438\u0433\u0443 <em>Clean Architecture: A Craftsman&#8217;s Guide to Software Structure and Design (Robert C. Martin Series). <\/em>\u041f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0432\u044b \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0421lean architecture \u0438\u043b\u0438 \u043d\u0435\u0442. \u0412 \u0446\u0435\u043b\u043e\u043c \u0435\u0441\u043b\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0435\u0441\u0442\u044c \u043f\u0430\u043f\u043a\u0438:<\/p>\n<ol>\n<li>\n<p>entities<\/p>\n<\/li>\n<li>\n<p>use_cases<\/p>\n<\/li>\n<li>\n<p>interfaces_adapters<\/p>\n<\/li>\n<li>\n<p>external_interfaces<\/p>\n<\/li>\n<\/ol>\n<p>\u0418 \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0432 \u043a\u0430\u043a\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043b\u0435\u0436\u0438\u0442, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <a href=\"https:\/\/www.freecodecamp.org\/news\/a-quick-introduction-to-clean-architecture-990c014448d2\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/post\/464185\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 10:<\/strong><\/p>\n<p>Circuit breaker   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>Circuit breaker &#8212; \u044d\u0442\u043e \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0431\u043e\u044f\u043c\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0438\u0441 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c. \u0415\u0441\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443, \u0442\u043e \u043e\u043d \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0435\u0430\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043b\u0438\u0431\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f. \u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 (<a href=\"https:\/\/medium.com\/@kirill.sereda\/%D1%81%D1%82%D1%80%D0%B0%D1%82%D0%B5%D0%B3%D0%B8%D0%B8-%D0%BE%D0%B1%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8-%D0%BE%D1%88%D0%B8%D0%B1%D0%BE%D0%BA-circuit-breaker-pattern-650232944e37\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>).  \u0423 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c 3 \u0441\u043e\u0441\u043e\u0442\u043e\u044f\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>Open<\/p>\n<\/li>\n<li>\n<p>Closed<\/p>\n<\/li>\n<li>\n<p>Half-Open<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/bool.dev\/blog\/detail\/circuit-breaker-pattern\" rel=\"noopener noreferrer nofollow\">\u0422\u0443\u0442<\/a> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e \u043d\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e, \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 11:<\/strong><\/p>\n<p>Webpack   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>Webpack &#8212; \u044d\u0442\u043e \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \u041e\u043d \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0433\u0440\u0430\u0444 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043c\u043e\u0434\u0443\u043b\u0438 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0432 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0431\u0430\u043d\u0434\u043b (bundle), \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b &#171;index.html&#187; (<a href=\"https:\/\/habr.com\/ru\/post\/514838\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>).  \u0422\u0430\u043a \u0436\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/learn.javascript.ru\/screencast\/webpack#webpack-2-simple-1\" rel=\"noopener noreferrer nofollow\">\u0421\u043a\u0440\u0438\u043d\u043a\u0430\u0441\u0442 \u043f\u043e Webpack<\/a>.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 12:<\/strong><\/p>\n<p>Babel   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0423\u0442\u0438\u043b\u0438\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 ECMAScript 2015+  \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e JavaScript, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0442\u0430\u0440\u044b\u043c\u0438 \u0434\u0432\u0438\u0436\u043a\u0430\u043c\u0438 JavaScript (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Babel_(transcompiler)\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>).<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 13:<\/strong><\/p>\n<p>SvelteJS<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u041d\u043e\u0432\u044b\u0439 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u043c \u043a\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 front end \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041e\u043d \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0447\u0435\u043c Angular, React \u0438 VueJS. \u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/habr.com\/ru\/post\/446026\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/446026\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>. \u041d\u0435 \u0437\u043d\u0430\u044e \u0437\u0430\u0447\u0435\u043c \u0443 \u043c\u0435\u043d\u044f \u043e \u043d\u0435\u043c \u0441\u043f\u0440\u043e\u0441\u0438\u043b\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438 \u043c\u043e\u0439 \u043a\u0440\u0443\u0433\u043e\u0437\u043e\u0440. \u042f \u043d\u0435 \u043f\u0438\u0441\u0430\u043b \u043d\u0430 SvelteJS, \u043d\u043e \u043f\u0438\u0448\u0443 \u043d\u0430 Angular, React \u0438 VueJS. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 3-\u0445 \u043c\u043e\u043d\u0441\u0442\u0440\u043e\u0432 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u043d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043d\u0430 \u043d\u0438\u0445 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0441\u043f\u0440\u043e\u0441 \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c\u0438.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 14:<\/strong><\/p>\n<p>npm ci   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>ci &#8212; \u044d\u0442\u043e Continuous Integration. \u0410\u043d\u0430\u043b\u043e\u0433 npm install, \u043d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043d\u0435\u0433\u043e \u0431\u0435\u0440\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0437 package-lock.json. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 lock \u0444\u0430\u0439\u043b, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0432 ci\/cd \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0442\u0430\u043a\u043e\u0439 &#8212; npm install \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0444\u0430\u0439\u043b package-lock.json, \u0434\u0430\u043b\u0435\u0435 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 git \u0438 \u0432 ci\/cd \u0441\u043a\u0440\u0438\u043f\u0442\u0435 git \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c npm ci. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/docs.npmjs.com\/cli\/v8\/commands\/npm-ci\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, <a href=\"https:\/\/qastack.ru\/programming\/52499617\/what-is-the-difference-between-npm-install-and-npm-ci\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/tproger.ru\/news\/npm-ci\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a><\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 15:<\/strong><\/p>\n<p>C\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0438\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0421\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 &#8212; \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0438\u043f\u0430:<\/p>\n<pre><code>let func = (arg1, arg2, ...argN) => expression<\/code><\/pre>\n<p>\u0438\u043b\u0438<\/p>\n<pre><code>let func = function(arg1, arg2, ...argN) {   return expression; };<\/code><\/pre>\n<p>\u041e\u0442\u043b\u0438\u0447\u0438\u044f \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n<ol>\n<li>\n<p>\u041d\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 this \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430. <\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440<em> new<\/em> \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u044f\u0432\u043d\u044b\u0439 return \u0434\u043b\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: <em>let func = (arg1, arg2, &#8230;argN) => expression<\/em><\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <em>yield<\/em> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u0442\u0435\u043b\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 arguments<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 16:<\/strong><\/p>\n<p>Continuous Integration   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<blockquote>\n<p><em>\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f (Continuous Integration)<\/em> <em>\u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043a\u043e\u043f\u0438\u0439 \u0432 \u043e\u0431\u0449\u0443\u044e \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0432\u0435\u0442\u0432\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0447\u0430\u0441\u0442\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0441\u043a\u043e\u0440\u0435\u0439\u0448\u0435\u0433\u043e \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0444\u0435\u043a\u0442\u043e\u0432 \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c (<\/em><a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9D%D0%B5%D0%BF%D1%80%D0%B5%D1%80%D1%8B%D0%B2%D0%BD%D0%B0%D1%8F_%D0%B8%D0%BD%D1%82%D0%B5%D0%B3%D1%80%D0%B0%D1%86%D0%B8%D1%8F\" rel=\"noopener noreferrer nofollow\"><em>\u0441\u0441\u044b\u043b\u043a\u0430<\/em><\/a><em>)<\/em><\/p>\n<\/blockquote>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0441\u043f\u0440\u043e\u0441\u044f\u0442 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u0431\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442 \u0438 \u043a\u0430\u043a \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u044f \u043e\u043f\u0438\u0441\u0430\u043b. \u041f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c, \u0431\u044b\u043b\u0438 \u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u041a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437 \u044f \u043f\u0440\u0438\u0448\u0435\u043b \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 frontend developer \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e SQL. \u0412 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043e\u0431\u0449\u0430\u043b\u0438\u0441\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e Java. \u0422\u0430\u043a \u0436\u0435 \u0431\u044b\u043b \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f unit \u0442\u0435\u0441\u0442\u043e\u0432. \u0412 \u043e\u0431\u0449\u0435\u043c, \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 &#8212; \u044d\u0442\u043e \u0442\u0430\u043a \u0432\u0435\u0441\u0435\u043b\u043e, \u0438\u043d\u043e\u0433\u0434\u0430 \u0440\u0443\u043a\u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043b \u0434\u043d\u044f \u0434\u0440\u043e\u0436\u0430\u0442. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0433\u043e\u0442\u043e\u0432\u0438\u0448\u044c\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u0439 \u0442\u0435\u043c\u0435, \u0430 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0443\u044e.<\/p>\n<p><strong>P.S.:<\/strong> \u041e\u0442\u0432\u0435\u0442\u044b \u0434\u0430\u043d\u044b \u043a\u0440\u0430\u0442\u043a\u0438\u0435, \u043d\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0435. \u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e (<a href=\"https:\/\/habr.com\/ru\/post\/646847\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>), \u0430 \u0442\u0430\u043a \u0436\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0443\u043a\u0430\u0437\u0430\u043b \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/post\/651527\/\"> https:\/\/habr.com\/ru\/post\/651527\/<\/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_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p><em>\u201c<\/em>\u0418 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0431\u0435\u043b\u044b\u0435, \u0431\u0435\u043b\u044b\u0435 \u0434\u043d\u0438, \u0431\u0435\u043b\u044b\u0435 \u0433\u043e\u0440\u044b \u0438 \u0431\u0435\u043b\u044b\u0439 \u043b\u0435\u0434.<br \/> \u041d\u043e \u0432\u0441\u0435, \u0447\u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e &#8212; \u044d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u043e\u0432 \u0438 \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u0448\u0430\u0433\u0430 \u0432\u043f\u0435\u0440\u0435\u0434.<em>\u201d<\/em><\/p>\n<p><em>(\u0412\u0438\u043a\u0442\u043e\u0440 \u0426\u043e\u0439)<\/em><\/p>\n<\/blockquote>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u042d\u0442\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438 \u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u043d\u0438\u0445. \u042f \u043d\u0435 \u0431\u0435\u0440\u0443\u0441\u044c \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0438\u0445 \u0441\u043c\u044b\u0441\u043b. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0448\u0443 \u0432\u0441\u0435 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043d\u0430\u0434\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u043c\u0435\u043d\u044f \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u043e\u0431\u0435\u0441\u043a\u0443\u0440\u0430\u0436\u0438\u043b\u0438 \u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0443\u0445\u043e\u0434\u0438\u0442\u044c <em>\u043d\u0435 \u0441\u043e\u043b\u043e\u043d\u043e \u0445\u043b\u0435\u0431\u0430\u0432\u0448\u0438<\/em>, \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u043e\u0434\u0438\u043d \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u0430\u043d\u0435\u043a\u0434\u043e\u0442: <\/p>\n<blockquote>\n<p><em>&#171;- \u041d\u0443 \u043a\u0430\u043a \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0445\u043e\u0434\u0438\u043b? \u0423\u0441\u043f\u0435\u0448\u043d\u043e? &#8212; \u0414\u0430. \u0420\u0443\u0447\u043a\u0443 \u0443 \u043d\u0438\u0445 \u0441\u043f\u0435\u0440&#187; (<\/em><a href=\"https:\/\/vse-shutochki.ru\/shutka\/33619\" rel=\"noopener noreferrer nofollow\"><em>\u0441\u0441\u044b\u043b\u043a\u0430<\/em><\/a><em>)<\/em><\/p>\n<\/blockquote>\n<p>\u0427\u0430\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e typescript, \u0447\u0430\u0441\u0442\u044c \u043f\u043e javascript, \u0447\u0442\u043e-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0437 html, Node.js, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438. \u0412 \u043e\u0431\u0449\u0435\u043c \u0432\u0441\u0451 \u0442\u043e, \u043e \u0447\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f\u0445. <\/p>\n<h2>\u0412\u043e\u043f\u0440\u043e\u0441\u044b<\/h2>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 1 (typescript):<\/strong> <\/p>\n<p>\u0414\u0430\u043d \u043c\u0430\u0441\u0441\u0438\u0432:\u00a0<\/p>\n<pre><code class=\"javascript\"> let a = [{a:1},{b:2},{c:3,d:4}];<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044e \u0432\u0441\u0435\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code class=\"javascript\">let c = {}; Object.assign(c,...a); console.log(c);<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 2 (typescript):<\/strong> <\/p>\n<pre><code class=\"javascript\">interface IEvent {} interface ISimpleEvent extends IEvent {}  interface IComplexEvent extends IEvent {}  class T implements ISimpleEvent {}  class D implements IComplexEvent {}  function processEvent(event: IEvent) {    if(event instanceof IComplexEvent) {      \/\/ do something complex }    else {        \/\/ do something simple    }  }<\/code><\/pre>\n<p> \u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code>interface IEvent {} interface ISimpleEvent extends IEvent {} interface IComplexEvent extends IEvent {} class T implements ISimpleEvent {} class D implements IComplexEvent {}  function isComplexEvent(event: IEvent): event is IComplexEvent {   return event instanceof D; }  function processEvent(event: IEvent) {   if(isComplexEvent(event)) {     console.log(\"IComplexEvent\");   } else {     console.log(\"ISimpleEvent\");   } }  let e: D = new D(); processEvent(e);<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 3 (typescript):<\/strong> <\/p>\n<pre><code class=\"javascript\">interface A {   prop1: {     a: number;     b: string;   } }  function someFunc(k: typeOf A.prop1): void {}<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code class=\"javascript\">interface A {   prop1: {     a: number;     b: string;   } } type sw = A[\"prop1\"]; function someFunc(a: sw) {   console.log(a.b) }  let q = {   prop1: {     a: 5,     b: \"dddd\"   } }  someFunc(q.prop1);<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 4 (javascript):<\/strong> <\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u043d\u0435\u0442: <\/p>\n<pre><code class=\"javascript\">console.log(counter()); \/\/ output: 0 console.log(counter()); \/\/ output: 1 console.log(counter()); \/\/ output: 2<\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code class=\"javascript\">function getCounter() {   var count = 0;   return function() {     return count++;   } }  let counter = getCounter();  console.log(counter()); \/\/ output: 0 console.log(counter()); \/\/ output: 1 console.log(counter()); \/\/ output: 2<\/code><\/pre>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 5 (javascript):<\/strong> <\/p>\n<p>\u0427\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f match?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u041e\u0431\u044a\u0435\u043a\u0442 Array, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 null, \u0435\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e.   <\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 6:<\/strong> <\/p>\n<p>Emit, on, once \u0432 Node.js   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u042d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f events, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0438 \u0432\u0441\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0438 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<ul>\n<li>\n<p><strong>emit<\/strong> \u2013 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>on<\/strong> &#8212; \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c listener \u0432 \u043a\u043e\u043d\u0446\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 listeners \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439. \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0431\u044b\u043b \u043b\u0438 listener \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a\u043e\u0433\u0434\u0430-\u043b\u0438\u0431\u043e, \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>once<\/strong> &#8212; \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c listener \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 listeners \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u041d\u043e \u044d\u0442\u043e\u0442 listener \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e 1 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u041f\u043e\u0442\u043e\u043c \u043e\u043d \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 7 (javascript):<\/strong> <\/p>\n<p>\u00a0 \u041a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434?<\/p>\n<pre><code class=\"javascript\">console.log('Hi'); var to = setTimeout(function() {   console.log('callback'); }, 0); \/\/clearTimeout(to); console.log('Bye');<\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<pre><code>Hi Bye callback<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \/\/clearTimeout(to), \u0442\u043e <\/p>\n<pre><code>Hi Bye<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 setTimeout \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0435\u043a \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442, \u0442.\u0435. \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u0434\u0435. setTimeout \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043b\u044e\u0441 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0441\u0442\u0435\u043a\u0435 \u043f\u043b\u044e\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Callback Queue, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0430\u043c \u0443\u0436\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 SetTimeout().<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 8 (html):<\/strong> <\/p>\n<pre><code class=\"javascript\">box-sizing: border-box <\/code><\/pre>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f width \u0438 height \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0432 \u0441\u0435\u0431\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u044b padding \u0438 border, \u043d\u043e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 margin.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 9:<\/strong> <\/p>\n<p>\u0421lean architecture    <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u041c\u043e\u0434\u043d\u0430\u044f \u043d\u044b\u043d\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Web \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043d\u0438\u0433\u0443 <em>Clean Architecture: A Craftsman&#8217;s Guide to Software Structure and Design (Robert C. Martin Series). <\/em>\u041f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0432\u044b \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u0421lean architecture \u0438\u043b\u0438 \u043d\u0435\u0442. \u0412 \u0446\u0435\u043b\u043e\u043c \u0435\u0441\u043b\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0435\u0441\u0442\u044c \u043f\u0430\u043f\u043a\u0438:<\/p>\n<ol>\n<li>\n<p>entities<\/p>\n<\/li>\n<li>\n<p>use_cases<\/p>\n<\/li>\n<li>\n<p>interfaces_adapters<\/p>\n<\/li>\n<li>\n<p>external_interfaces<\/p>\n<\/li>\n<\/ol>\n<p>\u0418 \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0432 \u043a\u0430\u043a\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043b\u0435\u0436\u0438\u0442, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <a href=\"https:\/\/www.freecodecamp.org\/news\/a-quick-introduction-to-clean-architecture-990c014448d2\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/post\/464185\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 10:<\/strong><\/p>\n<p>Circuit breaker   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>Circuit breaker &#8212; \u044d\u0442\u043e \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0431\u043e\u044f\u043c\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0438\u0441 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c. \u0415\u0441\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443, \u0442\u043e \u043e\u043d \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0435\u0430\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043b\u0438\u0431\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f. \u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 (<a href=\"https:\/\/medium.com\/@kirill.sereda\/%D1%81%D1%82%D1%80%D0%B0%D1%82%D0%B5%D0%B3%D0%B8%D0%B8-%D0%BE%D0%B1%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8-%D0%BE%D1%88%D0%B8%D0%B1%D0%BE%D0%BA-circuit-breaker-pattern-650232944e37\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>).  \u0423 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c 3 \u0441\u043e\u0441\u043e\u0442\u043e\u044f\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>Open<\/p>\n<\/li>\n<li>\n<p>Closed<\/p>\n<\/li>\n<li>\n<p>Half-Open<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/bool.dev\/blog\/detail\/circuit-breaker-pattern\" rel=\"noopener noreferrer nofollow\">\u0422\u0443\u0442<\/a> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e \u043d\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e, \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 11:<\/strong><\/p>\n<p>Webpack   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>Webpack &#8212; \u044d\u0442\u043e \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \u041e\u043d \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0433\u0440\u0430\u0444 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043c\u043e\u0434\u0443\u043b\u0438 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0432 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0431\u0430\u043d\u0434\u043b (bundle), \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b &#171;index.html&#187; (<a href=\"https:\/\/habr.com\/ru\/post\/514838\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>).  \u0422\u0430\u043a \u0436\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/learn.javascript.ru\/screencast\/webpack#webpack-2-simple-1\" rel=\"noopener noreferrer nofollow\">\u0421\u043a\u0440\u0438\u043d\u043a\u0430\u0441\u0442 \u043f\u043e Webpack<\/a>.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 12:<\/strong><\/p>\n<p>Babel   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0423\u0442\u0438\u043b\u0438\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 ECMAScript 2015+  \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e JavaScript, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0442\u0430\u0440\u044b\u043c\u0438 \u0434\u0432\u0438\u0436\u043a\u0430\u043c\u0438 JavaScript (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Babel_(transcompiler)\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>).<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 13:<\/strong><\/p>\n<p>SvelteJS<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u041d\u043e\u0432\u044b\u0439 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u043c \u043a\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 front end \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041e\u043d \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0447\u0435\u043c Angular, React \u0438 VueJS. \u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/habr.com\/ru\/post\/446026\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/446026\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>. \u041d\u0435 \u0437\u043d\u0430\u044e \u0437\u0430\u0447\u0435\u043c \u0443 \u043c\u0435\u043d\u044f \u043e \u043d\u0435\u043c \u0441\u043f\u0440\u043e\u0441\u0438\u043b\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438 \u043c\u043e\u0439 \u043a\u0440\u0443\u0433\u043e\u0437\u043e\u0440. \u042f \u043d\u0435 \u043f\u0438\u0441\u0430\u043b \u043d\u0430 SvelteJS, \u043d\u043e \u043f\u0438\u0448\u0443 \u043d\u0430 Angular, React \u0438 VueJS. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 3-\u0445 \u043c\u043e\u043d\u0441\u0442\u0440\u043e\u0432 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u043d\u043e \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043d\u0430 \u043d\u0438\u0445 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0441\u043f\u0440\u043e\u0441 \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c\u0438.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 14:<\/strong><\/p>\n<p>npm ci   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>ci &#8212; \u044d\u0442\u043e Continuous Integration. \u0410\u043d\u0430\u043b\u043e\u0433 npm install, \u043d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043d\u0435\u0433\u043e \u0431\u0435\u0440\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0437 package-lock.json. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 lock \u0444\u0430\u0439\u043b, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0432 ci\/cd \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0442\u0430\u043a\u043e\u0439 &#8212; npm install \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0444\u0430\u0439\u043b package-lock.json, \u0434\u0430\u043b\u0435\u0435 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 git \u0438 \u0432 ci\/cd \u0441\u043a\u0440\u0438\u043f\u0442\u0435 git \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c npm ci. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/docs.npmjs.com\/cli\/v8\/commands\/npm-ci\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, <a href=\"https:\/\/qastack.ru\/programming\/52499617\/what-is-the-difference-between-npm-install-and-npm-ci\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/tproger.ru\/news\/npm-ci\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a><\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 15:<\/strong><\/p>\n<p>C\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0438\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0421\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 &#8212; \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0438\u043f\u0430:<\/p>\n<pre><code>let func = (arg1, arg2, ...argN) => expression<\/code><\/pre>\n<p>\u0438\u043b\u0438<\/p>\n<pre><code>let func = function(arg1, arg2, ...argN) {   return expression; };<\/code><\/pre>\n<p>\u041e\u0442\u043b\u0438\u0447\u0438\u044f \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n<ol>\n<li>\n<p>\u041d\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 this \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430. <\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440<em> new<\/em> \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u044f\u0432\u043d\u044b\u0439 return \u0434\u043b\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: <em>let func = (arg1, arg2, &#8230;argN) => expression<\/em><\/p>\n<\/li>\n<li>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <em>yield<\/em> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u0442\u0435\u043b\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 arguments<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 16:<\/strong><\/p>\n<p>Continuous Integration   <\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<blockquote>\n<p><em>\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f (Continuous Integration)<\/em> <em>\u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u043c \u0441\u043b\u0438\u044f\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043a\u043e\u043f\u0438\u0439 \u0432 \u043e\u0431\u0449\u0443\u044e \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0432\u0435\u0442\u0432\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0447\u0430\u0441\u0442\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0441\u043a\u043e\u0440\u0435\u0439\u0448\u0435\u0433\u043e \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0444\u0435\u043a\u0442\u043e\u0432 \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c (<\/em><a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9D%D0%B5%D0%BF%D1%80%D0%B5%D1%80%D1%8B%D0%B2%D0%BD%D0%B0%D1%8F_%D0%B8%D0%BD%D1%82%D0%B5%D0%B3%D1%80%D0%B0%D1%86%D0%B8%D1%8F\" rel=\"noopener noreferrer nofollow\"><em>\u0441\u0441\u044b\u043b\u043a\u0430<\/em><\/a><em>)<\/em><\/p>\n<\/blockquote>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0441\u043f\u0440\u043e\u0441\u044f\u0442 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u0431\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442 \u0438 \u043a\u0430\u043a \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u044f \u043e\u043f\u0438\u0441\u0430\u043b. \u041f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c, \u0431\u044b\u043b\u0438 \u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u041a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437 \u044f \u043f\u0440\u0438\u0448\u0435\u043b \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 frontend developer \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e SQL. \u0412 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043e\u0431\u0449\u0430\u043b\u0438\u0441\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e Java. \u0422\u0430\u043a \u0436\u0435 \u0431\u044b\u043b \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f unit \u0442\u0435\u0441\u0442\u043e\u0432. \u0412 \u043e\u0431\u0449\u0435\u043c, \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 &#8212; \u044d\u0442\u043e \u0442\u0430\u043a \u0432\u0435\u0441\u0435\u043b\u043e, \u0438\u043d\u043e\u0433\u0434\u0430 \u0440\u0443\u043a\u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043b \u0434\u043d\u044f \u0434\u0440\u043e\u0436\u0430\u0442. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0433\u043e\u0442\u043e\u0432\u0438\u0448\u044c\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u0439 \u0442\u0435\u043c\u0435, \u0430 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0443\u044e.<\/p>\n<p><strong>P.S.:<\/strong> \u041e\u0442\u0432\u0435\u0442\u044b \u0434\u0430\u043d\u044b \u043a\u0440\u0430\u0442\u043a\u0438\u0435, \u043d\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0435. \u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e (<a href=\"https:\/\/habr.com\/ru\/post\/646847\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>), \u0430 \u0442\u0430\u043a \u0436\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0443\u043a\u0430\u0437\u0430\u043b \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/post\/651527\/\"> https:\/\/habr.com\/ru\/post\/651527\/<\/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-329928","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329928","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=329928"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329928\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}