<?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 Blair Carroll on Medium]]></title>
        <description><![CDATA[Stories by Blair Carroll on Medium]]></description>
        <link>https://medium.com/@blairacarroll?source=rss-fc1d3331ef9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FbxQssW92OdoCrrmC7r6iQ.jpeg</url>
            <title>Stories by Blair Carroll on Medium</title>
            <link>https://medium.com/@blairacarroll?source=rss-fc1d3331ef9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:25:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@blairacarroll/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[Human Computer Interaction… yea I find my computer sexy too]]></title>
            <link>https://medium.com/@blairacarroll/human-computer-interaction-yea-i-find-my-computer-sexy-too-c741c95c9e0b?source=rss-fc1d3331ef9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c741c95c9e0b</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Blair Carroll]]></dc:creator>
            <pubDate>Thu, 21 Feb 2019 18:15:33 GMT</pubDate>
            <atom:updated>2019-02-21T18:15:33.704Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MpH2cHqf3Cns77_UQdzxZQ.jpeg" /></figure><p>There are more important variables to take into account than coming up with just the fastest processor or the newest cloud storage. All of these wonderful technologies are somewhat meaningless if the people using it can’t understand it or have difficulty trying to use it. Products and companies will dwindle down and become obsolete because we will not want to buy their product or use their applications. Human computer interaction should always be half of the focus. Technology should be simple, useable, and readily accessible. I think apple in comparison to other tech companies is a wonderful example.</p><h3>Apple</h3><p>After reading Steve Jobs by Walter Isaacson I know Steve Jobs knew this. He was truly into making great products and what he knew the people would like. There was a sense of over-control, however he was right a majority of the time. There is a quote in the book by Henry Ford that said, “If I asked the people what they want, they would have probably said a faster horse”. The users and ones who purchase the new air-pods or macbook pro usually don’t know what they want until they get it. Many companies spend a lot of money into researching this stuff but apple just seemed to have a knack for knowing these things. I don’t want to sound biased or like I’m pushing Apple on my readers, but I just think they got it right and still do. In my eyes their drive for imagination and inspiration to create great products is why so many people love the products. Money should not be the goal. It should however go into funding for more great products.</p><p>Websites all the way to the hardware and mousepad should be people friendly and inviting. I think an original goal was for the relationship to resemble as much as a human to human relationship as possible. I can’t speak for everybody when I say that I like the simplicity and sleekness of apple products. For most websites, the most important and easiest things to get to are at the top navigation bar or on the sides. Obviously different people form different opinions. That is where UX and UI comes into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*qQXHb0uk7bBvIbqUWq3udw.png" /></figure><h3>UI and UX</h3><p>At the basic level human computer interaction is the study of how people interact with computers and how computers are developed for smooth interaction for people. UX is all about the user experience. People that work in this field strive to create products that are meaningful and enticing to the users while UI is slightly different. The primary focus for UI development is for user interface. I know what you’re thinking… actually I don’t. You could be thinking about an alien podcast or what is the real difference between UX and UI. One main takeaway is that user interface deals more with the looks like the and display like the frontend. User experience is more like the backend; it is more on information architecture side and how it works. IA or information architecture is the science and art of classifying websites and structuring shared information.</p><p>I would like to refer to the biography about Steve Jobs again, I hope that is fine. There were countless things in the book that stood out however, there was one relevant story where an Apple employee was in Columbia and a random kid was coming up to him and was amazed by the brand new iPad that the guy had. So he ends up letting the boy play with the iPad for a moment and he is just flowing with it seamlessly. That is how technology should be. It should be simple to use to where your grandfather could be able to navigate through it.</p><p>When I’m talking with a few of my friends, they tell me about how their two year old child can go through and use youtube and their iPhones and iPads. It is truly amazing how far technology has come in the past two decades and there is still much more room to grow. From augmented reality, biometric authentication, and voice recognition, we are still trying to find ways to improve the connection and like-ability with people and technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*iREGi4J2FcG6uU-RG9To6g.png" /></figure><p>As in the picture above there are still many other areas I have yet to touch on. The psychology side is only major. The design, highly important but what about ubiquitous computing? The sociological aspects? The cognitive science behind it. What do people think about e-learning? Is this used? Is it reliable?</p><p>Again with my two cents… but I think there should always be limits to things in most cases. Personally, I would not like to see the integration between humans and computers to the point where we are inserting computer chips inside our body for anything other than pure necessity.</p><h3>Artificial Intelligence</h3><h4>IBM</h4><p>Recently I just watched a debate with IBM’s project debater vs Harish Natarajan, a national debate champion and world debate finalist. Even though Harish Natarajan beat her… yes IBM established project debater is female… that is not the biggest takeaway. IBM still accomplished greatness and made a huge leap with AI. Again this is a WORLD debate finalist, not Johnny down the street. And even though the crown voted in favor of Harish, it is still subjective. Here is the link if anybody is curious <a href="https://www.research.ibm.com/artificial-intelligence/project-debater/">https://www.research.ibm.com/artificial-intelligence/project-debater/</a> .</p><p>What I took from the debate outside of the outcome was the intellectual and fast paced responses from project debater. Even though I am a developer, I would really like to see the code and all the steps of how this machine came to be. The interaction between the two was highly impressive. I could only have a conversation like that if I go to the Tesla’s coffee room. She was arguing, has nice rebuttals, and overall was just remarkable.</p><h3>Finnnn</h3><p>Personally I try to use my phone and other useful technological tools much less than I used to. I’m the guy telling you to get out more and limit your screen time even though I’m on my computer all day and night. This is probably all just one big lifecycle loop however. The faster, easier, and more cunning technology becomes, the more it will become implemented into our lives and society. It is pretty inevitable at this point that our devices are going to become more of an extension for us, because computers and technology will continue to improve and make out lives easier.</p><p>Wonderful resources:</p><ul><li><a href="https://searchsoftwarequality.techtarget.com/definition/HCI-human-computer-interaction">What is HCI (human-computer interaction)? - Definition from WhatIs.com</a></li><li><a href="https://www.techopedia.com/definition/3639/human-computer-interaction-hci">What is Human-Computer Interaction (HCI)? - Definition from Techopedia</a></li><li><a href="https://careerfoundry.com/en/blog/ui-design/the-future-of-human-computer-interaction-whats-next/">What&#39;s The Future Of Human-Computer Interaction (HCI)?</a></li><li><a href="https://www.interaction-design.org/literature/topics/human-computer-interaction">What is Human-Computer Interaction (HCI)?</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FKtvwustmEDI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKtvwustmEDI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FKtvwustmEDI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fb80463964bcb5930d924c3348aae28/href">https://medium.com/media/1fb80463964bcb5930d924c3348aae28/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fm1zk4r6NWBc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dm1zk4r6NWBc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fm1zk4r6NWBc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/12d208af79ca36509b56c498125d04bc/href">https://medium.com/media/12d208af79ca36509b56c498125d04bc/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c741c95c9e0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I built a blockchain over the weekend]]></title>
            <link>https://medium.com/@blairacarroll/i-built-a-blockchain-over-the-weekend-6ded0aa29d85?source=rss-fc1d3331ef9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ded0aa29d85</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Blair Carroll]]></dc:creator>
            <pubDate>Thu, 07 Feb 2019 18:13:12 GMT</pubDate>
            <atom:updated>2019-02-07T18:42:26.982Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*roLhc7cg9ZkJBUQk47Sq2w.jpeg" /></figure><p>I’m like a baby seeing a set of jingling keys. I am easily intrigued and curious about every single key on the ring. In particular to this blog, I would like to talk about my interests in blockchain technology and cryptocurrency. However, I was not on the early side of this. It wasn’t until watching the movie <strong><em>dope</em></strong> in 2015, which really made it interesting. Later on down the line I invested in some of the cryptocurrency’s. Following getting into coding, I really became keen on how it actually works. I made an account on blockgeeks and read a lot about it. Thus I sat down one weekend I read and watched some tutorials on how to build your own blockchain, and this is my experience.</p><p>I had a really fun time building a blockchain in javascript which I’m still trying to get a better grasp of… I was referring to the javascript, but it could also apply to the blockchain aspect as well lol.</p><h4>What is blockchain and cryptocurrency</h4><p>Well first things first. A distributed ledger is largely a decentralized database. Transactions are sprawled out across the entire world through multiple sites and publicly and openly. One reason it is so hard to hack. A blockchain, well the entire definition… is just… the name. Not really, however it is a chain of blocks. The most common definition is that blockchain is a distributed, decentralized public ledger. These blocks carry information about transactions and highly sensitive encrypted data. So these blocks need to be trusted. The way to do that is to have it added on to another block and have matching keys for it. If the blocks can verify that the blockchain is true and correct, then it can continue on down the line. So this is like one big trust fall among strangers in a sense. That is part of the reason why it is pretty risky. Not just the investing aspect. However if you encounter any problems you can take it up with the bitcoin CEO Satoshi Nakamoto… I’m just kidding. Bitcoin is not a company. Satoshi Nakamoto is not the owner. If you forget you private key, lose your money, or something you’re unhappy with there is not much you can do about it. Hence it is peer-to-peer, decentralized. Satoshi Nakamoto is just the pet name for the person of the people that started it. The blockchain is what bitcoin and other altcoins run on. Altcoins are just alternative coins to Bitcoin. A cryptocurrency is just a digital asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jD87AR0MFtI05dIX7FSA4Q.jpeg" /></figure><h4><strong>What I learned</strong></h4><p>Over the course of building out the blockchain I gained a better understanding of how complex it really is getting up under the hood of it. There is just so much to it and realizing how difficult it is to try and hack into it… and that it would be pretty pointless to in regards of computing power to try and guess somebody’s key. You would most likely pay more in your electric bill than you’d potentially steal… unless you had a quantum computer. Reading up on the definitions and searching how it works, is much different than building it out yourself and getting a better understanding. I definitely recommend anybody who is serious or even more curious about blockchain and cryptocurrencies to build out there own. That the fundamental idea behind coding in general though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*odMEVNPM4BgTGoRgWbf6eQ.jpeg" /></figure><h4>What I would still like to do:</h4><p>Go look into the gems and libraries that I downloaded and see how they convert and actually generate the keys. Also I would like to build this out in ruby and compare it.</p><p>If you would like to see the code that I walked through on the tutorial here it is:</p><p><a href="https://github.com/bcarrol2/jsblockchain">https://github.com/bcarrol2/jsblockchain</a></p><p>Awesome resources:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzVqczFZr124%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzVqczFZr124&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzVqczFZr124%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d2ba112d2ac1963a5d17c70faaa5ada/href">https://medium.com/media/9d2ba112d2ac1963a5d17c70faaa5ada/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHneatE69814%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHneatE69814&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHneatE69814%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1cb92e42ab3817a3c8879ec82896f551/href">https://medium.com/media/1cb92e42ab3817a3c8879ec82896f551/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfRV6cGXVQ4I%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfRV6cGXVQ4I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfRV6cGXVQ4I%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e4388a23aed73e6120d019f611a1c88/href">https://medium.com/media/4e4388a23aed73e6120d019f611a1c88/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FkWQ84S13-hw%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkWQ84S13-hw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FkWQ84S13-hw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/461cd61c9574e7e711d6f9860e0eb575/href">https://medium.com/media/461cd61c9574e7e711d6f9860e0eb575/href</a></iframe><ul><li><a href="https://www.investopedia.com/terms/b/blockchain.asp">Blockchain Facts: What Is It, How It Works, and How It Can Be Used</a></li><li><a href="https://www.investopedia.com/terms/d/distributed-ledgers.asp">Distributed Ledgers</a></li><li><a href="https://blockgeeks.com/guides/what-is-cryptocurrency/">What is Cryptocurrency? [Everything You Need To Know!]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ded0aa29d85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum computing for programmers in a hurry]]></title>
            <link>https://medium.com/@blairacarroll/quantum-computing-for-programmers-in-a-hurry-d52b7da550d5?source=rss-fc1d3331ef9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d52b7da550d5</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Blair Carroll]]></dc:creator>
            <pubDate>Thu, 24 Jan 2019 18:35:51 GMT</pubDate>
            <atom:updated>2019-01-24T22:57:02.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yR_Jef0m0U-ZiBNnwxU4Wg.jpeg" /></figure><p>This is like an intro…to the intro of the quantum world. We will journey through quantum computing, quantum entanglement and other theories and ideas. In my last blog on here, we took a little dive into the world of binary(0 and 1). Lets briefly recap. Eight bits make up one byte. A binary digit or a bit is the smallest measurable unit on a computer. You can think of this as true or false, on or off, etc. Controlled electricity passes through a cable and simply we would like to cut this flow off with transistors or leave the channel open to represent something. Long story short, this is pretty much how computers work.</p><p>However, the quantum world is like the twin sister but with different personalities… in a way. In quantum mechanics, quantum by itself is the least amount of one physical thing in any interaction. A qubit or just qbit, short for quantum bit which is the basic unit of quantum information. A regular computer goes through the option of something being either zero or one. Quantum computers are both zero and one at the same time until the outcome is determined. This is a physics phenomenon known as superposition. A great analogy is like a spinning coin. While the coin is spinning, it is neither heads nor tails, but can be either or at that time. With this being said, quantum computers want to keep the possibility open as long as possible. Which can be thought of as state space or euclidean space. Now you would not want it to spin forever like a spinning top in inception. This makes it possible to perform outcomes and factoring huge numbers substantially faster than the fastest supercomputer. Computers have a difficult time doing this.</p><p>One fact about molecules and atoms is that, the lower the temperature the better. We need to keep quantum computers very cold so that the qubits will move around less and to keep them more stable. Qbits could be made from whatever is easier to control if it is a proton, electron, atom, or something else of that nature.</p><p>Quantum entanglement is next on this list. If you understand this topic… then you’re the first person ever in the world. Some might refer to this as spooky at a distance, because Einstein did and it is indeed spooky at a distance. This is the phenomenon that happens when particles interact and share physical proximity where the quantum state cannot be described by itself distinguishable from others. These particles are difficult to observe and control and when you measure one’s spin, the other particle changes to the exact opposite spin instantaneously . Before you ask any questions, two things about this… the particles can be placed at an insane distance from each other and the other particle will always be the opposite. Second, that means it defies the theory of relativity… which is why Einstein did not like this and described it as being “spooky at a distance”. Particles however do not actually have a spin, but they do have matter and angular momentum. Early thoughts about these particles was that the direction of the spin was determined from the moment it was created, however that doesn’t seem likely. You can measure the spin of a particle, but you have to decide on the direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*W3dLh9tbQT8-A86ot8DLCA.png" /></figure><p>Even though quantum computers are still a few years away and are truly the future of computers, we as developers and software engineers should be at the forefront of this. Many companies and schools have invested large sums of money and time into this concept. Google has developed a 72 qubit quantum computer. Compared to what they want out of quantum computers, that is not nearly enough. They need to have much more qubits, but that will require large amounts of energy. Quality or quantity? Trick question. Both.</p><p>Computes continue to get thinner and use smaller parts and chips, where we will eventually get down to the quantum level. With all of this being said, we are programmers. This will require all new algorithms, programs, etc. If these computers are the future, who is going to write the programs for these powerful machines? We are… maybe.</p><p>There are certainly benefits of the future of quantum computing, but where there is good… there is sure to be bad. This concept is subjective and can be interpreted in anyway. Personally, I’m not necessarily the biggest fan of it and artificial intelligence but that is neither here nor there... except when we are talking about quantum physics lol.</p><p>I hope you learned and or enjoyed all or parts of this reading. Maybe next time you’re standing at the water-cooler at work, or who knows maybe you come across a scientist at NASA, you can talk a little bit about quantum entanglement. Come back for my follow up blog where I will hopefully build a simple quantum computing program. Take care.</p><p>PS. if you were wondering, yes my blog title was a bite off of ‘Astrophysics for people in a hurry’ by Neil deGrasse Tyson, which I really enjoyed reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*r6x3FMJsmzHERDn54cdYXQ.jpeg" /></figure><p>Wonderful resources:</p><ul><li><a href="https://uwaterloo.ca/institute-for-quantum-computing/quantum-computing-101">Quantum computing 101 | Institute for Quantum Computing</a></li><li><a href="https://www.scientificamerican.com/article/how-close-are-we-really-to-building-a-quantum-computer/">How Close Are We--Really--to Building a Quantum Computer?</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZuvK-od647c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZuvK-od647c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZuvK-od647c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a035a4bc19f422d577d5dd24a685d7f1/href">https://medium.com/media/a035a4bc19f422d577d5dd24a685d7f1/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtafGL02EUOA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtafGL02EUOA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtafGL02EUOA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/08a97f9cdf99b8c25866ecfd4e64eb27/href">https://medium.com/media/08a97f9cdf99b8c25866ecfd4e64eb27/href</a></iframe><p><a href="https://www.forbes.com/sites/chadorzel/2017/02/28/how-do-you-create-quantum-entanglement/#22a09dac1732">How Do You Create Quantum Entanglement?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d52b7da550d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first dive into Binary Digits and implementing it with Ruby]]></title>
            <link>https://medium.com/@blairacarroll/my-first-dive-into-binary-digits-and-implementing-it-with-ruby-11238148a357?source=rss-fc1d3331ef9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/11238148a357</guid>
            <category><![CDATA[binary-options]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[bit]]></category>
            <dc:creator><![CDATA[Blair Carroll]]></dc:creator>
            <pubDate>Sun, 06 Jan 2019 18:33:37 GMT</pubDate>
            <atom:updated>2019-01-06T19:37:23.140Z</atom:updated>
            <content:encoded><![CDATA[<h3>A dive into Binary Digits and implementing it with Ruby</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UEPAgTiBSridGQbLWN5paA.jpeg" /></figure><p>I’ve always been pretty intrigued by seeing a bunch of 0’s and 1’s on computer screens, so I thought why not do some research on it. The decimal base 10 system or denary is already engrained in my brain, so learning about base 2(10 in the binary system) should be a breeze right?… I hope so.</p><p>The binary number system converts numbers by repeatedly dividing a decimal by 2 and it keeps track of the remainder. So if we wanted to convert decimal 7 to binary, you would do 7 / 2 get the remainder, then 3 / 2 get the remainder, and finally 1 / 2 and get the reminder and place them in reverse order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*QpFlVt_XGGD2gY_k_mPJzw.png" /></figure><p>For starters, a bit which is just short for binary digit is represented by 0 and or 1. One byte is composed of 8 bits and is the smallest addressable unit of memory for computing. A bit is also known as a single transistor. A transistor is a minute switch that represents 0 when off and 1 when it receives power and turns on. Our phones and computers have literally millions and billions of these transistors. I know what your thinking… THAT’S A BUNCH OF DARN TRANSISTORS! Well with all of the graphics we have and what these machines have to run, we need it. Our computers now can process millions of bits a second. These 0’s and 1’s represent numbers, letters, colors etc. that a computer needs in order for us to tell it what to do. Side note, hard drives story binary digits on discs rather than transistors.</p><p>Our computers encode and store everything in binary digits from letters(ex.ASCII), our audio files(ex.mp3), video files(ex.MPEG4), to pictures(ex.JPEG) which have bit depth. Upgrading from a byte to a 16bit line will give drastic more options.</p><p>A nibble is half of a byte or 4 bits(pretty funny right?). 8 bits = 1 byte, 1024 bytes = 1 kilobyte(KB), 1024 kilobytes = 1 megabyte(MB), 1024 megabytes = 1 gigabyte(GB), 1024 gigabytes = 1 terabyte(TB), 1024 terabytes = 1 petabyte(PB). If you think about a 64gb iphone, in bytes that number is actually <strong>68719476736.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*2tv81o3ErnPc_nlCYj_8kA.jpeg" /></figure><p>A hard-drive is typically measured in GB or TB. RAM is usually in MB or GB.</p><p>In many situations you might need to alter your certain bits in a byte and for that you would need to use bitwise operations. There are 6(110 in binary) main bitwise operators, which are bitwise AND, bitwise OR, bitwise exclusive XOR, bitwise Complement or NOT, bitwise Right Shift, and bitwise Left Shift. Bit masking is used to turn individual bits on or off. This only applies to integer values.</p><p>Bitwise AND &amp; needs two operands. The bits are compared to each other and when both bits are 1, the result is 1, otherwise the result is 0.</p><p>00001010 = 10 &amp;</p><p>00000111 = 7</p><p>______________</p><p>00000010 = 2</p><p>Bitwise OR | needs two operands. The bits are compared to each other and when any of the bits is 1, the result is 1.</p><p>00001010 = 10 |</p><p>00000111 = 7</p><p>______________</p><p>00001111 = 15</p><p>Bitwise XOR ^ needs two operands. The bits are compared to each other and if one of the bits is 0 and the other is 1 , the result is 1, else the result is 0. It returns 1 when the two bits are different.</p><p>00001010 = 10 ^</p><p>00000111 = 7</p><p>______________</p><p>00001101 = 13</p><p>Bitwise NOT ~ flips the bits of the operand. This results in the negative of a number with -1, for the most significant bit to show the sign of the number where 1 is negative and 0 is positive.</p><p>~00001010 = 11110101</p><p>Bitwise Right Shift &gt;&gt; needs two operands. In the first operand, the bits are shifted to the right by the number of positions identified in the second operand. 0’s are shifted to higher order bits while low order bits are shifted out completely. Shifting right is like dividing by 2.</p><p>(5)00000101&gt;&gt;2 = 00000001(1)</p><p>Bitwise Left Shift &lt;&lt; needs two operands. In the first operand, the bits are shifted to the left by the number of positions identified in the second operand. 0’s are shifted to low order bits while high order bits are shifted out completely. Shifting left is like multiplying by 2 and doubles in regards to the second operand.</p><p>(5)00000101&lt;&lt;2 = 00010100(20)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*LhrI6nZtAuB5zl54IF18XQ.jpeg" /></figure><p>The picture above helped me gain a better understanding of what is going on.</p><p>Now lets see how we can use Ruby to perform these operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*aMhwpw_mLHw1kAWldbcjhA.png" /></figure><p>Above whats going on is, if you type in ‘0b’ then they eight digit byte to a base (2) and put it to a string (to_s) it will convert it to decimal for you or perform the bitwise operation that you are telling it. You can also apply it to a decimal number such as the not operation above to 17 and see what it returns, even though negative binary is another little thing of it’s own that we won’t really get into.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*JfgE9HSi7NqTOh10ZMNNnQ.png" /></figure><p>Above, we are setting decimal 58 to a string to see it’s binary. Then we are asking what is the decimal number for the provided binary. Then I am asking what is the bit for a particular position in it’s byte. Then if you ask the bit length for any decimal number it will return the bit length of it. The max number for a byte is 255, that is why after that we get 9 when we ask for the bit length of 257.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*DpOgzQ9VeaGMD6WUmNHsIg.png" /></figure><p>In the image above .ord returns the integer ordinal for a specific character. Welcome to ASCII. Then you can find what character is associated with that number you provide if you type in .chr. When you provide a string, then set it to .bytes you will get back the bytes for each individual letter. This is pretty much the same as .codepoints. However above these match up but, lets say you have a different language like Arabic, the .codepoints would not be the same. Lastly .chars just splits the string up of each individual character into an array.</p><p>Don’t get confused about the shovel method in ruby with the bitwise shift lol.</p><p>One last thing is negative numbers in binary digits. I find it a little weird but you can represent negative numbers in a few ways. You can use the outside number on the left to make it negative by making it a 1 or positive by 0. || you could use something called two’s complement.</p><p>I enjoyed learning about bits and bytes and how they correlate with computer components. Before I dug into binary digits, I read a book a few months ago called Bitwise, a life in code by David Auerbach which was I guess my first intro to bits. Even though the book is more a a memoir about his life as a software engineer and being married to a software engineer than it is about a bunch of bits, it was a very nice read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*N9BGPc54PQt3E7b4ToCtUg.jpeg" /></figure><p>There is more to 0’s and 1’s, but this is where I’m going to end at. I hope you enjoyed &amp;| learned anything from this.</p><p>Very helpful resources and videos:</p><ol><li>Sololearn app</li></ol><ul><li><a href="https://www.calleerlandsson.com/posts/rubys-bitwise-operators/">Ruby&#39;s Bitwise Operators</a></li><li><a href="https://www.bbc.com/bitesize/guides/zwsbwmn/revision/1">BBC Bitesize - GCSE Computer Science - Introducing binary - Revision 1</a></li><li><a href="http://www.athropolis.com/popup/c-comp2.htm">COMPUTER MEMORY: Bits and Bytes</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXpk67YzOn5w%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXpk67YzOn5w&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXpk67YzOn5w%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2117150498145e9361008a17e2e29938/href">https://medium.com/media/2117150498145e9361008a17e2e29938/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNm4u3kCEKo8%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNm4u3kCEKo8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNm4u3kCEKo8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/93fb0e254031b6f68642db9185963a92/href">https://medium.com/media/93fb0e254031b6f68642db9185963a92/href</a></iframe><p><a href="https://www.calvin.edu/academic/rit/webBook/chapter5/negative.htm">Negative Binary Numbers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11238148a357" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When to use ruby case statements]]></title>
            <link>https://medium.com/@blairacarroll/when-to-use-ruby-case-statements-c0052a789ba9?source=rss-fc1d3331ef9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0052a789ba9</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Blair Carroll]]></dc:creator>
            <pubDate>Tue, 06 Nov 2018 17:40:48 GMT</pubDate>
            <atom:updated>2018-11-06T17:46:12.240Z</atom:updated>
            <content:encoded><![CDATA[<p>The biggest question I asked myself when I first learned about conditionals in programming, is when is the best time to use an if/else statement and when to use a case/when statement?</p><p>To me they both seemed to be doing the same thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*B_rnUBYST6zS0nUYFuQkYA.png" /></figure><p>However, these are computers. Logical contrivances. So these machines, as well as the creators of the programs had to have a useful and good reason to do so.</p><p>I don’t believe that one is necessarily easier to use than the other… but at certain times I suppose one could be.</p><p>If/else statements seem to go a bit deeper into detail, for the developer to go into a bit more distinct details to be able to have a broader range of possibilities. It appears to me to be catering to the the user and/ or the user’s response in a sense. Like IF you respond like this, we will execute this or it’s false.</p><p>Case/when statements seem to be a little more reader friendly and straightforward. These conditional executions seem to be more of a limitation to the user and their response. Like WHEN you give us an answer or information, it should be within these outlines, else we will want something else. In layman’s terms, you are just comparing multiples cases or scenarios to one particular value until it is true or eventually becomes false.</p><p>Below I created a simple case/when example asking for the user to create a password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlhHO6t8X0lbEEC8MZkNpA.png" /></figure><p>Here I typed in a four letter password and it printed weak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Px6IgYORWbJH4_LISqm8g.png" /></figure><p>Here, for this scenario 26 characters becomes invalid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rgMgh1XTbIuE9iWW_S3pfQ.png" /></figure><p>Here is a ten character password printing out strong to the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKj7CeJFd-tz34ay1r5W_w.png" /></figure><p>This code printed executed very strong with thirteen characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*k_kX60rbdgXT8g9t664gmQ.png" /></figure><p>Personally, I think if I were to do this with if/else statements it would have been slightly more sloppy looking when the if, elsif, and else continuing to be called on upon the variable or what’s being called on. You will see sometimes it can be refactored down, by maybe just a minute amount of words or lines of code.</p><p>You wouldn’t really use a case statement if you have just one or two lines of code trying to evaluate to true or false.</p><p>Ideally I think it is ultimately a preference. More frequently I use if/else statements more and I tend to see other the same in other’s code as well. If your if/else conditionals are many smelly lines, that don’t even make it past the first line of the, then I would consider condensing and revising to avoid bugs and or pointless filler.</p><p>“Case statements allow us to more easily control program flow. If statements should always be used to determine if a conditional is true, and case statements are for when you need to make different decisions based on a value.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*-s3E3M3gh82iEbVyRZ6-QQ.png" /></figure><p>Get it?</p><p>Sources:</p><ul><li><a href="https://www.rubyguides.com/2015/10/ruby-case/">Ruby Case Statements (Full Tutorial With Examples)</a></li><li><a href="https://learn.co/tracks/web-development-immersive-2-0-module-one/ruby/conditionals/about-ruby-case-statements">Case Statements - Learn.co</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0052a789ba9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>