<?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 Christopher Taylor on Medium]]></title>
        <description><![CDATA[Stories by Christopher Taylor on Medium]]></description>
        <link>https://medium.com/@doctacloak?source=rss-3e189a9a45a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LO_CfnmuyCx-js5vrYsdLA.jpeg</url>
            <title>Stories by Christopher Taylor on Medium</title>
            <link>https://medium.com/@doctacloak?source=rss-3e189a9a45a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:55:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@doctacloak/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Famous MongoDB Hack]]></title>
            <link>https://medium.com/@doctacloak/the-famous-mongodb-hack-b5b0597fb1f7?source=rss-3e189a9a45a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5b0597fb1f7</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Christopher Taylor]]></dc:creator>
            <pubDate>Wed, 02 May 2018 19:44:17 GMT</pubDate>
            <atom:updated>2018-05-02T19:44:17.874Z</atom:updated>
            <content:encoded><![CDATA[<p>On a Monday in 2017, a security researcher named Victor Gevers identified nearly 200 instances of MongoDB installation that had been completely wiped and held for ransom.</p><p>By Tuesday, of the same week, this number reached approximately 2,000 according to Shodan founder John Matherly, and by Friday, Gevers and a fellow security researcher named Niall Merrigan, updated this count to 10,500.</p><p>But according to statistics released shortly after the hack was discovered, that number was as high as 27,000.</p><p>The hacker was able to gain access to these databases, copy data stored on them, and in some cases even delete the data entirely if the database itself was un-patched or poorly configured.</p><p>By the time the original story had went public far more hackers had begun taking part in this particular exploit and the day that the story was published, there were tutorials that came up on the internet instructing other people on how to partake.</p><p><strong>Why Did This Happen</strong></p><p>The primary people to blame for this are the database administrators. In every instance of the hack, the databases had no password making gaining access to the data stored on those databases a piece of cake for a hacker who knew what they were doing.</p><p><strong>How To Prevent This</strong></p><ol><li><strong>Enable Authentication</strong> (Obviously)<strong>:</strong> If your network is breached you want a way to protect your intellectual property.</li></ol><blockquote><strong><em>You can do this by editing your MongoDB configuration file and setting auth to true.</em></strong></blockquote><p>2. <strong>Use Firewalls: </strong>This sounds so simple and you’ve heard it time and time again but trust me, you may be surprised at discovering the quantity of individuals both lone-wolf developers to small and decently sized companies who do not use firewalls. To protect yourself, disable remote access to your MongoDB database for one and block port 27017 from accessing your server too.</p><p>In addition, this is a really helpful article if you want more advice on MongoDB Security by the MongoDB security team.</p><p><a href="https://www.mongodb.com/blog/post/how-to-avoid-a-malicious-attack-that-ransoms-your-data">How to Avoid a Malicious Attack That Ransoms Your Data | MongoDB Blog</a></p><p><strong>Conclusion</strong></p><p>Hacks like the one discussed today are definitely avoidable if you use a little common sense or are aware of the repercussions of being ignorant to a lot of threats which pose your organization.</p><p>I hope you enjoyed the read and if you have any questions feel free to leave a common.</p><p>Otherwise, I look forward to addressing you all soon.</p><p><strong>Learn Web Security Fundamentals In This Awesome Course</strong></p><p><a href="https://www.edx.org/course/web-security-fundamentals-kuleuvenx-websecx">Web Security Fundamentals</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5b0597fb1f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why React Native?]]></title>
            <link>https://medium.com/@doctacloak/why-react-native-8a1837db3e?source=rss-3e189a9a45a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a1837db3e</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Christopher Taylor]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 00:12:49 GMT</pubDate>
            <atom:updated>2018-08-17T21:43:45.413Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Precursor to 30 Days of React Native</h4><p>React Native provides you with the ability to write native applications for both iOS and Android using JavaScript.</p><p>Which, of course, sounds too good to be true.</p><h4>But Is It Really Though?</h4><p>The following companies are currently using React Native to some capacity to build rich and engaging experiences for their customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fu2wEkBS6e1cJnRKgvuEEA.png" /></figure><p>In doing so, they are not only all able to save their companies a lot of money, but also developer hours as well.</p><p>The reason why is because with React Native you actually don’t need both an Android team and an iOS team, you only need one UI team, which can consist of Full-Stack Software Engineers due to the only barrier of entry being knowledge of JavaScript.</p><p>I find that to be rather promising, primarily due to JavaScript not only being the language of the web but also due to it now being one of the most popular languages in the world — thanks to technologies such as Node providing teams with the ability to use one programming language in several different domains.</p><blockquote>Software Engineers now only need to learn React and get quite good at just React and nothing more, because they can as a result take their understanding of React and begin shipping enriching products to their customers that are used to more native experiences on their mobile devices.</blockquote><blockquote>In Addition, knowledge and resources are able to be shared amongst teams more effectively.</blockquote><h4>How Does It Work?</h4><p>Under the hood, there is a React Native bridge which invokes the native rendering API of the device being used in the language that the respective device supports.</p><p>In the case of iOS that would be Objective-C and for Android that would be Java.</p><p>Because the application is <em>not </em>using webviews, but instead real mobile UI components, it will look and feel like any other mobile application.</p><h4>Risks and Drawbacks?</h4><p>Obviously, there are downsides, and whether or not it is an awesome fit for your team really depends on your individual situation.</p><p>Here are just a couple of very important ones.</p><ol><li><strong>Debugging</strong></li></ol><p>Since we have another layer of abstraction added to our project, debugging can be a lot more stressful, especially when at the intersection of React and the host platform.</p><p><strong>2. Major Updates</strong></p><p>Whenever there is an update released for a host platform — think, a new suite of APIs in a new version of Android — there will be a delay before anything released on that host platform is fully supported in React Native.</p><p>You can obviously implement support for a missing API yourself, though it is a downside because it requires your time, which can potentially increase the amount of business cost on development by a lot, depending on the quality of developers on your team.</p><p>Furthermore, if you are faced with a roadblock, you aren’t forced to stick with React Native — several companies have had success implementing hybrid approaches to developing in React Native.</p><p>I may attempt to go over writing native modules at some point, however, if I do develop a native module myself, it will have to be in Android, as I have no prior knowledge of Objective-C.</p><blockquote>If that day comes, iOS resources will also be provided.</blockquote><h4>The Developer Experience</h4><p>If you have ever written mobile applications and do actually begin developing for React Native, you will immediately fall in love with the simplicity that comes with it.</p><p>Because React Native is just JavaScript, for example, you no longer have to rebuild your applications every time you make an update; instead, you just refresh your application just as you would any other web page.</p><p>This eliminates any time spent waiting for your project to build, allowing for quick iteration.</p><p>Also, developers can make use of many powerful debugging tools that handle error reporting; the only requirement is comfortability with Safari or Chrome.</p><p>In addition, developers aren’t bound to XCode or Android Studio. They have the freedom to work with any text editor of their choosing.</p><p>The product release cycle is also improved because Apple and Google both permit teams who are loading JavaScript-only changes to their application to be omitted from the standard review process which can take days to weeks on average.</p><p>All of these small little perks result in many teams being able to save time and energy and in general just be more productive throughout their day.</p><h4>Conclusion</h4><p>Clearly Reactive Native is exciting. You now know it offers faster mobile develop and more efficient code sharing across iOS, Android, and even the web without sacrificing UX or quality. The only tradeoff that comes with it though is the complexity that is introduced for application setup and maintenance.</p><p>If you or your team can handle that and are okay with it, you should most definitely look into working with React Native and also stay tuned for a series I will be starting on October 1st, called 31 Days of React, where I will scope out and develop a complete application from end-to-end every week for the entire month.</p><p>I hope you enjoyed and see you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a1837db3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Code Should Have One Responsibility]]></title>
            <link>https://medium.com/@doctacloak/why-your-code-should-have-one-responsibility-d395f150224?source=rss-3e189a9a45a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d395f150224</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Christopher Taylor]]></dc:creator>
            <pubDate>Tue, 20 Mar 2018 22:59:41 GMT</pubDate>
            <atom:updated>2018-03-22T04:02:02.449Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I want to tell you a story about a friend of mine who did something the other day that made me reflect heavily on many things — primarily my career and the work I see being created by others, as well as the work I create.</p><h4>Introducing Bob</h4><p>So my friend, Bob, really loves his vacuum cleaner. Not only only is it easy to assemble and use, but it also maintains powerful suction whether he is using it on carpet or bare floors.</p><p>One day after work, Bob decided this power wasn’t enough, so he began to tinker with this vacuum of his, by giving it the ability to not only clean his carpet, but to clean his carpet and in addition wash windows as well.</p><p>Yes. Wash windows.</p><p>Everything was going great initially for him, however, eventually his vacuum began to ware down a lot sooner than it should have according to his manufacturer.</p><p>Angry at this, Bob took his vacuum in for repairs only to be denied, because he broke the warranty agreement with the manufacturer.</p><p>As it turns out, the vacuum and all of the vacuums of that model were at their core not meant to wash windows.</p><p>The engine they created for these vacuums was designed to suck in air to perform the simple task of getting rid of material that shouldn’t be on the floor.</p><p>By making this change, Bob introduced a plethora of problems into his life, such as increased maintenance cost for one.</p><p><strong>How We Make The Same Mistakes As Bob</strong></p><p>I have met many people like Bob in my line of work, which involves smashing my fingers on my keyboard to produce what I will refer to as code.</p><p>Like Bob, I’ve seen people add several intricate little pieces that should have never been in the first place.</p><p>Their code often ends up looking like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwvPrDjaEtZiyhtyHYdbMw.png" /></figure><h3><strong>What You Should Be Thinking</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*ZKNm84dkOKrOc2oddrF-dQ.jpeg" /></figure><p>When most people look at that code initially, they believe that it is rather benign. For one, the class can provide details about the invoice, calculate sales tax, and even email some client with details about their transaction.</p><p>No harm can come from that, right?</p><p>Well….the thing is, several problems are occurring. As a matter of fact, what is happening there is potentially far worse than what Bob did because that code is breaking a rule which I will introduce to you in just a moment, in a number of ways, whereas Bob only broke the rule in one way.</p><p><strong>The Single Responsibility Principle</strong></p><p>As it has already been pointed out through example, whenever you have something that is responsible for doing many things, the margin for error is a lot larger.</p><p>The more responsibilities you have, the more likely you are to make a mistake somewhere down the road.</p><p>The issue with that code you may be wondering? It has the word <strong>and </strong>in it. Not only does this class print out invoice details, but it does that <strong>and </strong>calculates sales tax <strong>AND </strong>emails the invoice.</p><p>Software should follow a rule of only being able to do one thing and it should do that one thing very well.</p><p>Now it is not to say that this was done intentionally, because more often than not is done with naivety.</p><p>Keep in mind, we can still save this class and we will. We will do so by first introducing a new class that abstracts out the sending of invoices, which will take some of the load off of our invoices shoulder.</p><p><strong>The Mailer Class</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*hOWXtOHdARXzxnPLank46Q.png" /></figure><p>The Mailer class will fill in the role of the email_invoice method that I wrote earlier. As you can see, I am still able to access the details needed to send out mail, I just hand the responsibility off. Now the first class is responsible for doing two things, instead of three.</p><p>Next up is the sales tax method. It doesn’t take rocket science to see that it shouldn’t be in Invoice. There could be other systems that depend on it and every system could have their own rules set in place as to how they handle this layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WC8Po8oCtWLFBeYOucpeZA.png" /></figure><p>The sales tax class takes in the state that we are going to then return the sales tax for.</p><p>Now our invoice class follows the single responsibility principle.</p><p>Notice how the invoice is no longer in charge of generating sales tax or emailing customers.</p><p><strong>Why is this important?</strong></p><p>Imagine that your program was used by a real world accountaing division and the user wanted to see what the tax rate was for a specific state. It would not make much sense for the system to require the user to create an invoice just to calculate that tax value.</p><p>Furthermore, looking at this from a business standpoint, by introducing this complexity, you’re potentially losing customers and complexity that could cause your companies developers to make mistakes.</p><p>By refactoring the program this way the sales tax class could be used indepently or by any other part of the program that needs this functionality.</p><p>In computer science this is known as <em>coupling. </em>Originally the sales tax was highly coupled to the invoice class. This means that it would be very difficult to work with the tax rate generator without working with the invoice class directly.</p><p>One popular thing to do and smart thing to do is to use this modularity to compose new systems that are unique in the sense that they don’t break other parts of your codebase if changed for the most part.</p><p>This principle is valuable and used a lot by good Software Developers. In React for example, let’s say we wanted to keep track of the time that a user was performing a task. To do this we create a component for keeping track of time and another component that would help maintain the state in the chance that we needed multiple components. This parent will be referred to as <em>TimerList</em>, whereas every instance of keeping time is a <em>Timer. </em>Now starting out by default we probably don’t have any timers present, so to create one and still follow this principle, we would need another layer of abstraction to manage the ability to not only have a widget capable of adding Timer components, but one that could also effectively decouple the Timerlist from having the relationship of also being responsible for that widget, by considering the Timerlist and the widget to be siblings.</p><p>Not only does this separation of responsibilities keep components simple, but it also improves being able to reuse them, as we can also do with our new class.</p><p>If you want to learn more about this awesome principle I have provided a few wonderful links before that are very helpful.</p><p>Hope you enjoyed the read and feel free to share this with any friends or colleague that could benefit from knowing such a way of doing things exist.</p><h4>Resources</h4><p><em>Robert C Martin</em></p><p><em>The Single Responsibility Prinicple: </em><a href="https://youtu.be/Gt0M_OHKhQE">https://youtu.be/Gt0M_OHKhQE</a></p><p><em>Fun Fun Function:</em></p><p>Composition: <a href="https://youtu.be/wfMtDGfHWpA">https://youtu.be/wfMtDGfHWpA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d395f150224" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>