<?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 Chris Benedict on Medium]]></title>
        <description><![CDATA[Stories by Chris Benedict on Medium]]></description>
        <link>https://medium.com/@chrisjbenedict?source=rss-5d64175297ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*48AWTNxHJAEPb4L5</url>
            <title>Stories by Chris Benedict on Medium</title>
            <link>https://medium.com/@chrisjbenedict?source=rss-5d64175297ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:44:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chrisjbenedict/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[All Right Stop: Collaborate and Listen]]></title>
            <link>https://medium.com/@chrisjbenedict/all-right-stop-collaborate-and-listen-254f54c6032d?source=rss-5d64175297ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/254f54c6032d</guid>
            <category><![CDATA[pair-programming]]></category>
            <category><![CDATA[bootcamp-experience]]></category>
            <dc:creator><![CDATA[Chris Benedict]]></dc:creator>
            <pubDate>Mon, 13 May 2019 03:32:43 GMT</pubDate>
            <atom:updated>2019-05-13T03:33:55.027Z</atom:updated>
            <content:encoded><![CDATA[<p>A Retrospective</p><p>I wrote the following reflection many months, many late nights, many projects, and many code challenges ago.</p><p><em>As week three comes to an end at the Flatiron School’s Immersive Web Development bootcamp, I am trying to take a minute to reflect on a few things: namely, where I was before I started this program, how I feel now that I am in the thick of it or, more accurately, wading in to what I imagine is the thick of it, and where I hope to be at the end of all this.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F5Zesu5VPNGJlm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F5Zesu5VPNGJlm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F5Zesu5VPNGJlm%2F200.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/b912d206353caa4b2b2c6e0a5d1427f8/href">https://medium.com/media/b912d206353caa4b2b2c6e0a5d1427f8/href</a></iframe><p><em>Having spent several months before starting Flatiron scouring the internet for free and cheap resources to learn as much as I could about programming, I finally felt I spent enough time with HTML, CSS, Javascript, and Ruby to dedicate the next four months, and eventually (with any luck) my career, to what I had grown to deeply appreciate. Without delving into all the details of the first couple weeks of the program, which melded orientation exercises with fast-paced programming lectures and labs, I got my first taste of pair programming, which has been popularized for a number of clear reasons. It quickly becomes evident how pair programming results in an improvement in the quality and timeliness of code, and pair programmers undoubtedly learn more when working as a duo than either would on his or her own. Predictably, this has also been my experience… for the most part.</em></p><p><em>My reflection on my most recent experience with pair programming should, by no means, be misunderstood as a slight on the practice itself, nor is it a criticism of my better half throughout this project. In fact, I have come to appreciate pair programming for all of the reasons that make it so useful, especially the collaborative aspects that define it. I am primarily writing this if only to better understand the process and dissect the result of our labor.</em></p><p><em>Under the guidelines of working with an API of our choice to extract and manipulate data in order to build a Command Line database application, my partner and I chose to work with a European Football API with a focus on the Champions League. As this would be my first interaction with an API as a baby programmer, I expected to struggle through understanding just how we would connect to the database, extract information from it, what ruby gems we would have to install, and everything else surrounding the interaction between the code I am writing and information stored somewhere far, far away.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FRFVVMJCcXXoSQ%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FRFVVMJCcXXoSQ%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FRFVVMJCcXXoSQ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/f70b8659fae7beb39dd2067371852e97/href">https://medium.com/media/f70b8659fae7beb39dd2067371852e97/href</a></iframe><p><em>However, as quickly as I could slack my partner the link to the API, he had already elegantly written api_communicator.rb, the file responsible for the interaction with the database. He structured it in such a way that when we created methods to extract various pieces of information from teams to players to games to scores, we merely needed to include an appropriate extension, thereby minimizing redundancies and maximizing efficiently. Impressed, yet? Could I have done that so quickly and so flawlessly? Absolutely, not. Could I have written the same code after researching, collaborating, failing, and refactoring. Also, probably not. But I likely would have learned a lot in the process and, eventually, I would have written something that maybe could have done a fraction of what he had accomplished before I even knew we agreed on the focus of the project.</em></p><p><em>Let me pause to reiterate that I am not, by any means, criticizing my partner. In fact, seconds ago he came to me to show a new aesthetic he added to our project and spent the time to explain how it worked and what gem he used to display it. He has been incredibly helpful and patient throughout and I hope to work with him again.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Ftoe7vOw1WPAmEDfKeZ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Ftoe7vOw1WPAmEDfKeZ%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Ftoe7vOw1WPAmEDfKeZ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="243" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6faff388add6cfa1ef88271ecca47a1/href">https://medium.com/media/e6faff388add6cfa1ef88271ecca47a1/href</a></iframe><p><em>However, given his experience and know-how, it is hard to feel like an equal contributor. Next time, I hope he can get more out of this experience than just practice collaborating with a less-experienced programmer. I suppose my main point here is that pair programming should be practiced by all, but there must also be time to struggle. For all of the benefits that come from the partnership, there must also be moments where the answer seems unattainable, until it isn’t. If you’re programming together and struggling together, all the better, but don’t forget to struggle. After all, if you understand everything you’re doing, are you learning? And if the answer is presented to you without working for it, will you understand it?</em></p><p><em>“If you’re not failing every now and again, it’s a sign you’re not doing anything very innovative.”</em></p><p><em>-W. Allen</em></p><p>Now that I have completed the bootcamp and am currently finishing up a technical challenge in a second round interview for an exciting company, it’s enlightening to not only think about how far I’ve come, but also to acknowledge that there really is no end to the learning process. At the risk of sounding like an Instagram influencer, I could not recommend enough taking the leap to learn something new, however daunting it may seem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=254f54c6032d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software testing will save your life and makes for a delicious seven layer dip]]></title>
            <link>https://medium.com/@chrisjbenedict/software-testing-will-save-your-life-and-makes-for-a-delicious-seven-layer-dip-6f7bcde74dae?source=rss-5d64175297ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f7bcde74dae</guid>
            <category><![CDATA[acceptance-testing]]></category>
            <category><![CDATA[integration-testing]]></category>
            <category><![CDATA[white-box-testing]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Chris Benedict]]></dc:creator>
            <pubDate>Fri, 03 May 2019 20:42:17 GMT</pubDate>
            <atom:updated>2019-05-07T14:52:47.970Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XEnOxdAdo511sdfx" /><figcaption>Photo by <a href="https://unsplash.com/@stanna?utm_source=medium&amp;utm_medium=referral">Filimon Ana-Maria</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Picture this: you’ve just written thousands of lines of code, you’ve gotten your application running smoothly, and you’ve fulfilled all the requirements you set out to complete. You’ve even effectively communicated what your code is doing with comments so detailed even your parents could understand them. C’est magnifique!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FAP35bRdoSqm9G%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FAP35bRdoSqm9G%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FAP35bRdoSqm9G%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="308" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a59dc9646a8e1bddd93948a1d2957c7/href">https://medium.com/media/7a59dc9646a8e1bddd93948a1d2957c7/href</a></iframe><p>Time to ship it, right? Wouldn’t that be nice? Alas, just let me crush your dreams real quick.</p><h4>The Importance of Software Testing</h4><p>Now, imagine this scenario: you’ve shipped your code and it’s being used daily by thousands, nay millions, of delighted customers. These new features you built? They love them! Just look at them froth at the mouth with excitement as they scroll, click, consume. But, wait! Something goes awry. Every time a customer accesses a file of a certain size the application freezes — only for a moment, only for long enough to be slightly annoyed. “Practically imperceptible; no one will care,” you think. “What’s that?” When a different file is accessed by more than 500 people in an hour, it breaks entirely? Is it hot in here, or is it just me? Can someone open a window? Are we trying to heat the whole neighborhood? Where did everybody go?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FLRVnPYqM8DLag%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FLRVnPYqM8DLag%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FLRVnPYqM8DLag%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="243" frameborder="0" scrolling="no"><a href="https://medium.com/media/eab3277a2f7a70ad8f02f815a0e50e21/href">https://medium.com/media/eab3277a2f7a70ad8f02f815a0e50e21/href</a></iframe><p>Gradually, your customers stop scrolling, stop clicking, stop consuming. You lose your job, your dog runs away, and your cats continue to plot your demise, only with more vigor and determination. And it all could have been prevented if only you had been proactive about preventing possible problems. Tsk, tsk, what a shame. Come back, Barkie Mark and the Fluffy Bunch. I miss you.</p><p>Relax, it was only a nightmare. You know all good software should be tested. You know how to ensure guaranteed functionality in the areas of your software that will have the biggest impact on the user. And I know you know the various kind of testing that work together to prevent total, catastrophic destruction and heartbreak. If this is the case, no need to read further. But if you want a bit of a review… take a peek. No one will know. I promise.</p><h4>Level 1: Unit/Component Testing</h4><p>Test this part, then this part, then this part, then this part, not that part, just kidding, that part too. Unit Testing is the process of validating that each individual component of the software performs as expected. As the smallest, most precise level of software testing, unit testing focuses on very few inputs and typically one output, and the tests are often created before writing any lines of program-specific code. Test, code, test, code, test until the end of time. Each program, function, method, etc must pass before components are viable to be integrated together. This process allows engineers to quickly catch any bugs at the cellular level, the smallest component of the system, before combining units into a more complex, fully-integrated composition, makes debugging quick and easy, and creates more reliable code. Usually performed by the software developers responsible for its development, unit testing makes use of a method called White-Box testing (see below). Think of it this way, if you poke each unit of your program, it’s pretty easy to see where it collapses.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F10MSCF1viNV7zy%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F10MSCF1viNV7zy%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F10MSCF1viNV7zy%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="309" frameborder="0" scrolling="no"><a href="https://medium.com/media/573a86dd31bd87650dffdf6ae06f6713/href">https://medium.com/media/573a86dd31bd87650dffdf6ae06f6713/href</a></iframe><p>As an analogy, let’s say you’re making seven layer dip for a Super Bowl Party because why not and it’s a delicious blend of metaphorically useful ingredients. You purchase the refried beans, the guacamole, the sour cream, the salsa, the cheese, the green onions, and the tomatoes. Naturally, you’re going to test each individual layer of your magnificent dip before assembling it together into a delicious treat. You need to assure the quality of the ingredients, after all. Same goes for unit testing.</p><h4>Level 2: Integration Testing</h4><p>Relationships can be hard. Working together is not always seamless. Are your zodiac signs even compatible? It doesn’t look promising. Integration testing ensures that, though each component of the system works flawlessly on its own, they will intermingle without any hiccups, too. At two levels — component integration testing and system integration testing — this process is meant to uncover the defects that result from the co-mingling of two or more units.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o7525lEFkjgXP6tXy%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o7525lEFkjgXP6tXy%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3o7525lEFkjgXP6tXy%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/79fe1c768f001e142cd51bbc86183fdb/href">https://medium.com/media/79fe1c768f001e142cd51bbc86183fdb/href</a></iframe><p>Does the cheese blend nicely with the refried beans? Do the guacamole and sour cream effectively cool down the salsa’s mouth-watering heat? Do the onions and tomatoes balance out the dish by adding some substance and texture? Does each ingredient work with the next to compose a symphony of flavors on the edge of a chip? If so, those units are integrated!</p><h4>Level 3: System Testing</h4><p>The software is integrated and ready for production. Well, once you’ve made sure you’ve met all of the requirements specified, that is. When you feel like you have, independent testers are usually involved to confirm.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FE87jjnSCANThe%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FE87jjnSCANThe%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdDUwYjc1YjN5NHpuc3c5eW5weHlqZjFjeHdiZ3JicDRlYW1lYm5ibyZlcD12MV9naWZzX2dpZklkJmN0PWc%2FE87jjnSCANThe%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="185" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c2188530a23e77ce497f8774df87a7f/href">https://medium.com/media/5c2188530a23e77ce497f8774df87a7f/href</a></iframe><p>Basically, does that seven layer dip have the correct seven layers and taste like it should? You didn’t substitute sour cream for whip cream or salsa for marinara sauce, did you? If you did, you should probably throw it in the trash, but you may be able to save your source code yet. Go refactor and come back with the correct ingredients.</p><h4>Level 4: Acceptance/User Acceptance Testing</h4><p>Is the system acceptable? Similar to System Testing, acceptance testing measures whether or not the software meets business requirements and is ready for delivery. Once the different, individual units of the system are ready to be integrated (Unit Testing), the resulting integrated product passes its own tests (Integration Testing), and satisfies requirements (System Testing), we perform acceptance testing to determine if the final composition is ready to be made available to its users. Typically, a combination of internal — Product Management, Sales, Customer Support, etc — and external testers — Customers for whom the software was built, end users, etc — will use black-box testing in this stage.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F5GbOdLJAuMjFC%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F5GbOdLJAuMjFC%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F5GbOdLJAuMjFC%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="292" frameborder="0" scrolling="no"><a href="https://medium.com/media/767438a5e63a2ddb218881e2ef11e3ab/href">https://medium.com/media/767438a5e63a2ddb218881e2ef11e3ab/href</a></iframe><p>Assuming your designated taste-tester keeps diving in to that dip, you are good to go, friend. Give the people what they want!</p><h4>Method 1: Black-Box Testing</h4><p>I put something in; I get something out. Black-box testing is mainly concerned with ensuring your inputs are producing the desired outputs, without paying too much attention to how those outputs are derived. As one of the most common testing practices, it is basically your highest level view of whether or not the application is functioning as expected. Black-box testing is great for simplifying the testing process because it can be done by non-technical users, but it lacks the precision required to identify why errors are popping up. Essentially, “I know this thing is broken, but I’m not sure why or how to fix it.” Perhaps, a great place to start but your task is far from done.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FUgM7H8OEmf4mQ%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FUgM7H8OEmf4mQ%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FUgM7H8OEmf4mQ%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/1e06496e3f4f7a8ac2cc3dd311cb0c1e/href">https://medium.com/media/1e06496e3f4f7a8ac2cc3dd311cb0c1e/href</a></iframe><h4>Method 2: White-Box Testing</h4><p>Perhaps you could have riddle out that white-box testing is a bit like the counterpart to black-box testing. It requires a deeper understanding of the underlying software in order to test for specific scenarios that the source code will handle in different ways. When you understand how the code should respond to user engagement, you can design tests that, well, test all of these interactions. If the software is designed to use specific sections of code for specific inputs, you can create tests that target each of these sections and ensure they are working properly. While a technical understanding of the software, and perhaps access to it, is required, white-box testing is more efficient at identifying which areas of the code are responsible for bugs and makes optimization that much easier. For now, I will not be getting in to Grey-Box Testing, but you can imagine it is a combination of the previous two monotones.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl0MYyOaEhppjthOzm%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0MYyOaEhppjthOzm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl0MYyOaEhppjthOzm%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/9171ec5e36675fb4cde2a4bc6a318a90/href">https://medium.com/media/9171ec5e36675fb4cde2a4bc6a318a90/href</a></iframe><p>So, while I’ve provided you with an overview of software testing, as well as an abundance of gifs, in this post, there is far more that I did not cover involving variations on the levels and methods of testing above. Keep an eye out for a more technical dive into test-driven development and how to actually implement it.</p><p>Helpful resources:</p><ul><li><a href="http://softwaretestingfundamentals.com/">Welcome to Software Testing Fundamentals (STF) ! - Software Testing Fundamentals</a></li><li><a href="https://usersnap.com/blog/software-testing-basics/">7 Common Types of Software Testing [Complete Guide + FAQ]</a></li><li><a href="https://www.geeksforgeeks.org/software-testing-basics/">Software Testing | Basics - GeeksforGeeks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f7bcde74dae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Strict” Mode and Quality Code]]></title>
            <link>https://medium.com/@chrisjbenedict/strict-mode-and-quality-code-5cc3f0367b43?source=rss-5d64175297ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cc3f0367b43</guid>
            <category><![CDATA[strict-mode]]></category>
            <category><![CDATA[secure-coding]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Chris Benedict]]></dc:creator>
            <pubDate>Mon, 22 Apr 2019 14:09:45 GMT</pubDate>
            <atom:updated>2019-04-22T14:09:45.745Z</atom:updated>
            <content:encoded><![CDATA[<p>Don’t leave home without it!</p><p>Have you ever felt like the code to which you have given precious life lacks discipline and gets away with practically everything? Does its carefree, devil-may-care attitude make your lips curl and your blood boil? Do you constantly suppress a raging inferno of disapproval and indignation as a result of a swelling suspicion that the creation to which you have tirelessly donated your blood, sweat, and tears is silently undermining you at every semicolon? Not to worry — I have the topical solution for you! With one quick and easy application of “use strict” at the crown of your Javascript files, you can become the overbearing, veracious parent you’ve always aspired to be. Kiss those pesky, inaccurate, antiquated features goodbye! Thanks, ECMAscript5!</p><p>“But, why bother? It’ll learn how to become a productive, considerate contribution to society someday, right?” WRONG.</p><p>I kid, I kid. But, if you understand the value of accurate, readable, and efficient code, then the use of “strict” mode is for you!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F111ebonMs90YLu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F111ebonMs90YLu%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMWxqcHE2dmU5MmU2eXdxaXB0bjZ6NHJqN3k5Y3M4NXdiYTQ3ZXUybiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F111ebonMs90YLu%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/fbaf1ed5508b60fad1d10e0f50d8d32a/href">https://medium.com/media/fbaf1ed5508b60fad1d10e0f50d8d32a/href</a></iframe><h4>Strict Mode: Engaged!</h4><p>A “strict” operating context is important and desirable for a number of reasons and can be used in the global context for the entire script or within individual functions. First, where your code could fail silently or produce a desired outcome, but with “unsafe” and syntactically inaccurate code, a more precise context will throw errors that allow you to improve your code.</p><p>For example, if a variable is declared without the use of <em>var</em>, <em>let</em>, or <em>const</em> within a function and the function is called, the variable then becomes a global variable, accessible outside of this function, and the function executes without throwing an error. This can produce problems down the line. However, by declaring “use strict” inside of our function, our function fails and we can correct the error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*APlJJHLg8i1k4loxxq3XEg.png" /><figcaption>“strict” mode used within a function</figcaption></figure><p>In this example, when we call “notStrict” and pass it a parameter, our function executes and returns an output despite the lack of a variable keyword before “y”. Conversely, by adding “use strict” to the top of our function, we prohibit the forgiving nature of Javascript and throw an error.</p><p>But, what do I mean by failing silently? In “sloppy” (or “normal”) mode, certain actions may not be permitted, but do not provide us with a reason by sending an error to the console. We may expect we can delete variables or assign values to ‘read-only’ properties without using ‘strict’ mode because, well, nothing happens, but errors are <strong>super</strong> helpful!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_wntJRSmcw0qXA2wJtHbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*x7CgxwzqB6K-xMGyGsr5xA.png" /><figcaption>“strict” mode used in the global context</figcaption></figure><p>Line 3 doesn’t do much to our variable, but there are no errors thrown!</p><p>Similarly, we cannot assign a new value to x in line 8, but the code fails silently.</p><p>However, when in a “strict” operating context, we can see exactly what we are doing wrong.</p><p>Assignments to non-writable globals like <em>undefined</em>, <em>NaN</em>, <em>Infinity</em>, etc also throw exceptions.</p><p>“Strict” mode also prevents the duplication of parameters in a function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYTKjzHoNH1Wle-VgBFryA.png" /></figure><p>When we call the “notStrictSum” function, it returns a value of 16 even though we use “x” twice in our parameters. “But, Chris — isn’t 4 + 5 + 6 = 15?” Yes, yes it is. In this context, x is defined by our first parameter (x = 4), then reassigned (x = 5), then y is assigned (y = 6). Our function then permits the execution of line 2, which returns 5 + 5 + 6.</p><p>However, we can see that our “strictSum” function throws a Syntax Error because it prohibits the use of duplicate parameters.</p><p>Additionally, “use strict” will prohibit the use of the ‘eval’ name/keyword and with(){} statements. Sorry, were you using these?</p><h3>TL;DR</h3><p>With that, I leave you with a nice little summary of the benefits of using “strict” mode in your Javascript files, provided by the techies over at geeksforgeeks:</p><p>Strict mode makes several changes to normal JavaScript semantics.</p><ul><li>Strict mode eliminates some JavaScript silent errors by changing them to throw errors.</li><li>Strict mode fixes mistakes that make it difficult for JavaScript engines to perform optimizations: strict mode code can sometimes be made to run faster than identical code that’s not strict mode.</li><li>Strict mode prohibits some syntax likely to be defined in future versions of ECMAScript.</li><li>It prevents, or throws errors, when relatively “unsafe” actions are taken (such as gaining access to the global object).</li><li>It disables features that are confusing or poorly thought out.</li><li>Strict mode makes it easier to write “secure” JavaScript.</li></ul><p>Resources for further reading:</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode">Strict mode - JavaScript | MDN</a></li><li><a href="https://johnresig.com/blog/ecmascript-5-strict-mode-json-and-more/">John Resig - ECMAScript 5 Strict Mode, JSON, and More</a></li><li><a href="https://www.geeksforgeeks.org/strict-mode-javascript/">Strict mode in JavaScript - GeeksforGeeks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cc3f0367b43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biometric Authentication]]></title>
            <link>https://medium.com/@chrisjbenedict/biometric-authentication-298fd53d17cb?source=rss-5d64175297ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/298fd53d17cb</guid>
            <category><![CDATA[biometric-authentication]]></category>
            <category><![CDATA[eye-screening]]></category>
            <category><![CDATA[fingerprint]]></category>
            <category><![CDATA[voice-recognition]]></category>
            <dc:creator><![CDATA[Chris Benedict]]></dc:creator>
            <pubDate>Wed, 06 Mar 2019 17:08:09 GMT</pubDate>
            <atom:updated>2019-03-06T17:08:09.906Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mt-Q2BT5MOE3LoqX" /><figcaption>Photo by <a href="https://unsplash.com/@meymigrou?utm_source=medium&amp;utm_medium=referral">Panos Sakalakis</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So, you just successfully implemented JWT authentication in your React App, you’re feeling pretty excited, and as a proud, self-proclaimed perpetual student, you thought to yourself, “well, that’s pretty cool, but biometric authentication is even cooler.” I mean, who wouldn’t? That makes total sense.</p><p>But first, a definition. In a broad sense, biometric authentication is a way to verify one’s identify using one’s physical attributes and measurements: fingerprints, faces, eyes, etc. By analyzing the unique characteristics of certain body parts, this tech compares these measurements against a database to make sure you are you and grant you access. In other words, a device’s owner is asked to set the original biometric “password,” and then the device’s visitor is asked to match those details upon sign-in. While the match must be nearly identical, anyone who has been able to unlock their phone with a sweaty or scratched finger can attest that it does not need to be perfect. One can imagine how tenuous the balance is between implementing a print scanner that is not so strict it might prevent the correct user from entering and one that allows even a vaguely similar match from gaining access.</p><h4>Retinal Authentication</h4><p>Because the eye remains practically unchanged for the duration of person’s life and the combination of iris and retina is as unique as a fingerprint, eye scanners can be used as remarkably accurate authentication devices, but you probably already assumed that.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FziQVZDpNBSV7G%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FziQVZDpNBSV7G%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FziQVZDpNBSV7G%2Fgiphy_s.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="300" frameborder="0" scrolling="no"><a href="https://medium.com/media/933d37da5e847bd666c1f427b7de5dbf/href">https://medium.com/media/933d37da5e847bd666c1f427b7de5dbf/href</a></iframe><p>While iris scanners authenticate using images of both irises and have proven to be hackable simply by using high-resolution images, retinal scanners use infrared light to analyze the unique series of blood vessels in a person’s eye.</p><h4>Fingerprint Authentication</h4><p>If you’re like me and haven’t encountered the use of eye scanners beyond the occasional airport, bank, or spy thriller, it will be worthwhile to focus on the different forms of fingerprint scanning, which many of us use every day.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F10Jl7L20wzWA4o%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F10Jl7L20wzWA4o%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F10Jl7L20wzWA4o%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="543" frameborder="0" scrolling="no"><a href="https://medium.com/media/330584dd061787bcc399fbae4327947a/href">https://medium.com/media/330584dd061787bcc399fbae4327947a/href</a></iframe><ol><li>Optical Scanning — commonly used at Customs in the airport, this type of fingerprint matching takes a picture of your prints and compiles the pattern of ridges into an identification code.</li><li>Capacitive Scanning — far more interestingly, smartphones and laptops make use of capacitive scanning by measuring the finger’s electrical signals and air gaps formed between the print’s ridges, producing a unique password.</li><li>Ultrasonic Scanning — perhaps even more exciting, ultrasonic scanning will reportedly be used in the newest smartphones to receive ultrasounds from one’s print, similarly creating a unique password.</li></ol><p>I think a logical next question would be to ask where these fingerprints are being stored, and, thus, how secure is this tech, really? Purportedly, Apple and Google, rather than keeping a massive database of the world’s fingerprints, make use of a locally stored copy of your fingerprint on your device itself. Furthermore, neither the OS nor individual apps are able to access fingerprint data directly, thanks to a security moderator, which provides the link between authentication and the program. And while this security feature is not hacker-proof, it appears to be quite safe: because one’s fingerprint is stored as a mathematical representation, even if hackers got their hands on this code, they would be unable to reverse engineer your actual encrypted fingerprint.</p><h4>Voice Authentication</h4><p>Concerned with who is speaking rather than with what is being said, voice authentication technology analyzing the tone and frequency of the speaker’s voice in order to match it with a voice print. However, perhaps unsurprisingly, voice authentication presents the greatest security issues as duplicating a person’s voice can be done rather easily.</p><p>So how do we explain the success of voice recognition devices like Amazon Echo and Google Home, which can seamlessly integrate into one’s home, creating potentially serious security risks for anyone that can recreate a home owner’s voice? Convenience? Novelty? The undeniable, inescapable fact that humanity has reached a point where the newest trends produced by billion dollar companies are so engrained into society that we are tricked into thinking we will not be able to survive without the ability to order toilet paper without getting off the couch, that we have learned the fastest possible result is better than exerting effort at any cost? The answer is a little unclear to me.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl4pTsgFLNmqAvxcoo%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl4pTsgFLNmqAvxcoo%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl4pTsgFLNmqAvxcoo%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab13a1d0a7fd2651bda8828c9966f765/href">https://medium.com/media/ab13a1d0a7fd2651bda8828c9966f765/href</a></iframe><h4>Facial Authentication</h4><p>Perhaps most widely popularized by Apple’s FaceID, facial recognition technology converts a user’s facial features, including eyes, nose, distance between features, skin texture, and other defining characteristics, to similarly create a unique mathematical representation and can be used for more than just face-swapping a mustache on an innocent child or two.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FwRBCiojH2XWik%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FwRBCiojH2XWik%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FwRBCiojH2XWik%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfe8f5d13085ff1b99b4ae12ba20c7eb/href">https://medium.com/media/cfe8f5d13085ff1b99b4ae12ba20c7eb/href</a></iframe><p>Apple has improve upon traditional facial recognition that could be easily fooled by obstructing one’s face, wearing makeup, etc. by incorporating thermal imagery and other recognition technologies. Designed to account for these differences, work indoors, outdoors, and even in complete darkness, and adapt to other changes in appearance, FaceID’s TrueDepth camera creates depth and infrared maps of one’s face by analyzing over 30,000 points invisibly projected onto the face. So, what’s next…?</p><ul><li><a href="https://support.apple.com/en-us/HT208108">About Face ID advanced technology</a></li><li><a href="https://heimdalsecurity.com/blog/biometric-authentication/">Biometric Authentication Overview, Advantages &amp; Disadvantages</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=298fd53d17cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Hooks]]></title>
            <link>https://medium.com/@chrisjbenedict/react-hooks-e8902a2bd6f0?source=rss-5d64175297ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8902a2bd6f0</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[hooks]]></category>
            <dc:creator><![CDATA[Chris Benedict]]></dc:creator>
            <pubDate>Wed, 13 Feb 2019 17:43:57 GMT</pubDate>
            <atom:updated>2019-02-20T18:00:15.587Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are familiar with the current React framework from Facebook, you may have heard news of the feature soon to be released by “the Captain,” Dan Abramov: <em>hooks</em>. According to the React Documentation, hooks will allow for the use of state and other features without the need for those pesky classes and lifecycle methods. But are classes even that bad? What is the motivation behind introducing this feature that may reduce the need for another?</p><p>If the thought of using hooks in place of classes scares you, don’t panic just yet. The React team is implementing a gradual adoption strategy in which “hooks work side-by-side with existing code so you can adopt them gradually.” Hooks are still experimental and React advises against refactoring your apps to implement this new API framework without first easing in. So even if you can’t wait to start using them, Hooks will work perfectly well with your already implemented code. Take it from the top:</p><blockquote>At Facebook, we have tens of thousands of components written as classes, and we have absolutely no plans to rewrite them. Instead, we are starting to use Hooks in the new code side by side with classes.</blockquote><p>On the other hand, if classes and lifecycle methods have you tearing your hair out, you may be in luck.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FdUT2ybRu5Ytxu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FdUT2ybRu5Ytxu%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FdUT2ybRu5Ytxu%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="292" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bdc7d54af000326ba73c2a8b0f240ba/href">https://medium.com/media/3bdc7d54af000326ba73c2a8b0f240ba/href</a></iframe><p>React programmers have identified a number of compelling reasons for the transition:</p><ol><li><strong>Reusability: </strong><em>It can be difficult to reuse stateful logic between components.</em></li></ol><p>While <em>render props</em> and <em>higher-order components</em> attempt to “attach” reusable behavior to a component, hooks may provide an alternative to the clunky, obscure restructuring associated with these features. Programmers should be able to test and share stateful logic between components without changing their app’s hierarchy. Enter hooks to solve the problems associated with enormous components, duplicated logic, and complex patterns.</p><p>2. <strong>Organization: </strong><em>As components become more complex, they are also harder to understand.</em></p><p>While simple components are easy to maintain, when they become multi-faceted and logic is distributed between lifecycle methods and other components, it can lead to bugs, side effects, and chaotic code. As it is now, unrelated code may often be held within the same methods, lifecycle methods tasked with fetching and updating may also attempt to establish event listeners, and destructuring and testing become burdensome. Hooks, however, will allow for components to be split into more manageable functions, thereby reducing the need to combine responsibilities under one method.</p><p>3. <strong>Simplicity and Optimization: </strong><em>React has a steep learning curve.</em></p><p>In an effort to stay relevant and learnable, React is also seeking to trend away from classes in order to reduce the barrier to wider implementation. While you may be perfectly comfortable working with props, state, and the tree-like structure of React, the differences between class and function components, let alone the intricacies of how <em>this </em>works in Javascript as compared to other languages, can still confuse even the most experienced coders. React developers believe the “de-emphasis” of classes will both improve the digestibility of React as well as optimize the framework. Abramov claims hooks will reduce not only the number of concepts you need to learn but also the bundle size of your code. Hooks, they claim, “let you use more of React’s features without classes.”</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FFampaeKJqrRv2%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FFampaeKJqrRv2%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FFampaeKJqrRv2%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="179" frameborder="0" scrolling="no"><a href="https://medium.com/media/b8c7fb9a5cc3028420d4872ad625a288/href">https://medium.com/media/b8c7fb9a5cc3028420d4872ad625a288/href</a></iframe><p>So, how does it work?</p><p><strong>The State Hook</strong></p><p>Let’s look at how we can accomplish the same task without classes as we can with them. Consider the following basic form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*Lb5jQHQ39h72M75ZErI4Hg.png" /></figure><p>You are probably most familiar with the structure and syntax of the example below in which we (1) create a class named “Form,” (2) set initial states equal to empty strings using the constructor function, and (3) re-set that state with this.setState() as information is entered into the form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*ceiUIdKdKK58CoI6p62chw.png" /></figure><p>And this is fine for all intents and purposes, but could it be better? Well, as your code (and your app) becomes more and more complex, you add feature upon feature, you connect different class and function components through various levels of abstraction, and any number of programmers are brought into the equation, perhaps the value of hooks begins to reveal itself.</p><p>If we look at the function component below, which accomplishes the very same job as our class component above, we should make note of the new features of React 16.8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*A9SWTYSBCu6gMiDIyWIvpw.png" /></figure><p>First, <em>useState() </em>allows us to add state to function components and access it locally. Before hooks, a function component would have to be converted into a class component in order to make use of state because where we can set state with <em>this.state</em> in a class component, function components do not have access to <em>this. </em>With hooks<em>, </em>useState() is able to declare state variables (passing it an initial value) in the same way as <em>this.state </em>in order to share these values between functions. Better yet, state does not have to be an object, as it does with classes, which means we can initialize “state variables” with numbers or strings as well.</p><p>But why do we create two constants (toppings <em>and</em> setToppings, for example) above? Simple. By initializing const toppings = “ ”, we can store this value and access it later; and when we want to update our toppings, <em>setToppings</em> is there to help, rather than the old <em>this.setState </em>function. In other words, the <em>useState</em> hook returns both the current state and a function used to update it when we click our button. Maybe even more exciting, we can now use our “ state variables” by name (<em>toppings</em> vs. <em>this.state.toppings)</em>.</p><p>React is already getting more digestible with just <em>useState</em>, but that’s not all hooks can do<em>.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3ov9k31wh7980HAMtG%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3ov9k31wh7980HAMtG%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3ov9k31wh7980HAMtG%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="346" frameborder="0" scrolling="no"><a href="https://medium.com/media/fec3b1baa8bbb833cebb716b039d034e/href">https://medium.com/media/fec3b1baa8bbb833cebb716b039d034e/href</a></iframe><p><strong>The Effect Hook</strong></p><blockquote>The Effect Hook lets you perform side effects in function components.</blockquote><p>The side effects the React team is referring to here include operations that happen in React components like data fetching and manually changing the DOM, typically performed with <em>componentDidMount, componentDidUpdate, </em>and<em> componentWillMount. </em>Because we want side effects to occur after the <em>render</em> method, we usually stick them inside these lifecycles methods, but that means we will have to write duplicate code in many cases. This happens because we often want the same thing to happen whether the component has mounted or has been updated.</p><p>However, with the <em>useEffect</em> method we are asking React to perform certain tasks after rendering, which it will remember and perform again during updates. This can eliminate the need for both <em>componentDidMount</em> and <em>componentDidUpdate</em>. and when we place the <em>useEffect</em> method inside of our function component, we can access the state variables as well.</p><p>If you’re grasping any of this, congrats! If not, no worries! Once again, Hooks are slowly being rolled out by the brains at Facebook, and you can always refer back to the documentation for guidance. My point, rather than trying to breakdown all of the comprehensive docs, is to introduce the concept of Hooks and why we, as React developers, can look forward to a (hopefully) seamless transition that will make our lives easier. All this to say, the potential for Hooks to simplify React looks promising and let’s hope the barrier to grasping these concepts isn’t too high.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FXVAq5DLZwx2yA%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FXVAq5DLZwx2yA%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FXVAq5DLZwx2yA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="225" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc52ecd05c6ed4ced10c2df70e9cf1eb/href">https://medium.com/media/dc52ecd05c6ed4ced10c2df70e9cf1eb/href</a></iframe><p>For more information, check out these killer sources:</p><ul><li><a href="https://reactjs.org/docs/hooks-intro.html">Introducing Hooks - React</a></li><li><a href="https://blog.usejournal.com/react-hooks-death-of-classes-and-lifecycles-c8db5956558c">React hooks: Death of classes and lifecycles?</a></li><li><a href="https://medium.com/@dan_abramov/making-sense-of-react-hooks-fdbde8803889">Making Sense of React Hooks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8902a2bd6f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Emerging Application of Modern Voice Recognition Software]]></title>
            <link>https://medium.com/@chrisjbenedict/an-emerging-application-of-modern-voice-recognition-software-9e177b1bc9ec?source=rss-5d64175297ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e177b1bc9ec</guid>
            <category><![CDATA[assistive-technology]]></category>
            <category><![CDATA[voice-recognition]]></category>
            <dc:creator><![CDATA[Chris Benedict]]></dc:creator>
            <pubDate>Wed, 23 Jan 2019 17:52:54 GMT</pubDate>
            <atom:updated>2019-01-24T00:57:01.634Z</atom:updated>
            <content:encoded><![CDATA[<p>Did you see that episode of Netflix’s “Black Mirror,” titled “White Christmas,” where Don Draper, err… Jon Hamm, reveals that he once offered a service where individuals could undergo surgery in order to create a digital clone of their conscience, which “lived” in a counter-top appliance as a personal assistant to the home-owner? The one where the clone appears to have a physical body, free will, and a conscience of her own, but is forced into servitude and obedience through months of solitary confinement, but which are only seconds or minutes in “real-time?”</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FXnXgEG892zVxS%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fblack-mirror-XnXgEG892zVxS&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FXnXgEG892zVxS%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="217" frameborder="0" scrolling="no"><a href="https://medium.com/media/982fce48fb97f4d725c7de800fbf7542/href">https://medium.com/media/982fce48fb97f4d725c7de800fbf7542/href</a></iframe><p>Still no? That’s okay. I’m mainly referencing the show because 1) I think it lives up to the hype, and 2) because I want to talk about voice recognition software (and hardware).</p><h4>Voice Recognition in Your Home</h4><p>Whether or not you realize it, many of us are exposed to and use modern voice recognition tools constantly. But what is it and how has it evolved? Though interest in this type of communication has a comprehensive history, modern voice recognition software has origins as a keyboard alternative that allows users to quickly and accurately translate their speech into text on the computer. While the average person can type fewer than 60 words per minute, we’ve all met those who can speak at nearly double that rate. And while the evolution of voice recognition technology spans over 200 years, not until recently has it really taken off. With the release of Google Voice in 2008 and, subsequently, Apple’s Siri, Microsoft’s Cortana, Amazon’s Alexa, and Google Home, this technology has certainly captured the imagination of modern inventors and consumers alike. When used properly, the software can recognize what we say with practically 100% accuracy and now that these companies have released devices that exist not just on our phones but in our homes, consumers continue to purchase compatible technologies — refrigerators, security systems, light bulbs, and more — that these devices can link to and control.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl0Iy7Y2y0RuckTwLm%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0Iy7Y2y0RuckTwLm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl0Iy7Y2y0RuckTwLm%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/fb5c198d08fdb5dce2eb15576b82c028/href">https://medium.com/media/fb5c198d08fdb5dce2eb15576b82c028/href</a></iframe><p>While eagerly opening your doors to these companies’ “listening” devices might be cause for concern, it’s also a good idea to consider to what this means for those who could benefit from these voice recognition technologies. Along the same lines as my <a href="https://medium.com/@chrisjbenedict/web-accessibility-for-the-visually-impaired-5593599aae3c">previous article</a> on web accessibility for the visually impaired, it’s worth noting how modern speech recognition tools can improve life for those with other disabilities as well. While you may be well aware that consumers can use these devices to order groceries and household items, control other devices in their home, and search the internet, perhaps there is more to this voice recognition technology than what is commercialized.</p><h4>How It Works</h4><p>At a macro-level, voice recognition software “understands” what the user is saying by translating the sound waves of input speech (via an “analog to digital sound converter”) into a digital representation the computer understands. It then sends this translation to a central server for decryption. Next, the program breaks the speech into decipherable parts, known as phonemes. By analyzing the order, composition, and context of the <a href="https://www.dyslexia-reading-well.com/44-phonemes-in-english.html">44 distinct phonemes</a> of the English language, the software can “guess” what the user is trying to say and respond accordingly. We have the programmers of voice recognition technology to thank for doing the grunt work of training their software to match speech patterns with their corresponding text equivalents.</p><h4>Giving People Voices</h4><p>If these assistive technologies have the ability to understand language and translate it into text and actions, it would follow that the opposite is also true. A counterpart to speech-to-text programs, text-to-speech software can help millions without the ability to speak communicate, and voice recognition is at the forefront of this evolving technology. Individuals lose or never develop the ability to speak for a variety of reasons — cerebral palsy, brain injury, stroke, multiple sclerosis, and autism to name a few — and over 2 million people require alternative forms of communication in the U.S. alone.</p><p>The device famously used by Stephen Hawking, while a revolutionary advancement in “adaptive alternative communication” and one used by millions, also demonstrates how one’s voice is an essential component of their identity. One’s voice provides valuable information about the speaker — age, inflection, intonation, gender, mood, emotion, etc — but until recently, text-to-speech technologies were limited by the variety of voices available to speechless users.</p><p>Jordan Kisner writes in <em>The Guardian,</em></p><blockquote>“Walk into a classroom of children with voice disorders and you’ll hear the exact same voice all around you,” Rupal Patel of VocaliD told me. Ten years ago, she was at a speech disorders conference when she came upon a little girl and a man in his mid-50s who were using their devices to have a conversation. They were speaking in the same adult, male voice. Patel was horrified. “This is just continuing to dehumanise people who already don’t have a voice to talk,” she told me.</blockquote><p>This lack of variety has robbed people of a major contributing factor of individuality and identity. Fortunately, Rupal Patel and her team at VocaliD have created an online “voice bank” where volunteers record themselves reading strategically composed stories designed to capture all of the phonemes (see above for clarity) of the English language. Using these recordings — just 1,000 sentences, though more is better — VocaliD is able to create a voice and add it to a database of donated voices. Clients who have lost their ability to speak can then choose a voice that most closely matches their own. Those that have always been speechless can select whichever they feel best suits them because, as Patel says,</p><blockquote>“We wouldn’t dream of fitting a little girl with the prosthetic of a grown man. Why then the same prosthetic voice?”</blockquote><p>Watch Rupal Patel’s Ted Talk <a href="https://www.ted.com/talks/rupal_patel_synthetic_voices_as_unique_as_fingerprints?language=en">here</a>.</p><p>VocaliD’s technology is designed to combine the “source,” certain unique sounds produced by the vocal cords, larynx, and throat muscles, from the recipient and the “filter,” the muscles that form words out of those vibrations, from the donor into a personalized voice for the client. The voice is then added to the client’s own communication devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*iQQW1MLs__jatQ-4hRSzQg.png" /><figcaption>VocaliD voices are crafted using contributions from the recipient and donor</figcaption></figure><p>So, as we explore the potential of voice recognition programs and devices, it’s important to look beyond the ease with which we can now re-order toilet paper and appreciate how some people are using that same technology to create voices and newfound identities.</p><p>Read more:</p><ul><li><a href="https://medium.com/swlh/the-past-present-and-future-of-speech-recognition-technology-cf13c179aaf">Speech Recognition Technology: The Past, Present, and Future</a></li><li><a href="https://www.theguardian.com/news/2018/jan/23/voice-replacement-technology-adaptive-alternative-communication-vocalid">How a new technology is changing the lives of people who cannot speak</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fembed.ted.com%2Ftalks%2Frupal_patel_synthetic_voices_as_unique_as_fingerprints&amp;url=https%3A%2F%2Fwww.ted.com%2Ftalks%2Frupal_patel_synthetic_voices_as_unique_as_fingerprints&amp;image=https%3A%2F%2Fpi.tedcdn.com%2Fr%2Fpe.tedcdn.com%2Fimages%2Fted%2F41c926d7412d2fedb89a90a55dafa00759ccf259_1600x1200.jpg%3Fh%3D316%26w%3D560&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=ted" width="560" height="316" frameborder="0" scrolling="no"><a href="https://medium.com/media/6e1f2811e46aac0a8cad1f1be9fe4314/href">https://medium.com/media/6e1f2811e46aac0a8cad1f1be9fe4314/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e177b1bc9ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Accessibility for the Visually Impaired]]></title>
            <link>https://medium.com/@chrisjbenedict/web-accessibility-for-the-visually-impaired-5593599aae3c?source=rss-5d64175297ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/5593599aae3c</guid>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[web-accessibility]]></category>
            <dc:creator><![CDATA[Chris Benedict]]></dc:creator>
            <pubDate>Thu, 03 Jan 2019 17:51:07 GMT</pubDate>
            <atom:updated>2019-01-07T14:53:55.165Z</atom:updated>
            <content:encoded><![CDATA[<p>My father lost a portion of his vision in one eye after suffering a detached retina following the long flight to visit me while I was working in Thailand four years ago. Fortunately, after a three weeks in a Vietnamese optometric hospital, including invasive surgery, he was able to retain much of his sight. However, as a retiree who spends hours a day consuming news and entertainment via computer, tablet, or phone, he knows very little about the technologies that work better than adjusting a room’s lighting or even upgrading to larger devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*R5sJ07YXz6Cw3m3jYoVMYQ.jpeg" /></figure><p>About a year ago, I took my first step into the world of computer programming and, given the range and amount of new information I have tried to consume since, I recently realized I still knew very little, if anything, about making websites accessible to people with visual disabilities. As visual as the internet is by nature, it is a necessity today for more than just the sighted, and yet I knew nothing about web design best practices, screen reader technologies, speech synthesizers, or other assistive resources that help provide internet access to blind, colorblind, or otherwise visually impaired people. However, the importance of learning and adopting these practices is clearer now more than ever as aging baby-boomers join the millions of visually disabled people that require and have become dependent on the internet, as we all do and have.</p><h4>Assistive Technologies</h4><p>First, it is worth briefly describing the technologies that currently exist for the visually impaired. The two most common assistive technologies are <em>screen readers</em> and<em> refreshable braille displays</em>. You are probably most familiar with screen reading software, which is used to translate the contents of a website into speech. The second resource you may not have heard of (I certainly hadn’t).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*ZEeOg8UccpWGFMEMs4R8wg.jpeg" /><figcaption>Refreshable Braille Display</figcaption></figure><p>Refreshable braille displays are hardware devices that allow users to read the contents of the page using a re-generating braille template. At this point, it may seem clear that although these technologies provide blind users with one-element-at-a-time access to web content, the experience of browsing the internet is so much more than hearing the contents of web pages could possibly provide. As we browse, our eyes dart around the page, skimming through content to find what it is we are looking for quickly and efficiently. We are not required to read (or listen to) each line of text while we search. Furthermore, websites are designed to be visually stimulating and pleasing. The internet is, simply put, a visual world. Screen readers, however, are incapable of doing much more than condensing the visual complexities of websites into simple, linear audio. If the page does not provide clear navigational elements and descriptions, a visually impaired person will find it difficult to maneuver through it. So how do we improve the user experience for users with a drastically limiting experience?</p><p>The answer requires careful consideration. Visual disabilities can mean vastly different things. Colorblindness can take many different forms and people experience varying levels of vision loss. The ability to magnify text or images well beyond standard size limits may not help someone who is unable to distinguish between similar colors or someone who relies on HTML tags to separate headings from paragraphs. Thus, a website should be designed with the flexibility to be customized to a user’s needs.</p><p>While time and effort are required to make a website more elastic, there are simple design practices that, when employed, can provide access to so many who would otherwise be excluded:</p><ul><li>Refrain from using set font sizes, one of the most common accessibility issues, to allow users to magnify text to fit their needs.</li><li>Use percentages when sizing fonts, clear font styles, and contrasting colors.</li><li>Separate HTML content from CSS design to provide users with a text-only option of a website.</li></ul><p>So, while one user’s limitations may be different from another’s, if we design websites to be flexible and customizable, we make the internet more inclusive.</p><h4>More Best Practices</h4><p>According to the W3C (World Wide Web Consortium) Web Content Accessibility Guidelines, web designers should follow the following best practices at minimum:</p><ol><li>Provide alternative textual descriptions for tables, images, and other media content.</li><li>Allow users to effectively navigate the web page by providing precise HTML tags that distinguish between headers, paragraphs, and other sections of the page.</li><li>Adding ’skip links’ allows users to navigate directly to desired content and to avoid listening to full page menus that precede main information.</li><li>Ensure the page can be navigated using a keyboard only as a mouse requires hand-eye coordination. Thus, designers should also avoid incorporating Javascript that requires mouse actions.</li><li>Make links and form elements clearly and purposefully descriptive.</li></ol><p>And there are many other techniques that improve the experience for blind users, however, many websites and their designers often disregard or are unaware of these standards, sometimes claiming disabled users are too small a user-base to invest the time and money necessary to give them access.</p><h4>App-cessibility</h4><p>As the internet continues to bend and stretch, expand and morph, it becomes ever-more important to stay diligent in the commitment to accessibility for all. Fortunately, how the internet is shaping around apps may present a promising future for improved access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KrO-ZwT3XR4wDIyh" /><figcaption>Touchscreens have presented improved accessibility</figcaption></figure><p>The age of touchscreens has provided the visually impaired with sophisticated text-to-speech technologies. Whereas non-touchscreen phones are not designed to translate button clicks into speech, the virtual buttons on apple and android devices make it possible for one’s phone to narrate as a user clicks through it. However, while some companies like Apple and Google have devoted the energy and resources necessary to grant accessibility to the visually impaired, the fact remains that other companies cannot or choose not to keep up.</p><p>For years now, it has been undeniable that access to the internet is a daily necessity. We all have a responsibility to ensure that groups with disabilities, visual or otherwise, are not left out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5593599aae3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>