<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Patterns on Minko Gechev&#39;s blog</title>
		<link>https://blog.mgechev.com/tags/patterns/</link>
		<description>Recent content in Patterns on Minko Gechev&#39;s blog</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sat, 05 Jul 2014 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://blog.mgechev.com/tags/patterns/feed.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>AngularJS in Patterns (Part 3)</title>
				<link>https://blog.mgechev.com/2014/07/05/angularjs-in-patterns-part-3/</link>
				<pubDate>Sat, 05 Jul 2014 00:00:00 +0000</pubDate>
				<guid>https://blog.mgechev.com/2014/07/05/angularjs-in-patterns-part-3/</guid>
				<description>&lt;blockquote&gt;&#xA;This publication aims to provide a more theoretical overview of some of the AngularJS components in order to show you how the things you are already familiar with (like different Object-Oriented Design Patterns) fit in the picture.&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://blog.mgechev.com/2014/05/08/angularjs-in-patterns-part-1-overview-of-angularjs/&#34;&gt;Link&lt;/a&gt; to the first part of the series.&#xA;&lt;a href=&#34;https://blog.mgechev.com/2014/06/08/angularjs-in-patterns-part-2-services/&#34;&gt;Link&lt;/a&gt; to the second part of the series.&lt;/p&gt;&#xA;&lt;p&gt;This is the last blog post of the series &amp;ldquo;AngularJS in Patterns&amp;rdquo;. You can find the original GitHub repository, which contains all the information at &lt;a href=&#34;https://github.com/mgechev/angularjs-in-patterns&#34;&gt;github.com/mgechev/angularjs-in-patterns&lt;/a&gt;. If you want to be aware of my up-coming work, you can follow me at &lt;a href=&#34;https://github.com/mgechev&#34;&gt;github.com/mgechev&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>AngularJS in Patterns (Part 2). Services.</title>
				<link>https://blog.mgechev.com/2014/06/08/angularjs-in-patterns-part-2-services/</link>
				<pubDate>Sun, 08 Jun 2014 00:00:00 +0000</pubDate>
				<guid>https://blog.mgechev.com/2014/06/08/angularjs-in-patterns-part-2-services/</guid>
				<description>&lt;blockquote&gt;&#xA;This publication aims to provide a more theoretical overview of some of the AngularJS components in order to show you how the things you are already familiar with (like different Object-Oriented Design Patterns) fit in the picture.&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://blog.mgechev.com/2014/05/08/angularjs-in-patterns-part-1-overview-of-angularjs/&#34;&gt;Link&lt;/a&gt; to the first part of the series.&lt;/p&gt;&#xA;&lt;p&gt;This blog post continues the series &amp;ldquo;AngularJS in Patterns&amp;rdquo;. You can find the original GitHub repository, which contains all the information at &lt;a href=&#34;https://github.com/mgechev/angularjs-in-patterns&#34;&gt;github.com/mgechev/angularjs-in-patterns&lt;/a&gt;. If you like my work you can follow me at &lt;a href=&#34;https://github.com/mgechev&#34;&gt;github.com/mgechev&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>AngularJS in Patterns (Part 1). Overview of AngularJS</title>
				<link>https://blog.mgechev.com/2014/05/08/angularjs-in-patterns-part-1-overview-of-angularjs/</link>
				<pubDate>Thu, 08 May 2014 00:00:00 +0000</pubDate>
				<guid>https://blog.mgechev.com/2014/05/08/angularjs-in-patterns-part-1-overview-of-angularjs/</guid>
				<description>&lt;p&gt;In this series of blog posts I’m going to cover the paper I’m writing at &lt;a href=&#34;https://github.com/mgechev/angularjs-in-patterns&#34;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It aims to provide a bit more theoretical overview of some of the AngularJS components in order to show you how the things you are already familiar with (like different Object-Oriented Design Patterns) fit in the picture.&lt;/p&gt;&#xA;&lt;p&gt;Part one includes only a high level overview of AngularJS, enjoy it.&lt;/p&gt;&#xA;&lt;h1 id=&#34;angularjs-overview&#34;&gt;AngularJS overview&lt;/h1&gt;&#xA;&lt;p&gt;AngularJS is JavaScript framework developed by Google. It intends to provide a solid base for the development of CRUD Single-Page Applications (SPA). SPA is a web application, which once loaded, does not require a full page reload when the user performs any actions with it. This means that all application resources (data, templates, scripts, styles) should be loaded with the initial request or better – the information and resources should be loaded on demand. Since most of the CRUD applications have common characteristics and requirements, AngularJS intends to provide the optimal set of them out-of-the-box. A few important features of AngularJS are:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Self-invoking functions in JavaScript (or Immediately Invoked Function Expressions)</title>
				<link>https://blog.mgechev.com/2012/08/29/self-invoking-functions-in-javascript-or-immediately-invoked-function-expression/</link>
				<pubDate>Wed, 29 Aug 2012 00:00:00 +0000</pubDate>
				<guid>https://blog.mgechev.com/2012/08/29/self-invoking-functions-in-javascript-or-immediately-invoked-function-expression/</guid>
				<description>&lt;p&gt;There are a lot of interesting things in the syntax of JavaScript, one of which is the definition of self-executing (self-invoking) functions. Here&amp;rsquo;s how we can defined such function:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-JavaScript&#34; data-lang=&#34;JavaScript&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;kd&#34;&gt;function&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c1&#34;&gt;// body of the function&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}());&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;p&gt;The anonymous function above will be invoked right after it has been defined. The benefit of self-invoking functions is that they enable us to execute code once without cluttering the global namespace (without declaring any globals).&#xA;For example, if we have a web page in which we want to attach event listeners to DOM elements and other initialization work, self-invoking functions would be the best tool for the job!&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
