<?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 Clyde Freeman on Medium]]></title>
        <description><![CDATA[Stories by Clyde Freeman on Medium]]></description>
        <link>https://medium.com/@c-edward-freeman?source=rss-26cd62bed2f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ApX3KcV1LMZOsAbNlofOZw.jpeg</url>
            <title>Stories by Clyde Freeman on Medium</title>
            <link>https://medium.com/@c-edward-freeman?source=rss-26cd62bed2f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 14:52:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@c-edward-freeman/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[The AI Abstraction Layer: why “Fundamentals” Are Evolving, Not Dying]]></title>
            <link>https://c-edward-freeman.medium.com/the-ai-abstraction-layer-why-fundamentals-are-evolving-not-dying-d5e8cd911572?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5e8cd911572</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 07:26:27 GMT</pubDate>
            <atom:updated>2026-02-06T07:33:58.065Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c774vEKTpuH_vJs7" /><figcaption>Photo by <a href="https://unsplash.com/@nahrizuladib?utm_source=medium&amp;utm_medium=referral">Nahrizul Kadri</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The discourse around Artificial Intelligence often circles back to a familiar refrain: “But what about the fundamentals?” Critics worry that as AI becomes more capable, particularly in areas like software development, we risk losing the deep, foundational understanding that underpins our technological progress. My view, however, is that this perspective fundamentally misunderstands the nature of progress itself. AI isn’t eroding our fundamentals; it’s elevating them, allowing us to operate at an unprecedented level of abstraction.</p><p>Let’s challenge the premise directly: the true fundamentals of any discipline are often static, immutable principles. In software, these are concepts like logic, data structures, algorithms, and system design. The syntax, the boilerplate, the memory management — these are often implementations of fundamentals, not the fundamentals themselves. And here’s the crucial point: AI already grasps these core static fundamentals. It has been trained on vast swathes of human knowledge, identifying patterns and relationships that represent these underlying principles with astonishing accuracy.</p><p>Think about it beyond the realm of code. We navigate our modern world constantly relying on layers of abstraction we don’t fully comprehend:</p><p>• Driving a Car: The vast majority of drivers can safely and effectively operate a vehicle without understanding the intricacies of its internal combustion engine, the physics of its braking system, or the complex software managing its various components. Our “fundamental” understanding as drivers is about road rules, spatial awareness, and destination planning — not mechanical engineering.</p><ul><li>Coding at Higher Levels: Consider the journey of a software developer. Few developers today write directly in machine code or even assembly language. We moved to C, then to Python, Java, JavaScript, and countless other high-level languages and frameworks. Each step was a deliberate move to a higher level of abstraction, offloading the gritty details of memory management, pointer arithmetic, and direct hardware interaction. Did this make us less “fundamental” developers? On the contrary, it allowed us to build more complex, powerful, and user-centric applications, faster than ever before.</li></ul><p>AI, in this context, is simply the next, inevitable abstraction layer. It’s not taking away our ability to understand; it’s automating the understanding of lower-level tasks, freeing us to focus on higher-order problems.</p><p>Reshaping Society: The Focus on “Why,” Not “How”</p><p>This shift has profound implications for how AI will shape our society:</p><p>1. Democratization of Creation: Just as high-level programming languages democratized software development beyond a niche of assembly experts, AI will democratize creation across various fields. Whether it’s generating initial code, designing prototypes, drafting complex documents, or even composing music, AI lowers the barrier to entry, empowering more individuals to bring their ideas to life. The focus shifts from the laborious execution of “how” to the creative vision of “why.”</p><p>2. Elevating Human Problem-Solving: If AI can handle the “grunt work” — the syntax, the boilerplate, the initial iterations — human talent can be redirected. Instead of debugging obscure errors or wrestling with complex API documentation, we can focus on system architecture, user experience, ethical considerations, innovative problem-solving, and the nuanced understanding of human needs. Our roles will evolve from implementers to architects, strategists, and ethicists.</p><p>3. Accelerated Innovation: With routine tasks automated, the pace of innovation will undoubtedly accelerate. Cycles of design, development, testing, and deployment will shrink. This doesn’t mean less work; it means more complex, ambitious projects can be tackled with the same or even fewer resources dedicated to low-level implementation.</p><p>4. A Redefinition of “Skill”: The valuable skills of tomorrow won’t necessarily be about memorizing syntax, but about critical thinking, creativity, interdisciplinary understanding, and the ability to effectively prompt and direct AI tools. Understanding the “fundamentals” will still matter, but it will be about grasping core principles and applying them strategically through AI, rather than meticulously implementing every detail.</p><p>The fear that AI will make us “forget the fundamentals” is akin to fearing that calculators made us forget basic arithmetic, or that word processors made us forget how to write. In reality, these tools freed us to perform more complex calculations and craft more sophisticated narratives.</p><p>AI is not an existential threat to engineering fundamentals; it is the ultimate abstraction tool. It allows us to offload the repetitive, the predictable, and the easily codified, so that we, as humans, can truly engage with the unpredictable, the creative, and the profoundly impactful. The future of innovation isn’t about shunning abstraction; it’s about embracing it to build a more advanced and efficient world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5e8cd911572" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What exactly is Tech-Adjacent and is it a good thing?]]></title>
            <link>https://c-edward-freeman.medium.com/what-exactly-is-tech-adjacent-and-is-it-a-good-thing-44fa3d319133?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/44fa3d319133</guid>
            <category><![CDATA[blacktechmatters]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 02:09:35 GMT</pubDate>
            <atom:updated>2024-01-15T02:09:35.487Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*ghMtf6kic1Igbnu51gqQmg.png" /></figure><p>so a couple of days ago i authored a somewhat viral tweet, that had black tech twitter in a frenzy. the tweet was this below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y2OhSAdYWtXC1NTV-ifG7A.png" /></figure><p>Now, this tweet got a lot more traction than I ever thought it would. I was just going about my day tweeting my personal thoughts and never thought this was going to be the tweet that was the trigger for so many branching discussions, most of these discussions often not even related to my original point.</p><p>Before I dive into this tweet and it’s surrounding discussions, let me address the origin of this tweet and the meaning behind it. I have been in tech for about 6 years and throughout my time, as a engineer/mentor/frequent mixer/conference attender. I’ve noticed that most of the people who look like me aren&#39;t in technical roles. Most times I would go to mixers, I would find out that I’m one of a very few engineers if any, and I have yet to meet another iOS developer at this mixer yet. Often the tech discourse on Twitter/X would primarily come from people who hail from non-technical backgrounds as well; think your Product Managers, Sales people and Recruiters. I found this odd, because how are the least technical people, leading a space about tech? It made no sense to me. I’ve had this opinion for years, and have discussed it amongst friends for a while , but this tweet was the first time i openly expressed it on a social platform. (Katt Williams really awakened something in me 🤣). So lets break down the tweet sentence by sentence.</p><blockquote><strong>The leaders of black tech twitter are people who cant code.</strong></blockquote><p>In the first sentence I say how the leaders in the black tech twitter space cant code. This is a blanket statement, for sure and of course I’m not referring to 100% of these people. but I’m not wasting characters to say “some” so deal with it. The tweet is coming hard and strong from the jump. thats my style.</p><blockquote><strong>When the majority of your leaders are tech adjacent and influencers. thats when you know your messed up in the game.</strong></blockquote><p>Next I say this is the problem with the space and then proceed to give nuance where i say the majority (<em>meaning not all</em>) of the leaders. i also put this in quotations because there are no leaders, what I meant by this is that the vocal non-technical folks in the space are <strong><em>tech adjacent </em></strong>and <strong><em>influencers</em></strong>. Now this is where people really got mad.</p><p>But first lets understand what <strong>Tech Adjacent</strong> even means. according to <strong>InceptionU (</strong><a href="https://www.inceptionu.com/blog/what-is-a-tech-adjacent-career">https://www.inceptionu.com/blog/what-is-a-tech-adjacent-career</a>).</p><h4>Tech adjacent roles are positions where it’s either an asset or requirement that the candidate either has the ability to understand and/or be able to write code, while still doing a job that is not considered a full developer.</h4><p>I didn&#39;t make up the term <strong>Tech Adjacent</strong> and it has been used for years, but !will take credit for bringing it back to relevance, at least in black tech twitter space. haha</p><p>My definition is slightly different and simpler. To me <strong>Tech Adjacent</strong> is any role that can be performed outside of a tech company, where the actions performed are not consider technical or tech. A example I will give is the role of tech recruiter. A recruiter who works for Meta, for example may say that they work in tech, but a recruiter for a farming company couldn&#39;t. This isn&#39;t the case for technical workers. A engineer is working in tech regardless of the company they work for because the nature of their job is intrinsically connected to tech, due to its technical origins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*-VGKOGGHOYeDRnzgVd7uOw.png" /><figcaption>job buckets categorized technical bucket</figcaption></figure><p>now just because some roles are <strong><em>tech adjacent, </em></strong>it<strong><em> </em></strong>doesn’t mean that its a bad thing. I work with these professionals day to day and they are smart and great at their job and their jobs helps the whole industry and is very important. Tech adjacent is just a categorization for different roles in tech, that aren&#39;t as technical and usually require a higher percentage of soft skills. I think the reason of a lot of ppl take offense to this is because of the idea of flat-techness, where everyone in tech is the same. i disagree with this notion, because every role is different and takes different competencies to do well and flat techness erases the unique struggles and complexities of each role. Plus, this is out of the scope for this article and will dive deeper into this in another article.</p><p>now back to the tweet, currently i would say the 85% of the most vocal ppl fall into the tech adjacent bucket. and of the 85% , most of their content is lifestyle based, with their role in tech being significantly minor and only mentioned as the reason they’re able to afford the lifestyle they promote. Now this in itself isn’t bad. i have no problem with any of it actually. that wasn&#39;t the point of the tweet. my issue is the skewing of the most prominent in the space and the message. my message for the space is balance! I want a lot more Technical folks creating content about tech itself, its impact and how to move tech along itself. I want us to take a lead position in where tech is going instead, of always playing catch up.</p><p>Hopefully with this balance achieved we can give a more balance perception of how it is in tech and how to get into it. it also portrays a more realistic view of the struggles and complexities in how to get into tech. I know I’ve been portrayed as the villain of the week for this tweet. but I’ll gladly assume the title , as long as it can starts the discussion to move the space forward.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44fa3d319133" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift Access Control : Who gets in and Who doesn’t — (Private and FilePrivate)]]></title>
            <link>https://c-edward-freeman.medium.com/swift-access-control-who-gets-in-and-who-doesnt-private-and-fileprivate-c377562bcb35?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c377562bcb35</guid>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[swif]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Sun, 20 Dec 2020 06:02:33 GMT</pubDate>
            <atom:updated>2020-12-20T06:02:33.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3zzD6hDCCRQcIlgy" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Swift Access Control : Who gets in and Who doesn’t — (Private and FilePrivate)</h3><p>Swift Access Control is exactly what it sounds like. It is a way of determining who is and who is not allowed to have access to your code. Swift access control allows you to be the gateKeeper of your code. Basically it’s the ability to Channel your inner night club bouncer at-least the digital version of it haha.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl2JdY4MYyJYUS6JLW%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fseason-3-the-simpsons-3x10-l2JdY4MYyJYUS6JLW&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fl2JdY4MYyJYUS6JLW%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="331" frameborder="0" scrolling="no"><a href="https://medium.com/media/d25d38aa85be6493a00f7c781a91dc8c/href">https://medium.com/media/d25d38aa85be6493a00f7c781a91dc8c/href</a></iframe><p>Swift provides you 5 keywords that will help you regulate access to your code. This list will start with the most open access to the most restrictive.</p><p><strong>Open:(the most open, duh and only used with class objects) </strong>The main point to understand here is that classes defined by the <strong>open</strong> keyword are accessible <strong><em>AND</em></strong> subclassable outside of it’s defining module. This is the key difference that distinguishes <strong>open</strong> from <strong>public</strong>. — normally you don’t deal with the open class as much.</p><p><strong>Public: </strong>A class defined as public is accessible within and outside its defining module, but <strong>ONLY</strong> subclassable within the module that it was defined inside of.</p><p><strong>Internal: (This is the default)</strong> As this is the default, you don’t have to explicitly declare this at all. This designation allows access for everything in the enclosing module.</p><p><strong>FilePrivate: </strong>Restricts use of properties to the file it was declared in.</p><p><strong>Private: </strong>(the most restrictive) This restricts the use of any properties and declaration within the enclosing declaration. Also, it includes the type of extensions.</p><p>Let’s take a look at private first.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db20d2a3df915dfa2b389e021992d2be/href">https://medium.com/media/db20d2a3df915dfa2b389e021992d2be/href</a></iframe><p>This throws an error because the property “name” is declared as private. This means it is only accessible within its closing declaration. Making it only accessible inside the Player class itself not an <em>instance</em> of it. Swift makes this known to you by not giving the property “name” as a option when trying to access properties of the class.</p><p>To change the name property we’ll have to implement something like the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d15302f48fd2fb06f67e13074ea0300b/href">https://medium.com/media/d15302f48fd2fb06f67e13074ea0300b/href</a></iframe><p>Now let’s take a look at the FilePrivate keyword.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/858c322254a3b2121a77f83fa8a92b3a/href">https://medium.com/media/858c322254a3b2121a77f83fa8a92b3a/href</a></iframe><p>Now when we print the name property of the instance of the Lebron class we get an output showing “ The GOAT”. This is all successful because of the <strong>fileprivate </strong>keyword has given us access to the name property of the instance and were able to change it because fileprivate gives us access to the properties because we are manipulating it inside the same file. whereas, before using the private keyword we were given an error.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c377562bcb35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snakes , Snakes and more Snakes: An Overview of VIPER.]]></title>
            <link>https://c-edward-freeman.medium.com/snakes-snakes-and-more-snakes-an-overview-of-viper-1c4d2dbe7a22?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c4d2dbe7a22</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[viper-architecture]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 23:19:13 GMT</pubDate>
            <atom:updated>2020-07-14T23:19:13.562Z</atom:updated>
            <content:encoded><![CDATA[<h3>Snakes , Snakes and more Snakes: An Overview of VIPER.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vljHIlrwBKS8TjI5" /><figcaption>Photo by <a href="https://unsplash.com/@mrtwisty?utm_source=medium&amp;utm_medium=referral">Zachary Young</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We’ve had Anaconda(the movie), the black Mamba( RIP Kobe), python the programming language and now we add another slivering creature to the line-up: <strong><em>VIPER</em></strong>.</p><p>We’re not actually talking about the animal Viper as in the one in this article’s headline picture. We’re talking about <strong><em>VIPER</em></strong> ,the design architecture commonly used in building mobile apps. From here on out I will be talking about <strong><em>VIPER</em></strong> in context of building mobile apps in swift.</p><p><strong><em>VIPER</em></strong> isn&#39;t just a cool name someone decided to give to a design pattern. It ‘s actually an acronym arrange in a cool way to sound like the animal of the same name.</p><ul><li><strong>V</strong> — <em>View</em> : As the name suggest, the View is the file that will handle all the UI elements/interactions and will relay those interactions to the presenter. Think of the view as the face of the application / what the user sees.</li><li><strong>I</strong> — <em>Interactor</em> : This file is used to fetch data. All network calls will be held here.</li><li><strong>P</strong> — <em>Presenter</em> : The middle-man in all of this, the <em>Presenter</em> is in contact with the <em>View. </em>The <em>Presenter</em> receives user interactions from the <em>View</em> and performs its logic. Lastly, the<em> Presenter</em> prepares content to be displayed on the <em>View</em> which comes from the <em>Interactor</em>.</li><li><strong>E</strong> — <em>Entity</em> : The <em>Entity </em>is a basic data model that holds the data fetched from the <em>Interactor</em>. Usually, it is defined in the <em>Interactor </em>file itself.</li><li><strong>R</strong> — <em>Router</em> : This file handles the application’s navigation and what <em>Views </em>are shown and hidden. Think of this as the the Air traffic controller for an App.</li></ul><blockquote>Above i called the Presenter the middle man, but its more like the MVP. It is the busiest file because it is the only file that interacts with all the other files!</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oriOcvjQcMsOAQGwU%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oriOcvjQcMsOAQGwU%2Fgiphy.mp4&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3oriOcvjQcMsOAQGwU%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/32c34382472f7fbbee7fe490c3275a17/href">https://medium.com/media/32c34382472f7fbbee7fe490c3275a17/href</a></iframe><h4>Let’s take a look at the many interactions that the Presenter has.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Ak9sSLVWrKaqGrtUG5rfQ.png" /></figure><p><strong>View to <em>Presenter</em> </strong>— Communicates user interaction and request the <strong><em>Presenter</em></strong> to perform the appropriate action.</p><p><strong><em>Presenter </em>to <em>Interactor</em></strong> — Communicates the user action/data fetching actions.</p><p><strong><em>Interactor </em>to <em>Presenter</em></strong> — Communicates the update with the business logic as a result of an action performed.</p><p><strong><em>Presenter </em>to<em> View</em></strong> — Updates the View to make the mandatory UI changes based on the response from the<strong><em> Interactor.</em></strong></p><p><strong><em>Presenter </em>to<em> Router</em></strong> — Interacts with <strong><em>Router</em></strong> about navigation between pages.</p><h4>Let’s take a look at some of the advantages of this design pattern.</h4><ul><li>Separation of Concerns: Because <strong><em>VIPER</em></strong> separates specific logic into 5 files, a file is only responsible for ONE specific task.</li><li>Easier to test code logic because of the “single responsibility” nature of the design pattern.</li><li>Also easier to to spot and resolve bugs because of the reasons listed above.</li></ul><p><em>Now, </em><strong><em>VIPER</em></strong><em> is like a double edged sword. All the advantages mentioned above can easily be flipped around as disadvantages.</em></p><ul><li>Separation of Concerns: Because there are specific files its can be really confusing adhering to proper VIPER principles. For example, all routing must be handled by the <strong><em>Router</em></strong>. Therefore, your actions have to travel all the way from the <strong><em>View</em></strong> to the <strong><em>Router</em></strong>. That can be problematic for those who are more used to MVC architecture.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c4d2dbe7a22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Networking in Swift]]></title>
            <link>https://c-edward-freeman.medium.com/networking-in-swift-4b928dad0619?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b928dad0619</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[learn-to-code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Mon, 13 Apr 2020 01:25:11 GMT</pubDate>
            <atom:updated>2020-04-13T01:25:11.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NxCfjiTNHsuwr9cw" /><figcaption>Photo by <a href="https://unsplash.com/@mariogogh?utm_source=medium&amp;utm_medium=referral">Mario Gogh</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’ve recently started my path in IOS development and decided to write a quick tutorial. This article focuses on one of the first things you&#39;ll learn when building an app, creating <strong><em>API requests</em></strong>.</p><p>Before I dive in though, let’s talk about what the heck an API is in the first place. API stands for <strong><em>Application Programming Interface</em></strong>. Now, if you’re like me , you’re probably saying “… and what does that mean to me?!”.</p><p>APIs allow outside devs access to companies app data to manipulate for their own use. Companies have documentation on the specific URL string thats required to access their data along with an <strong>API Key. </strong>This key is whats grants you access to the API and is unique to you<strong>.</strong></p><p>Think of an <strong>API</strong> like a contract, the documentation that represents an agreement between 2 parties. If party 1 sends a remote request structured a particular way, then party 2’s software will respond.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3orieVWjuvjLoOiPuw%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fseason-14-the-simpsons-14x10-3orieVWjuvjLoOiPuw&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3orieVWjuvjLoOiPuw%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc79689f288a45e24d34fb393ec4e5f6/href">https://medium.com/media/dc79689f288a45e24d34fb393ec4e5f6/href</a></iframe><p>Okay, enough of the explanation. Let’s start building our URL string so we can actually make our API request. We will be using the <strong>movieDB API</strong> for the following examples.</p><h4>Creating the Struct</h4><p>First let us take a look at the data we want to grab. We will be using the movieDB’s API and we’re looking for movies that are <strong><em>“Now Playing”</em></strong>.</p><p><a href="https://developers.themoviedb.org/3/movies/get-now-playing">API Docs</a></p><p>Below shows how our URL string should look as well as what the JSON response data will look like. It also details what data types to use in our struct which will be used to decode the JSON.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1AKMGqd5D_e8IsiDhlETRg.png" /><figcaption>the movieDB schema</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMt71bbkPLNIBTtKD9cKDw.png" /><figcaption>The JSON response</figcaption></figure><p>Let’s go ahead and create the structs needed to decode the JSON.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a7e40d93b4333526169396133feead3/href">https://medium.com/media/9a7e40d93b4333526169396133feead3/href</a></iframe><p>Our struct must first conform to the <strong>Decodable</strong> protocol and each property must match the keys from the JSON response (<em>Use the pic above to determine what type each property should be</em>). Usually, JSON response keys are snake case. As in they look like this: “vote_average”. By default <strong>Decodable</strong> converts snake case to CamelCase which is the common convention in Swift. So a struct that has a property of <em>let voteAverage</em> will successfully parse the JSON key “vote_average”.</p><p>Something to be aware of is this JSON response returns an array of movies objects. Our struct has to mirror this, which is shown in the struct seen above. Also what I did here was initialize all the properties as optional values in case the JSON response for that property is nil. We don’t want the the app to crash because the property is nil.</p><h4>Creating the URL String</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbd1c8e26376276541976d3de2bf83f2/href">https://medium.com/media/bbd1c8e26376276541976d3de2bf83f2/href</a></iframe><p>The image above reflects using a computed property to create and store our URL string.</p><p>This will give you is an an URL that looks like this:</p><p><strong><em>https://api.themoviedb.org/3/movie/now_playing?api_key=b4b16ea1d5df4aabad5fd38c349df7d8</em></strong></p><h4>Creating and executing the request</h4><p>Now that we have the appropriate endpoint set up and are ready to go. We have set up the request to the movieDB’s Server. To do so we will have to use <strong>URLSession</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7fa378fb85e48064407eb40f623468a/href">https://medium.com/media/c7fa378fb85e48064407eb40f623468a/href</a></iframe><p><strong>Okay! Now let’s break down this code:</strong></p><p>To make the request we have to make use of <strong>URLSession, </strong>a class in the Swift language that lets us make url requests. Set this as a variable.</p><p>Next, create another variable which will hold the actual request, we usually call this <strong>task</strong>. The dataTask takes in 2 parameters: The URL String and closure also called a <strong><em>completion handler(executes when the request completes, hence the name)</em></strong>. The completion handler contains 3 parameters: data, response, error. All of which can be nil because they are all optionals.</p><ul><li><strong>Data:</strong> The data object that is being returned. In this case it’ll be the JSON object.</li><li><strong>Response:</strong> This will be the response code we’re receiving. Think https status codes like 200 as a success and 400 as a failure.</li><li><strong>Error:</strong> If an error occurred while trying to retrieve JSON. An error will throw if everything went A-okay then this will be nil.</li></ul><p>We already constructed our Url string so we won’t need to worry about that now. We can just pop the variable inside the function as the first argument. Now let’s focus on the second parameter.</p><p>Our request is all set up, now me must send it off. By default, data tasks are are paused. If we want to execute the request we must use <strong><em>task.resume</em></strong>.</p><pre>task.resume</pre><p>Now that the request is sent off we have to check for errors. We check if an error actually contains an error (so making sure its nil), and if so then we’ll go about decoding our JSON response into a struct that swift can work with. Which in this case is our <strong>NowPlaying Struct</strong>.</p><p>There, that’s it! We have successfully made a network request!</p><h4>In Summary:</h4><p>To make a network request in Swift:</p><ul><li>Figure out the API you want to use and read up on the documentation to learn how to use it.</li><li>Create the structs needed to <strong>Decode</strong> the JSON response.</li><li>Build the URL string</li><li>Create and initiate the request using task.resume.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b928dad0619" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structures vs Classes]]></title>
            <link>https://c-edward-freeman.medium.com/structures-vs-classes-211a64550865?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/211a64550865</guid>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Sat, 08 Feb 2020 04:31:05 GMT</pubDate>
            <atom:updated>2020-04-01T01:57:21.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYrStnnvLNqai-JA7wz5GA.jpeg" /><figcaption>Architectural drawings. Photo by <a href="https://unsplash.com/@szolkin?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sergey Zolkin</a> on <a href="https://unsplash.com/s/photos/blueprint?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>This is another entry in the <strong><em>VS</em></strong> series where i breakdown the differences between closely related coding topics.</p><p>Here, we’re going to dig into the differences and similarities between structures and classes.</p><p>First let define the what these structures are in the first place.</p><p>let start with a <strong>Classes</strong>. Classes should be very familiar to anyone who dealt with any OOP(<strong><em>O</em></strong><em>bject </em><strong><em>O</em></strong><em>riented </em><strong><em>P</em></strong><em>rogramming</em>) language. Lets start with the text book definition of what a class is :</p><p><em>A </em><strong><em>class</em></strong><em> is an extensible program-code-template for creating </em><a href="https://en.wikipedia.org/wiki/Object_(object-oriented_programming)"><em>objects</em></a><em>, providing initial values for state (</em><a href="https://en.wikipedia.org/wiki/Member_variable"><em>member variables</em></a><em>) and implementations of behavior (member functions or </em><a href="https://en.wikipedia.org/wiki/Method_(computer_programming)"><em>methods</em></a><em>).</em><a href="https://en.wikipedia.org/wiki/Class_(computer_programming)#cite_note-FOOTNOTEGammaHelmJohnsonVlissides199514-1"><em>[1]</em></a><a href="https://en.wikipedia.org/wiki/Class_(computer_programming)#cite_note-FOOTNOTEBruce20022.1_Objects,_classes,_and_object_types,_https://books.google.com/books?id=9NGWq3K1RwUC&amp;pg=PA18-2"><em>[2]</em></a><em> In many languages, the class name is used as the name for the class (the template itself), the name for the default </em><a href="https://en.wikipedia.org/wiki/Constructor_(object-oriented_programming)"><em>constructor</em></a><em> of the class (a </em><a href="https://en.wikipedia.org/wiki/Subroutine"><em>subroutine</em></a><em> that creates objects), and as the </em><a href="https://en.wikipedia.org/wiki/Data_type"><em>type</em></a><em> of objects generated by </em><a href="https://en.wikipedia.org/wiki/Instance_(computer_science)"><em>instantiating</em></a><em> the class; these distinct concepts are easily conflated.</em></p><p>Lets decode this definition into lamens terms later, for now just keep the word “<em>template</em>” in mind.</p><p>Next let’s take a look at what <strong>Structures aka Structs </strong>are.</p><p><em>A </em><strong><em>structure</em></strong><em> is a user defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single type.</em></p><p>Now let’s see how are these data structures look like in code.</p><p>We’ll take a look at a simple struct as well as a simple class.</p><pre><strong>struct</strong> Table {</pre><pre><strong>  var</strong> materialsMadeOf:[String]</pre><pre><strong>  var</strong> color: String</pre><pre><strong>  var</strong> numOfLegs: Int</pre><pre>}</pre><pre><strong>class</strong> Person {</pre><pre><strong>  var</strong> name: String</pre><pre><strong>  var</strong> age: Int</pre><pre><strong>  var</strong> gender: String</pre><pre><strong>  init</strong>(name:String, age:Int, gender:String) {</pre><pre><strong>    self</strong>.name = name</pre><pre><strong>    self</strong>.age = age</pre><pre><strong>    self</strong>.gender = gender</pre><pre>   }</pre><pre>}</pre><p>Now at first glance these two structures look almost identical.Both have a name that starts with a capital letter, both have 3 properties, but for those of you with the eagle eye, you may have noticed the difference. You noticed the obvious difference of the <strong>struct</strong> and <strong>class </strong>keywords and you may have noticed the class has a little extra; it has this <strong><em>init</em></strong> thing in it. get it has init … in it haha. Those are just a few of the differences lets get into the others.</p><ol><li><strong>Inheritance:</strong> Classes are are like rich people who benefit greatly from assets being passed down to them and add very little of their own (this is equivalent to overriding an existing method or property) but still saying they’re self made. this is classes in a nutshell. Let’s take a look at this in action.</li></ol><pre><strong>class</strong> Person {</pre><pre><strong>  var</strong> name: String</pre><pre><strong>  var</strong> age: Int</pre><pre><strong>  var</strong> gender: String</pre><pre><strong>  init</strong>(name:String, age:Int, gender:String) {</pre><pre><strong>    self</strong>.name = name</pre><pre><strong>    self</strong>.age = age</pre><pre><strong>    self</strong>.gender = gender</pre><pre>    }</pre><pre>}</pre><pre><strong>class</strong> Athlete: Person {</pre><pre><strong>   enum</strong> Sport {</pre><pre><strong>    case</strong> basketball, football, soccer</pre><pre>  }</pre><pre><strong>   var</strong> sportPlayed:Sport</pre><pre><strong>   var</strong> gamesWon: Int</pre><pre><strong>   init</strong>(sportPlayed: Sport, gamesWon: Int, name: String, age: Int,        gender: String) {</pre><pre><strong>   self</strong>.gamesWon = gamesWon</pre><pre><strong>   self</strong>.sportPlayed = sportPlayed</pre><pre><strong>   super</strong>.init(name: name, age: age, gender: gender)</pre><pre>    }</pre><pre>}</pre><pre><strong>let</strong> lebron = Athlete(sportPlayed: .basketball, gamesWon: 5, name: &quot;Lebron James&quot;, age: 34, gender: &quot;M&quot;)</pre><ol><li><strong>part of 1 — Initialization: </strong>one of the big differences between classes and structs is how we create instances of them. the eagle eyed readers noticed that the class structure had <em>init</em>.. in it and that the <strong><em>struct</em></strong> didn’t. this is because structs come with a <strong><em>member wise initializer</em> </strong>which is swift’s way of saving you time from creating a method yourself that assigns values to the properties within your struct. Structs gives you this as a freebie! Classes do not have this and all will require a custom init method to set values to the properties within it.</li></ol><pre><strong>class</strong> Person {</pre><pre><strong>  var</strong> name: String</pre><pre><strong>  var</strong> age: Int</pre><pre><strong>  var</strong> gender: String</pre><pre><strong>  init</strong>(name:String, age:Int, gender:String) {</pre><pre><strong>    self</strong>.name = name</pre><pre><strong>    self</strong>.age = age</pre><pre><strong>    self</strong>.gender = gender</pre><pre>    }</pre><pre>}</pre><pre>let Batman = Person(name: &quot;Bruce Wayne&quot;, age:33, gender: &quot;Male&quot;)</pre><pre>Batman.name // Bruce Wayne<br>Batman.age // 33<br>Batman.gender // Male</pre><ol><li><strong>Copying: Another difference is how we go about copying structs vs classes. we’ll first need to understand that classes are a reference type and that structs are a value types. Now what does that mean. first let us take a look at this examples with classes.</strong></li></ol><pre><strong>class</strong> TV {</pre><pre><strong>  enum</strong> Size {</pre><pre><strong>  case</strong> small</pre><pre><strong>  case</strong> medium</pre><pre><strong>  case</strong> large</pre><pre>}</pre><pre><strong>enum</strong> Brand {</pre><pre><strong>  case</strong> Sony</pre><pre><strong>  case</strong> Samsung</pre><pre><strong>  case</strong> LG</pre><pre><strong>  case</strong> Vizio</pre><pre>}</pre><pre><strong>var</strong> brand:Brand?</pre><pre><strong>var</strong> size: Size</pre><pre><strong>var</strong> isHD: Bool</pre><pre><strong>init</strong>(brand:Brand?, size:Size, isHD:Bool) {</pre><pre><strong>  self</strong>.brand = brand</pre><pre><strong>  self</strong>.size = size</pre><pre><strong>  self</strong>.isHD = isHD</pre><pre> }</pre><pre>}</pre><pre><strong>var</strong> vizio = TV(brand: <strong>nil</strong>, size: .medium, isHD: <strong>false</strong>)</pre><pre><strong>var</strong> randomBrand = vizio</pre><pre>randomBrand.isHD = <strong>true</strong></pre><pre>print(randomBrand.isHD) // returns true</pre><pre>print(vizio.isHD) // returns true as well</pre><p>&lt;iframe src=”<a href="https://giphy.com/embed/l36kU80xPf0ojG0Erg">https://giphy.com/embed/l36kU80xPf0ojG0Erg</a>&quot; width=”480&quot; height=”268&quot; frameBorder=”0&quot; class=”giphy-embed” allowFullScreen&gt;&lt;/iframe&gt;&lt;p&gt;&lt;a href=”<a href="https://giphy.com/gifs/reaction-l36kU80xPf0ojG0Erg">https://giphy.com/gifs/reaction-l36kU80xPf0ojG0Erg</a>&quot;&gt;via GIPHY&lt;/a&gt;&lt;/p&gt;</p><p>As you can see both <strong>randomBrand </strong>and <strong>vizio</strong> are returning true even though we initially set the <strong>isHD</strong> property on<strong> vizio</strong> to false. This is because classes are reference types. which in this case means that both these instances are pointing to the same place in memory. essentially they are sharing the same instance of the class TV.</p><p>This isn&#39;t the case with structs as they are value types meaning that each time you copy a struct. A unique place in memory is allocated for it along with its values. as you can see below.</p><pre><strong>struct</strong> Animal {</pre><pre><strong>  let</strong> legs: Int</pre><pre><strong>  let</strong> hasFur: Bool</pre><pre><strong>  let</strong> type: String</pre><pre>}</pre><pre><strong>let</strong> sparky = Animal(legs: 4, hasFur: <strong>true</strong>, type: &quot;Dog&quot;)</pre><pre>print(sparky)</pre><pre>// prints Animal(legs: 4, hasFur: true, type: &quot;Dog&quot;)</pre><p>3. <strong>Deinitialization</strong> : classes can be deinitialized, and therefore a method can run whenever a class is taken out of memory. for example a deinit method can run when a class is removed from memory something a struct cannot do. Struct don’t have this functionality.</p><p>let us take a look at an example of deinitialization: In this example “bye, See you later” will print to the console.</p><pre><strong>class</strong> TV {</pre><pre><strong>   enum</strong> Size {</pre><pre><strong>     case</strong> small</pre><pre><strong>     case</strong> medium</pre><pre><strong>     case</strong> large</pre><pre>   }</pre><pre><strong>   enum</strong> Brand {</pre><pre><strong>     case</strong> Sony</pre><pre><strong>     case</strong> Samsung</pre><pre><strong>     case</strong> LG</pre><pre><strong>     case</strong> Vizio</pre><pre>   }</pre><pre><strong>   var</strong> brand:Brand?</pre><pre><strong>   var</strong> size: Size</pre><pre><strong>   var</strong> isHD: Bool</pre><pre><strong>   init</strong>(brand:Brand?, size:Size, isHD:Bool) {</pre><pre><strong>     self</strong>.brand = brand</pre><pre><strong>     self</strong>.size = size</pre><pre><strong>     self</strong>.isHD = isHD<br>   }</pre><pre><strong>   deinit</strong> {</pre><pre>     print(&quot;bye, see you later&quot;)</pre><pre>  }</pre><pre>}</pre><p><strong>In Summary:</strong></p><p>Structs and Classes are very similar to each-other, but there are differences. The main differences being <strong><em>Inheritance</em></strong>, <strong><em>Initialization</em></strong>, <strong><em>Deinitialization</em></strong> and how they are copied.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=211a64550865" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[if let vs guard let]]></title>
            <link>https://c-edward-freeman.medium.com/if-let-vs-guard-let-287ab09d39ee?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/287ab09d39ee</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Tue, 21 Jan 2020 01:35:35 GMT</pubDate>
            <atom:updated>2020-01-21T01:35:35.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5kYMlI9NJ2i1ZmzR706CQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kelli_mcclintock?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kelli McClintock</a> on <a href="https://unsplash.com/s/photos/box?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>If your coding journey started anything like mine, you had no idea what if let or guard let was! After reading through resources and putting both into practice I still didn&#39;t really understand the difference. So, I’m here to make that more clear for the people who can relate.</p><h4><strong>First off, what is if let or guard let?</strong></h4><p><em>if let</em> and <em>guard let </em>are simply Swift’s way of unwrapping (revealing the value of a variable or constant which can contain nil) optional values. Optionals are a binary that Swift uses to say a variable or a constant can either contain a value or be nil (the absence of a value).</p><blockquote>Think of optionals as Christmas gifts from the prankster of the family.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FHvufoN6uHb0Tm%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FHvufoN6uHb0Tm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FHvufoN6uHb0Tm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bcf7ede902780746942220e739d332b/href">https://medium.com/media/0bcf7ede902780746942220e739d332b/href</a></iframe><p>Think of optionals as Christmas gifts from the prankster of the family. Looking at the gift you have no idea whats inside. Based on prior experience you know there may be something inside the box, but it also may be empty. You know both outcomes are equally possible but you just have to know what is inside. You take the plunge, tear open the wrapping paper, rip off the lid of the box and find… <strong>NOTHING</strong>. In this real life scenario you may be hit with disappointment or maybe even relief, no biggie. However, in Swift code this will cause your entire application to <strong>Crash</strong>!</p><p>Swift is a <em>type safe</em> language meaning, it doesn&#39;t want this to happen to you. This is why Swift has provided us with <em>if let</em> and <em>guard let, </em>to<em> </em>keep you and your application safe. In short these are tools to help you safely unwrap optional values and use those values in your application.</p><p>Lets take a look at <em>if let</em> first and see what it looks like in code:</p><pre>var name: String?</pre><pre>name = &quot;Goku&quot;</pre><pre>if let zFighter = name {<br>  print(&quot;\(name) is the strongest Z fighter!&quot;)<br>}</pre><pre>// the code above will print out &quot;Goku is the strongest Z fighter!&quot;</pre><p>The code above shows a scenario where an optional actually has a value. When an optional has a value the code in the brackets will be run. Keep in mind I said: the code inside the brackets will run. <strong><em>We’ll come back to this point later on.</em></strong></p><p>Let us look at a case where we do not assign the string “Goku” to the variable name.</p><pre>var name: String?</pre><pre>if let zFighter = name {<br>  print(&quot;\(name) is the strongest Z fighter!&quot;)<br>}</pre><pre>// the code above will not run at all . </pre><p>In this case, the code wont run at all. This can be confusing when running your code in a real life scenario because you have no indicator that the code didn&#39;t run. A better way to show this is to implement an else scenario, for the case when a value contains <strong>nil</strong>.</p><pre>var name: String?</pre><pre>if let zFighter = name {<br>  print(&quot;\(name) is the strongest Z fighter!&quot;)<br>} else {<br>print(&quot;name is nil!&quot;)<br>}</pre><pre>// the code above will print &quot;name is nil&quot;</pre><p>Now, remember how I emphasized the fact that code will execute <strong>INSIDE</strong> the brackets when unwrapping an optional contains a value. This is an important <em>if let</em> feature to remember. the constant that is used in the if statement only exists inside the brackets. outside the brackets it’s a non-factor and the Swift compiler will not know what you’re talking about if you try to use it.</p><pre>var name: String?</pre><pre>name = &quot;Gohan&quot;</pre><pre>if let zFighter = name {<br>  print(&quot;\(name) is the strongest Z fighter!&quot;)<br>} else {<br>print(&quot;name is nil!&quot;)<br>}</pre><pre>print(&quot;\(name) isn&#39;t being treated right in Dragon Ball Super&quot;)</pre><pre>//  the 3rd print statement will trigger an error.</pre><h4><strong>NEXT UP g<em>uard let</em></strong></h4><p><em>guard let</em> is very similar to <em>if let</em> except that this function is to be used within a function. <em>guard let</em> unwraps optionals that contain a value, if the optional does not contain a value then the guard statement requires you to abort mission and exit out of the function.</p><p>The <em>if guard</em> statement acts as a protector. Nil is the enemy of <em>if guard </em>statements. If nil is detected, it retreats (aka gets out of dodge or in this case out of the function). Unlike the <em>if let</em> statement, if the unwrapped optional contains a value you’re free to use throughout the rest of your function.</p><pre>var isVillian: Bool?</pre><pre>isVillain = true</pre><pre>func heroOrVillian(name: String) {<br>  guard let notVillian = isVillian else { return }</pre><pre>  if notVillian {<br>     print(&quot;\(name) is a super hero&quot;)<br>  } else {<br>    print(&quot;\(name) is a super villian&quot;)<br> }</pre><pre>heroOrVillian(name: &quot;spiderman&quot;)</pre><h4><strong>In Summary</strong></h4><ul><li><em>if let </em>and<em> guard let</em> are tools provided to us to safely unwrap optionals without crashing our entire application.</li><li>optionals unwrapped using <em>if let</em> only exist within the curly brackets after the <em>if let </em>statement.</li><li><em>guard lets</em> are used inside functions and require you to exit the function if the unwrapped value returns nil.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=287ab09d39ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Goals For inner City youth.]]></title>
            <link>https://c-edward-freeman.medium.com/new-goals-for-inner-city-youth-2a79275b6ad9?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a79275b6ad9</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[kids-and-tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Fri, 21 Jun 2019 20:03:09 GMT</pubDate>
            <atom:updated>2019-06-21T20:03:09.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Wdg_qEaMuNLwLlOEfNnE9A.jpeg" /><figcaption>inner City Youth</figcaption></figure><p>Before i dive into the content for this blog. i just want to give you guys some background about me. I’m a Bostonian , born and breed. i particularly take pride in being from the Roxbury neighborhood of Boston. if Roxbury sounds familiar to you, its because its home to Malcolm X and the the group New Edition. My point in stating this is that Roxbury is a primarily black , low-income community, and i wanted to dive into the goals and mindsets that many young people there and other similar neighborhoods across the country have.</p><p>The story of my youth is the story of 2 worlds. My parents never wanted me to attend BPS(Boston Public Schools)- so as soon as they METRO had an opening i was off. this is where being into two worlds come into play. my classmates at the school i attended were completely different from my neighborhood friends. of course they loved sports and entertainment just like any other kid would , but they also had other professions to reference. for example one of my friends early on wanted to be a dentist. you may be thinking a kid wanting to be a dentist. what the heck, how did a dentist surpass the likes of being an astronaut , or a NBA player or a professional gamer. but the reason this was his goal was that his parents were both dentist. this was his reference point. This isn&#39;t usually the case for inner-city kids who parents are likely to be in low-wage jobs. Because of this. in my opinion , is why inner city kids aspire to obtain these grand jobs such as rappers, singers, or to be professional athletes. The fact that they see ppl who look like them as well as came from a similar background make it in this careers,Appeals to them. They then gear their entire life on what is essentially a gamble to obtain one the these coveted positions in society. Now, that being said, there is nothin wrong on making a gamble for your dreams, but i firmly believe in not putting all your eggs in one basket, maybe that the finance professional in me , but it is what it is. i believe in having a fallback plan for , so in the case where your not able to obtain your goal you&#39;ll have something soft to land on.</p><p>Now let me throw some stats in your face. so i can put the likelihood of an individual becoming a professional Athlete is is not so great. Take a look a the graphic below to see the odds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*sWTYEWvcEaQAwsMiUPaTag.png" /></figure><p>As you can see.</p><blockquote><em>The odds are not in your favor.</em></blockquote><p>As informative as this graphic is. it still doesn&#39;t account for those who make it professionally, but have a career ending injury or just happen to get cut from the team. Any one who has watched ESPN’s 30–30 would know that millions of dollars in a first contract doesn&#39;t equal forever.</p><p>Now, the point of this article isn&#39;t to stop you from your pursuing your dream. No, follow your passions, but be realistic about it and always have a backup plan in case things don’t pan out the way you dreamed. you still want to live a fulfilling life.</p><p>Why i think a career in Tech- specifically the Software development role can be a soft landing for some who fall short of their dream</p><p>Enter the the tech industry. A booming thriving industry. Now let’s take a look at our second infographic.</p><ol><li>Booming industry- Companies need developers</li></ol><p>Every Single company needs developers. As the world becomes more Technical and connected, companies are needing people to help keep pace. Obtaining Dev skills is highly demanded and finding a job will be a cake walk once you get your feet wet working professionally.</p><p>2 . Great Pay</p><p>The Average Salary for Software developers is about $80K. Sometimes higher in regions where the cost of living is higher. Top Devs can earn $120K+.The numbers here really speak for themselves.</p><p>3. Career Flexibility</p><p>With Dev positions most companies are flexibility on how, when and where you work. This means there are plenty opportunities for remote work. If you’re the type of person who doesn&#39;t want to work for the “man”, then you can pursue freelancing or even pursue entrepreneurship and try launching your own company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*vWqATBLGT_inGTG9hVGWXA.jpeg" /><figcaption>accurate representation of remote work… haha</figcaption></figure><blockquote><strong>“When i think of remote work i think of being on an island beach, laptop on my lap and margarita in my hand”</strong></blockquote><p>All in All, i just wanted to highlight how tech, can be what more kids especially coming from inner city neighborhoods can aspire too. and how obtaining valuable tech skills can provide for them, not only on an individual level , but also for the community which they are apart of.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a79275b6ad9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s in My Bag ( Aspiring software developer edition)]]></title>
            <link>https://c-edward-freeman.medium.com/whats-in-my-bag-aspiring-software-developer-edition-49620a8dc0c6?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/49620a8dc0c6</guid>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Wed, 27 Mar 2019 03:46:39 GMT</pubDate>
            <atom:updated>2019-03-27T03:46:39.715Z</atom:updated>
            <content:encoded><![CDATA[<p>I was recently inspired by a CNET article titled -“ what’s in my bag”. The article detailed the contents of their graphic designer’s bag. So, I thought I’d do the same and write a blog post about what’s in MY bag. I’m no graphic designer so here’s the backpack perspective of a aspiring software developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*DGqm_-MFdCh96Okm0Cmkmg.jpeg" /></figure><ol><li>Puma Bag</li></ol><p>(https://us.puma.com)</p><p>$50.00 USD</p><p>This item is of critical importance as it houses everything else. I went with a simple PUMA backpack and I love this bag. Its not too big, seeming bulky, but also not too small where it can’t comfortably fit all my tech and knickknacks. This bag is the traditional backpack style (over both shoulders). I chose this because I feel like this style is more functional, especially when you have all your gear packed. Its nice to have all that weight distributed equally on your shoulders. I do think that the messenger bag has a classier, more sophisticated look and I switch on occasion, But back to this bag.</p><p>Inside there are two laptop compartments which I use to house my main driver (Surface Pro 4) and my iPad. Besides a standard front pocket which I use to place my peripherals its also has a compartment on the top side of the bag which I like to hold smaller items, such as a pair or apple air pods or other thinner cables I may have. Lastly, the standard 2 container holders on the sides. I never use both but its always a nice to have the option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*K91OKjzrc4nkq0bhlp8pYA.jpeg" /></figure><p>2. Microsoft Windows Surface (And Pen)</p><p>Next my Surface pro 4, my pride and joy. I get a lot flack for this, since most of my friends are heavily brainwashed in the apple Eco-system, but I must say that I love my surface. I have had no complaints with it. Its does everything I need it to. The windows productivity suite is a given but the real selling point is the versatility from laptop to tablet. This coupled with the detachable keyboard cover is n my opinion, what make the Surface Pro a winning combo. Having the pen, adds additional note functionally as well as some doodle opportunities for when I’m on the train commuting to and from work or when I wanna unleash the dormant artist inside me. This also comes in handy for some good ole wire-framing for my web developers out there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*4TA44lEau9XTbqIi0kyATQ.jpeg" /></figure><p>3. New iPad Pro 2018 64GB(With Pencil)</p><p>(https://www.apple.com)</p><p>The iPad is my favorite device made by apple. While I use my Surface for most of the functionality I would use my iPad for I still find use for it. I mainly use the iPad’s as an e-reader (I love my menga and comics!) and to watch Netflix when I’m going on long trips. Don’t get it twisted, I still love the iPad tho. Its just a harder sell for me since I have a Surface. I will say, I do enjoy drawing with the new apple pencil much more than I do with the surface, another main reason I got the iPad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H1fW-AWe-HdHuLCDaYFDrQ.jpeg" /></figure><p>4. Javascript FlashCard</p><p>(<a href="https://flashcardsjs.com/">https://flashcardsjs.com</a>)</p><p>$86.00 USD</p><p>This item clearly identifies me as an aspiring developer (not to plug myself buttttt…I’m currently looking for developer opportunities). I purchased the Ultimate deck, 162 cards that are broken up into 3 decks: essential, expert and advanced. I’m currently on the essential deck and I’ve been loving these cards so far.</p><p>Of course I could buy flashcards from office depot and make my own, but the beauty of it is these cards are pre-made. That’s not just me being lazy, they are carefully curated by senior developers. They are questions and topics that top companies are asking. Some cards even have code snippets on them, which would be quite hard for me to do if I made them myself. I highly recommend these to any aspiring developer, especially those constantly on the go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WA-wvT4fJiupofsVgJHXzw.jpeg" /></figure><p>5. Battery Bank</p><p>(<a href="https://www.mycharge.com/">https://www.mycharge.com</a>)</p><p>$79.99 USD</p><p>Not much to say here-. This is just essential when your on IG’, twitter and just generally wasting battery on your phone. You can always use some additional juice and don’t want to be glue to a stationary outlet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*XFMx9RxtOnTFdppTN5-N-g.jpeg" /></figure><p>6. Water Container (Camel Bak)</p><p>(https://www.camelbak.com)</p><p>$15.00 USD</p><p>This mug keeps all beverage cold for HOURS!!, However, for me it’s mostly sparkling flavored water courtesy of Poland Springs. Any mug of this type will do the job though. Don’t be thirsty, stay hydrated folks!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*zyiYtkVbYU7ShNaCrMTb7A.jpeg" /></figure><p>7. Limited Edition Bose Quiet Comfort 35 Wireless Headphones II</p><p>(<a href="https://www.bose.com/">https://www.bose.com</a>)</p><p>$349.95 USD</p><p>I’ve recently purchased these and can honestly say they are a very good investment. Before my daily driver as far as headphones went was the standard apple earphones, not the air pods, the one with the cord! Don’t get me wrong, apple earphones work just as good as any other my only complaint is how silly I look always trying to de-tangle them. I’m not a audiophile by any means but I can recognize bass when I hear it! If i’m honest, I got these mainly because they were a Christmas gift. Gift or not, now that I have them I can never go back. Not only do the Bose headphones look cool and swagged out, but they are functional as well. The noise canceling feature is what I’m talking about and it sure does work as advertised. Blocking out the outside world allows me to focus 100% into my work. It also gives me the change to notice things about music I listen to on a regular basis that I never noticed before. It’s that good. And that bass is there believe it!</p><p>When I’m developing time fly&#39;s because these headphones get me in the zone. I’m much more efficient. Same goes for when I’m in the gym. These headphones literally are responsible for me getting in those extra reps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49620a8dc0c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first couple of weeks at my coding boot camp.]]></title>
            <link>https://c-edward-freeman.medium.com/my-first-couple-of-weeks-at-my-coding-boot-camp-48caf278b670?source=rss-26cd62bed2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/48caf278b670</guid>
            <category><![CDATA[developm]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[bootcamp]]></category>
            <dc:creator><![CDATA[Clyde Freeman]]></dc:creator>
            <pubDate>Sun, 22 Jul 2018 03:49:22 GMT</pubDate>
            <atom:updated>2018-07-22T03:49:22.624Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*8dZHwEDrXZNoTobjQ-l2Rg.jpeg" /></figure><p>If you read my precious articles about boot camp’s then you know at first I was skeptical of them in general. I felt this way mainly because of the initial cost to attend one (most cost up to 10k) as well as the expedited timeline (often 15 weeks). It didn’t seem that their promise to teach you everything you need to learn to land that first tech job could possibly be true.</p><p>Now after 2 weeks my opinion has changed. Especially in regards to the specific boot-camp that I attend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*i6nKpkHKcMmjxvBhck1PoQ.png" /><figcaption>codesquad logo</figcaption></figure><p>I viewed coding boot-camps with the wrong mindset. I thought that learning started and stopped at the boot-camp, that’s the wrong lens. In grade school does the learning stop after the bell rings? For you slackers who probably answered “YES!” the correct answer is NO (and believe me I had that mind-set all through high school haha). You still have to do homework and study. These are both activities done outside of the building you call school (in case the word HOMEWORK wasn’t hint enough).</p><p>The boot-camp is there to provide structure and that traditional classroom setup we’ve known since grade school. Sad to say, but most us need that structure imposed on us to actually do something. Free-will can be a dangerous thing. Especially in this world of Netflix and YouTube. Don’t know about you guys, but I could lose a couple of hours watching anime reaction videos on YouTube and not even notice it. Besides that, it provides a solidified timeline to having at least a basic grasp of the topic before moving on. Boot-camps do a great job of introducing topics in a tangible way. Code Squad brings in guest teachers from the industry to teach a class almost every week. To date we’ve had two engineers from GitHub teaching and helping with any problems we may have via slack. The boot camp gives us the nail and it’s our job to hammer it in.</p><p>On top of that, boot-camps immerse you in a diversity of thought. In my 15 person cohort, there’s a guy with a MBA, a couple of people who majored in the arts and music, a person who is very involved in the LGBT community and even someone with a political background. You may ask “why does this matter?” all these people have no coding background and that’s the point, diversity. Being in a diverse learning environment is always a plus. Whenever we come across a problem in class one of these people may approach it with a new point of view that may make others understand it better or may solidify someone’s knowledge who already understands the material. Its just great to see people coming at problems in different ways from my own, opening my eyes to other options when I get stumped.</p><p>Being surrounded with like minded people from all-different demographics and walks of life just showcases how powerful code is and how tech is the future. My cohort in this boot-camp is becoming my tech family and I look forward to seeing us all reach our goal of becoming developers. Cheesy, but you get the point.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48caf278b670" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>