{"id":1306,"date":"2023-09-26T12:12:01","date_gmt":"2023-09-26T10:12:01","guid":{"rendered":"https:\/\/epicmarketing.co.il\/notebook\/?p=1306"},"modified":"2023-09-26T12:14:23","modified_gmt":"2023-09-26T10:14:23","slug":"imperative-programming","status":"publish","type":"post","link":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/","title":{"rendered":"Imperative Programming"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Imperative Programming<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Imperative Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05de\u05e1\u05d5\u05e8\u05ea\u05d9 \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05dc\u05ea\u05d5\u05db\u05e0\u05d9\u05ea <strong><span style=\"text-decoration: underline;\">\u05de\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea \u05e6\u05e2\u05d3 \u05d0\u05d7\u05e8\u05d9 \u05e6\u05e2\u05d3<\/span><\/strong>. \u05ea\u05d1\u05d9\u05d0 \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB, \u05d0\u05d7\u05e8 \u05db\u05da \u05ea\u05e2\u05e9\u05d4 \u05d0\u05d9\u05e7\u05e1 \u05d5\u05db\u05d5'<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Declarative Reactive Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd <span style=\"text-decoration: underline;\"><strong>\u05de\u05d4 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e2\u05e9\u05d5\u05ea, \u05dc\u05d0 \u05de\u05d4 \u05d4\u05e6\u05e2\u05d3\u05d9\u05dd<\/strong><\/span>. Declarative Programming  \u05de\u05e9\u05e4\u05e8 \u05d0\u05ea \u05d4\u05d1\u05d9\u05e6\u05d5\u05e2\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05dc\u05de\u05e9\u05dc, \u05d1\u05d3\u05e8\u05da \u05db\u05dc\u05dc \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB \u05e0\u05e2\u05e9\u05d4 subscribe \u05d5\u05d0\u05d7\u05e8 \u05db\u05dc \u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05e2\u05e9\u05d5\u05ea ubsubscribe, \u05d6\u05d4 \u05d4\u05d0\u05d7\u05e8\u05d9\u05d5\u05ea \u05e9\u05dc \u05d4\u05de\u05e4\u05ea\u05d7. \u05d1-Declarative Programming \u05d6\u05d0\u05ea \u05ea\u05d4\u05d9\u05d4 \u05d4\u05d0\u05d7\u05e8\u05d9\u05d5\u05ea \u05e9\u05dc \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d5\u05dc\u05d0 \u05e9\u05dc \u05d4\u05de\u05e4\u05ea\u05d7 \u05dc\u05e2\u05e9\u05d5\u05ea \u05d0\u05ea \u05d6\u05d4. \u05e0\u05e2\u05e9\u05d4 \u05d0\u05ea \u05d6\u05d4 \u05e2\u05dc \u05d9\u05d3\u05d9 async pipe \u05e9\u05de\u05d8\u05e4\u05dc \u05d1\u05d6\u05d4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05ea\u05d7\u05d9\u05dc \u05e2\u05dd \u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc Imperative Programming. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05d0\u05e0\u05d9 \u05d0\u05e9\u05ea\u05de\u05e9 \u05d1-DB \u05e2\u05dd <a href=\"https:\/\/epicmarketing.co.il\/notebook\/json-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">json-server<\/a>. \u05db\u05de\u05d5 \u05db\u05df \u05d4\u05ea\u05e7\u05e0\u05ea\u05d9 \u05d0\u05ea bootstrap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05e7\u05d7\u05ea\u05d9 \u05de\u05d4\u05d0\u05ea\u05e8 <a href=\"https:\/\/jsonplaceholder.typicode.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">jsonplaceholder<\/a>. \u05dc\u05de\u05d8\u05d4 \u05d9\u05e9 \u05e7\u05d9\u05e9\u05d5\u05e8\u05d9\u05dd, \u05dc\u05d5\u05d7\u05e6\u05d9\u05dd \u05e2\u05dc posts \u05df\u05de\u05e7\u05d1\u05dc\u05d9\u05dd \u05e8\u05e9\u05d9\u05de\u05d4 \u05e9\u05dc \u05e4\u05d5\u05e1\u05d8\u05d9\u05dd. \u05d0\u05e4\u05e9\u05e8 \u05d2\u05dd \u05dc\u05d4\u05e4\u05e0\u05d5\u05ea \u05d9\u05e9\u05d9\u05e8\u05d5\u05ea \u05d0\u05ea \u05d4\u05d1\u05e7\u05e9\u05d4 \u05dc\u05e9\u05e8\u05ea \u05e9\u05dc\u05d4\u05dd \u05d5\u05dc\u05de\u05e9\u05d5\u05da \u05de\u05e9\u05dd \u05d0\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05d0\u05dd \u05dc\u05d0 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05d4\u05ea\u05e7\u05d9\u05df \u05d0\u05ea \u05d4-json-server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea \u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d5\u05ea \u05d1\u05e1\u05d9\u05e1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05d9\u05e6\u05d5\u05e8 \u05db\u05de\u05d4 \u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d5\u05ea \u05db\u05d3\u05d9 \u05e9\u05e0\u05e8\u05d0\u05d4 \u05de\u05d9\u05d3\u05e2 \u05e2\u05dc \u05d4\u05de\u05e1\u05da.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nng g c --skip-tests=true components\/header\nng g c --skip-tests=true components\/pages\/posts\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05e7\u05d7 header \u05d1\u05e1\u05d9\u05e1\u05d9 \u05e9\u05dc bootstrap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 header.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;nav class=&quot;navbar navbar-expand-lg navbar-light bg-light&quot;&gt;\n  &lt;div class=&quot;container-fluid&quot;&gt;\n    &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;Navbar&lt;\/a&gt;\n\n    &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;navbarNav&quot;&gt;\n      &lt;ul class=&quot;navbar-nav&quot;&gt;\n        &lt;li class=&quot;nav-item&quot;&gt;\n          &lt;a class=&quot;nav-link active&quot; aria-current=&quot;page&quot; routerLink=&quot;\/&quot;&gt;Home&lt;\/a&gt;\n        &lt;\/li&gt;\n      &lt;\/ul&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/nav&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05d5\u05e1\u05d9\u05e3 route \u05dc\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e9\u05d9\u05e6\u05e8\u05e0\u05d5.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 app-routing.module.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nconst routes: Routes = &#x5B;\n  { path: &#039;&#039;, component: PostsComponent }\n];\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05e9\u05d9\u05dd \u05d0\u05ea \u05e7\u05d5\u05d3 \u05d4\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d5\u05ea \u05d1\u05e2\u05de\u05d5\u05d3 \u05d4\u05e8\u05d0\u05e9\u05d9.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 app.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;app-header&gt;&lt;\/app-header&gt;\n\n&lt;div class=&quot;container pt-5 pb-5&quot;&gt;\n  &lt;div class=&quot;row&quot;&gt;\n    &lt;div class=&quot;col-md-12&quot;&gt;\n      &lt;router-outlet&gt;&lt;\/router-outlet&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d6\u05d4 \u05de\u05d4 \u05e9\u05d9\u05e9 \u05e2\u05dc \u05d4\u05de\u05e1\u05da \u05d1\u05e9\u05dc\u05d1 \u05d4\u05d6\u05d4:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-1024x102.png\" alt=\"\" class=\"wp-image-1307\" style=\"width:840px;height:84px\" width=\"840\" height=\"84\" srcset=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-1024x102.png 1024w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-300x30.png 300w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-768x77.png 768w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-1536x153.png 1536w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1.png 1903w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u05d9\u05e6\u05d9\u05e8\u05ea \u05d4-Service<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05db\u05d3\u05d9 \u05dc\u05de\u05e9\u05d5\u05da \u05d0\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd, \u05e0\u05d9\u05e6\u05d5\u05e8 service \u05d5\u05e0\u05d9\u05d9\u05d1\u05d0 \u05d0\u05ea HttpClientModule \u05dc-app.module.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nng g s services\/posts\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d1-service \u05e0\u05de\u05e9\u05d5\u05da \u05d0\u05ea \u05d4\u05dd\u05d5\u05e1\u05d8\u05d9\u05dd:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.service.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport class PostsService {\n  baseUrl = &#039;http:\/\/localhost:3000&#039;;\n\n  constructor(private http: HttpClient) { }\n\n  getPosts(){\n    return this.http.get(`${this.baseUrl}\/posts`);\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d0\u05e0\u05d7\u05e0\u05d5 \u05de\u05e7\u05d1\u05dc\u05d9\u05dd \u05de\u05d1\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 getPosts \u05d1\u05d7\u05d6\u05e8\u05d4 observable. \u05e0\u05e2\u05d1\u05d5\u05e8 \u05dc\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05ea \u05d4-posts \u05df\u05e0\u05e7\u05e8\u05d0 \u05dc\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 getPosts \u05e9\u05dc \u05d4-service.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport class PostsComponent {\n  constructor(private postsService: PostsService){}\n\n  ngOnInit(){\n    this.postsService.getPosts().subscribe(data =&gt; {\n      console.log(data);\n    });\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e2\u05db\u05e9\u05d9\u05d5 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05e8\u05d0\u05d5\u05ea \u05d1\u05e7\u05d5\u05e0\u05e1\u05d5\u05dc \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd. \u05e2\u05d3 \u05e2\u05db\u05e9\u05d9\u05d5 \u05dc\u05d0 \u05e2\u05e9\u05d9\u05e0\u05d5 \u05de\u05e9\u05d4\u05d5 \u05e9\u05d5\u05e0\u05d4 \u05de\u05e7\u05e8\u05d9\u05d0\u05d4 \u05e8\u05d2\u05d9\u05dc\u05d4 \u05de-DB.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05db\u05d3\u05d9 \u05dc\u05d4\u05e8\u05d0\u05d5\u05ea \u05e2\u05dc \u05d4\u05de\u05e1\u05da \u05d0\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd, \u05e0\u05d9\u05e6\u05d5\u05e8 \u05e7\u05d5\u05d1\u05e5 \u05de\u05d5\u05d3\u05dc \u05dc\u05e4\u05d5\u05e1\u05d8.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 post.model.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport interface Post{\n  userId: string,\n  id: string,\n  title: string,\n  body: string\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05e2\u05d3\u05db\u05df \u05d0\u05ea \u05d4-service \u05e9\u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc \u05de\u05e2\u05e8\u05da \u05e9\u05dc \u05e4\u05d5\u05e1\u05d8\u05d9\u05dd:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.service.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngetPosts(){\n    return this.http.get&lt;Post&#x5B;]&gt;(`${this.baseUrl}\/posts`);\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d5\u05e0\u05db\u05d9\u05dc \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05d1\u05e7\u05d5\u05de\u05e4\u05d5\u05e0\u05e0\u05d8\u05d4 \u05db\u05d3\u05d9 \u05e9\u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05e6\u05d9\u05d2 \u05d0\u05d5\u05ea\u05dd.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport class PostsComponent {\n  posts: Post&#x5B;] = &#x5B;];\n  postsSubscription!: Subscription;\n\n  constructor(private postsService: PostsService){}\n\n  ngOnInit(){\n    this.postsSubscription = this.postsService.getPosts().subscribe(data =&gt; {\n      this.posts = data;\n      console.log(data);\n    });\n  }\n\n  ngOnDestroy(){\n    this.postsSubscription &amp;&amp; this.postsSubscription.unsubscribe();\n  }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u05d4\u05e6\u05d2\u05ea \u05d4\u05de\u05d9\u05d3\u05e2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05e6\u05d9\u05d2 \u05d0\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;div class=&quot;row&quot;&gt;\n  &lt;div class=&quot;col-md-12&quot;&gt;\n    &lt;h3&gt;Posts Data&lt;\/h3&gt;\n\n    &lt;table class=&quot;table&quot;&gt;\n      &lt;thead&gt;\n        &lt;tr&gt;\n          &lt;th&gt;Id&lt;\/th&gt;\n          &lt;th&gt;Title&lt;\/th&gt;\n          &lt;th&gt;Body&lt;\/th&gt;\n        &lt;\/tr&gt;\n      &lt;\/thead&gt;\n      &lt;tbody&gt;\n        &lt;tr *ngFor=&quot;let post of posts&quot;&gt;\n          &lt;td&gt;{{ post.id }}&lt;\/td&gt;\n          &lt;td&gt;{{ post.title }}&lt;\/td&gt;\n          &lt;td&gt;{{ post.body }}&lt;\/td&gt;\n        &lt;\/tr&gt;\n      &lt;\/tbody&gt;\n    &lt;\/table&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05d5\u05d4\u05de\u05e1\u05da \u05e0\u05e8\u05d0\u05d4 \u05db\u05db\u05d4:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"466\" src=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative2-1024x466.png\" alt=\"\" class=\"wp-image-1309\" srcset=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative2-1024x466.png 1024w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative2-300x136.png 300w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative2-768x349.png 768w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative2-1536x699.png 1536w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative2.png 1895w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05e1\u05d1\u05da \u05e7\u05e6\u05ea \u05d0\u05ea \u05d4\u05e7\u05d5\u05d3. \u05e0\u05d5\u05e1\u05d9\u05e3 \u05dc-DB \u05d8\u05d1\u05dc\u05ea \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d5\u05ea \u05e2\u05dd id, title \u05dc\u05db\u05dc \u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4. \u05e0\u05d5\u05e1\u05d9\u05e3 \u05dc\u05db\u05dc \u05e4\u05d5\u05e1\u05d8 id \u05dc\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4 \u05d5\u05e0\u05de\u05e9\u05d5\u05da \u05dc\u05d8\u05d1\u05dc\u05d4 \u05d0\u05ea \u05d4\u05de\u05e1\u05e4\u05e8\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e2\u05db\u05e9\u05d9\u05d5 \u05d4\u05ea\u05e6\u05d5\u05d2\u05d4 \u05e0\u05e8\u05d0\u05d9\u05ea \u05db\u05db\u05d4:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"465\" src=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative3-1024x465.png\" alt=\"\" class=\"wp-image-1310\" srcset=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative3-1024x465.png 1024w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative3-300x136.png 300w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative3-768x348.png 768w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative3.png 1492w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05db\u05de\u05d5\u05d1\u05df \u05e9\u05d1\u05e2\u05de\u05d5\u05d3\u05ea \u05d4\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05dc\u05d0 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e8\u05d0\u05d5\u05ea \u05de\u05e1\u05e4\u05e8 \u05d0\u05dc\u05d0 \u05d0\u05ea \u05e9\u05dd \u05d4\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u05e0\u05d9\u05e6\u05d5\u05e8 interface \u05dc\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d5\u05ea \u05d5\u05e0\u05d9\u05e6\u05d5\u05e8 service \u05dc\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d5\u05ea \u05e9\u05d1\u05d5 \u05e0\u05e7\u05d1\u05dc \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d5\u05ea.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 post.model.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport interface Category{\n  id: string,\n  title: string\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 categories.service.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport class CategoriesService {\n  baseUrl = &#039;http:\/\/localhost:3000&#039;;\n\n  constructor(private http: HttpClient) { }\n\n  getCategories(){\n    return this.http.get&lt;Category&#x5B;]&gt;(`${this.baseUrl}\/categories`);\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e2\u05db\u05e9\u05d9\u05d5 \u05e6\u05e8\u05d9\u05da \u05dc\u05e2\u05e9\u05d5\u05ea \u05db\u05de\u05d4 \u05e4\u05e2\u05d5\u05dc\u05d5\u05ea:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u05e0\u05d5\u05e1\u05d9\u05e3 \u05d0\u05ea categoryName \u05dc\u05de\u05d5\u05d3\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e9\u05dc\u05e0\u05d5.<\/li>\n\n\n\n<li>\u05e0\u05d6\u05e8\u05d9\u05e7 \u05dc-service \u05e9\u05dc \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05d0\u05ea \u05d4-CategoriesService.<\/li>\n\n\n\n<li>\u05e0\u05d9\u05e6\u05d5\u05e8 \u05d1-service \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05e9\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e2\u05dd \u05d4\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d5\u05ea. <\/li>\n\n\n\n<li>\u05e0\u05e9\u05e0\u05d4 \u05d0\u05ea \u05d4\u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05e9\u05e7\u05d5\u05e8\u05d0\u05ea \u05dc\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05dc\u05d6\u05d5 \u05d4\u05d7\u05d3\u05e9\u05d4 \u05e2\u05dd \u05e9\u05de\u05d5\u05ea \u05d4\u05e7\u05d8\u05d2\u05d5\u05e8\u05d9\u05d5\u05ea.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.model.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nexport interface Post{\n  userId: string,\n  id: string,\n  title: string,\n  body: string,\n  categoryId: string,\n  categoryName?: string\n}\n\nexport interface Category{\n  id: string,\n  title: string\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.service.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\ngetPostsWithCategories(){\n    return this.getPosts().pipe(\n      mergeMap(posts =&gt; {\n        return this.categoriesService.getCategories()\n          .pipe(map(categories =&gt; {\n            return posts.map(post =&gt; {\n              return {\n                ...post,\n                categoryName: categories.find(category =&gt; category.id == post.categoryId)?.title\n              }\n            })\n          }));\n      })\n    )\n  }\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.component.ts<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nngOnInit(){\n    this.postsSubscription = this.postsService.getPostsWithCategories().subscribe(data =&gt; {\n      this.posts = data;\n    });\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u05e7\u05d5\u05d1\u05e5 posts.component.html<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;tbody&gt;\n        &lt;tr *ngFor=&quot;let post of posts&quot;&gt;\n          &lt;td&gt;{{ post.id }}&lt;\/td&gt;\n          &lt;td&gt;{{ post.title }}&lt;\/td&gt;\n          &lt;td&gt;{{ post.body }}&lt;\/td&gt;\n          &lt;td&gt;{{ post.categoryName }}&lt;\/td&gt;\n        &lt;\/tr&gt;\n&lt;\/tbody&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e2\u05db\u05e9\u05d9\u05d5 \u05d8\u05d1\u05dc\u05ea \u05d4\u05e4\u05d5\u05e1\u05d8\u05d9\u05dd \u05e0\u05e8\u05d0\u05d9\u05ea \u05db\u05db\u05d4:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative4-1024x517.png\" alt=\"\" class=\"wp-image-1311\" srcset=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative4-1024x517.png 1024w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative4-300x151.png 300w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative4-768x388.png 768w, https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative4.png 1508w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u05e2\u05d3 \u05e2\u05db\u05e9\u05d9\u05d5 \u05db\u05dc \u05de\u05d4 \u05e9\u05e2\u05e9\u05d9\u05e0\u05d5 \u05e0\u05db\u05e0\u05e1 \u05d1\u05ea\u05d5\u05da Imperative Programming. \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05dc\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e6\u05e2\u05d3 \u05d0\u05d7\u05e8\u05d9 \u05e6\u05e2\u05d3 \u05de\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imperative Programming Imperative Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05de\u05e1\u05d5\u05e8\u05ea\u05d9 \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05dc\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05de\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea \u05e6\u05e2\u05d3 \u05d0\u05d7\u05e8\u05d9 \u05e6\u05e2\u05d3. \u05ea\u05d1\u05d9\u05d0 \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB, \u05d0\u05d7\u05e8 \u05db\u05da \u05ea\u05e2\u05e9\u05d4 \u05d0\u05d9\u05e7\u05e1 \u05d5\u05db\u05d5' Declarative Reactive Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05de\u05d4 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e2\u05e9\u05d5\u05ea, \u05dc\u05d0 \u05de\u05d4 \u05d4\u05e6\u05e2\u05d3\u05d9\u05dd. Declarative Programming \u05de\u05e9\u05e4\u05e8 \u05d0\u05ea \u05d4\u05d1\u05d9\u05e6\u05d5\u05e2\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea. \u05dc\u05de\u05e9\u05dc, \u05d1\u05d3\u05e8\u05da \u05db\u05dc\u05dc \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB \u05e0\u05e2\u05e9\u05d4 subscribe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1306","post","type-post","status-publish","format-standard","hentry","category-rxjs","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Imperative Programming - Code Notebook<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/\" \/>\n<meta property=\"og:locale\" content=\"he_IL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Imperative Programming - Code Notebook\" \/>\n<meta property=\"og:description\" content=\"Imperative Programming Imperative Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05de\u05e1\u05d5\u05e8\u05ea\u05d9 \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05dc\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05de\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea \u05e6\u05e2\u05d3 \u05d0\u05d7\u05e8\u05d9 \u05e6\u05e2\u05d3. \u05ea\u05d1\u05d9\u05d0 \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB, \u05d0\u05d7\u05e8 \u05db\u05da \u05ea\u05e2\u05e9\u05d4 \u05d0\u05d9\u05e7\u05e1 \u05d5\u05db\u05d5&#039; Declarative Reactive Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05de\u05d4 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e2\u05e9\u05d5\u05ea, \u05dc\u05d0 \u05de\u05d4 \u05d4\u05e6\u05e2\u05d3\u05d9\u05dd. Declarative Programming \u05de\u05e9\u05e4\u05e8 \u05d0\u05ea \u05d4\u05d1\u05d9\u05e6\u05d5\u05e2\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea. \u05dc\u05de\u05e9\u05dc, \u05d1\u05d3\u05e8\u05da \u05db\u05dc\u05dc \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB \u05e0\u05e2\u05e9\u05d4 subscribe [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Notebook\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-26T10:12:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-26T10:14:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-1024x102.png\" \/>\n<meta name=\"author\" content=\"kerendanino\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3\" \/>\n\t<meta name=\"twitter:data1\" content=\"kerendanino\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u05d3\u05e7\u05d5\u05ea\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/\"},\"author\":{\"name\":\"kerendanino\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/person\\\/195dfc625818eadda7903d456890e24c\"},\"headline\":\"Imperative Programming\",\"datePublished\":\"2023-09-26T10:12:01+00:00\",\"dateModified\":\"2023-09-26T10:14:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/\"},\"wordCount\":100,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/declarative1-1024x102.png\",\"articleSection\":[\"Rxjs\"],\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/\",\"name\":\"Imperative Programming - Code Notebook\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/declarative1-1024x102.png\",\"datePublished\":\"2023-09-26T10:12:01+00:00\",\"dateModified\":\"2023-09-26T10:14:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#breadcrumb\"},\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#primaryimage\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/declarative1.png\",\"contentUrl\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/declarative1.png\",\"width\":1903,\"height\":190},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/imperative-programming\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Imperative Programming\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#website\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\",\"name\":\"Code Notebook\",\"description\":\"Easy coding\",\"publisher\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"he-IL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#organization\",\"name\":\"Code Notebook\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo-epic-marketing-05.png\",\"contentUrl\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo-epic-marketing-05.png\",\"width\":3626,\"height\":1942,\"caption\":\"Code Notebook\"},\"image\":{\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/#\\\/schema\\\/person\\\/195dfc625818eadda7903d456890e24c\",\"name\":\"kerendanino\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g\",\"caption\":\"kerendanino\"},\"url\":\"https:\\\/\\\/epicmarketing.co.il\\\/notebook\\\/author\\\/kerendanino\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Imperative Programming - Code Notebook","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/","og_locale":"he_IL","og_type":"article","og_title":"Imperative Programming - Code Notebook","og_description":"Imperative Programming Imperative Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05de\u05e1\u05d5\u05e8\u05ea\u05d9 \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05dc\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05de\u05d4 \u05dc\u05e2\u05e9\u05d5\u05ea \u05e6\u05e2\u05d3 \u05d0\u05d7\u05e8\u05d9 \u05e6\u05e2\u05d3. \u05ea\u05d1\u05d9\u05d0 \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB, \u05d0\u05d7\u05e8 \u05db\u05da \u05ea\u05e2\u05e9\u05d4 \u05d0\u05d9\u05e7\u05e1 \u05d5\u05db\u05d5' Declarative Reactive Programming \u05d4\u05d5\u05d0 \u05ea\u05db\u05e0\u05d5\u05ea \u05d1\u05d5 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05de\u05d4 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e2\u05e9\u05d5\u05ea, \u05dc\u05d0 \u05de\u05d4 \u05d4\u05e6\u05e2\u05d3\u05d9\u05dd. Declarative Programming \u05de\u05e9\u05e4\u05e8 \u05d0\u05ea \u05d4\u05d1\u05d9\u05e6\u05d5\u05e2\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea. \u05dc\u05de\u05e9\u05dc, \u05d1\u05d3\u05e8\u05da \u05db\u05dc\u05dc \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05de\u05d9\u05d3\u05e2 \u05de\u05d4-DB \u05e0\u05e2\u05e9\u05d4 subscribe [&hellip;]","og_url":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/","og_site_name":"Code Notebook","article_published_time":"2023-09-26T10:12:01+00:00","article_modified_time":"2023-09-26T10:14:23+00:00","og_image":[{"url":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-1024x102.png","type":"","width":"","height":""}],"author":"kerendanino","twitter_card":"summary_large_image","twitter_misc":{"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3":"kerendanino","\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da":"3 \u05d3\u05e7\u05d5\u05ea"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#article","isPartOf":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/"},"author":{"name":"kerendanino","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/person\/195dfc625818eadda7903d456890e24c"},"headline":"Imperative Programming","datePublished":"2023-09-26T10:12:01+00:00","dateModified":"2023-09-26T10:14:23+00:00","mainEntityOfPage":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/"},"wordCount":100,"commentCount":2,"publisher":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization"},"image":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#primaryimage"},"thumbnailUrl":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-1024x102.png","articleSection":["Rxjs"],"inLanguage":"he-IL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/","url":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/","name":"Imperative Programming - Code Notebook","isPartOf":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#website"},"primaryImageOfPage":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#primaryimage"},"image":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#primaryimage"},"thumbnailUrl":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1-1024x102.png","datePublished":"2023-09-26T10:12:01+00:00","dateModified":"2023-09-26T10:14:23+00:00","breadcrumb":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#breadcrumb"},"inLanguage":"he-IL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/"]}]},{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#primaryimage","url":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1.png","contentUrl":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/09\/declarative1.png","width":1903,"height":190},{"@type":"BreadcrumbList","@id":"https:\/\/epicmarketing.co.il\/notebook\/imperative-programming\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/epicmarketing.co.il\/notebook\/"},{"@type":"ListItem","position":2,"name":"Imperative Programming"}]},{"@type":"WebSite","@id":"https:\/\/epicmarketing.co.il\/notebook\/#website","url":"https:\/\/epicmarketing.co.il\/notebook\/","name":"Code Notebook","description":"Easy coding","publisher":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/epicmarketing.co.il\/notebook\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"he-IL"},{"@type":"Organization","@id":"https:\/\/epicmarketing.co.il\/notebook\/#organization","name":"Code Notebook","url":"https:\/\/epicmarketing.co.il\/notebook\/","logo":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/logo\/image\/","url":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/07\/logo-epic-marketing-05.png","contentUrl":"https:\/\/epicmarketing.co.il\/notebook\/wp-content\/uploads\/2023\/07\/logo-epic-marketing-05.png","width":3626,"height":1942,"caption":"Code Notebook"},"image":{"@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/epicmarketing.co.il\/notebook\/#\/schema\/person\/195dfc625818eadda7903d456890e24c","name":"kerendanino","image":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/285cc9389c66aa46da1e26a474b1e90e9efaf3fa21f1b928cbd63ce5f0e89c63?s=96&d=mm&r=g","caption":"kerendanino"},"url":"https:\/\/epicmarketing.co.il\/notebook\/author\/kerendanino\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/1306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/comments?post=1306"}],"version-history":[{"count":4,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/1306\/revisions"}],"predecessor-version":[{"id":1314,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/posts\/1306\/revisions\/1314"}],"wp:attachment":[{"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/media?parent=1306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/categories?post=1306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/epicmarketing.co.il\/notebook\/wp-json\/wp\/v2\/tags?post=1306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}