<?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 Luke Stokes on Medium]]></title>
        <description><![CDATA[Stories by Luke Stokes on Medium]]></description>
        <link>https://medium.com/@lukestokes?source=rss-564756412f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0aWh_f2HbFZslueT.jpeg</url>
            <title>Stories by Luke Stokes on Medium</title>
            <link>https://medium.com/@lukestokes?source=rss-564756412f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:39:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lukestokes/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[Where Does Your Morality Come From?]]></title>
            <link>https://medium.com/@lukestokes/where-does-your-morality-come-from-51bcab78c174?source=rss-564756412f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/51bcab78c174</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[religion]]></category>
            <category><![CDATA[morality]]></category>
            <dc:creator><![CDATA[Luke Stokes]]></dc:creator>
            <pubDate>Sat, 05 Mar 2016 20:31:35 GMT</pubDate>
            <atom:updated>2016-03-09T06:27:42.899Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever considered where your ideas of “good” and “bad” come from?</p><p>I think most people don’t give it a second thought. Simple answers quickly come to mind like God, common sense, or mom and dad. Philosophers have discussed ethics for millennia, but sadly most Facebook comments today are completely void of them. All of our ideological battles of individualism vs. collectivism, capitalism vs. socialism, statism vs. anarchy and so forth can be judged by a single metric: Is it good?</p><p>Useful philosophy should be as universal as possible. Sadly, we’ve lost our way in even defining good. It’s normal for language to change over time, but some words are so foundational to our motivations and actions, if we change them, we change what it means to live a life worth living.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*EbfLS2CkO_61a5LU." /></figure><p>While on this ride, we should also think about what logical fallacies we might encounter along the way, something I hope to do with many of the posts on this blog. If you’re not familiar with <a href="https://yourlogicalfallacyis.com/">YourLogicalFallcyIs.com</a>, please make it part of your studies. Your search for truth will be greatly improved by knowing these concepts. Thoughts on this post will include No True Scotsman, Appeal to Authority, and Bandwagon.</p><p>Now that we’re geared up to avoid logical fallacies, let’s take a look at some common mechanisms I think people use to determine what is “good” and what is not.</p><h3>Religion</h3><p>I’ll stick with the religion I know best and spent 30+ years of my life in before <a href="http://lukestokes.info/2016/02/14/losing-eternity/">losing eternity</a> (though other religions could illustrate this point just as well). Most forms of Christianity claim to follow the Bible for just about everything, including morality. The challenge modern, moral Christians face, from my perspective, is how to live true to what they actually believe about morality in contrast to what they are supposed to believe according to the God of scripture. The truly devout (some would say, “fundamentalists”) will argue God can do and say whatever he wants because he created everything and our primitive minds can’t possibly understand him. They come up with (IMO) some rather creative mental gymnastics to justify and do away with the cognitive dissonance caused by exploring morality in the Bible.</p><p>From my perspective, the Bible (or the office of the Pope, if you prefer) gives us some pretty conflicting (i.e. not universal) perspectives on things like:</p><ul><li>Genocide/Violence/War</li><li>Rape</li><li>Sexism</li><li>Bigotry</li><li>Child Abuse</li></ul><p>I could link out to many sources for my concerns above, but they are obvious to those who don’t see the scriptures as divinely inspired, and they are irrelevant for those who do since there’s always another interpretation and justification. You can Google for the same sources I did, but please don’t exclude results from <a href="http://rationalwiki.org/">RationalWiki.org</a> or the <a href="http://skepticsannotatedbible.com/">Skeptic’s Annotated Bible</a> if you’re truly looking for understanding, not just confirmation bias.</p><p>No True Scotsman fallacy shows up with regards to religion if someone replies with “But no <em>real Christian</em> believes that…”</p><h3>Law</h3><p>What about using the law for our understanding of morality? On the surface, this might seem like a good idea and be the framework for civilization we all enjoy. Unfortunately, I’m too personally steeped in Voluntaryism to objectively explain how crazy I think this is (I’ve been on the <a href="http://bestoked.blogspot.com/2014/05/the-road-to-anarchy.html">roady to anarchy</a> for a couple years now).</p><p>If you desire to be a good person and government law tells you what’s right, how many laws have you actually entirely read? Come to think of it… how many politicians who vote on the laws have actually read them? Yes, in theory, laws can and do change over time to be more adaptive to the consent of the governed, but the track record isn’t so great for things like:</p><ul><li><a href="https://en.wikipedia.org/wiki/Democide">Democide</a></li><li>War</li><li>Racism</li><li>Classism</li><li>Sexism</li></ul><p>The monopoly on the use of force within a geographic region (how I and others describe government) often uses the cover of “law” to do very immoral things. It’s amazing to me how in the United States in 2016 we actually lock people in a cage for growing a plant. We’re looking for universal philosophical principles here, so don’t even get me started with how screwed up law is in other countries around the world.</p><p>To me, some laws can be within the subset of morality, but they are not equivalent. There are laws that attempt to uphold moral ideals (don’t murder, don’t steal, etc), but the idea that morality can come from law is to me a classic Appeal to Authority fallacy as well as circular reasoning.</p><h3>Parents/Tribe</h3><p>We might also call this category common sense. So much of our understanding of what is right and wrong comes to us in our early formative years. Those first five years of life are crucial as our brain may be wiring itself to respond to either a hostile, violent environment or a cooperative, peaceful one. Check out <a href="http://bombinthebrain.com/">bombinthebrain.com</a> for more info on the roots of human violence.</p><p>Here are some examples we get from our parents/tribe:</p><ul><li>Corporal Punishment (i.e. Spanking)</li><li>Authoritarianism</li><li>“Because I said so”</li><li>“Everyone is else is doing it”</li></ul><p>This is basically the Bandwagon fallacy. We go along with whatever we see everyone else doing. If our parents thought spanking was a valuable form of discipline, and we “turned out okay” (in our own minds with no comparison set to use for justification), then we’ll probably be okay with spanking our kids (regardless of the studies which argue otherwise).</p><p>Now, I have to be fair. Of the categories we’ve looked at so far, this one at least seems the most reasonable to me. We do things which reward us with pleasure and avoid things which cause us pain. As social creatures, our communities provide for much of our pain and pleasure. The part where it loses universality, for me, is when it condones things which can provably be shown to decrease human well-being. But now I’m getting ahead of myself. Why should human well-being matter?</p><h3>Philosophy and Reason</h3><p>Now we’re getting to the good stuff! I mentioned human well-being above because I think it might actually be a more universal framework for many of the other systems we’ve already explored.</p><p>If there is no God, why did humans independently, all over the world, (subconsciously?) create religions? Why did civilizations all throughout history form governments and create laws for their citizens to follow? Why do moms, dads, and tribes raising children attempt to instill morals?</p><p>I think the answer to all of the above could be summarized by it increases (or at least attempts to increase) human well-being. My personal favorite description for why morality based on human well-being matters is because this <strong>morality creates the world we want to live in.</strong> The philosophically minded readers here will recognize this as a form of Utilitarianism and should be quick to point out the <a href="https://en.wikipedia.org/wiki/Utilitarianism#Criticisms">many criticisms of Utilitarianism</a>. That’s completely fine because utopia doesn’t exist in this world. Every few steps forward will involve a step or two back as we further refine and define what it is we’re talking about and, importantly, what we as conscious beings want out of life.</p><p>There are literally thousands of years of content to read when it comes to the philosophy of ethics, morality, and virtue. This is the hard stuff. To understand these concepts on a deep level takes many years of study, a journey I’m personally just beginning. Worse yet, understanding the philosophy of morality may disrupt the status quo in terms of our religions, our laws, and our view of our parents’ opinions.</p><p>It is worth it! Studying history, I would argue, suggests human progress depends on our pursuit of sound moral philosophy and communicating those ideas to each other.</p><p>The <a href="https://en.wikipedia.org/wiki/Ethics">wikipedia page on Ethics</a> outlines some key ideas which are worth getting familiar with:</p><ul><li><strong>Meta-ethics: </strong>How we understand, know about, and what we mean when we talk about what is right and what is wrong</li><li><strong>Normative ethics</strong>: The study of ethical action</li><li>Virtue ethics</li><li>Hedonism</li><li>State consequentialism</li><li>Consequentialism/Teleology</li><li>Deontology</li><li>Pragmatic ethics</li><li>Role ethics</li><li>Anarchist ethics</li><li>Postmodern ethics</li><li><strong>Applied ethics</strong>: Attempts to apply ethical theory to real-life situations</li><li>Bioethics</li><li>Business ethics</li><li>Relational ethics</li><li>Machine ethics</li><li>Military ethics</li><li>Political ethics</li><li>Public sector ethics</li><li>Publication ethics</li><li><strong>Moral Psychology</strong>: The intersection of ethics and psychology (moral development and the philosophy of mind)</li><li><strong>Descriptive Ethics:</strong> A value-free approach to ethics</li></ul><p>Whoa there! That’s a lot to read through! It sure is… not only that, it’s only a subset of philosophy in general. So why bother with all that work? Well, as we’ve explored above, there are problems with other mechanisms for determining what’s good if we don’t have an internalized consistent framework of our own. Religious morality can lead to holy wars and inquisitions. Legal morality can lead to authoritarianism, world wars, and, as the Nuremberg trials showed us, “just following orders” is not a valid defense. Parental and tribal obedience doesn’t create forward moral progress and would still have us all owning slaves or condoning husbands beating their wives (to use just two examples from the last couple hundred years).</p><p>Doing the hard work of defining where our morality comes from and seriously questioning those foundations helps create a world for ourselves and our children we want to live in. It’s easy to complain about what’s wrong in society or politics or business but it’s much harder to define exactly what is “good” and what is “bad.” Without doing so, our complaints and the actions that stem from them many not lead to any improvements.</p><p>Without a solid foundational moral philosophy, our actions to bring about good might actually promote what is bad.</p><p>I’m tempted to end this post here, but I’d like to dive a little further into what personally interests me most right now concerning moral philosophy. I’m a big fan of the <a href="https://en.wikipedia.org/wiki/Non-aggression_principle">non-aggression principle</a> (NAP):</p><blockquote><em>The principle asserts aggression is always an illegitimate encroachment upon another individual’s life, liberty, or property, or attempt to obtain from another via deceit what could not be consensually obtained. For example, the NAP prohibits the initiation of force by one individual or group of individuals against another individual or group of individuals.</em></blockquote><p>The NAP, for me, leads nicely into the concept of <a href="https://en.wikipedia.org/wiki/Voluntaryism">Voluntaryism</a> which is a “philosophy which holds that all forms of human association should be voluntary.” I also value self ownership and the philosophy of liberty which comes from it. More on that in this 8 minute video, if you’re interested:</p><p>Another, more controversial aspect of morality I’m interested in is where it came from.</p><h3>What roll does nature play in forming morality?</h3><p>On a basic, biological level, what is the purpose of life? It is to survive long enough to reproduce the species. For conscious beings, survival involves being in a pleasurable state of consciousness. We have the ability to end our own life… so why don’t we? Because we’re happy. How do we stay happy? Well, that’s a unique thing for many individuals, but it’s easier to talk about the opposite and what makes us not happy. We don’t want to be aggressed against, and we enjoy autonomy to pursue things which increase our well-being. Did natural selection bring about this mechanism which seems to keep conscious species going?</p><p>The <a href="https://en.wikipedia.org/wiki/Morality#Evolution">evolution section of morality on Wikipedia</a> quotes some who argue morality as:</p><blockquote><em>“a suite of interrelated other-regarding behaviors that cultivate and regulate complex interactions within social groups.” This suite of behaviors includes empathy, reciprocity, altruism, cooperation, and a sense of fairness.</em></blockquote><p>There’s even a whole page on the <a href="https://en.wikipedia.org/wiki/Evolution_of_morality">evolution of morality</a>. We can also get into the neuroscience aspects of morality and mirror neurons. The <a href="https://en.wikipedia.org/wiki/Science_of_morality">science of morality</a> and <a href="https://en.wikipedia.org/wiki/Ethical_naturalism">ethical naturalism</a> are two other aspects I’m really interested in, along with <a href="http://www.iep.utm.edu/virtue/">virtue ethics</a>.</p><p>The takeaway here is we should all be exploring what “good” and “bad” mean to us. Before we judge, we should have a solid framework justifying our position. If not, others might easily manipulate us into promoting the very things we’re trying to change.</p><p>Where does your morality come from? Leave some comments below to keep the conversation going.</p><h3>Like this:</h3><p>Like Loading…</p><p><em>Originally published at </em><a href="http://lukestokes.info/2016/03/05/where-does-your-morality-come-from/"><em>lukestokes.info</em></a><em> on March 5, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51bcab78c174" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Losing Eternity]]></title>
            <link>https://medium.com/@lukestokes/losing-eternity-4a3ce2a57743?source=rss-564756412f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a3ce2a57743</guid>
            <category><![CDATA[christianity]]></category>
            <category><![CDATA[religion]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[Luke Stokes]]></dc:creator>
            <pubDate>Sun, 14 Feb 2016 06:10:13 GMT</pubDate>
            <atom:updated>2016-02-14T17:23:23.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2UeC3uwOumMVz9KmLRUSOQ.jpeg" /></figure><p>From Wikipedia: <em>A comprehensive </em><strong><em>worldview</em></strong><em> is the fundamental cognitive orientation of an individual or society encompassing the entirety of the individual or society’s knowledge and point of view.</em></p><p>Not something we can easily change, right?</p><p>Whether we like to or not, we know each other by the labels we use. Both those we project and those we store as mental representations of others. The combination of all of these labels forms our worldview. These labels influence how we think which then changes how we form new labels and interpret existing ones. We make associations between labels, words, and actions. Surrounding the whole mix are emotions which lack words of their own.</p><p>Let me give you an example:</p><p>I, Luke Stokes, no longer think the label “Christian” applies to me.</p><p>How does that feel? For some, a smile and a chuckle, welcoming another adult out of the world of make-believe. To others, a tragedy of deception from demonic forces with eternal consequences and ultimately damnation. I know people in both of those extreme camps. The largest labels cause the most division. Our religion, our political party, our sex, our physical appearance, our position on controversial moral issues… these can all cause pain and separation. They form neat little boxes our brain quickly references without having to evaluate each person as an ever-changing individual.</p><p>Over the last couple of years, I’ve changed. For a little background, I grew up in a Christian family, served in Christian ministry for 6 years (which required me to raise financial support from others), and worked for a company with a Christian mission statement for almost 4 years after that. Decades of my life are aligned with the label “Christian” from my music, to my friendships, to my presence on Sunday mornings. For many, it would be hard to think of me without thinking about that label (and their various versions of what it means). My hope is for people to see me for who I am and talk to me about ideas as I see them today, not as a set of labels would dictate.</p><p>I’ve hesitated to talk about my story mainly because I’ve been trying hard to figure it out first. I haven’t blogged in over a year and a half. I know what it feels like to remove a label you’ve assigned to someone, especially if important aspects of who they are to you come from that label. These labels often shape our understanding of moral character, trustworthiness, and empathy. Changing them brings a feeling of loss, like a member of the tribe has moved on. The “us” vs. “them” mentality can take over, increasing division and alienation. Conflict arises as questions are raised which other worldviews have already settled and don’t want to revisit. Rehashing tough questions is seen as a waste of time and energy or, worse, a threat to the status quo. I now think those around me are even more confused to think of me under one label while hearing me say things which fit others.</p><p>So here I am with a new blog and a new approach to understanding myself and my place in the world. My current fascinations include voluntaryism (basically the principles Jesus preached about, minus the divinity/supernatural), epistemology, philosophy, neuroscience, morality, reason, logic, and more. I want to make sense of the life I’m living. I want to live on purpose. I want to learn about how my brain works and how it doesn’t. I don’t want to live in shame or fear concerning things which may have nothing to do with morality or human well-being.</p><p>In short, I want to pursue truth <a href="#footnote_1">[1]</a><a href="#footnote_2">[2]</a>, no matter where it leads.</p><p>The problem with this approach, I’m now realizing, is the more I learn, the more I recognize how much I don’t know and how wrong I’ve been in the past. It’s a humbling and somewhat censoring process (hence no blog posts for the last year and a half). Let me give some examples.</p><p>Growing up, my “Christian” homeschool curriculum (I use air quotes there, because I don’t think the books actually accepted Jesus into their heart as Lord and savior) explained how evolution isn’t real. I now think it is real <a href="#footnote_3">[3]</a><a href="#footnote_4">[4]</a> and those who claim otherwise have some confirmation bias going on, from my perspective. And yes, abiogenesis is something different from natural selection, please don’t confuse the two. I was taught to believe false things about the nature of reality and some of it was done in very fallacious ways. That really bothers me.</p><p>Let’s go with another even more controversial example: abortion. My parents are no longer with us, but if they were, I’d probably be having some amazing conversations with my mom on this topic. We used to have the best discussions. As a child, I can remember her peacefully protesting for the right to life for what she (and most pro-life advocates) consider to be defenseless humans being murdered. I now take a more nuanced approach. If life starts at conception, why don’t we value single cell or simple multicellular life equally in all species with the potential for high levels of consciousness? Have we rationally and philosophically come to our perspectives or were they handed to us by centuries of dogma? Other than our level of consciousness, is a human being fundamentally different than an animal if we both got here through evolution? When it comes to abortion, why do we also ignore the clear evidence of (at a certain point in time) two fully-functioning conscious human beings occupying the same space? It’s somewhat arbitrary to only call it two lives once the birth takes place and the separation is more clearly defined. So we’re left with a complex question we don’t yet have answers to: When does a clump of cells become a conscious human being with its own claims to life and liberty? Why does a clump of cells have more say about human well-being than a fully-functioning human woman whose life (and maybe whose family’s life) would be forever changed (often negatively) if these cells fully develop into an unwanted child?</p><p>How about another one: corporal punishment. Is it ever okay to inflict pain on children as a form of punishment? Every church I’ve ever attended says it is. My own understanding of morality and reason say otherwise (along with many who have spent decades studying this stuff <a href="#footnote_5">[5]</a>).</p><p>Are human beings fundamentally evil by nature? Is authority good for humanity or does it bring about our own corruption? Can non-violent communication and the concept of violence being a tragic expression of unmet needs bring about long-term change in the world?</p><p>I could go on, but we’ll leave these questions and others like it for future posts. The intention of my old blog was to encourage others <a href="#footnote_6">[6]</a> and though I still intend to do that here, this blog will probably be more inward focused. A way to explore my own thinking while challenging the thinking of others and creating meaningful conversations.</p><p>So where has my search for truth led me so far? Well, let me lead with some questions I’ve been pondering over the last year or two:</p><ul><li>How much of my belief system was originally determined by the country I was born in? How much of it by the beliefs of my parents?</li><li>Do I believe thoughts, memories, emotions, feelings, etc — things we can provably demonstrate originate as functions of the physical brain — can and will exist in an afterlife without a physical body as we know it? If so, why? What evidence do I have for that belief beyond my own emotions?</li><li>What are my thoughts on the God of the Gaps? <a href="#footnote_7">[7]</a></li><li>How much of my belief system is based on an unquestioning view of the Bible without having actively pursued textual criticisms of it?</li><li>Do I believe a square circle can exist somewhere in the universe? (no) Do I believe consciousness without matter can exist somewhere in the universe (or outside of the universe for that matter), and if I do believe it, why do I believe it? If matter is involved (such as a miraculous Jesus), what of the “super being” argument instead of a deity?</li><li>What evidence or reason for believing do I have that humans contain a spirit, and do all evolved beings also have a spirit or were we the lucky primates and if so, why?</li><li>Given the large amount of things I previously thought I was sure about concerning Christian dogma, history, human perception, etc, how can I reliably trust the things I know now without adopting a more skeptical, rigorous, scientific epistemology?</li><li>What level of evidence should I require to believe things which have no known, provable representation in the physical world?</li><li>How do I explain the accepted theories of human evolution and the idea that we mastered fire which enabled us to pre-digest our food which led to more neurons which led to the brains and consciousness we now enjoy? <a href="#footnote_8">[8]</a></li><li>How many skeptical views about my beliefs have I deliberately studied and considered?</li><li>Given the many contradictory (and changing) views on such fundamental religious concepts as the afterlife, how can I put so much assurance in it? Some argue hell is a second death, not eternal at all. Others say the concept of hell was invented later in the religion. And what of heaven? Is it on earth or not? Who are the people outside of the walls?</li></ul><p>In short, I’ve lost my belief in eternity as taught to me in the Bible. As I started working through these questions, I listened to even more audio books, lectures, debates… always reading and learning. Looking at the world through other peoples’ worldviews teaches your brain something and fundamentally changes how it responds to new information in the future. Learning about the brain via books like Thinking, Fast and Slow <a href="#footnote_9">[9]</a> and Predictably Irrational <a href="#footnote_10">[10]</a> have fundamentally changed my understanding of what it means to experience existence.</p><p>The questions above should not be taken as a direct challenge to anyone else. They are part of my own personal journey.</p><p>In summary, my mechanisms for separating out opinion from justified belief have changed, and I think the long-term result is beneficial for myself and my family. Pursuing truth means leaving things which appear to be less-than-true behind. It means following the path, no matter where it takes you or what the personal cost might be. I’ve already lost very meaningful connections by being honest about my thoughts on these issues. Thankfully, I’ve also started some great dialogues with true friends who may not agree with me but love me just the same.</p><p>I don’t know where this road will lead me and for once in my life, I have great peace about that. I’m no longer pretending to know things I don’t know. For the things I’m passionate about, I’m now way more open to criticism, correction, and alternative perspectives (but you’ll certainly get a strong argument out of me). I’ve embraced love as a truly powerful force which can change the world. I want to be part of that change, and I think it starts by being honest with myself and those around me while removing faulty thinking and dogma. I’m still quite off in many ways because I understand computers more than people, but I am always improving.</p><p>Regardless of how my labels change over time and the emotions that may cause for those around me, I will do my best to be true to myself and continue growing. I hope you can accept me for the individual I’ll be tomorrow.</p><p>Footnotes<br> [1] WaitButWhy.com — <a href="http://waitbutwhy.com/2014/10/religion-for-the-nonreligious.html">Religion for the non Religious</a><br> [2] WaitButWhy.com — <a href="http://waitbutwhy.com/2014/10/how-religion-got-in-the-way.html">How Religion Got in the Way</a><br> [3] <a href="http://statedclearly.com/">Stated Clearly</a><br> [4] It’s Okay to Be Smart — <a href="https://www.youtube.com/playlist?list=PLsmqeqKj7M-rZe1C9PUon8V-VQ1tZj5NF">12 Days of Evolution</a><br> [5] Upworthy — <a href="https://www.youtube.com/playlist?list=PLsmqeqKj7M-rZe1C9PUon8V-VQ1tZj5NF">The science of spanking: What happens to spanked kids when they grow up? (infographic)</a><br> [6] Bestoked at Blogspot.com (my old blog) — <a href="http://bestoked.blogspot.com/2011/11/blogging-is-mental-projection-of-your.html">Blogging Is the Mental Projection of Your Digital Self</a><br> [7] Ted.com — <a href="https://www.ted.com/talks/suzana_herculano_houzel_what_is_so_special_about_the_human_brain?language=en">What is so special about the human brain?</a><br> [8] Wikipedia — <a href="https://en.wikipedia.org/wiki/God_of_the_gaps">God of the Gaps</a><br> [9] Wikipedia — <a href="https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow">Thinking, Fast and Slow</a> by Daniel Kahneman<br> [10] Wikipedia — <a href="https://en.wikipedia.org/wiki/Predictably_Irrational">Predictably Irrational</a> by Dan Ariely</p><h3>Like this:</h3><p>Like Loading…</p><p><em>Originally published at </em><a href="http://lukestokes.info/2016/02/14/losing-eternity/"><em>lukestokes.info</em></a><em> on February 14, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a3ce2a57743" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Colleagues Still Don’t Understand Hypermedia APIs]]></title>
            <link>https://medium.com/@lukestokes/why-your-colleagues-still-don-t-understand-hypermedia-apis-1a5a2cf82540?source=rss-564756412f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a5a2cf82540</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[hypermedia]]></category>
            <dc:creator><![CDATA[Luke Stokes]]></dc:creator>
            <pubDate>Wed, 11 Nov 2015 15:43:09 GMT</pubDate>
            <atom:updated>2016-08-16T15:17:01.651Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>We’re telling everyone to do it wrong.</p><p><strong><em>2016–08–16 Edit:</em></strong> If you appreciate this content, please <a href="https://steemit.com/programming/@lukestokes/why-your-colleagues-still-don-t-understand-hypermedia-apis">promote it on Steemit</a> and follow me there as well. Thank you!</p><p>At the end of 2011, I set out to build a new API for <a href="http://www.foxycart.com/">FoxyCart</a>. A couple months of research led me to drink the <em>Hypermedia All The Things!</em> Kool-Aid. I read <a href="http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm">Roy Fielding’s chapter 5</a>, consumed all of Apigee’s blog posts, asked a bunch of questions on the amazing <a href="https://groups.google.com/forum/#!forum/api-craft">API Craft Google group</a>, and became a regular attendee to <a href="http://www.restfest.org/">RESTfest</a> the last four years running. I’ve learned a lot about Hypermedia APIs and like to think we have a pretty great one for people to learn from and emulate. You can check it out here: <a href="https://api.foxycart.com/docs">https://api.foxycart.com/docs</a></p><p>Here’s something you might notice right away: the documentation is not standard. Why is that? Well, this goes back to my first point. I think we’re teaching people to work with Hypermedia APIs the wrong way. Here are a few screenshots from some popular documentation systems to illustrate my point:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*EFhTEbl61ylAqGnn3DrYMQ.png" /><figcaption>Swagger</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*zOZKrteyr-EI2BawfThZ6g.png" /><figcaption>IO Docs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ML9ZRssnqhwRJUEa59TPxA.png" /><figcaption>API Blue Print</figcaption></figure><p>Notice anything?</p><p>They all encourage client developers and API consumers to code directly to URLs. Those deep into the Hypermedia fan club should immediately ask, “Where’s the hypermedia?” If we’re talking the <a href="http://martinfowler.com/articles/richardsonMaturityModel.html">Leonard Richardson maturity model</a>, we’re not at level 3 because the documentation tools don’t encourage developers to code to hypermedia link relationships. REST involves “hypermedia as the engine of application state,” but most developers don’t even know what API geeks mean when they say the “hypermedia constraint.”</p><p>Hypermedia isn’t complicated. We use it every day on the web. For an API, on a basic level, it’s just links from one resource state to another. The commercial and open source API documentation systems currently available don’t teach people anything about how REST APIs use hypermedia for all kinds of awesomeness. This is the same kind of awesomeness that has enabled the Internet to thrive with its client–server, stateless, cacheable, layered system, code on demand, uniform interface. Resources have links called link relationships, and developers are supposed to code their clients to those link relationships in order to get stuff done without caring as much about the details or processes which may change over time. Simple, right? I think so many “REST” APIs get this wrong mainly because none of the documentation systems out there represent this well.</p><p>So what do we do about it? I raised this question in my 2013 RESTfest 5 in 5 talk (the audio is pretty rough, but you can find the talk <a href="https://vimeo.com/channels/restfest2013/75256658">here</a> and the slides <a href="https://docs.google.com/presentation/d/1m4F6AJhi_wMWoIxu5AYzkuYEbCx5RYez0zjjS5EaG4U/edit?usp=sharing">here</a>). I’d like to think the talk sparked some really interesting discussions on this <a href="https://github.com/apiaryio/api-blueprint/issues/13">apiary issue</a>. They are making great progress over there, but as of this posting, the hypermedia issue is still open.</p><p>So back to our hAPI (my smile-inducing name for our Hypermedia API): we ended up building our own documentation from scratch. We tried to focus everything on resources and the link relationships between them. We got creative with an <a href="https://api-sandbox.foxycart.com/hal-browser/index.html">interactive tree diagram</a> for explaining how the link relationships work together. We implemented the <a href="https://api-sandbox.foxycart.com/hal-browser/browser.html#/">HAL Browser</a> and the <a href="https://api-sandbox.foxycart.com/siren-api-browser/index.html">Siren Browser</a> to let people play around with the link relationships and the resources directly in a sandbox environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7b5b3Riz9GbeTznuIYU8gA.png" /><figcaption>FoxyCart’s attempt at an interactive link relationship tree diagram</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOgZAhmauRtOrbhFZVYklQ.png" /><figcaption>HAL Browser, slightly customized by FoxyCart</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LuV3aghCnk2Y6otWj8yK7w.png" /><figcaption>Visually seeing the link relationships as actions is really helpful</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*-hwXWYw-4GB_1OwqfrpRtA.png" /><figcaption>The Siren browser with forms!</figcaption></figure><p>But here’s the rub… Our documentation isn’t that great. We don’t have teams of people improving and refining it after multiple iterations with many different implementations like the main documentation systems our competitors use. Not only that, if we don’t use a standard format for defining our API, we can’t use fun tools like <a href="https://apitransformer.com/">API Transformer</a> or get easily listed at <a href="http://apicommons.org/">API Commons</a> or <a href="http://www.programmableweb.com/">Programmable Web</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EirXd0pVDH93fwrmwyMFHQ.png" /><figcaption>Our Custom hAPI documentation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCg0fubSmQ-ZPKc5YOjXQQ.png" /><figcaption>In our custom docs, we show example representations for all formats we support.</figcaption></figure><p>So how do we find a balance between idealism about what Hypermedia API documentation systems “should” be and what they practically are? How can we move the whole ecosystem forward by encouraging client developers to code to link relationships instead of hard-coded URLs? How do we help pave the way for the future but not look like unsophisticated outsiders in the process? What pragmatic steps should we take to be like the other cool kids using standard documentation presentations while at the same time saying, “Um, yeah, don’t do that. Don’t code to the URL, code to the link relationship instead.”</p><p>I don’t really have the answers. Now that our custom docs are done, I’ll probably end up converting them to API Blueprint, Swagger, and RAML… but that takes time and, unfortunately, tells everyone to do it wrong.</p><p>P.S. Will you be in Austin next week? If so, I hope to see you at the API Strategy Conference for the <a href="http://austin2015.apistrat.com/schedule/">Hypermedia APIs Breakout 1 on November 19th</a>. I’ll be talking about the FoxyCart story building our hAPI and some things we learned along the way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a5a2cf82540" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>