<?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 Brian Arnold on Medium]]></title>
        <description><![CDATA[Stories by Brian Arnold on Medium]]></description>
        <link>https://medium.com/@b.arnold09?source=rss-5799e654d587------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eZtVdO_Itkfn3Sxl</url>
            <title>Stories by Brian Arnold on Medium</title>
            <link>https://medium.com/@b.arnold09?source=rss-5799e654d587------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:29:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@b.arnold09/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[Intro to APIs]]></title>
            <link>https://medium.com/@b.arnold09/intro-to-apis-d45e860f611b?source=rss-5799e654d587------2</link>
            <guid isPermaLink="false">https://medium.com/p/d45e860f611b</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Brian Arnold]]></dc:creator>
            <pubDate>Wed, 04 May 2022 17:31:51 GMT</pubDate>
            <atom:updated>2022-05-04T17:31:51.434Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*7EMwH49foD7IucQ_.png" /></figure><p>An application is a fundamental part of software development. While a single application can be useful, even powerful on it’s own, what could be better than one? Two! When two applications work together, this can make an application more dynamic, and can save a developer from needing to build out more features and having a more complex application. This is called Application Programming Interface.</p><p>Two major components of an API are the client and server. The client is the application that is sending a request and the server is the application that sends the response back to the client.</p><h3>Types of APIs</h3><p><strong>SOAP</strong>: Simple Object Access Protocol. Messages are exchanged via XML between the client and server. Uses Remote Procedure Call pattern, where function or methods are passed as parameters and return a result.</p><p><strong>REST</strong>: Representational State Transfer. Defines several functions such as GET, PUT, DELETE which the client can use to access server data, using HTTP. REST APIs have statelessness, which means that servers don’t save client data between requests. Client requests are like URLs a user would use to visit a website in a browser. Plain data is received as a response from the server.</p><p>Rest example: <br><em>User </em>can have many <em>vehicles</em>, a <em>vehicle </em>can have many <em>maintenance records</em><br>Endpoint: <a href="http://localhost:3000/users/1/vehicles/1/maintenance_records">/users/1/vehicles/1/maintenance_records</a></p><p>RESTful web services use HTTP protocols:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/0*U02bY14N70csM8cY.jpg" /><figcaption>HTTP Request</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/0*yHjoiMHRAqDK4IKT.jpg" /><figcaption>HTTP Response</figcaption></figure><p><strong>Websocket</strong>: Uses JSON objects to pass data. Supports two way communication between a client and the server. The server is able to send callback messages to clients, which is more efficient than REST APIs.</p><p><strong>GraphQL</strong>: Query language and server side runtime for APIs, prioritizes giving a client only the data they request. Allows developers to pull data from multiple sources in one API call. Also gives the individuals who maintain an API the ability to add or deprecate fields without impacting existing queries.</p><h3>Different use types of APIs</h3><p>Private: Internal to a business and only used for systems and data within that business.</p><p>Public: Can be used by anyone. May require authorization and/or payment to use.</p><p>Partner: Business to business partnerships only.</p><p>Composite: Combines two or more types of APIs for complex business requirements.</p><h3>REST API Security</h3><p>There are two primary ways a REST API can be secured, authentication tokens and API keys.</p><p>Authentication tokens: Used to authorize users to make an API call, checks to see if the user is genuine and they have access rights for a specific API call.</p><p>API keys: Used to verify the program or application making the call, ensuring it has access rights to make a specific call. Not as secure as authentication tokens, but allow monitoring such as data usage. Typically this is seen as a long string of characters &amp; numbers in the browser URL when visiting different websites.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d45e860f611b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Scraping]]></title>
            <link>https://medium.com/@b.arnold09/web-scraping-6566be7bff40?source=rss-5799e654d587------2</link>
            <guid isPermaLink="false">https://medium.com/p/6566be7bff40</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[Brian Arnold]]></dc:creator>
            <pubDate>Thu, 21 Apr 2022 17:17:24 GMT</pubDate>
            <atom:updated>2022-04-21T17:17:24.014Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*ctQ551Ls_FxyrS6E.jpg" /></figure><p>With how widespread and popular the internet is, it’s safe to say that data is everywhere. But how could a software developer use that vast amount of data to their advantage? The data could be extracted! However, traditional data retrieval, HTTP or API requests are very tedious and slow overall in order to get data from many websites. Web scraping is a way to not only simplify this task, but is a much more powerful way to do so.</p><p>Web scraping is typically utilized through software, and uses HTTP or a web browser to copy data from a web page or endpoint and save it to a database. While web pages are typically built upon text-based languages such as HTML, XML, XHTML, many are designed for ease of use to the end user, and not necessarily for automation.</p><h3>Web Scraping vs Web Crawling</h3><p>One thing to note before getting further into web scraping, is that it is not the same as web crawling. Web crawling is typically less specific, where bots, or “spiders”, crawl through web pages and extract all the information. This differs from web scraping and it’s intention of more specific data and web page extraction. A couple good examples to show the difference between web scraping and web crawling: Google using web crawling to scan and extract all info on a web page so it can tell a user what web pages will have the information they are looing for. On the other hand, someone may utilize web scraping to track prices for specific electronic merchandise, or to get information on potential clients for advertising purposes.</p><h3>Web Scraping Software</h3><h4>Selenium</h4><p>Automates browsers, primarily for testing purposes, but other web-based tasks can be automated, including web scraping.</p><h4>Selenium WebDriver</h4><p>Drives a browser natively, like a user would. Can be utilized locally or on a remote machine using Selenium server.</p><p>Libraries available for several languages: Java, Python, CSharp, Ruby, JavaScript, Kotlin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*udH_Spx_Q1VYsZgG9jpkXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*1FecIhguRfF4HYk2Hx1ulA.png" /></figure><p>Example of “send keys” in Ruby</p><pre>require ‘selenium-webdriver’<br>driver = Selenium::WebDriver.for :firefox<br>begin<br> # Navigate to URL<br> driver.get ‘<a href="https://google.com&/#39;">https://google.com&#39;</a></pre><pre># Enter “webdriver” text and perform “ENTER” keyboard action<br> driver.find_element(name: ‘q’).send_keys ‘webdriver’, :return</pre><pre>ensure<br> driver.quit<br>end</pre><p><a href="https://www.selenium.dev/">https://www.selenium.dev/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6566be7bff40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oh My Zsh…]]></title>
            <link>https://medium.com/@b.arnold09/oh-my-zsh-335b22e4340e?source=rss-5799e654d587------2</link>
            <guid isPermaLink="false">https://medium.com/p/335b22e4340e</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[zsh]]></category>
            <category><![CDATA[oh-my-zsh]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[Brian Arnold]]></dc:creator>
            <pubDate>Wed, 30 Mar 2022 17:21:12 GMT</pubDate>
            <atom:updated>2022-03-30T17:21:12.524Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*MjDvMA5GAGTnlGGRUWebcA.png" /></figure><p>What is the one tool that every developer uses? Aside from the obvious being a computer to write code on, it is the <em>command line interface</em>, or CLI. We can use it for many tasks, such as Node Package Manger (NPM), Git version control, accessing and managing local files, and scripting.</p><p>To better explain this functionality, there are a few components to a command-line interface. From within a CLI there is another CLI, but unlike the <em>command line interface</em> this one is called a <em>command line interpreter, </em>which reads and interprets lines of text entered by a user. Going even further, the operating system’s services are exposed to the user, or other programs, and this is called a <em>shell. </em>The<em> </em>shell enables the user to interact and control their computer from within a command line interface. It can be used as a stand alone tool, or within an integrated developer environment (IDE) such as Visual Studio, Visual Studio Code, Eclipse, IntelliJ IDEA , Android Studio, and Xcode to name a few of the more popular options.</p><h3>Unix</h3><p>Before getting into a few of the common shells, we need to get into Unix. It is an operating system that was originally created for programmers, and is still overall the more preferred option for software development. The most popular Unix systems are Linux and macOS. It is possible to have Unix functionality on a Microsoft Windows machine, through the use of Windows Subsystem for Linux (WSL). There are also several native shells for Microsoft Windows, such as cmd.exe (Command Prompt) or PowerShell, but for this article, we’ll stick to Unix shells.</p><h3>Z Shell</h3><p>There are many different Unix shells, with many of the following prominent options throughout the last few decades being: Bourne shell (sh), Bourne Again Shell (bash), rc shell (rc), and finally Z shell (zsh). Z Shell is the one we’ll focus on for now. Although it is built on top of bash, zsh offers many more features, functionality, and ease of use, while still retaining many core features of bash.</p><h3>Oh My Zsh</h3><p>While zsh is an improvement of bash, what if that was not enough? If you still want more, well, you can have more! Oh My Zsh! No really, Oh My Zsh is an open source framework that can breathe even more life into your terminal. Both form and function. It manages your zsh configuration and makes customizing it easier.</p><p>Tab completion becomes more powerful and intuitive (powerlevel10k theme):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*kFsUlxd8dBfmNKNCbxocxw.png" /><figcaption>Partially typed directory</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*AXRsGyDTt4bobxZUCMxzPg.png" /><figcaption>Hitting <strong>tab </strong>once will show available matching options</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*GBGyaWKKs_0cig6Kb2JXzg.png" /><figcaption>Keep hitting <strong>tab </strong>to cycle through matching options, and <strong>enter </strong>when you find the one you want to ‘<em>cd’ </em>into, and <strong>enter</strong> again to execute</figcaption></figure><p>Not only can you get different terminal themes, there are many plugins which add additional ease of use or functionality. If you find it tiresome to type out full words of often used commands, there are plugins that add completion functionality. For example, if typing out ‘git add’ or ‘git push’ are a few too many letters to type, there is a plugin to make that simply ‘ga’ and ‘gp’. Bundle becoming a bundle to type? There is a plugin that shortens ‘bundle install’ and ‘bundle exec’ to ‘bi’ &amp; ‘be’. Think of all the time you can save! Sure, maybe not a massive amount, but enough to make programming just a little bit easier.</p><p>There is an initial setup that will give you several prompts with guided options you can choose from. You can also change many things such as the theme and plugins in the <em>.zshrc </em>file, which is in the home directory. Open this in any basic text editor to change the file, but an IDE such as VS Code will work as well.</p><p>Here you can set the theme, but also interestingly, you can configure a theme to be randomly loaded every time the terminal is opened. Oh My Zsh!</p><pre># Set name of the theme to load --- if set to &quot;random&quot;, it will<br># load a random theme each time oh-my-zsh is loaded, in which case,<br># to know which specific one was loaded, run: echo $RANDOM_THEME<br># See <a href="https://github.com/ohmyzsh/ohmyzsh/wiki/Themes">https://github.com/ohmyzsh/ohmyzsh/wiki/Themes</a><br>ZSH_THEME=&quot;random&quot;</pre><p>Another potentially useful option is to enable loading feedback in the form of dots (…). However, Oh My Zsh isn’t perfect, and in this case, this option could cause issues with multiline prompts.</p><pre># Uncomment the following line to display red dots whilst waiting for completion.<br># You can also set it to another string to have that shown instead of the default red dots.<br># e.g. COMPLETION_WAITING_DOTS=&quot;%F{yellow}waiting...%f&quot;<br># Caution: this setting can cause issues with multiline prompts in zsh &lt; 5.7.1 (see #5765)<br>COMPLETION_WAITING_DOTS=&quot;true&quot;</pre><p>Oh My Zsh is yet another tool that could be useful for making your terminal more pleasant to look ay while also making tasks easier. What more could a programmer ask for!</p><h4>Useful links:</h4><p><a href="https://zsh.sourceforge.io/Intro/intro_toc.html">Z Shell (zsh)</a></p><p><a href="https://ohmyz.sh/">Oh My Zsh</a></p><p><a href="https://github.com/ohmyzsh/ohmyzsh/">Oh My Zsh (GitHub)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=335b22e4340e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Load Balancing]]></title>
            <link>https://medium.com/@b.arnold09/load-balancing-175222fe85e0?source=rss-5799e654d587------2</link>
            <guid isPermaLink="false">https://medium.com/p/175222fe85e0</guid>
            <dc:creator><![CDATA[Brian Arnold]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 18:17:26 GMT</pubDate>
            <atom:updated>2022-03-10T18:17:26.852Z</atom:updated>
            <content:encoded><![CDATA[<p>Every time a user on a website takes an action that requires at HTTP request, it takes the server it is connecting to time and effort to complete the request. In a small scale, with few enough users, this will not be too much to for the server to manage. However, with high traffic websites, thousands of concurrent users, the requests could overload one or more servers in a group of servers.</p><p>A great solution for this influx of requests negatively impacting a server is called load balancing: distributing incoming network traffic among a group of backend servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1TONeRBWCME3J5wv.png" /></figure><p>Load balancing directs traffic by routing client requests across multiple servers capable of fulfilling them while maximizing speed and server utilization. The end user gets a faster response, and the server gets less overloaded. Overloading could lead to decreased performance, or worse, server downtime. Load balancing can help prevent a server going offline, but in the event that does happen, the traffic can get redirected to remaining online servers. In addition, new servers being added to the server group can automatically have requests sent to it.</p><h3>Hardware and software load balancers</h3><p>Hardware load balancers require proprietary, “rack-and-stack” hardware appliances. They are often overprovisioned, as most of the time they will not be used to their full capacity, but need to have the ability to handle large surges in traffic, such as holiday sales or promotions for an online store. As a result, in large scale applications the hardware balancers will be idle a majority of the time.</p><p>Software load balancers, on the other hand, can be scalable to meet demand. They are also less complex compared to it’s hardware counterpart, and more versatile, as they can be installed on standard x86 servers or virtual machines. Some of the top web server applications are Apache, Nginx, and Cloudflare, but there are many other options.</p><h3>Load Balancing Algorithms</h3><p>There are several different load balancing algorithms:</p><ul><li><strong>Round Robin</strong> — Requests are distributed across the group of servers sequentially.</li><li><strong>Least Connections</strong> — A new request is sent to the server with the fewest current connections to clients. The relative computing capacity of each server is factored into determining which one has the least connections.</li><li><strong>Least Time</strong> — Sends requests to the server selected by a formula that combines the fastest response time and fewest active connections.</li><li><strong>Hash</strong> — Distributes requests based on a key you define, such as the client IP address or the request URL.</li><li><strong>IP Hash</strong> — The IP address of the client is used to determine which server receives the request.</li><li><strong>Random with Two Choices</strong> — Picks two servers at random and sends the request to the one that is selected by then applying the Least Connections algorithm.</li></ul><p>Overall, load balancing is a way to keep both your users and your servers happy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=175222fe85e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Testing: Manual & Automated]]></title>
            <link>https://medium.com/@b.arnold09/software-testing-manual-automated-f41504c78f5a?source=rss-5799e654d587------2</link>
            <guid isPermaLink="false">https://medium.com/p/f41504c78f5a</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[manual-testing]]></category>
            <dc:creator><![CDATA[Brian Arnold]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 15:29:10 GMT</pubDate>
            <atom:updated>2022-02-16T15:29:10.196Z</atom:updated>
            <content:encoded><![CDATA[<p>In Software Development, many aspects go into producing a working program. A primary element is writing code, but how do you know the code will do what you expect it to, either after large or small changes? Just because there are no errors shown in your code in the IDE, doesn’t mean your program will work perfectly. There are many ways to ensure it works as intended, but they all fall under testing, which is an integral part of software development know as quality assurance (QA). Software testing branches from two main categories: <strong>manual </strong>and <strong>automated</strong>.</p><p>Manual testing, as you may suspect, requires the user to manually test out the software themselves. Manual testing begins with the process of navigating and giving manual input in the program, in the form of clicks and typing, with the results being observed subsequently. This can be supplemented by using <em>console.log( )</em>, which, when given parameters, outputs one or more strings or JavaScript objects to the console in a web browser. Manual testing can be a great way to test functionality of small changes of the code in your program, or ensuring visual aspects are ideal.</p><p>However, testing a large amount of functionality or inputs can be tedious with manual testing. What if you have testing that is very repeatable? Maybe you also want to include complex use cases? In these cases, automated testing is often the ideal testing method. Writing tests before implementing the code can also be a valuable software development technique, knows as Test Driven Development. This can be a great way to create product requirements and build the code to satisfy them. Writing tests does take time and effort, in addition to the actual code, but as the scale and complexity of the code increases, automated testing becomes a better option over manual testing.</p><p>Where automated testing really shines is through Continuous Integration (CI) &amp; Continuous Delivery/Deployment (CD). In CI/CD, changes to the code are merged into the main branch often, and from there can be deployed to the actual public facing software. Automated testing is completed after every merge or update, ensuring no features are broken and there are no errors. CI/CD is not possible with manual testing, which requires automated testing. With the smaller and quicker release schedule, troubleshooting is easier and more manageable compared to diagnosing a large set of code and errors.</p><p>There is a time and place for both manual and automated testing, knowing when to use each can really elevate a software developers’ workflow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f41504c78f5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>