<?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 Braden Casperson on Medium]]></title>
        <description><![CDATA[Stories by Braden Casperson on Medium]]></description>
        <link>https://medium.com/@casperson?source=rss-8d8dc5e5dfa1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uEOZhCzbC9T7TjuMM_enEQ.png</url>
            <title>Stories by Braden Casperson on Medium</title>
            <link>https://medium.com/@casperson?source=rss-8d8dc5e5dfa1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:15:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@casperson/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 Did Groovie Come From?]]></title>
            <link>https://casperson.medium.com/where-did-groovie-come-from-6945881fa0bb?source=rss-8d8dc5e5dfa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6945881fa0bb</guid>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[creators]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[videos]]></category>
            <dc:creator><![CDATA[Braden Casperson]]></dc:creator>
            <pubDate>Sun, 11 Apr 2021 18:47:16 GMT</pubDate>
            <atom:updated>2021-04-11T18:47:16.752Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beginnings — Reddit Place</h3><p>Apparently, I love consumer products. I didn’t entirely realize this was the case until I looked at my “App Ideas” list. I keep a list of ideas that I come up with for apps that I think would be fun and interesting for <em>me</em> to use. Guess how many of those ideas on the list are <em>not</em> consumer-facing? 0. And that wasn’t on purpose. One of these ideas would go on to become Groovie. So how did I come up with Groovie?</p><p>Let’s go back to April Fools’ Day of 2017 (I’m not joking). Reddit put out a collaborative project/social experiment subreddit called Place (<a href="https://www.reddit.com/r/place/">reddit.com/r/place</a>). A digital canvas was created that allowed users to add to a community art piece, one pixel at a time. A user could place 1 colored pixel, but would then be put on a timeout and would not be allowed to place a subsequent pixel for a time ranging from 5–20 minutes. What this meant is that you could contribute to the art piece and influence the direction that it would go, but it wasn’t possible for any one person to completely control what happened in the art piece. It was truly a collaborative project. As time went on, what started out as somewhat of a discombobulated mess, morphed into an incredible, unique work of art. The project only lasted for 72 hours and then it was complete.</p><figure><img alt="blue corner of reddit place art piece" src="https://cdn-images-1.medium.com/max/1004/1*TNaTqZdYdoC_1SM1O10Xwg.png" /><figcaption>Blue corner</figcaption></figure><p>The first distinguishable area on the canvas that looked like it was actually coordinated and on-purpose was a corner of purely blue pixels. This led to a Pokemon-honoring bit, and then exploded into a smorgasbord of themes, from popular subreddits, to the flags of dozens of countries, to famous art pieces such as <em>The Starry Night </em>and <em>Mona Lisa</em>. It was truly mind-blowing that anything like that could be accomplished within those constraints and was really a lesson to me in how innovative and compounding collaboration could be. But alas, the project ended, never again to be repeated. At least on Reddit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*713nqGLRw3BDjizUsC2zGg.gif" /><figcaption>Behold the reddit/r/place progression in all its glory</figcaption></figure><h3>Make It An App!</h3><p>So I figured, why should it end? Why not make collaborative, digital art more common and accessible? If there was an app for that, the world would see some awesome pieces come out of it. And so it went onto my “App Ideas” list. And there it sat for a bit. I’d periodically ruminate on my list and try to refine the ideas or flesh them out a bit more. It helped me to see whether there was really something there or if it was an idea without substance. Sometimes it led me to branch off into new ideas. As I was thinking about this collaborative art app, I started expanding the idea to anything that could be collaborative. Strangely, my next idea was a collaborative problem-solving app. I was thinking about some of these unsolved mathematical equations or problems in science and wondered if the process couldn’t be made a little easier if literally <em>anybody</em> could get on an app, see a problem, and add their brain power to it, possibly solving it. There wouldn’t be qualifications. You wouldn’t have to be a scientist or a professor. You could just be a janitor who just really likes mathematics.</p><figure><img alt="Matt Damon from Good Will Hunting movie solves math problem on chalkboard" src="https://cdn-images-1.medium.com/max/570/0*9LREKDLNs3ZPhxzX" /><figcaption>Just a janitor that likes math</figcaption></figure><p>Next, I moved onto video. What if anybody could collaborate together on a movie or video? You see collaborations happen often among creators and influencers (though not often enough). Again, what if <em>anybody </em>could collaborate together on a video? No qualifications needed, you don’t need to be an influencer. What sort of videos would come from that? I like floating my ideas past people to get their thoughts. So I was happy when Gilbert Warner, my co-founder, moved into the house where I live in March of 2019. Gilbert had already started his own company previously and was very interested in the startup world. He also had a fantastic knowledge of social video platforms such as Snapchat, TikTok, Youtube, Instagram, etc. I have used all of these and had a decent knowledge of them, but Gilbert had some next-level insider knowledge. So as I ran him through my list of ideas, he latched onto this one immediately and said, “This one has potential.” I talked it through with him and we narrowed it down to short 15-second videos that could be added together to make a collaborative video with a maximum length of 2 minutes. I originally was just thinking of having the ability to create any length of videos, even full-length movies! You know, like a group movie…I mean, like a Groovie. 😏</p><h3>Collaboration Pains</h3><p>One thing led to another, Gilbert officially came on board, and we really dove into Groovie to expand on what it would do and what it would accomplish. Collaborations on video don’t happen enough right now because of how difficult it is to collaborate with another person. It typically requires some degree of travel to meet up with that person, constant communication over email, text, or phone calls to try and coordinate, the hassle of sharing video files back and forth with Dropbox, and then trying to put those videos together into one video which you can finally post. That takes a ton of time and effort. It should <em>not </em>be this hard. Why isn’t there an easy way to instantly collaborate with anybody, influencers with fans, random people with random people, and yes, still influencers with influencers?</p><p>The closest we found at the time was the Stitch and Duo features on TikTok. These features were not very well known or used at the time and they also didn’t quite accomplish what I had originally envisioned with Groovie. But TikTok alone is huge and just having them provide a feature was validation in and of itself. So we knew we were on the right track.</p><p>Fast forward to today, Groovie has launched publicly in the App Store after a months-long beta! We’ve seen TikTok’s Stitch and Duo features become <em>much</em> more popular and we’ve seen the entire collaborative social media landscape begin to take-off, with the likes of Clubhouse and Collab being released, to name a couple. The future of social media is collaborative. It’s going to move away from this one-to-many mode it has been in for years and become many-to-many. Groovie is helping lead this movement. So how can you join Groovie? We’re live on the <a href="https://apps.apple.com/us/app/groovie-make-videos-together/id1524587797">App Store</a> right now. Download Groovie now and enjoy creating together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Il-Gn2kmjYpy3s2I3vlcQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pr2NsJ0_F5U06wxSdSkG-Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6945881fa0bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Link to the Past: Linked Lists in Swift]]></title>
            <link>https://casperson.medium.com/a-link-to-the-past-linked-lists-in-swift-22951026117?source=rss-8d8dc5e5dfa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/22951026117</guid>
            <category><![CDATA[linked-lists]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Braden Casperson]]></dc:creator>
            <pubDate>Fri, 08 Jun 2018 19:17:32 GMT</pubDate>
            <atom:updated>2018-06-09T00:43:10.424Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*IhYG7fKWPTSUULunPgmf8Q.jpeg" /><figcaption>Link, our beloved ambassador for Linked Lists</figcaption></figure><p>In the programming world, we often hear about Linked Lists. In my line of work, I pretty much never see them in our codebase (I’m also partially to blame for that). With Swift, I think part of that comes from them not being a built in data structure, so in order to use one, you have to implement your own custom class. Creating custom class models is a very common thing to do, but usually it’s to represent something that you’re software uses or keeps track of, like a user.</p><p>Since you’d have to create a Linked List manually, it’s not done that often and since it’s not done that often, it doesn’t come to mind often as a data structure of choice when you can use an array, set, or dictionary that is built-in to Swift. <strong>but</strong>, we’re going to learn how to make a Linked List now.</p><h3>What is it?</h3><p>A Linked List is a sequence of related items, called <strong>nodes</strong>, containing the same data types. There are two main types of linked lists:</p><ol><li><strong>Singly-linked list</strong> — This is like a one-way city street. Let’s say that each block is a node. Each block is connected to the one in front of it, but as you pass each block, you can’t go back to the previous block. If you tried to drive the wrong way on a one-way, you would <em>crash</em>. It’s not allowed. You can only move forward to the next block (node). The only way to get back to a node that you have already passed is to start over all the way from the beginning.</li><li><strong>Doubly-linked list</strong> — This is, as you might guess, like a two-way city street. Now, if you decided you wanted to go back a block, you’d just have to flip a u-turn and go back to where you just came from. It’s easy.</li></ol><p>An important thing to note is that you are going linearly, in a line. When driving on the block, I can’t just magically skip a block and get to a block that’s after the immediately next block on the street (unless you can fly). You have to go to each block (node) in order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*S2imlDP83dziVq5dFpIMCA.png" /></figure><p>Alright, so let’s get into the details of a node.</p><p>On both types of linked list nodes, you will have two properties: a value and a next pointer. The value is the data the node contains, like the building number on each block. The next pointer is simply the next node in the list, or the next block on the street. In a doubly-linked list you will also have a previous pointer that refers to the node you were just at, or the last block you passed on the street. Here’s the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f01c3824ff754ba20341f1f630461384/href">https://medium.com/media/f01c3824ff754ba20341f1f630461384/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d99f423246976c89f14d464e824fd689/href">https://medium.com/media/d99f423246976c89f14d464e824fd689/href</a></iframe><p>Explanation time. We establish the node of type <strong>T</strong>, which is a <a href="https://docs.swift.org/swift-book/ReferenceManual/GenericParametersAndArguments.html">generic type</a> in Swift. That lets us later use it to store any type we desire. The next node is optional because you might be at the last node in the list in which case it won’t yet have a next node. In the Doubly-linked node class, we made the optional previous value a weak var. Let’s say Node A is followed by Node B and therefore references Node B. Node B is also referencing Node A though as its previous. In order to prevent a <a href="https://docs.swift.org/swift-book/LanguageGuide/AutomaticReferenceCounting.html">retain cycle</a>* from occurring by having two strong references to each other, we make previous have a weak reference. If you’re unsure of what the init() function does, basically it makes it so when you create a new node, var head = node(value: 4), you can pass in that value and the init function will know, “Oh, this thing they passed into the function is the value, I’ll make sure that the value property is set to 4.” Also, since we are using the generic &lt;T&gt; type, Swift will <em>infer</em> the actual data type, in this case Int. Then if I ask for head.value, it will return 4.</p><p><em>*Quick aside: what do I mean by retain cycle and references? This is best answered in its entirety in a completely different post. But basically, let’s say a node is in memory. It will remain in memory as long as something is using it. When nothing is using that node anymore, Swift has something called ARC (automatic reference counting) that will deallocate that node from memory, to free that little bit of memory up. If something is still referencing it that you aren’t expecting, it will remain in memory. If this happens with multiple items, your app will end up hogging a lot of memory. No bueno. It’s okay if you don’t understand this right now. Patience, young one.</em></p><h3>The List</h3><p>Alright now we’re going to implement each section of the list in code and talk about it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c6a51e45a3617b2f05222dfd248d5fb9/href">https://medium.com/media/c6a51e45a3617b2f05222dfd248d5fb9/href</a></iframe><p>First off, we create the class with the same generic &lt;T&gt; type. We’re going to give it a few properties, those being head<strong>, </strong>tail<strong>, </strong>isEmpty<strong>, </strong>first<strong>, </strong>and<strong> </strong>last. Head is referring to the first node in the list, tail is the last node. The other three properties are computed properties, which means they don’t store an actual property. Instead they return a calculated value or another, possibly private, property value. The isEmpty property lets us know if there’s anything in the list. If head is empty, then that means that no other nodes have been created, because the first node created will be made the head initially.</p><p>The first and last properties are there to tell you what the head and tail nodes are. But why don’t we just access the head and tail nodes directly? Why are they marked private? Well, we don’t really want a user to be able to modify the values of head and tail independently. We’d rather modify those ourselves from within the functions we create in the LinkedList. But, with first and last, at least they can still <em>see </em>what those properties contain. So we just created the plans for a street, essentially, but it doesn’t have any blocks yet.</p><p>Here’s how we actually create the list in our code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/914a23e12c7d5603119b4357ae6c4fb6/href">https://medium.com/media/914a23e12c7d5603119b4357ae6c4fb6/href</a></iframe><p>Line-by-line, we first instantiate a list and we pass in the data type, String in this case. The parentheses () are what basically tells our class to create an instance for us. Now once we created it, we check its isEmpty<strong> </strong>property, which should be true, since we have not added anything. It does return true. If that’s true, then if we check our first and last properties, they should be nil. And we can see they are.</p><p>Next we move onto the first function.</p><h3>Append</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3cb0a85b7a8b592f2ba6f80bc86306c3/href">https://medium.com/media/3cb0a85b7a8b592f2ba6f80bc86306c3/href</a></iframe><p>This function is used when we want to add a new node onto the end of the list. It’s like building a new block at the end of the street and extending the street a little further. Conceptually, it’s basically the same thing as an array.append function. All the user has to do is send in a value. Again, it’s generic <em>but it will be the same type as the LinkedList we created. </em>Up above, we created a LinkedList of type String. So when we go to append and create newNode, it will require that the value we pass in be of type String . So we create the node that we will be appending and then first check to see if we have a tail node in the LinkedList currently by checking last . If it does have a tail then we proceed to set the newNode.previous to be the last node, then we set tailNode.next to be the newNode. Its next property was previously nil since it had been the tail. We don’t assign a next property on the newNode since it is the last node in the list and there isn’t another one to which it can point. In the else portion, if we do not have a tail node, then that also means we won’t have a head node, since they get created at the same time, which means that our LinkedList had been empty previously. Regardless of whether we go into the if or the else block, we will end up assigning the newNode as the new tail.</p><p>Here’s how we use this in real practice:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c23af1b1399b04d51eca71a1290ea511/href">https://medium.com/media/c23af1b1399b04d51eca71a1290ea511/href</a></iframe><p>We first append, with a required string value of &quot;I&quot;. After doing that we can check to see if it actually got added with isEmpty. That returns false, since there is one node in there. When we get list.first it gives us Node&lt;String&gt;. What good is that? It doesn’t tell you anything, does it? Well for one, it lets you know that a node does indeed exist there, which is good. But you have to call the value property directly to see their values, which we do on the next two lines. Since there is only one node in the list currently, first and last are going to be the same node. The reason why we have the question mark in list.first?.value and list.last?.value is because when we call for those properties, we don’t actually know if they exist or are nil and so we have to unwrap that optional property. This helps bad crashes occur in Swift, allowing you to “safely unwrap the optional”, as they say. In fact, you won’t even be able to build without unwrapping. If you recall, when we created our head and tail in our properties, we set them to optional. This way we can create a LinkedList without any nodes.</p><h3>Retrieving NodeAt an Index</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd17bb51f87bfacac62b049233b0d3bc/href">https://medium.com/media/bd17bb51f87bfacac62b049233b0d3bc/href</a></iframe><p>Sometimes you might want to know which node is at a certain index. This function takes in an index of Int data type. It then possibly returns a node, if it finds it. We start it out with a conditional if to make sure they gave us a valid input of a positive integer. Then, we prepare for a loop. We set a node to the head, or the beginning of the list, and set a counter variable, i, to the value of the index parameter. The loop then starts and continues to run until the next node is nil. Within the loop it first checks if i is 0. This is our success check, because it means that we’ve arrived at the desired node, which we then return. But how did I get down to zero? We see this on the next line. If i is greater than zero, then we haven’t passed through enough nodes yet so we decrease i by 1 and progress to the next node in the list. If index is less than 0 or if we reach the end of the list before our i gets to 0, then we return nil. The node was not found. Now let’s take a look at this in practice.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e4b4525a3cc41b0183001635641de13/href">https://medium.com/media/0e4b4525a3cc41b0183001635641de13/href</a></iframe><p>We first append four more items, to make a list containing each of the words in “I Like To Drink Juice”. Why those words? Because I like juice, sue me. After appending, we double check the first and last values again to verify that they are no longer pointing to the same node. The first value should remain the same, and we see that it is, and last is the most recently appended word, “Juice”. We then get the node at the third index, which would be the fourth node in the list. Then, we play around with that node a bit, first checking that its value is correct (it is, with “Drink”). From there, we see how we can access different nodes in the list, just by using each node’s previous and next properties.</p><h3>Insert</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cbc4556589dba7cd278b58ff23d967ac/href">https://medium.com/media/cbc4556589dba7cd278b58ff23d967ac/href</a></iframe><p>Let’s say you wanted to insert an item into the middle of the list and not just append it to the end. We do this by taking in two parameters: the value of the node to create, and the index of the location where we want to insert the node.</p><blockquote>Side note, you’ll notice that we have at index: Int instead of just index: Int. This is a nice thing that Swift allows to make things a little more understandable. When calling the function it will look like list.insert(value: “Cherry&quot;, at: 3). Syntactic sugar.</blockquote><p>We return the node afterwards mainly for the sake of proof that it was indeed added. We first will create a new node with the passed-in value. Then we check the index. If it’s 0, guess what the means? It means we’ll be putting it at the very front of the list, which means it will be the new head. We do this by first setting the newNode’s next pointer to the head. Then we set the head’s previous pointer, which was previously nil, to the newNode. Finally we set the newNode as the head. If the index is not 0, then we move into the else block and do something very similar to our nodeAt(index: Int) function. This is because it is essentially the same operation, with a little more added in there. We set a currentNode pointer to the head and a counter equal to the index parameter. Then we loop until i == 1. We could have chosen to loop until i == 0, it just would have changed our logic slightly. I just chose 1 since it is one less loop. Once our i counter gets to 1, it means the next node in the list will be at our target index. So we set the currentNode’s next node (the node at i == 0) to have a previous pointer to the newNode. Then we set the newNode to have its next point to currentNode’s next. We set newNode’s previous to be the currentNode and finally we set currentNode’s new next to be the newNode. Again, if we didn’t reach the index, then we return nil. We’ll talk about remove next and then see an example with both of them together.</p><h3>Remove</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d076d976c2913edd17699a1355c09ae0/href">https://medium.com/media/d076d976c2913edd17699a1355c09ae0/href</a></iframe><p>We use remove to take a node out of the list and then re-establish the correct links. You pass in the node you want to remove and we’ll return the value of the node that got removed. The nice thing about passing in the node directly, is that we don’t have to loop through the list to find it, which as you have seen with some of the other functions, can be a bit of a pain, and a cause for slow lookups. With the node that’s passed in, we have access to all of that node’s properties. We create references to the next and previous properties. Then we check if the prev is nil, aka, if the node passed in is the head node. If it does have a previous node, then we set that node’s next to be the node-to-be-removed’s (NTBR) next. If the NTBR doesn’t have a previous then the new head will just be next. We set the next’s previous node to be the prev node. Then we do the same sort of check we just did, but this time to see if it is the tail node, by seeing if the NTBR’s next is nil. If it is, the prev becomes the new tail. With the next and previous nodes of the NTBR now pointing to each other, we can safely set the next and previous pointers to nil, return the node’s value and it will then cease to exist in memory, forever.</p><p>But what if you just want to empty out the list completely? This is super easy. You just set the head and tail nodes to nil. With the two critical references of the beginning and end of the list disappearing, the rest of the list no longer has anything to hold onto to keep it in existence and therefore ceases to exist in memory. This happens because while the rest of the nodes in the list are referencing each other, there is nothing outside of them that is actually referencing them, so there’s really no way to access them, therefore they get removed from memory.</p><p>Let’s see some live examples.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc9af6ec34f95bb7ee474a5eaae83a19/href">https://medium.com/media/fc9af6ec34f95bb7ee474a5eaae83a19/href</a></iframe><p>We first remove the fourthNode we had previously created, that had the value of “Drink”. After removing, we then reassign that fourthNode variable to the new node at that same third index. We check the value and it has changed! It’s now “Juice”. But wait, wasn’t that the last word in the list before? Sure enough, if we check the next value, it is nil. This is still the last node in the list, its just one node shorter. We then get the description, which is what we’ll talk about in just a bit. But it shows us that our list now just contains I, Like, To, Juice. Now we are going to add Drink back in. We call our insert function, and reassign it to that index 3 again after the insertion. We check its value and sure enough it is back to being “Drink”. We check our full list and it is I, Like, To, Drink, Juice once again.</p><h3>Printing Out Your List</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b39580649e46ed955cad7c5d902e8e69/href">https://medium.com/media/b39580649e46ed955cad7c5d902e8e69/href</a></iframe><p>In that last bit we called a new property, description, that gave us a printed string representation of our list. This is not something that just comes built-in. However, Swift has a cool protocol that we can follow called CustomStringConvertible. We create an extension of LinkedList, which extends our already established functionality a little further, and we create another computed property called description. We then start a string with an opening bracket and then, starting at the head node, we loop through and append each node’s value onto the string. Then we close the bracket and return the string at the end. We do this since it would be quite handy to be able to easily know what is inside your list without having to manually write this loop code every time.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f929dceee7e6dea518f6bbf2159c9fa/href">https://medium.com/media/8f929dceee7e6dea518f6bbf2159c9fa/href</a></iframe><p>We saw how description worked previously, now we remove everything from our list with removeAll(). We check description and it’s empty. We check isEmpty and it returns true. We look for the first node in our list and it returns nil since there are no nodes in the list. We’ve successfully brought a LinkedList into this world, played with it a bit, and promptly obliterated it.</p><h3>The Full Thing</h3><p>Here’s what the whole thing looks like together.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44912847c641dab8b5c914751382553b/href">https://medium.com/media/44912847c641dab8b5c914751382553b/href</a></iframe><h3>Up Next</h3><p>Well, that detailed explanation wraps up our basic Linked List with it’s functions. If it doesn’t make sense immediately, don’t worry. Just go through it a couple more times and practice on your own, and it will start to make sense. Stay tuned for a later post discussing some common problems related to Linked Lists and how to solve them. Let me know what you think of this post in the comments below!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*u_r2FHY4W-GqjHlLJCS-TA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22951026117" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Buckle Up: Common Data Structures and Algorithms Implemented in Swift]]></title>
            <link>https://casperson.medium.com/buckle-up-common-data-structures-and-algorithms-implemented-in-swift-774ebecb3882?source=rss-8d8dc5e5dfa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/774ebecb3882</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[programming-interviews]]></category>
            <dc:creator><![CDATA[Braden Casperson]]></dc:creator>
            <pubDate>Wed, 06 Jun 2018 00:40:19 GMT</pubDate>
            <atom:updated>2018-06-06T00:40:19.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*CWM5omSsQVUpMREJwHQUzQ.jpeg" /></figure><h3>Well, I’ve been wanting to learn the dirty of data structures and algorithms for a while now. I wasn’t a CS major. I got two business degrees that had a technology emphasis. So, my understanding of the guts of programming is less…in-depth as others’. My programming learning has mainly been on-the-job and through personal projects, as is the case with many of you. I’ve started to read and learn and experiment practice and have decided to do what programmers do and write a blog post(s) about it.</h3><p>Now, there could be any number of thoughts going through your head right now:</p><blockquote>Will I really be able to learn this smart, computer-sciency stuff?</blockquote><blockquote>What use is knowing any of this if I never use any of it in my day-to-day work?</blockquote><blockquote>I’ve got an interview coming up next week. Can I learn this all in time?</blockquote><blockquote>Who does this guy think he is? He’s a n00b who wants to think he knows stuffs.</blockquote><p>Great thoughts! Before I briefly address these thoughts, let me preface it with something. I kind of have no idea what I’m talking about. I 👏 am 👏 learning 👏. I code in Swift everyday, so naturally, that’s what I’ll use as my vessel, transporting me through this mind-bending, confusing, fulfilling journey.</p><p>First, will you be able to learn this? Absolutely…if you try hard. This is literally just practice makes perfect stuff. If you do it enough and practice enough, you will learn it.</p><p>Second, what’s the use? I contemplated this for a while and it’s only after really diving into these things that I am beginning to realize that these actually <em>are</em> valuable outside of programming interviews. Sometimes. There is a huge range of problems and tasks that we work on as developers, sometimes difficult, sometimes trivial. A lot of times we may learn one way of solving something and that becomes our go-to for every other problem that arises. This is fine a lot of the time. But sometimes there is a better way, <em>and you just don’t know about it.</em> All these algorithms and different data structures were created for a reason and became popular for a reason. They solve problems that occur often. Learning these things really opens your mind to some more critical thinking. You’ll begin to approach your work a little differently, really considering the way you’re building something to determine if there is a better way. You’ll also feel more confident overall. Plus a bunch of other reasons.</p><p>Third, probably not. If you’ve done lots of this stuff in your past and you just need a refresher, maybe. But if you’re like me and you’re learning for the first time (and you’re a normal, average human being) then I’m going to say no. Sorry. It’s a lot of stuff that honestly will take a bit of time to really sink in. But, it will sink in. Don’t you worry, my dear.</p><p>Fourth, I don’t think I’m anybody. I whole-heartedly recognize that I am a n00b and I embrace that. I don’t know a lot of things. I’m blogging about it to help <em>me</em> to learn, not you. Okay, maybe a little bit for you too. But mostly for me 😈.</p><p>Let me know what you guys think about this decision to write articles on the different algorithms and data structures. I’m always looking for advice and feedback in general, so don’t be shy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*yZvcL_9WrmM_GsYsm8UuFA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=774ebecb3882" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Try This Out]]></title>
            <link>https://casperson.medium.com/lets-try-this-out-fc1c30d9128a?source=rss-8d8dc5e5dfa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc1c30d9128a</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Braden Casperson]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 23:34:33 GMT</pubDate>
            <atom:updated>2018-01-04T23:34:48.580Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*q-q1i1VV3jsbX5hKAUgCeg.gif" /></figure><p>Here I am, thinking about how I can improve my coding chops. Then I thought, “I’ll just write posts about the things that I learn every day on the job.” Then I thought about some things that I had learned recently, and I realized that I had forgotten a lot of the intricacies of issues I had run into and found a solve for. I remembered that I had an issue and that I solved it, and I kind of remember how, but not completely. This will be a record of those things that came to pass, so that I can remember next time I run into it. Oh and it’s for you too, when you have the same problem. You can clap me later.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc1c30d9128a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>