<?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 Trey Delcamp on Medium]]></title>
        <description><![CDATA[Stories by Trey Delcamp on Medium]]></description>
        <link>https://medium.com/@trey.delcamp?source=rss-eeb7d9936790------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iOrbRgWn1j9-7X01095ojg.jpeg</url>
            <title>Stories by Trey Delcamp on Medium</title>
            <link>https://medium.com/@trey.delcamp?source=rss-eeb7d9936790------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:47:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trey.delcamp/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[Agile and Scrum Methodologies for the Beginner]]></title>
            <link>https://medium.com/@trey.delcamp/agile-and-scrum-methodologies-for-the-beginner-5bb071f0f080?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bb071f0f080</guid>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[scrum-agile]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Fri, 16 Jun 2023 01:43:04 GMT</pubDate>
            <atom:updated>2023-06-16T01:43:04.065Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2nMWvKOhKGsstsnytinEg.jpeg" /></figure><p>Hello hello! Welcome back to another weekly dose of junior dev knowledge that can aid in your future endeavors as a software developer! This week we’re diving into those pesky keywords about development planning; I’m looking at you “Agile” and “Scrum”! As we know there’s a fountain of knowledge when it comes to development so without further ado let’s take our next sip!</p><h3>What is Agile?</h3><p>Agile in itself is an overall software development process or specifically a project management methodology with a philosophy of being flexibility-centric (Or adaptability), as we know changes and issues can always come up at any point. So being flexible during development is key to ensuring issues don’t ruin the process of development! The methodology was created from a Manifesto back in 2001 known as the “Agile Manifesto”.</p><h3>What’s the Agile Manifesto about?</h3><p>The Agile Manifesto has four main values and twelve principles for Agile development. The <strong>four values are:</strong></p><ul><li>Individuals and interactions over processes and tools</li><li>Working software over comprehensive documentation</li><li>Customer collaboration over contract negotiation</li><li>Responding to change by following a plan</li></ul><p>What the values mean is that Agile development is focused on creating functional software quickly, with a focus on collaborating with customers frequently, and being able to adapt as changes/challenges arise.</p><p>Agile Development has 6 <strong>stages in its Life Cycle </strong>:</p><ol><li>Scope out and prioritize projects</li><li>Diagram requirements for the initial sprint</li><li>Construction/iteration</li><li>Release the iteration into production</li><li>Production and ongoing support for the software release</li><li>Retirement</li></ol><h3>What are the benefits of using Agile Development Methodology?</h3><p>To review the benefits are an <strong>increased level of flexibility</strong> as teams can make adjustments on the fly as issues arise. There’s <strong>improved communication</strong> with a focus on collaboration and feedback from the development team with the customer. This also leads to <strong>greater customer satisfaction</strong>!</p><h3>What are the downsides to Agile then?</h3><p>Yeah, great question! Some of the disadvantages are:</p><ul><li><strong>High level of collaboration, </strong>because of the focus on team-centric work, it may be difficult for remote teams that aren’t used to that level of teamwork.</li><li><strong>Complex Projects may take some time,</strong> Agile development takes more time than other project management methodologies because of the number of meetings and documentation needed.</li></ul><h3>Where does Scrum come into play? What is Scrum methodology?</h3><p>Scrum is considered a framework of Agile Methodology. Agile development can be used as an umbrella term for software development. So Scrum is specifically a type of agile development that focuses on short, timed sprints about a month or less, as soon as one sprint ends another will begin. Now you see why Scrum is considered a framework of Agile as it utilizes sprints, but Agile can be more than that!</p><p>I couldn’t say it better myself so here’s a great breakdown of the difference thanks to #knowledgehut:</p><p>“On the whole, it is easy to see why Agile and Scrum can often be confused with each other, as they both rely on an iterative process, frequent feedback from clients, and collaborative decision-making. The key difference between Agile and Scrum is that Agile is a project management philosophy that works on a set of principles.” (<a href="https://www.knowledgehut.com/blog/agile/difference-agile-scrum">https://www.knowledgehut.com</a>)</p><p>Here is a breakdown of the stages for a sprint:</p><ul><li>Preparation</li><li>Sprint Planning (I’m sure you’ve seen that buzz word!)</li><li>Sprint (There it is again)</li></ul><p>In the Preparation stage, this is where the project manager or owner will create the backlog of features that will need to be developed for the final product, then the team estimates how long each feature will take to build.</p><p>In the Sprint Planning phase, this is where the team chooses which features from the backlog they will focus on during the sprint. <br>Note * Sprints are usually 2 weeks but that isn’t a set-in-stone rule*</p><p>In the Sprint phase, this is when the team begins working on the development of the feature discussed and chosen by the team. (Notice team is used a lot here collaboration is huge in Agile methodologies) If issues occur during development the team will add these issues to the backlog and prioritize them as they see fit. Once the sprint has ended the development team should’ve completed all the features for that sprint backlog.</p><h3>Pros and cons of Agile Methodology vs Scrum</h3><p>(Summarized by microfocus <a href="https://www.microfocus.com/en-us/what-is/agile-development">https://www.microfocus.com/</a> )</p><p>“Benefits of Agile development over Scrum include:</p><ul><li>Agile development is more flexible than Scrum. This means that it can be easier to make changes during the project.</li><li>Agile development produces less documentation than Scrum. This can be an advantage if you don’t need extensive documentation for your project.</li><li>Agile development can be a good choice for projects that are not well suited to Scrum’s time-boxed sprints. For example, if your project has a long timeline, Agile development might be a better option.</li></ul><p>Disadvantages of Agile development over Scrum include:</p><ul><li>Scrum is more structured than agile development. This means that it can be easier to stay on track and meet deadlines.</li><li>Scrum can be a good choice for projects that need to be completed quickly. This is because the time-boxed sprints force the development team to focus on completing the project in a certain time frame.</li><li>Scrum produces more documentation than Agile development. This is an advantage if you need extensive documentation for your project.”<br>(<a href="https://www.microfocus.com/en-us/what-is/agile-development">https://www.microfocus.com/en-us/what-is/agile-development</a>)</li></ul><p>Alright friends! Another week down and another concept learned. This was just a brief overview of this topic but I’ll list all the sources and the Agile Manifesto with its 12 principals down in the sources for those yearning for more knowledge! Now you know Agile is more of a philosophy and Scrum is just one implementation of Agile methodology, so don’t freak out next time you see these terms if you’re a junior dev. You have the knowledge and if you’re reading this article then you’re working on growth and that will take you a long way. Keep sippin&#39; from that fountain friends and until next time!</p><p>Sources:<br><strong>Microfocus:</strong> <a href="https://www.microfocus.com/en-us/what-is/agile-development">https://www.microfocus.com/en-us/what-is/agile-development</a><br><strong>Knowledgehut:</strong> <a href="https://www.knowledgehut.com/blog/agile/difference-agile-scrum">https://www.knowledgehut.com/blog/agile/difference-agile-scrum</a><br><strong>Agile Manifesto:</strong> <a href="https://agilemanifesto.org/">https://agilemanifesto.org/</a><br><strong>Principles of Agile Manifesto: </strong><a href="https://agilemanifesto.org/principles.html">https://agilemanifesto.org/principles.html</a><br><strong>Image by:</strong> &lt;a href=”<a href="https://www.freepik.com/free-vector/modern-agile-diagram-infographic_22430453.htm#query=agile%20methodology&amp;position=8&amp;from_view=keyword&amp;track=ais">https://www.freepik.com/free-vector/modern-agile-diagram-infographic_22430453.htm#query=agile%20methodology&amp;position=8&amp;from_view=keyword&amp;track=ais</a>&quot;&gt;Freepik&lt;/a&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bb071f0f080" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessibility and Why it is Important for Front-end Devs]]></title>
            <link>https://medium.com/design-bootcamp/accessibility-and-why-it-is-important-for-front-end-devs-5e7ccd4f0983?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e7ccd4f0983</guid>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[accessibility]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 20:25:58 GMT</pubDate>
            <atom:updated>2023-06-03T09:02:23.936Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGE8tKA06kSJbYNNtyhS6Q.jpeg" /></figure><p>Welcome welcome! Time for another sip into the ocean of computing knowledge! This time I’ll be discussing accessibility and how pertinent it is for front-end devs especially for junior developers just hopping into the industry. So let’s dive in and start off with the basics:</p><h3><strong>What is accessibility in terms of coding and who is the targeted population?</strong></h3><p><strong>Accessibility</strong> for programming and developing specifically means developing content/code that will be user-friendly for people that may have physical, visual, or auditory disabilities. There are more than just the three things I listed that can entail accessibility but this is just to give you some examples as to where I’ll be heading.</p><h3><strong>Why is accessibility important to incorporate into our code?</strong></h3><p>There are a multitude of reasons why it is important to incorporate accessibility into our code! They range from increasing the overall quality of the user experience to actual legalities. We must as developers realize how to create inclusive environments/applications for our users and we can do that by making our applications usable by everyone. Some examples to think of are: <br>- Can you use a phone and a smart TV to access your application and does it work in a smooth transition? Of course, this is a bit of a stretch but we must realize our users will utilize multiple types of devices to interact with our applications and we must consider how to best design the application for those devices.<br>- Using contrast ratios is huge for readability for a larger audience, the more legible/readable your website is the better. <br>- What if your mouse is broken or the batteries don’t work? This is the same as someone that may not be able to use a mouse at all so desiging your application to accomodate those with a physical impairment also helps other users with different difficulties. Accessibility is such a broad umbrella that can touch on many users for different reasons!</p><h3><strong>Legalities you say?</strong></h3><p>That’s right. Accessibility is an important legal requirement nowadays. There was a high-profile case involving Domino’s a few years ago (Check it out: <a href="https://www.boia.org/blog/the-robles-v.-dominos-settlement-and-why-it-matters#:~:text=A%20Quick%20Overview%20of%20Robles%20v.&amp;text=Robles%20alleged%20that%20the%20Domino&#39;s,with%20Disabilities%20Act%20(ADA).">https://www.boia.org/blog/the-robles-v.-dominos-settlement-and-why-it-matters</a>) So we must be persistent in our intention to be inclusive, but don’t be scared! There are easy ways we can incorporate accessibility into our design.</p><h3><strong>How to design with accessibility?</strong></h3><p>Firstly, dive into semantic HTML. <strong>What is semantic HTML</strong>? As per w3schools: “Semantic HTML means using correct HTML elements for their correct purpose as much as possible. Semantic elements are elements with a meaning; if you need a button, use the &lt;button&gt; element (and not a &lt;div&gt; element).” So trying to be as specific and direct with your design will be extremely helpful for screen readers to gain context.Fun fact: You may hear semantic HTML called “POSH” or Plain Old Semantic HTML. (Mozilla)</p><p>Secondly, try testing your application using Lighthouse. What is Lighthouse? “It is an open-source automated tool for improving the quality of web pages and you can run it in DevTools. It has audits for performance, accessibility, progressive web apps, SEO, and more.” (Microsoft)So with this tool, you can test your design and see where it’s going to score in terms of accessibility and it will generate a report for you. Pretty neat right? There is even a Chrome and Firefox extension for Lighthouse.</p><p>*<strong>Note</strong>: Google doesn’t recommend the extension though, as the extension doesn’t allow for testing of local sites and authenticated pages, which is something you can do in DevTools.</p><p>Speaking of extensions, you can use Wave on Chrome as another Accessibility Evaluation Tool. It has been used for quite some time (years) in the developer’s toolkits. This one is pretty cool as it adds an overlay so you can visually see where the issues are and it will point out the error as an icon that you can interact with to find out more information as what is wrong with it.</p><p>Finally, let us discuss the accessibility guidelines. The Web Content Accessibility Guidelines (WCAG) 2.1 to be specific. These are the important rules that we must follow and understand as we try to obtain a 100% from these criteria. This criteria was developed with other indivudals and organizations around the world with the goal of having a standard when it came to web content accessibility. This can be a deep rabbit hole so I’ll add some links for you to access as I’d be writing a novel to incorporate all the dos and don’ts within the guidelines.</p><p>Alrighty! This blog was written specifically for junior developers and career transitioners into tech that may be focused on learning as much code as we can get into our lil grubby paws. But hopefully, this gave you a moment of pause to think about how you can improve your own applications currently! Until next time friends, keep sipping from that fountain of knowledge. Cheers!</p><p>Sources:</p><p><a href="https://developer.mozilla.org/en-US/docs/Learn/Accessibility/HTML">https://developer.mozilla.org/en-US/docs/Learn/Accessibility/HTML</a></p><p><a href="https://www.w3schools.com/html/html_accessibility.asp">https://www.w3schools.com/html/html_accessibility.asp</a></p><p><a href="https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/accessibility/lighthouse">https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/accessibility/lighthouse</a></p><p><a href="https://www.w3.org/TR/WCAG21/#background-on-wcag-2">https://www.w3.org/TR/WCAG21/#background-on-wcag-2</a></p><p><a href="https://www.w3.org/WAI/WCAG21/Understanding/">https://www.w3.org/WAI/WCAG21/Understanding/</a></p><p><a href="https://www.boia.org/blog/the-robles-v.-dominos-settlement-and-why-it-matters#:~:text=A%20Quick%20Overview%20of%20Robles%20v.&amp;text=Robles%20alleged%20that%20the%20Domino&#39;s,with%20Disabilities%20Act%20(ADA).">https://www.boia.org/blog/the-robles-v.-dominos-settlement-and-why-it-matters#:~:text=A%20Quick%20Overview%20of%20Robles%20v.&amp;text=Robles%20alleged%20that%20the%20Domino&#39;s,with%20Disabilities%20Act%20(ADA).</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e7ccd4f0983" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/accessibility-and-why-it-is-important-for-front-end-devs-5e7ccd4f0983">Accessibility and Why it is Important for Front-end Devs</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Async in JavaScript: Event Loop, Promises, and Asynchronous code oh my!]]></title>
            <link>https://medium.com/@trey.delcamp/async-in-javascript-event-loop-promises-and-asynchronous-code-oh-my-55d49f90f1e2?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/55d49f90f1e2</guid>
            <category><![CDATA[asynchronous-programming]]></category>
            <category><![CDATA[promises-in-javascript]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[event-loop-in-js]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Wed, 24 May 2023 20:33:49 GMT</pubDate>
            <atom:updated>2023-05-24T20:35:54.265Z</atom:updated>
            <content:encoded><![CDATA[<p>I was looking for the differences between synchronous versus asynchronous code in Javascript and boy oh boy did it lead me down a rabbit hole! So let’s take our daily sip from the fountain of coding, shall we?</p><p>Let’s start with explaining how Javascript reads code. It is considered to be a single-threaded language, meaning that just one line of code may be run at once. This works well for synchronous code, which is when our code is read and executed line-by-line in the order that it is written. Asynchronous code is a little more complicated because we’ll need to understand a concept known as the “Event Loop” (to grasp what’s going on with asynchronous code and what it is. There’s a great example I found ( Thanks <a href="https://www.digitalocean.com/community/users/taniarascia">Tania Rascia</a>!) that clearly demonstrates how the code runs in a single-threaded language and explains the Event Loop. As you can see below we have some console logs:</p><pre>// Define three example functions<br>function first() {<br>  console.log(1)<br>}<br><br>function second() {<br>  console.log(2)<br>}<br><br>function third() {<br>  console.log(3)<br>}<br><br>// Execute the functions<br>first()<br>second()<br>third()<br><br>// The return in the terminal will look like:<br>// 1<br>// 2<br>// 3</pre><p>Okay cool, you can make an asynchronous code by using a built-in asynchronous request known as setTimeout. This is a timer that takes two arguments to say after blank amount of milliseconds to perform this action. This has to be asynchronous otherwise the entire browser is frozen waiting for the time limit to be reached before the user can continue doing things. Which of course would be super frustrating as a user because who knows how long we’re waiting! Continuing with the example I found:</p><pre>// Define three example functions, but one of them contains asynchronous code<br>function first() {<br>  console.log(1)<br>}<br><br>function second() {<br>  setTimeout(() =&gt; {<br>    console.log(2)<br>  }, 0)<br>}<br><br>function third() {<br>  console.log(3)<br>}<br><br>// Execute the functions<br>first()<br>second()<br>third()<br><br>// The return is now<br>// 1 <br>// 3<br>// 2</pre><p>So what happened here? Why did the function “second” console.log last even if we stated there to be a 0- millisecond delay? Let’s have another visualization and add some more terms and definitions! (I told you this rabbit hole can go deep!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*nqbkntl3F45qI369RXBTcQ.png" /><figcaption>Courtesy of <a href="https://www.javascripttutorial.net/">https://www.javascripttutorial.net/</a></figcaption></figure><p>Terms:</p><ul><li><strong>Heap:</strong> Holds variables and the like stored in memory</li><li><strong>Call Stack:</strong> It holds a list of the currently executing functions and their arguments &amp; local variables (known as frames here). <br><strong>*Note: The stack operates with a LIFO concept or Last-In-First-Out. <br>*Note:</strong> Since JavaScript is a single-threaded language there is only one call stack thus only one code at a time can be ran.</li><li><strong>Web API: A</strong>n application programming interface for the Web. (setTimeout is our built-in API for this scenario but fetching for data on other APIs is the same concept.)</li><li><strong>Callback Queue: </strong>Holds a list of functions (or rather messages that point to functions)<br><strong>*Note: Queues operate in a FIFO concept or First-In-First-Out</strong></li><li><strong>Event Loop:</strong> Watches the Queue and Stack and takes the first function from the queue and puts it on the stack once the stack is empty.</li></ul><p>Okay, let us take a minute to break down our code now. The stack holds the state of whatever function we’re running currently, the stack can only add or remove items from the end of the stack because of those LIFO properties. So Javascript will run the current “frame” (function or variable in a specific environment), after running it we’re ready for the next piece/line of code so we’ll remove that function and move on to the next.</p><p>With our first example, our console logs returned in order (synchronously) 1, 2, and 3. To break it down further function “first()” is added to the stack, then first() is ran (this is when 1 is logged), then first() is removed from the stack and the process will repeat for function second() and third().</p><p>Alright alright but what about that setTimeout and console.logging second() last on the next example?! Once again shoutout to <a href="https://www.digitalocean.com/community/users/taniarascia">Tania Rascia</a>! Check out their great explanation:</p><p>“The second example with setTimout looks like this:</p><ul><li>Add first() to the stack, run first() which logs 1 to the console, remove first() from the stack.</li><li>Add second() to the stack, run second().</li><li>Add setTimeout() to the stack, run the setTimeout() Web API which starts a timer and adds the anonymous function to the <em>queue</em>, remove setTimeout() from the stack.</li><li>Remove second() from the stack.</li><li>Add third() to the stack, run third() which logs 3 to the console, remove third() from the stack.</li><li>The event loop checks the queue for any pending messages and finds the anonymous function from setTimeout(), adds the function to the stack which logs 2 to the console, then removes it from the stack.</li></ul><p>Using setTimeout, an asynchronous Web API, introduces the concept of the <em>queue</em>”</p><p>Again the <strong>queue</strong> is the waiting area for functions whenever the call stack is empty the event loop will check the queue for any waiting messages, starting from the oldest message (FIFO properties!). <br>- Once it finds a message in the <strong>queue</strong>, it will<strong> add</strong> it to the <strong>stack</strong>, which will <strong>execute the function</strong> in the message and then be<strong> removed</strong> from the <strong>stack</strong>.</p><p><strong>Note:</strong> There is also another queue called the <em>job queue</em> or <em>microtask queue</em> that handles promises. Microtasks like promises are handled at a higher priority than macrotasks like setTimeout. (Tania Rascia)</p><p><strong>So why is asynchronous coding important?</strong> Because we do not want to call a function that will need information/data that may not exist yet. For example, we try to fetch data from an API about dogs and then the next function may try to enlarge the pictures of dogs. We don’t know how long it will take to grab all the pictures of the dogs though. This is the problem we face, if we ran it synchronously the function would try to enlarge the pictures of the dogs, but if we haven’t received the dogs we will have an error returned to us instead of larger pictures of dogs. So by going asynchronously, we can set aside the functions until the dogs are sent over from the fetch and then we can have the pictures enlarged thus no issues!</p><p>Some extra overview information about how JS runtime works: <br>Whenever Javascript executes javascript code it creates something called “execution contexts”. Execution contexts have two phases:</p><p><strong>The creation phase</strong>: (runs code twice before executing code).</p><ul><li>The first run picks all function declarations and stores them in memory (heap) with their reference.</li><li>The second run picks all variables and assigns undefined to all of them.<br><strong>Note: </strong>In the event of a conflict between the variable and function declaration name then the variable is ignored.</li></ul><p><strong>The execution phase:</strong> Firstly all variables are now assigned their values then the functions are executed.</p><p>Wow. Still with me? That can be a lot for a beginner much like myself but it isn’t as crazy once you’ve read over it a few times. Okay, so where do Promises come into play? Are we getting to Async/await keywords? Promises are next and so are Async/await keywords!</p><p>What are promises? A <strong>promise </strong>is an object that represents the eventual completion or failure of an asynchronous operation and its resulting value. Digging a bit deeper, in other words, a promise is a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with asynchronous actions eventually success value or failure reason. This lets asynchronous methods return values like synchronous methods instead of immediately returning the final value, the asynchronous method returns a promise to supply the value at some point in the future. Thus “a promise represents the completion of an asynchronous function” (Tania)<br> A promise can have 3 states:<br>- <strong>Pending:</strong> initial state, neither fulfilled/resolved nor rejected.<br>- <strong>Fulfilled:</strong> the operation was successful/resolved.<br>- <strong>Rejected:</strong> the operation failed.</p><p>Promises can be created or consumed. To create a Promise We’ll use Tania’s examples:</p><pre>// Initialize a promise<br>const promise = new Promise((resolve, reject) =&gt; {})<br><br>// Output<br>// __proto__: Promise<br>// [[PromiseStatus]]: &quot;pending&quot;<br>// [[PromiseValue]]: undefined</pre><p>“So far, nothing has been set up for the promise, so it’s going to sit there in a pending state forever. The first thing you can do to test out a promise is fulfill the promise by resolving it with a value:”</p><pre>const promise = new Promise((resolve, reject) =&gt; {<br>  resolve(&#39;We did it!&#39;)<br>})</pre><p>After being successfully fulfilled, the value goes from undefined to being populated with data.</p><p>After being fulfilled or rejected, a promise is settled.<br>(Tania)</p><p>Now consuming processes might sound bizarre but it really means to grab the data from the promise. Going off of Tania’s example above we can write:</p><pre>promise.then((response) =&gt; {<br>  console.log(response)<br>})<br><br>// The return is: We did it!</pre><p>Using the Fetch API with promises is super common and you’ve probably seen it if not used it many times. Fetch is a two-part process that allows you to make an asynchronous resource request over a network. Since it’s two parts we’ll need to chain .thens like so:</p><pre>fetch(&#39;https://dog.ceo/api/breeds/image/random&#39;)<br>            .then(r =&gt; r.json())<br>            .then(dogData =&gt; console.log(dogData.message))<br><br>// This will return a string for a random dog picture.</pre><p>The above code is fetching a random dog image for the Dog API and is console logging the fetched image string for a random dog picture. So breaking this down a bit further the fetch request is sent to the ‘https://dog.ceo/api/breeds/image/random&#39; URL, which will asynchronously wait for a response. The first .then passes the response to an anonymous function as JSON data. The second .then grabs the dog data and console.logs the string for the random dog picture.</p><p>Async / Await keywords:</p><p>To create an asynchronous function in javascript we can just add “async” in front of a function, and async functions still use promises under the hood. Ah-ha! There’s that connection, we’re now full circle! So if we execute the async function there will be a difference in its return, you’ll find that it returns a promise with a [[PromiseStatus]] and [[PromiseValue]] instead of a return value. Because of this, we can treat async functions like a fetch and use .thens because it uses promises! An async function can handle a promise called within it using the await operator. await can be used within an async function and will wait until a promise settles before executing the designated code. (Tania)</p><pre>// Create an async function<br>async function getDogPics(){<br>return{}<br>}<br><br>// This is incomplete and will not work until we implement await with the URL</pre><pre>// Full Async function for fetching dog pictures<br><br>async function getDogPics(){<br>   const response = await fetch(&#39;https://dog.ceo/api/breeds/image/random&#39;)<br>   const data = await response.json()<br>console.log(data)<br>}<br>getDogPics()<br><br>// This will return a string for a picture of a random dog!</pre><pre>//Using .thens with an async function<br>getDogPics().then((response) =&gt; console.log(response))</pre><p>So there you have it. We’ve learned about the Event Loop and asynchronous code versus synchronous code. We learned what promises are and how async functions utilize promises. We learned about the Fetch API and the setTimeout API. We learned how awesome <a href="https://www.digitalocean.com/community/users/taniarascia">Tania Rascia</a> is and if you’d like their examples and more explanations for the material we covered I highly encourage checking out their article as well! As we know there is always more to coding in the endless sea of development and so without further ado, keep coding and keep on sippin from that fountain. Cheers!</p><p>Resources:</p><p><a href="https://www.digitalocean.com/community/tutorials/understanding-the-event-loop-callbacks-promises-and-async-await-in-javascript">https://www.digitalocean.com/community/tutorials/understanding-the-event-loop-callbacks-promises-and-async-await-in-javascript</a></p><p><a href="https://www.youtube.com/watch?v=lqLSNG_79lI">https://www.youtube.com/watch?v=lqLSNG_79lI</a></p><p><a href="https://www.javascripttutorial.net/javascript-execution-context/">https://www.javascripttutorial.net/javascript-execution-context/</a></p><p><a href="https://www.javascripttutorial.net/javascript-event-loop/">https://www.javascripttutorial.net/javascript-event-loop/</a></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop</a></p><p><a href="https://www.youtube.com/watch?v=Kpn2ajSa92c">https://www.youtube.com/watch?v=Kpn2ajSa92c</a></p><p><a href="https://www.youtube.com/watch?v=_9vgd9XKlDQ">https://www.youtube.com/watch?v=_9vgd9XKlDQ</a></p><p><a href="https://www.youtube.com/watch?v=li7FzDHYZpc">https://www.youtube.com/watch?v=li7FzDHYZpc</a></p><p><a href="https://frontend.turing.edu/lessons/module-3/promises.html?ads_cmpid=6451354298&amp;ads_adid=76255849919&amp;ads_matchtype=&amp;ads_network=g&amp;ads_creative=582477081488&amp;utm_term=&amp;ads_targetid=dsa-19959388920&amp;utm_campaign=&amp;utm_source=adwords&amp;utm_medium=ppc&amp;ttv=2&amp;gclid=CjwKCAjwx_eiBhBGEiwA15gLN__cdjfuDOEgDRCxs1ql7PswmZMvlUDlylLd3_GuxmX1X1dQ0J98ChoCvc4QAvD_BwE">https://frontend.turing.edu/lessons/module-3/promises.html?ads_cmpid=6451354298&amp;ads_adid=76255849919&amp;ads_matchtype=&amp;ads_network=g&amp;ads_creative=582477081488&amp;utm_term=&amp;ads_targetid=dsa-19959388920&amp;utm_campaign=&amp;utm_source=adwords&amp;utm_medium=ppc&amp;ttv=2&amp;gclid=CjwKCAjwx_eiBhBGEiwA15gLN__cdjfuDOEgDRCxs1ql7PswmZMvlUDlylLd3_GuxmX1X1dQ0J98ChoCvc4QAvD_BwE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55d49f90f1e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is JWT and What Can It Do?]]></title>
            <link>https://medium.com/@trey.delcamp/what-is-jwt-and-what-can-it-do-3506a1c61e1e?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/3506a1c61e1e</guid>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[jwt-token]]></category>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[auth]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Wed, 03 May 2023 17:29:41 GMT</pubDate>
            <atom:updated>2023-05-03T17:29:41.907Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jMcsVH-1kdE0P81-.jpg" /><figcaption>image courtesy of: <a href="https://tech-ar.netlify.app/articles/ar533868/index.html">https://tech-ar.netlify.app/articles/ar533868/index.html</a></figcaption></figure><p>In the world of coding and software development there are constantly changing technologies and new knowledge, so let’s take our daily sip from the fountain of coding shall we?</p><p>I’ve recently completed the first stages (there’s always more we want to do right?) of a full-stack application and I wanted to test myself by learning a new way to authenticate my users instead of using cookies. This led me down a rabbit hole of what a JSON Web Token (JWT) is and how easily it can be implemented!</p><p>So let’s get started! What exactly is JWT? JWT is a way to share information between two entities, in my case that will be the client (front end) and my server (backend). JWTs contain JSON objects that have encryption securing the information/contents of the JWT, this is done using hashing or if you want to sound fancier cryptography. In short, we can have an object’s information saved under an encrypted string that will stay secure until we give it the passcode or “key” if you will.</p><p>How does it work? Great question! Think of JWTs as having two stages first is Encoding and the second is decoding. During encoding (encrypting) you will have up to three arguments that the token can accept:</p><p>1. Key/ value pair(s) (like a normal object)<br>2. Your secret key to unlock this token (generally this will be a string)<br>3. The third type of argument is what type of encryption it shall use but it is already defaulting to HS256 if nothing is stated.</p><pre>                           arg 1        arg 2    arg3 is optional <br># jwtVariable = JWT.encode({number:123}, &#39;nugget&#39;)<br><br># Calling jwtVariable =&gt; encrypted data separated by dots like so:<br> nj4324VJKFNRED432fdsf.DSAFHSFDGGFDAZgfdsa3rqa2rhb.jhsftgnjmcjx54zncz8xCVDSAZFsd<br><br> These separated parts of the JWT are labeled in the featured image at the top!</pre><p>The second stage is decoding (decrypting) now! So we have our jumble of characters and we now want to have our object “number: 123” to come back to us. Decoding a JWT can take two arguments:<br>1. the variable name of the JWT in our case “jwtVariable” <br>2. the secret key so in our case “nugget”</p><pre>JWT.decode(variable, &#39;nugget&#39;)</pre><p>Some good things to know about decoding JWTs:</p><p>The returned decoded data is in an array =&gt; [{‘number’=&gt;123}, {“alg”=&gt; “HS256”}]</p><p>a good habit is to assign decoded data as a variable to grab specifically our encoded data only like below:</p><p>token = JWT.decode(jwtVariable, ‘nugget’)[0]</p><p>token =&gt; {“number”=&gt;123}</p><p><strong>NOTE:</strong> JWT doesn’t allow array access via hash/symbols, must use strings in bracket notation like so:<br> token[‘number’] =&gt; 123</p><p>Okay so it can seem a bit crazy or confusing at first glance but this is a lot simpler as you gain some practice with it I promise! So what’s the purpose of use encrypting this data and decrypting it? A common use for JWTs is for authentication/authorization, in other words, I used JWTs to let my app know if someone was a user to have access to the app’s features and it would remember that specific user’s information. But how did I do this? Was JWT all I needed? Nope, I used one other cool concept known as localStorage! But that will be for another blog on how to combine the two, I promise this concept is the hard work of the two concepts!</p><p>Okay, so this seems awesome but are there some drawbacks as well? Yes for sure, so let us talk about the pros and cons! Shout out to (<a href="https://supertokens.com/blog/what-is-jwt#:~:text=JSON%20Web%20Token%20is%20an,that%20needs%20to%20be%20shared">supertokens.com</a>) for the great summary:</p><blockquote>PROS:</blockquote><blockquote><strong>Secure</strong>: JWTs are digitally signed using either a secret or a public/private key pair which stops them from being modified by the client or an attacker.</blockquote><blockquote><strong>Stored only on the client</strong>: You generate JWTs on the server and send them to the client. The client then submits the JWT with <strong>every</strong> request. This saves database space which leads to the third pro!</blockquote><blockquote><strong>Efficient / Stateless</strong>: It’s quick to verify a JWT since it doesn’t require a database lookup. This is super useful in larger distributed systems.</blockquote><blockquote>CONS:</blockquote><blockquote><strong>Non-revocable</strong>: Because of their self-contained nature and stateless verification process, it can be difficult to revoke a JWT before it expires naturally. Therefore, actions like banning a user immediately cannot be implemented easily. That being said, there is a way to maintain <a href="https://supertokens.com/blog/revoking-access-with-a-jwt-blacklist">JWT deny / black list</a>, and through that, we can revoke them immediately.</blockquote><blockquote><strong>Dependent on one secret key</strong>: The creation of a JWT depends on one secret key. If that key is compromised, the attacker can fabricate their own JWT which the API layer will accept. This in turn implies that if the secret key is compromised, the attacker can spoof any user’s identity. We can reduce this risk by changing the secret key from time to time.</blockquote><p>So JWTs can be a great way for developers to encode information to safeguard their users from hackers and it’s an efficient way to do so, which optimization is always a lingering goal for us is it not? Thus JWTs have many great uses and I’ve only stated one use as well as the well for JWTs goes much deeper. This was a generalized glance to give someone an idea but there is (as usual) much more for us to learn. Without further ado, keep coding and keep on sippin from that fountain. Cheers!</p><p>For more information:</p><p><a href="https://jwt.io/introduction">https://jwt.io/introduction</a></p><p>Sources:<br>Pros vs Cons: <a href="https://supertokens.com/blog/what-is-jwt#:~:text=JSON%20Web%20Token%20is%20an,that%20needs%20to%20be%20shared">https://supertokens.com/blog/what-is-jwt#:~:text=JSON%20Web%20Token%20is%20an,that%20needs%20to%20be%20shared</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3506a1c61e1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chat GPT the future of coding?]]></title>
            <link>https://medium.com/coinmonks/chat-gpt-the-future-of-coding-ebe6ad02b463?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebe6ad02b463</guid>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Thu, 05 Jan 2023 02:11:28 GMT</pubDate>
            <atom:updated>2023-01-07T05:58:53.710Z</atom:updated>
            <content:encoded><![CDATA[<p>ChatGPT. The name that’s taking the software develop-, no much more than software, it’s taking the world by storm. There are scores and scores of people using ChatGPT for all types of queries and questions. This program will allow people to start getting finally their explicit questions answered without going down 30 Google rabbit holes of similar information. So, let’s start with the basics. What is ChatGPT and what does that mean? ChatGPT is another version or type of the GPT (Generative Pre-training Transformer) language model that was developed specifically for generating text in a conversational context. This means we can type in a question to ChatGPT and it will give us an answer in reasonable English. As an example, I asked ChatGPT to explain the physics concept of the “Twin Paradox” to me. Below is its response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bG4ZdTLJOcE7iyWSMArc7g.png" /><figcaption>ChatGPT explaining the Twin Paradox</figcaption></figure><p>Now let’s compare this query with one from Google. I asked it the same question and here is its response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t3bDEfbbKX4f0K8kBiVrSw.png" /></figure><p>I think we have similar answers, yes, BUT ChatGPT does a much better job of giving extra information that acts as a synergist to one’s initial search. It will explain more background information to give you a well-thought-out explanation of what the twin paradox is, what concepts relate, and even what theories of physics are applicable to our question. Okay so it can explain physics theories big deal, but can it do math?!</p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a> on <a href="https://medium.com/coinmonks/crypto-exchange-dd2f9d6f3769">best crypto exchanges</a></blockquote><p>I once again asked ChatGPT to give an example of Pythagoras&#39; Theorem or the basic geometrical equation of a² + b² = c² and here is its response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*PAYk0fhdy97LjBIobfPRUg.png" /><figcaption>ChatGPT explaining Pythagorean Theorem</figcaption></figure><p>Let’s compare again to the massive powerhouse of queries known as Google:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Sao6-jJp4pZoLJKlIl_og.png" /><figcaption>Google Pythag</figcaption></figure><p>We’re again at a relatively close explanation with both Google and ChatGPT but there are some stark differences. Such as with ChatGPT gives you an explanation of the theory and then a complete example with three forms of reduction! While Google’s results, explain the theory and give you enough information to solve the theory on your own without any handholding. The equation is even reversed in the results of Google’s query to fit the example given. Okay, okay.. It can explain physics and math, can it help with coding? Lets find out as I ask it a simple question about creating an array and adding another in JavaScript:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*tYwAg9tl3IE0bId7dtHKAw.png" /><figcaption>ChatGPT creating and explaining arrays with concatenation</figcaption></figure><p>Okay. Wow. Come on. That’s really impressive. But it’s only fair to ask Google what can they give us as results in return with the same question! Find out below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uv0h1CmPMMmydh2K0Z84Uw.png" /><figcaption>Google results for concating arrays</figcaption></figure><p>As we can see, ChatGPT is far superior in this case with the explicit example shown as well as explaining a method used in Javascript for concatenating. Which mind you is also show on Google as a method that would work. My personal passion is in health and wellness so I figured I would ask it one more question. That being “What are ways I can still eat delicious foods while still clean bulking?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*12jJ5XVegW-CH4xhZ9Cfmw.png" /><figcaption>ChatGPT clean bulking</figcaption></figure><p>Google’s response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bmv4yC40LtUuDaEq2v0dAA.png" /><figcaption>Google’s results for clean bulking</figcaption></figure><p>As you can see again both platforms offer a decent amount of similar information. BUT some of the information on ChatGPT is incorrect. Specifically 1g of protein per pound of body weight is an insane amount of protein for your body to digest. There are multiple factors that go into what makes this amount reasonable and I don’t have the time to explain all of those. But I will say the staple amount of protein intake (for the average non-professional athlete or fitness enthusiast should be 1–1.4g of protein per kg of bodyweight. This can cause severe issues for people with a variety of backgrounds and so this answer with the rest being pretty great information makes it more dangerous for the average person than Google’s response.</p><p>With a wide range of subjects for it to cover one would think that ChatGPT has limits. So.. As one does we’ll dig down this rabbit hole even more! I asked ChatGPT what it’s limitations and weaknesses were and this was it’s response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*j7ylI_xrjUxPhZRoPXe9PA.png" /></figure><p>I asked Google as well to keep the flow we have going and of course to condone equity. Here was it’s response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*spuviBuoY4cKotikQ33PmQ.png" /><figcaption>Google results for ChatGPT weaknesses</figcaption></figure><p>As we can see these are very equal in sentiments and meanings. They are both explaining the same variables or factors that can cause issues with ChatGPT. It’s only afterall a chatbot. But this is the beginning of the next step for science. I’m sure of it, soon all assistants will start having the same amount of knowledge and general specificity to answer most mundane questions and exponential ones with the same level of clarification. Sure there is incorrect information still going around and there will have to be corrections for the current library available. This is still an amazing achievement, the future may not be here just yet as I’m sure there is much to troubleshoot and design, but we are living at the dawn of a new age for querying.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebe6ad02b463" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/chat-gpt-the-future-of-coding-ebe6ad02b463">Chat GPT the future of coding?</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding, an Industry Where You Can Make an Impact in the Stars!]]></title>
            <link>https://medium.com/@trey.delcamp/coding-an-industry-where-you-can-make-an-impact-in-the-stars-a8961895e76f?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8961895e76f</guid>
            <category><![CDATA[space-exploration]]></category>
            <category><![CDATA[nasa]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[space]]></category>
            <category><![CDATA[coding-language]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 01:04:13 GMT</pubDate>
            <atom:updated>2022-12-15T01:08:15.281Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently stumbled across a job for an entry-level programmer, but there was something very unique with this one. Queue the Star Wars intro music* “ Going to space is just the beginning. It’s what you do when you get there that matters. &lt;REDACTED&gt; builds the satellites and spacecraft that do amazing things in space for government and commercial customers. Connecting people. Advancing discovery…and protecting what matters most.” Hold the phone.. There’s something I can do in space? As a programmer? As soon as I saw this it sparked a desire to burrow down a rabbit hole for more information. What are the limits of space exploration and it’s correlation with programming? What languages are preferred? I immediately started going a million miles a minute because I belive that would be such a cool industry to work in! You get to say “I work with NASA”, and could even slightly argue that you’re a rocket scientist depending on what you’re doing there! So my journey has just started, but I hit an immediate hiccup where do I even begin?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*S2XTw9DOQxxlo-GTydgPcw.jpeg" /></figure><p>Let’s look into some of the recent background of coding and space for any other fellow space enthusiast that may want to have their work hit the stars. Microsoft in 2021 has partnered with NASA. This is the begginning of a very fruitful friendship and here’s why! Microsoft has started offering educational material/classes with the centric idea being “Python used in space exploration”, but it isn’t just about software development! These educational opportunities also include Articifical Intelligence (A.I.) and Machine Learning (M.L.)! So there’s a multitude of paths to get into this field! To give you some specifics on what you may be doing with A.I and M.L. you can “support instrument autonomy of rockets to enable further exploration of planets like Mars” and algorithms that connect weather and agriculture here on Earth.” (Techrepublic) The scenarios seem endless and this is only with Microsoft and NASA!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*LcNIE4y5rC1RAwkX3paEmw.jpeg" /><figcaption>Mars 2020 Perserverence Rover</figcaption></figure><p>Another example is with the Perserverance of the Mars rover landing without any human literally controlling it. But this was only possible through a huge collection of data that can be scrutinized and analyzed multiple times as they begin to compile predictions. This is where our super powers of computing and processing bring us mere mortals a chance to make a legacy in the stars. This is where the Apollo 11 mission comes into play, as human’s for the first time-ever successfully launched a rocket and placed people on the moon back in 1969, coding’s role in this was that of Margaret Hamilton’s efforts/work that created the “Apollo Guidance Computer”. Her code is what embodied the next wave of dreamers and engineers to come together as the next revolution was to begin for what humans could do next!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tDM8U0fiJAs8RuoWYF9WQ.jpeg" /><figcaption>Apollo Guidance Computer</figcaption></figure><p>Okay, okay. So there’s been a decent amount of human achievements that involve coding. But what kind of languages are being used for these application? The languages most sought after by NASA/ISRO according to techgig.com are: (content.techgig.com)</p><p><strong>1. HAL/S</strong><br>HAL/S is an aerospace programming language. NASA heavily relies on this programming language to build flight software for the NASA space shuttle program. This language majorly focuses on flight software requirements of the space shuttle. This programming language also features application-oriented data types and also helps in constructing system programming tasks.</p><p><strong>2. Python</strong><br>ISRO majorly relies on the Python programming language for processing and collecting data from various satellites and space devices. It’s one of the most useful programming languages and also has other beneficial features across the fields like AI, ML, and neural networking.</p><p><strong>3. Fortran</strong><br>Fortan programming language is best suited for scientific and numerical computation. As computation operations are relatively quick in this programming language so that is why it is considered one of the best programming languages.</p><p><strong>4. Java</strong><br>Java is considered one of the most favored programming languages at NASA, as most of the applications are based on Java programming. Further, Java acts as a bridge that makes collates flight dynamics efficiently, while handling and developing different applications that are extracted from architecture and analytic tools to communication support.</p><p><strong>5. MATLAB</strong><br>MATLAB is mainly used by ISRO engineers to plot graphs and analyse the outcome. Further, it helps in giving a more graphical representation of the collected data from the space via MATLAB programming language.</p><p><strong>6. Node.Js</strong><br>This programming language is used by NASA to keep track of astronauts and keep them safe on spacewalks and also help in keeping data accessible. NASA adopted this programming language after an unfortunate incident happened with one of their astronauts who had lost his life.</p><p><strong>7. VHDL</strong><br>This programming language is exclusively used in Attitude and Orbit Control Systems that handle the attitude and position of a complete space vehicle or satellite.</p><p><strong>8. C</strong><br>Both ISRO and NASA use C p programming language for ground operations. Further, it provides programmers with the ability to control how, when, and where to allocate and deallocate memory.</p><p><strong>9. C++</strong><br>C++ is considered one of the most powerful languages that are used in developing flight software. It helps in various ground operations.</p><p><strong>10. Perl</strong><br>Perl is one of the handiest programming languages in making various smooth-running simulation software. This programming language is mostly used at ISRO for efficient work.</p><p>As you can see there’s plenty of use for coding in the space and the exploration of it. As well as a variety of languages, that may allow you to work for a space organization. There are plenty of organizations that are paving the way and emboldening people to pursue their passions to achieve the next milestone in history. If you have any passions for space or something else this can be up your alley and not just a dream but a very near reality! I for one would happily hang my hat on “Coding on the Final Frontier”, would you?</p><p>Citations:</p><ul><li><a href="https://www.techrepublic.com/article/coding-and-space-microsoft-and-nasa-learning-pathways-serve-as-a-stem-career-launchpad/">Coding and space: Microsoft and NASA learning pathways serve as a STEM career launchpad</a></li><li><a href="https://www.byjusfutureschool.com/blog/coding-and-space-explorations-can-code-really-help-build-civilizations-on-other-planets/">Coding and Space: Can Coding Really Help Build Civilizations on Planets?</a></li><li><a href="https://content.techgig.com/career-advice/10-best-programming-languages-used-by-nasa-and-isro/articleshow/95552230.cms">10 Best programming languages used by NASA and ISRO</a></li></ul><p><a href="https://mars.nasa.gov/layout/mars2020/images/PIA23764-RoverNamePlateonMars-web.jpg">https://mars.nasa.gov/layout/mars2020/images/PIA23764-RoverNamePlateonMars-web.jpg</a> (Mars rover photo)</p><p><a href="https://parispeaceforum.org/wp-content/uploads/2021/10/NET-ZERO-SPACE-INITIATIVE-1.png">https://parispeaceforum.org/wp-content/uploads/2021/10/NET-ZERO-SPACE-INITIATIVE-1.png</a> (View from planet photo)</p><p><a href="https://www.universetoday.com/wp-content/uploads/2019/08/130897-2000x1200.jpg">https://www.universetoday.com/wp-content/uploads/2019/08/130897-2000x1200.jpg</a> (Appolo Guidance Computer Photo)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8961895e76f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Struggling to understand when to iterate over using an ActiveRecord Method?]]></title>
            <link>https://medium.com/@trey.delcamp/struggling-to-understand-when-to-iterate-over-using-an-activerecord-method-b81df21e4267?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/b81df21e4267</guid>
            <category><![CDATA[enumerable]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[methods]]></category>
            <category><![CDATA[where]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 03:07:46 GMT</pubDate>
            <atom:updated>2022-12-06T03:09:30.212Z</atom:updated>
            <content:encoded><![CDATA[<p>Well, let’s begin with the basics! Iteration is never a bad idea and with enough time and patience any solution can be created using it, but where is that line between using iteration to using a method that can perhaps solve your issue for you? This has been a rigorous journey for me as I’m a glutton for punishment doing it the long way as many of my attempts to shorten the length of my code has left me frustrated and/or disappointed. (Or both.) So for me where did this lightbulb “click” or where was my great epiphany that solved all the answers I had? Short answer is that there wasn’t a complete one, as the more you grow into this field of technology as a developer, there limits are constantly being pushed. As soon as you figure out some new syntax or a new method/function there’s a new obstacle to meet you with an as equally strong challenge.</p><p>BUT fear not! There’s hope! The line isn’t as clearly black or white as you may think. There are no right or wrong answers to coding if they both work. But I’m a perfectionist and short concise code gives me the warm fuzzies, while two paragraphs of code gives me anxiety just looking at it. So if you’re feeling like me, then you’re not alone and I have some tips to help you discover this line!</p><p>Tip 1. Iterations will always work so they’re a great fall back for the most part. If you find yourself stuck on an iteration for over 30 minutes,<strong> take a break</strong> and come back. If it’s still giving you some trouble this should be a warning that maybe we missed something else, and that we’re making it more difficult than it needs to be.</p><p>Tip 2. In Ruby there’s a method for 90% of the things you’ll probably come across as someone somewhere as already encountered what you’re trying to solve. There are a few great ways to look into these methods:</p><ul><li><strong>Go to the source/primary documentation of your language!</strong> (<a href="https://ruby-doc.org/">https://ruby-doc.org/</a> and select your corresponding version) <br>This can help you find many different methods/syntax for those methods that are built into Ruby already, plus even show you what’s new if you recently updated!</li><li><strong>Checkout blogs from other developers</strong> using Google. Type in your specific problem and see how many other developers have come across your issue. Did they come to a unanimous decision?</li><li><strong>Ask your peers!</strong> You may not always have access to tutors, mentors, or peers, but if you do add those tools to your toolbelt Batman!</li></ul><p>Tip 3. Great news! You’ve found a similar solution or found a method/function that should work for you, but you keep getting pesky errors. What could be going on? In my personal experience, I’ve gotten too gung ho immediately and forgotten (or skipped) reading the proper syntax for the corresponding method. <strong>Don’t jump the gun! </strong>It’s better if you’re prepared and truly know exactly how to use the code than to try and throw darts at the board when it could’ve been solved 30 minutes earlier!</p><p>Tip 4. Iteration versus methods: For me, the primary key in <strong>deciding which direction I go is ultimately based on the level of comfortability I have creating the code for my specific solution AND if I can see this code being a better foundation for the rest of the project</strong>. This is very much a “gray-area” answer because sometimes, it may take a little longer than 30 minutes using the iteration approach but it may seem more practical in the long run pending on what you’re trying to do. While methods can be amazing short cuts if you understand the proper syntax to implement them and/or even knowing that method exists!</p><p>Some examples of when it could be the right time for each:</p><p>Let’s start with the three most common iterators and understanding the best time to use them: .each, .map, .filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*gjDA930aM3df6NNx6_NVFw.png" /><figcaption>General use of .each iteration.</figcaption></figure><p>This is a simple case of multiplication. We want to see the new values of each element in the array if we were to double its value, but with a .each what happens with the return? Using a .each will go over every single element in that array or collection and then perform the block of code you set it to, but the <strong>.each will also return the array unaltered</strong> thus not giving us an array of the new values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*dZqHt1nu087W9MFcDbf46Q.png" /><figcaption>Using .map for this iteration.</figcaption></figure><p>As you can see the <strong>.map</strong> here returns the new values of each element in the array if doubled its value, the biggest concept here is by <strong>returning the new values of the elements in an array</strong> of the same size/length; i.e. The same number of elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*cogmYRk-Bdz-RcXaJVkG_w.png" /><figcaption>Using .select/.filter</figcaption></figure><p>Using <strong>.filter/.select is a great choice for going through your collection and grabbing element(s) based off of a condition.</strong> In this case, checking to see if any elements that are iterated are even, if they are meeting that condition then they are <strong>returned inside a new array.</strong></p><p>Active Record Methods for iteration/querying: Okay you’ve got the basics down, but now you’re given a more challenging task. It’s no longer a simple array, but now you’re given the task of using a class method to return an instance or two based on a single condition from your data. Is it still the best idea to iterate?</p><p>Let us take a look:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*iBc3jbD5v9Q2y6zVD7MOkQ.png" /><figcaption>Iteration vs .where method</figcaption></figure><p>They both look like they should return the same values right? This is the biggest advice you can get when understanding which concept may be better for your specific case. <strong>Know the return of the method.</strong> This may sound very simple, but as coders we find all sorts of ways to continually push the limits of methods and functions. The results will vary as they both look like they should work! BUT the .map iterator will only return booleans based on that condition while the .where method will return the instances that have met that criteria! This is a small but HUGE mistake when you’re following the train of thought. In the end using ActiveRecord methods are only to simplify your work, but there is no perfect use-all method, they require your own diligence to decide when it may be easier/better for you to use one over the other.</p><p><strong>NOTICE: </strong>If you used a .filter instead of the .map the results would then give you back what you’re looking for. I was merely demonstrating how easy it is to use an iterator with the same conditional and get a completely different answer than what you were looking for. In this case, the .where can be a bit shorter in code than a .filter, but finding which one you’re most comfortable with is the most important. I hope this has given you some insight as to which may make your life a bit easier in the future!</p><p><strong>P.S. .where ALSO returns an array as seen above.</strong></p><p>Citations: <br><a href="https://dev.to/eidorianavi/enumeration-in-ruby-2ooi">https://dev.to/eidorianavi/enumeration-in-ruby-2ooi</a> (first 3 pictures)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b81df21e4267" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the heck is State and why is it important to understand for React?]]></title>
            <link>https://medium.com/@trey.delcamp/what-the-heck-is-state-and-why-is-it-important-to-understand-for-react-5e0beb48af96?source=rss-eeb7d9936790------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e0beb48af96</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[state]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Trey Delcamp]]></dc:creator>
            <pubDate>Fri, 28 Oct 2022 00:23:50 GMT</pubDate>
            <atom:updated>2022-10-28T00:23:50.325Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6C4nSvy2Woe0m7bWEn4BA.png" /></figure><p>Oh boy. Where to begin? The first time I heard about State I was unsure what that even meant as far as coding was concerned. Was State a temporary concept for something? Was State something that had phases? I’d heard about “Save State”, “change State”, and even an abstract term “this.state”. Now we need not worry too much about the last term as it is still very much around, but it is a legacy term now and will be used less and less going forward as React has switched from using class components to hooks (thanks to updates!). I will clarify that it is still beneficial for experienced React developers to understand the “this.state” concept as it may be used in one of your future employer’s software systems. But for those who are just dipping their toes into React. I urge you to stay away from that rabbit hole as the concept and the visualization/ syntax of “this” can make it appear more abstract and more difficult to follow along/ understand the funnctionality of State. The first two terms speak of the same thing actually, just in a slightly different utilization. Let’s begin clarifying!</p><p>What is state? State has a very specific<strong> syntax</strong> that must be understood going forward: <strong>const [stateVariable, stateFunction] = useState(initialStateVariableValue).</strong> See below for another visual/explanation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*kcpsZyrMlPWbRQmgqoLDqg.png" /></figure><p>State in all of its entirety is really just focusing on the stateVariable or as you’ve seen “state”. This is the only thing that can really be changed and in the broader scope of React the main focus point of state! This is because the stateVariable can ONLY be changed by using the setState or “stateFunction” also commonly known as the “setter” because as it’s name implies the setState is what will set the value of your stateVariable. This is how we can make our stateVariable have different values or become dynamic. But wait there’s more!</p><p>Whenever the stateFunction is used, it is used inside of a function that way whenever the function is called/invoked and it’s code block is ran the stateVariable will change its value. As this happens the state value is no longer the initialValue, it has been replaced with whatever the “setter” made it into and that is the new value. As the value is changed another thing is happening with the page, it is actually being re-rendered! This is how the initialValue is replaced with the stateFunction/”setter’s” value. Here is an example of state being used, to help you keep following along:</p><p>SideNote: (What I mean about being rerendered if you’re new to the tech industry, is to think of render as displaying. So if a page rerenders think of it as displaying new information whether it’s replacing something, adding on to another part of the page or even removing something from the page. All of that is under the umbrella of rerendering.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2tufsiVeLgTiOReOf2jNBA.png" /><figcaption>State being used to increase by 1</figcaption></figure><p>As seen above, these are all of the incorporating parts of state and using state. At the top of your code, you have to import “{useState}” to allow state to be read and rendered later on. Then you have your function aka “Component” this is generally found at the top and will be generally your first function created in your component.js. Again disregard that pesky archaic “this.state” for now! The stateVariable would be “count” and the stateFunction would be “setCount”. The event listeners in React are much easier to implement, the one used above is the “onPress={handleButtonClick} inside the button JSX tag. You can see setCount is inside of an event handler function saying “once this button is pressed, add 1 to the stateVariable”. That is happening because the value of the setCount is (stateVariable + 1). Now everytime the button is clicked the page rerenders giving you a new up to date total! So if the button was clicked seven times, the total would be seven because our initial value for the stateVariable was set to “0”. So if the initial value was 11 and the button was pressed seven times, the new value of Count would be 18!</p><p>That’s is the overall concept of State! Now it can get a bit more in-depth as you learn to pass props down from components or use callbacks to get data back up to the other ones. Now you’ll understand why there are so many names that are similar but slightly different throughout your time with React. This doesn’t cover all of those naming reasons, but this will help you understand that the setState is only changing state, nothing more, and nothing less. So I urge you to keep this idea this simple. Because this is the big part of state, just changing one variable so a page can be rerendered to show different things, whether that is showing a brand new form that was created and submitted to the page (think of a Facebook Post/survey), or maybe you want to delete a message (you can think of email). As you change the page, state allows React to rerender the page to obey the user’s input or their command. It’s nothing crazier than that. So keep it simple. Keep Calm. Carry on.</p><p>Image Sources: (I really recommend the blog by Liz too if you’d like another explanation that incorporates a few more topics with the information I mentioned above!)</p><p>First Image: <a href="https://blog.schoolofcode.co.uk/getting-to-know-the-usestate-hook-in-react-part-one-your-first-state-a6ef953d2682">https://blog.schoolofcode.co.uk/getting-to-know-the-usestate-hook-in-react-part-one-your-first-state-a6ef953d2682</a> <a href="https://medium.com/u/9bd6576e242b">Liz Kaufman</a></p><p>Second Image: <a href="https://medium.com/@loons.create/react-hooks-how-to-use-usestate-and-useeffect-example-914c161df34d">https://medium.com/@loons.create/react-hooks-how-to-use-usestate-and-useeffect-example-914c161df34d</a> <a href="https://medium.com/u/4ddfabaf8f20">Asbar Ali</a></p><p>React Logo: <a href="https://reactjs.org/">https://reactjs.org/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e0beb48af96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>