<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Strikingwolf on Medium]]></title>
        <description><![CDATA[Stories by Strikingwolf on Medium]]></description>
        <link>https://medium.com/@Strikingwolf?source=rss-27f90a19f3ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1jEn1_1L3UiMaYZoe8vFGQ.jpeg</url>
            <title>Stories by Strikingwolf on Medium</title>
            <link>https://medium.com/@Strikingwolf?source=rss-27f90a19f3ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:22:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Strikingwolf/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Object Oriented Programming and Functional Programming]]></title>
            <link>https://medium.com/the-commented-section/object-oriented-programming-and-functional-programming-fd9c73cd960d?source=rss-27f90a19f3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd9c73cd960d</guid>
            <dc:creator><![CDATA[Strikingwolf]]></dc:creator>
            <pubDate>Sun, 12 Apr 2015 20:24:20 GMT</pubDate>
            <atom:updated>2015-04-12T20:47:23.006Z</atom:updated>
            <content:encoded><![CDATA[<p>People seem to think that Object-Oriented Programming (OOP) and Functional Programming (FP) are mutually exclusive. This topic has been written about <a href="http://blog.cleancoder.com/uncle-bob/2014/11/24/FPvsOO.html">before</a>; however, I see this constantly while talking to fellow software developers. In this blog post I hope to demystify the art of combining these two wonderful paradigms.</p><h4>Objects as Bags of Functions not Data</h4><p>When you think of objects as bags of data you are doing them a disservice. I think about it like this. When you delegate work off to someone else you don’t look at all the data that makes them up and take action depending on that, that would be you doing the work not them, instead you tell them to do an action. What are actions in programming? Functions! By using objects to perform actions rather than using them to store data you remove a layer that you as the programmer have to worry about. What does this imply for FP? It tells us that objects in OOP are not about state, but about functions. If objects are not about <em>state</em> then we can use FP to make the functions that will serve as the interface to our object, thus making our objects more thread-safe and easier to reason about.</p><h4>Functions as Objects Implies FP</h4><p>One of the fundamental building blocks of FP is the concept of <a href="http://en.wikipedia.org/wiki/Higher-order_function">higher-order functions</a> (HOFs). HOFs require some method of passing around functions to be a viable method of programming. A good way to do this is to make every function an Object, and if functions are objects then OOP can obviously be applied to them. Applying <em>OOP principles</em> to functions <em>implies functional programming. </em>For example, if we apply encapsulation to functions they immediately become <em>pure functions, </em>a core concept of FP, because they cannot interact with the outside world. Another example is the OCP (Open-Closed Principle); the OCP applied to functions exposes two key elements of FP, composition and currying. Instead of <em>extending </em>functions like in the OCP principle we compose or curry them. This achieves a similar effect to extending classes, adding functionality to them.</p><h4>Conclusion</h4><p>Functional Programming and Object-Oriented Programming can both be used together, and in fact they complement each other nicely. By using these two paradigms together we can create Objects that follow FP principles thus delegating tasks off to them is more isolated and when we create functions that follow OOP principles we automatically end up with FP.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd9c73cd960d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-commented-section/object-oriented-programming-and-functional-programming-fd9c73cd960d">Object Oriented Programming and Functional Programming</a> was originally published in <a href="https://medium.com/the-commented-section">// The Commented Section</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Werewolf/Mafia]]></title>
            <link>https://medium.com/@Strikingwolf/werewolf-mafia-25bbd0e1b21e?source=rss-27f90a19f3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/25bbd0e1b21e</guid>
            <dc:creator><![CDATA[Strikingwolf]]></dc:creator>
            <pubDate>Sun, 12 Apr 2015 01:58:51 GMT</pubDate>
            <atom:updated>2015-04-12T01:58:51.371Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Werewolf/Mafia</strong></p><p>I have been playing this game on the<a href="http://forum.feed-the-beast.com/forum/"> FTB forums</a> and it seems to me to have a very mind-bending feel. The basics can be found <a href="http://www.brenbarn.net/werewolf/rules.html">here</a>. The reason I believe this game is very psychological is because of the intense deception involved in playing it correctly. This is especially evident in the forum version because you cannot tell whether or not a person is lying by their tone of voice and people can quote others even if they didn’t say it. Due to the intense deception it is very important to pick up patterns in peoples speech so you can distinguish if something is real or not. While playing this game I have found that alliances are formed quicker than I would expect. I believe this is because people want to have something concrete they can use throughout the game. There are many strategies you can use in werewolf, but I will not tell you mine because I want to continue to play :P. I do know that a very common wolf strategy is to convince people you are the seer and proceed to wipe out everyone. However, this is easily countered if people play in a smart manner because if Person A says they are a seer and to kill Person B and Person B is found innocent Person A is clearly guilty. As you can see from that <em>extremely simple</em> strategy this game can get very complex. Sometimes when playing the game moves as slow as a snail because people are scared to vote and lose their innocence. These games are then mixed up by a death that proves someone was innocent and they were also saying someone else was guilty. This can result in extreme bandwagons; bandwagons can either kill a team’s chances or give the team victory. So that’s werewolf, the game of deception and lies</p><p><em>Originally published at </em><a href="http://strikingwolf.blogspot.com/2014/08/werewolfmafia.html"><em>strikingwolf.blogspot.com</em></a><em> on April 12, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25bbd0e1b21e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thoughts on the Current Education System]]></title>
            <link>https://medium.com/@Strikingwolf/thoughts-on-the-current-education-system-c8f5c3ac332?source=rss-27f90a19f3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8f5c3ac332</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[education-reform]]></category>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Strikingwolf]]></dc:creator>
            <pubDate>Sun, 12 Apr 2015 01:55:22 GMT</pubDate>
            <atom:updated>2015-04-12T01:56:42.882Z</atom:updated>
            <content:encoded><![CDATA[<p>As I am currently participating in the education system. I felt I should make a comment on the education system. I have a couple of problems with the current one, these are mostly based on <a href="https://www.youtube.com/user/CGPGrey">CPG Grey’s</a> video on <a href="https://www.youtube.com/watch?v=7vsCAM17O-M">Digital Aristotle</a>. However, after pulling from a few more sources I have compiled a list of things that our wrong with our system that I would like to share (This is based on the U.S.A. education system).</p><h4><strong>Pacing</strong></h4><p>In the current education system (I will use CES for short) the pace is right for only 1 out of 5 students. This is a major problem because either people will not be able to keep up in a system which builds upon earlier lessons, or people will be held back by how we teach.</p><h4><strong>Purpose</strong></h4><p>The CES focuses on getting a good job; however, I believe that is not what most people are looking for. I hate it when people ask me what do you want to be when you grow up because I don’t <em>want </em>to be my job, I want to be happy and healthy; I believe most people want this to. Therefore, the education system should be based around around these things. There are many things that make a person happy and healthy, but we should teach the basic principles. Don’t get the wrong idea here, I still believe we should do the standard classes; however, these classes should not overpower being happy and healthy</p><h4><strong>Agency</strong></h4><p>Many times in planners for lessons there is a startling lack of agency, the ability to influence an outcome. Agency is a <em>very </em>important lesson for are youth to learn because it gives them the power to make their lives better than their starting conditions or better are own civilization. I feel that schools should make<em> </em>agency a <em>huge </em>part of education because if they don’t many people will miss great opportunities because they feel that they cannot influence the end result.</p><p><em>Originally published at </em><a href="http://strikingwolf.blogspot.com/2014/08/thoughts-on-current-education-system.html"><em>strikingwolf.blogspot.com</em></a><em> on April 12, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8f5c3ac332" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Best Programming Language?]]></title>
            <link>https://medium.com/the-commented-section/the-best-programming-language-d1deb164ad64?source=rss-27f90a19f3ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1deb164ad64</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Strikingwolf]]></dc:creator>
            <pubDate>Sat, 11 Apr 2015 22:39:40 GMT</pubDate>
            <atom:updated>2015-04-11T22:52:16.833Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Best Programming Language</h3><p>There is an idea in programming of a best programming language. Many people have their favorite programming language and will say that this is without question the <em>best </em>programming language. The truth is that there is no best programming language. Every programmer has their own style of programming, and the language that best supports that style will probably be their favorite.</p><p>All programmers have a style that they use when writing code. When I look at my team’s code I can usually pick out who has written the code, <em>even if it is the same language. </em>These styles show through in code very plainly to me, and I have a couple of groups that they fall under:</p><h4>The Novice:</h4><p>This person’s code is fairly simple. It works, but it is messy and follows no real pattern. Usually this person will use overly complex constructs when a simpler one would work very well. An example of this is nested if statements, where an and operator would work well. These kinds of programmers will eventually gravitate to one of the other groups after a while, but currently they are not the best programmers. Their favorite language will not be developed yet, and thus they will sit on the sidelines in the holy language wars.</p><h4>The Functional Programmer:</h4><p>This person values readability and elegance above all else. They will strive to make their code beautiful and to fit inside their definition of good code. Of course this programmer adheres to the functional programming idioms and generally has few variables and has a lot of higher order functions. This style is much easier to point out in a language that has first class functions, but it can be seen in other languages too. Their favorite language is almost always one that is a functional language such as</p><ul><li>Haskell</li><li>Clojure</li><li>Scala (also for OO)</li><li>ML</li><li>Scheme</li></ul><h4>The Object-Oriented Programmer:</h4><p>This person likes to separate out concerns among complex data structures. These programmers are easy to see because they prefer to make another class rather than to try to use a more simple data structure. These people succeed in delegating out concerns among objects. They usually favor a language that has an easy to use object system.</p><h4>The Systems Programmer:</h4><p>This person likes to be very low-level. Valuing the code working above all else. This person will generally use lower-level constructs and try to make his code very fast. These types of programmers are good for projects that either need to get off the ground quickly or need to be very fast while running. These programmers prefer low-level languages such as</p><ul><li>C</li><li>C++</li><li>Rust (also for functional programmers)</li><li>D</li></ul><p>If you were playing close attention you will understand what I just described. I described language groups. A lot of languages will fit into one or two of these groups because they are specifically targeted at these groups of people. Most people will fit into two of these groups. I myself lean towards functional programming, but do not lean heavily to OO or systems. The reason there is not a <em>best</em> language is that each language is targeted toward one or two of these <em>styles, </em>nor is it possible to cater to all of these styles well.</p><p>P.S: the best languages are Clojure, Haskell, and Rust :3</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1deb164ad64" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-commented-section/the-best-programming-language-d1deb164ad64">The Best Programming Language?</a> was originally published in <a href="https://medium.com/the-commented-section">// The Commented Section</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>