<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Law of Demeter &#8211; CS@Worcester</title>
	<atom:link href="https://cs.worcester.edu/category/law-of-demeter/feed/" rel="self" type="application/rss+xml" />
	<link>https://cs.worcester.edu</link>
	<description>Worcester State University Computer Science Department</description>
	<lastBuildDate>Sun, 25 Oct 2020 23:59:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
<site xmlns="com-wordpress:feed-additions:1">236835116</site>	<item>
		<title>Law of Demeter</title>
		<link>https://austinscsblog.wordpress.com/2020/10/25/law-of-demeter/</link>
		
		<dc:creator><![CDATA[Austin Engel]]></dc:creator>
		<pubDate>Sun, 25 Oct 2020 23:59:50 +0000</pubDate>
				<category><![CDATA[CS-343]]></category>
		<category><![CDATA[CS@Worcester]]></category>
		<category><![CDATA[Hackernoon]]></category>
		<category><![CDATA[Law of Demeter]]></category>
		<category><![CDATA[LoD]]></category>
		<category><![CDATA[Principle of Least Knowledge]]></category>
		<category><![CDATA[Week 7]]></category>
		<guid isPermaLink="false">http://austinscsblog.wordpress.com/?p=47</guid>

					<description><![CDATA[Todays blog is about the Law of Demeter a.k.a the Principle of Least Knowledge. This information is based off of the article, “Object Oriented Tricks: #2 Law of Demeter”, by Arun Sasidharan on the website “Hackernoon”. The law uses the Tell Don’t Ask principle which states that we may call methods of objects that are:<a class="more-link" href="https://austinscsblog.wordpress.com/2020/10/25/law-of-demeter/">Continue reading <span class="screen-reader-text">"Law of Demeter"</span></a>]]></description>
										<content:encoded><![CDATA[<p>Todays blog is about the Law of Demeter a.k.a the Principle of Least Knowledge. This information is based off of the article, &#8220;Object Oriented Tricks: #2 Law of Demeter&#8221;, by Arun Sasidharan on the website &#8220;Hackernoon&#8221;. The law uses the Tell Don&#8217;t Ask principle which states that we may call methods of objects that are: passed as arguments, created locally, instance variables, and globals. In other words, saying that &#8220;each unit should only have limited knowledge about other units&#8221;, that are closely related to the current unit. Basically the Law of Demeter (LoD) says that it is a bad idea for single functions to know the entire navigation structure of the system, or to have a chain of functions, also known as a &#8220;Train Wreck&#8221;. The article states, &#8220;We want to tell our neighboring objects what we need to have done and depend on them to propagate that message outwards to the appropriate destination&#8221;, and that is what we need to do to solve this problem of &#8220;Train Wrecks&#8221;. </p>
<p>I chose this article because it was one of the first to come up when searching &#8220;Law of Demeter&#8221;. When I looked into the article it seemed like a reliable source. I also looked up reviews on the website before diving too far into the article. Many people suggested the website in their reviews so I concluded that it was a trustworthy source. The article has paragraphs discussing the law/principle, code snippets to show the before and afters of using the Law of Demeter, and then a final summary at the end to give an overview of everything talked about. I have found that articles with the same elements/structure help me a lot with understanding a new subject. </p>
<p>While reading about the Law of Demeter, it brought me back to a few times where I personally broke the law on projects. There has also been a few times where I have seen people break the Law of Demeter in tutorials, such as the one I watched for the Decorator Pattern. With this article, I learned how to write reliable, clean functions and to use them in a reliable manner. I also learned that it is very difficult to accomplish. As the article states, it is more of a suggestion than a law for that exact reason. Unlike some of the other principles, this is something that we cannot be proficient in in a single day. It is something to set as a longer term goal to improve on. I hope, through practice, to be able to utilize this principle in an efficient manner on future projects.</p>
<p>Source: <a href="https://hackernoon.com/object-oriented-tricks-2-law-of-demeter-4ecc9becad85" rel="nofollow">https://hackernoon.com/object-oriented-tricks-2-law-of-demeter-4ecc9becad85</a> </p>

<p class="syndicated-attribution"><em>From the blog <a href="https://austinscsblog.wordpress.com">CS@Worcester – Austins CS Site</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by Austin Engel">Austin Engel</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		<enclosure url="https://2.gravatar.com/avatar/573a72bee5f6779eed80ff25d9f22b75?s=96&#038;d=identicon&#038;r=G" length="0" type="" />

		<post-id xmlns="com-wordpress:feed-additions:1">14471</post-id>	</item>
	</channel>
</rss>
