<?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 Ken Parks on Medium]]></title>
        <description><![CDATA[Stories by Ken Parks on Medium]]></description>
        <link>https://medium.com/@kmparks60?source=rss-c61a9cb7e3c3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*de5PVAwZLbbIkWb1HEXp3g.png</url>
            <title>Stories by Ken Parks on Medium</title>
            <link>https://medium.com/@kmparks60?source=rss-c61a9cb7e3c3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:41:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kmparks60/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[ JavaScript Basics — Part 5: APIs, Fetch, and Bringing It All Together]]></title>
            <link>https://medium.com/@kmparks60/javascript-basics-part-5-apis-fetch-and-bringing-it-all-together-4147c0b6a108?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/4147c0b6a108</guid>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[tech-blog]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 15:59:14 GMT</pubDate>
            <atom:updated>2025-06-06T15:59:14.973Z</atom:updated>
            <content:encoded><![CDATA[<h3>📬 JavaScript Basics — Part 5: APIs, Fetch, and Bringing It All Together</h3><p><a href="https://www.linkedin.com/in/kenmparks/"><strong>LinkedIn</strong></a><strong> / </strong><a href="https://github.com/kmparks60"><strong>GitHub</strong></a><strong> / </strong><a href="https://kenparks.b12sites.com/"><strong>My Website</strong></a></p><p>Hey everyone! Welcome to the final post in my JavaScript Basics series. We’ve covered variables, functions, arrays, objects, the DOM, and event listeners. Today, we’re diving into <strong>APIs and CRUD operations</strong> — the foundation of modern web development.</p><p>If you’re just joining us, check out the earlier posts! (<a href="https://medium.com/@kmparks60/let-blogtopic-js-basics-pt-1-f14b0569e8a9"><strong>1</strong></a><strong>, </strong><a href="https://medium.com/@kmparks60/flatiron-junction-whats-your-function-1cc4fc795601"><strong>2</strong></a><strong>, </strong><a href="https://medium.com/@kmparks60/javascript-basics-part-3-arrays-objects-sets-how-to-iterate-through-them-b513f9613f07"><strong>3</strong></a><strong>, </strong><a href="https://medium.com/@kmparks60/javascript-basics-part-4-javascript-and-the-dom-event-listeners-7fdbc0d686fb"><strong>4</strong></a>)</p><p>Today we’re covering:</p><ul><li>What APIs are and how to access them</li><li>API authentication and keys</li><li>Complete CRUD operations (Create, Read, Update, Delete)</li><li>Real-world examples with working code</li><li>Best practices and error handling</li></ul><p>Let’s dive in! 🚀</p><h3>🌐 Understanding APIs</h3><p><strong>API</strong> stands for Application Programming Interface. Think of it as a waiter in a restaurant:</p><ol><li><strong>You</strong> (JavaScript) place an order (make a request)</li><li><strong>Waiter</strong> (API) takes your order to the kitchen</li><li><strong>Kitchen</strong> (server/database) prepares your food</li><li><strong>Waiter</strong> brings back your meal (response data)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*o71hsan6vVqBSNYlO0rfKw.jpeg" /></figure><p>APIs let different applications communicate with each other. When you check the weather on your phone, post on social media, or make an online payment, you’re using APIs.</p><h3>🔐 API Authentication and Keys</h3><p>Most APIs require authentication to:</p><ul><li>Prevent abuse and rate limiting</li><li>Track usage and billing</li><li>Secure sensitive data</li><li>Provide personalized responses</li></ul><h3>Common Authentication Methods</h3><h4>1. API Keys</h4><p>The simplest form — like a password for your app:</p><pre>const API_KEY = &#39;your-secret-key-here&#39;;</pre><pre>const response = await fetch(&#39;https://api.example.com/data&#39;, {<br>  headers: {<br>    &#39;X-API-Key&#39;: API_KEY,<br>    &#39;Content-Type&#39;: &#39;application/json&#39;<br>  }<br>});</pre><h4>2. Bearer Tokens</h4><p>More secure, often with expiration:</p><pre>const ACCESS_TOKEN = &#39;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...&#39;;</pre><pre>const response = await fetch(&#39;https://api.github.com/user/repos&#39;, {<br>  headers: {<br>    &#39;Authorization&#39;: `Bearer ${ACCESS_TOKEN}`,<br>    &#39;Accept&#39;: &#39;application/vnd.github.v3+json&#39;<br>  }<br>});</pre><h4>3. OAuth (Advanced)</h4><p>For accessing user data on their behalf:</p><pre>async function getGoogleUserData(accessToken) {<br>  const response = await fetch(&#39;https://www.googleapis.com/oauth2/v2/userinfo&#39;, {<br>    headers: {<br>      &#39;Authorization&#39;: `Bearer ${accessToken}`<br>    }<br>  });<br>  <br>  return await response.json();<br>}</pre><h3>📖 READ Operations (GET)</h3><p>Reading data is the most common operation:</p><h4>Basic GET Request</h4><pre>async function getUsers() {<br>  try {<br>    const response = await fetch(&#39;https://jsonplaceholder.typicode.com/users&#39;);<br>    <br>    if (!response.ok) {<br>      throw new Error(`HTTP error! status: ${response.status}`);<br>    }<br>    <br>    const users = await response.json();<br>    console.log(&#39;Users:&#39;, users);<br>    return users;<br>  } catch (error) {<br>    console.error(&#39;Failed to fetch users:&#39;, error);<br>    return null;<br>  }<br>}</pre><h4>GET with Authentication</h4><pre>async function getUserProfile(userId, apiKey) {<br>  const response = await fetch(`https://api.example.com/users/${userId}`, {<br>    headers: {<br>      &#39;Authorization&#39;: `Bearer ${apiKey}`,<br>      &#39;Accept&#39;: &#39;application/json&#39;<br>    }<br>  });<br>  <br>  if (response.status === 401) {<br>    throw new Error(&#39;Invalid API key or unauthorized access&#39;);<br>  }<br>  <br>  return await response.json();<br>}</pre><h3>➕ CREATE Operations (POST)</h3><p>Creating new data requires sending information to the server:</p><h4>Basic POST Request</h4><pre>async function createUser(userData) {<br>  try {<br>    const response = await fetch(&#39;https://jsonplaceholder.typicode.com/users&#39;, {<br>      method: &#39;POST&#39;,<br>      headers: {<br>        &#39;Content-Type&#39;: &#39;application/json&#39;,<br>      },<br>      body: JSON.stringify(userData)<br>    });<br>    <br>    if (!response.ok) {<br>      throw new Error(`Failed to create user: ${response.status}`);<br>    }<br>    <br>    const newUser = await response.json();<br>    console.log(&#39;User created:&#39;, newUser);<br>    return newUser;<br>  } catch (error) {<br>    console.error(&#39;Create user failed:&#39;, error);<br>    throw error;<br>  }<br>}</pre><pre>const userData = {<br>  name: &#39;John Doe&#39;,<br>  email: &#39;john@example.com&#39;,<br>  phone: &#39;555-1234&#39;<br>};</pre><pre>createUser(userData);</pre><h4>POST with File Upload</h4><pre>async function uploadProfileImage(file, userId, apiKey) {<br>  const formData = new FormData();<br>  formData.append(&#39;image&#39;, file);<br>  formData.append(&#39;userId&#39;, userId);<br>  <br>  try {<br>    const response = await fetch(&#39;https://api.example.com/upload/profile&#39;, {<br>      method: &#39;POST&#39;,<br>      headers: {<br>        &#39;Authorization&#39;: `Bearer ${apiKey}`<br>        // Don&#39;t set Content-Type for FormData - browser sets it automatically<br>      },<br>      body: formData<br>    });<br>    <br>    const result = await response.json();<br>    return result;<br>  } catch (error) {<br>    console.error(&#39;Upload failed:&#39;, error);<br>    throw error;<br>  }<br>}</pre><h3>POST with Validation</h3><pre>async function createBlogPost(postData, apiKey) {<br>  // Client-side validation<br>  if (!postData.title || postData.title.length &lt; 5) {<br>    throw new Error(&#39;Title must be at least 5 characters long&#39;);<br>  }<br>  <br>  if (!postData.content || postData.content.length &lt; 100) {<br>    throw new Error(&#39;Content must be at least 100 characters long&#39;);<br>  }<br>  <br>  try {<br>    const response = await fetch(&#39;https://api.blog.com/posts&#39;, {<br>      method: &#39;POST&#39;,<br>      headers: {<br>        &#39;Content-Type&#39;: &#39;application/json&#39;,<br>        &#39;Authorization&#39;: `Bearer ${apiKey}`<br>      },<br>      body: JSON.stringify({<br>        title: postData.title,<br>        content: postData.content,<br>        tags: postData.tags || [],<br>        published: postData.published || false,<br>        createdAt: new Date().toISOString()<br>      })<br>    });<br>    <br>    if (!response.ok) {<br>      const errorData = await response.json();<br>      throw new Error(errorData.message || &#39;Failed to create post&#39;);<br>    }<br>    <br>    return await response.json();<br>  } catch (error) {<br>    console.error(&#39;Failed to create blog post:&#39;, error);<br>    throw error;<br>  }<br>}</pre><h3>✏️ UPDATE Operations (PUT/PATCH)</h3><p>Updating existing data — two main approaches:</p><h3>PUT vs PATCH</h3><pre>// PUT - Replace entire resource<br>async function updateUserPUT(userId, completeUserData, apiKey) {<br>  const response = await fetch(`https://api.example.com/users/${userId}`, {<br>    method: &#39;PUT&#39;,<br>    headers: {<br>      &#39;Content-Type&#39;: &#39;application/json&#39;,<br>      &#39;Authorization&#39;: `Bearer ${apiKey}`<br>    },<br>    body: JSON.stringify(completeUserData) // Full user object<br>  });<br>  <br>  return await response.json();<br>}<br><br>// Usage example<br>updateUserPUT(123, {<br>  name: &#39;John Doe&#39;,<br>  email: &#39;john@example.com&#39;,<br>  phone: &#39;555-1234&#39;,<br>  address: &#39;123 Main St&#39;<br>}); // Replaces entire user record</pre><pre>// PATCH - Update specific fields only<br>async function updateUserPATCH(userId, partialData, apiKey) {<br>  const response = await fetch(`https://api.example.com/users/${userId}`, {<br>    method: &#39;PATCH&#39;,<br>    headers: {<br>      &#39;Content-Type&#39;: &#39;application/json&#39;,<br>      &#39;Authorization&#39;: `Bearer ${apiKey}`<br>    },<br>    body: JSON.stringify(partialData) // Only changed fields<br>  });<br>  <br>  return await response.json();<br>}<br><br>// Usage example<br>updateUserPATCH(123, {<br>  email: &#39;newemail@example.com&#39;<br>}); // Only updates email field</pre><h3>🗑️ DELETE Operations</h3><p>Removing data from the server:</p><h4>Basic DELETE:</h4><pre>async function deleteUser(userId, apiKey) {<br>  try {<br>    const response = await fetch(`https://api.example.com/users/${userId}`, {<br>      method: &#39;DELETE&#39;,<br>      headers: {<br>        &#39;Authorization&#39;: `Bearer ${apiKey}`<br>      }<br>    });<br>    <br>    if (!response.ok) {<br>      throw new Error(`Delete failed: ${response.status}`);<br>    }<br>    <br>    // Some APIs return deleted data, others return empty response<br>    const result = response.status === 204 ? null : await response.json();<br>    console.log(&#39;User deleted successfully&#39;);<br>    return result;<br>  } catch (error) {<br>    console.error(&#39;Delete failed:&#39;, error);<br>    throw error;<br>  }<br>}</pre><h3>🚫 Common Mistakes (Learn from Me!)</h3><h3>1. Not Checking Response Status</h3><pre>// Bad - doesn&#39;t check if request succeeded<br>const response = await fetch(&#39;/api/data&#39;);<br>const data = await response.json(); // might fail!</pre><pre>// Good - always check<br>const response = await fetch(&#39;/api/data&#39;);<br>if (!response.ok) {<br>  throw new Error(`Failed to fetch: ${response.status}`);<br>}<br>const data = await response.json();</pre><h3>2. Forgetting About CORS</h3><p>CORS (Cross-Origin Resource Sharing) can block your requests. If you get CORS errors:</p><ul><li>Use APIs that allow cross-origin requests</li><li>Set up a proxy server</li><li>Use browser extensions for development (not for production!)</li></ul><h3>3. Not Handling Network Failures</h3><pre>// Always assume the network might fail<br>try {<br>  const response = await fetch(url);<br>  // ... handle response<br>} catch (error) {<br>  if (error.name === &#39;NetworkError&#39;) {<br>    console.log(&#39;Network error - user might be offline&#39;);<br>  }<br>  // Handle other errors too<br>}</pre><h3>🎉 Series Wrap-Up</h3><p>And that’s a wrap on the JavaScript Basics series! Thanks for following along with this series. We’ve covered:</p><ul><li><strong>Part 1</strong>: Variables, conditionals, and functions</li><li><strong>Part 2</strong>: Scope and more advanced functions</li><li><strong>Part 3</strong>: Arrays, objects, sets, and iteration</li><li><strong>Part 4</strong>: DOM manipulation and event listeners</li><li><strong>Part 5</strong>: APIs and fetching data</li></ul><p>You now have all the fundamental skills needed to build interactive web applications! These concepts form the foundation that everything else builds on, whether you’re learning React, Node.js, or any other JavaScript technology.</p><h3>What’s Next?</h3><p>Here are some great next steps:</p><ul><li>Build a portfolio project combining all these concepts</li><li>Learn a framework like React or Vue</li><li>Explore Node.js for backend development</li><li>Practice with coding challenges on sites like LeetCode</li><li>Contribute to open-source projects</li></ul><p>The most important thing is to keep building. Take these concepts and make something cool with them!</p><p>Feel free to reach out if you have questions or want to share what you’re building!</p><p>Keep coding! 💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4147c0b6a108" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Basics — Part 4: JavaScript and the DOM + Event Listeners]]></title>
            <link>https://medium.com/@kmparks60/javascript-basics-part-4-javascript-and-the-dom-event-listeners-7fdbc0d686fb?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fdbc0d686fb</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[tech-blog]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Fri, 30 May 2025 17:31:09 GMT</pubDate>
            <atom:updated>2025-05-30T17:31:09.982Z</atom:updated>
            <content:encoded><![CDATA[<h3>🌐JavaScript Basics — Part 4: JavaScript and the DOM + Event Listeners</h3><p><a href="https://www.linkedin.com/in/kenmparks/"><strong>LinkedIn</strong></a><strong> / </strong><a href="https://github.com/kmparks60"><strong>GitHub</strong></a><strong> / </strong><a href="https://kenparks.b12sites.com/"><strong>My Website</strong></a></p><p>Hey everyone! Welcome back to Part 4 of the JavaScript series. If you’re just joining, check out the earlier posts covering variables, conditionals, functions, scope, and data structures like arrays and objects. (<a href="https://medium.com/@kmparks60/let-blogtopic-js-basics-pt-1-f14b0569e8a9"><strong>1</strong></a><strong>, </strong><a href="https://medium.com/@kmparks60/flatiron-junction-whats-your-function-1cc4fc795601"><strong>2</strong></a><strong>, </strong><a href="https://medium.com/@kmparks60/javascript-basics-part-3-arrays-objects-sets-how-to-iterate-through-them-b513f9613f07"><strong>3</strong></a>)</p><p>Today, we’re diving into one of the most exciting parts of JavaScript — making web pages interactive! We’ll be covering:</p><ul><li>The DOM (Document Object Model)</li><li>Selecting and manipulating elements</li><li>Event listeners</li><li>Real examples you can try yourself</li></ul><p>I’ve set up some examples on OneCompiler, so follow along <a href="https://onecompiler.com/javascript/"><strong>here</strong></a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uhQ4F1GLP8g5p4f9UyPPIA.png" /></figure><h3>What is the DOM?</h3><p>The DOM is basically JavaScript’s way of talking to your HTML. Think of it as a bridge between your JavaScript code and the elements on your web page.</p><p>When your browser loads an HTML page, it creates a DOM. This is a tree-like structure where every HTML element becomes an object that JavaScript can work with.</p><h4>Here’s a simple HTML page:</h4><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;My Page&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;div id=&quot;container&quot;&gt;<br>      &lt;h1&gt;Welcome!&lt;/h1&gt;<br>      &lt;p class=&quot;intro&quot;&gt;This is my paragraph.&lt;/p&gt;<br>    &lt;/div&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>The DOM turns this into a tree where JavaScript can grab any element and do things with it — change text, add styles, respond to clicks, and more.</p><h3>🎯 Selecting DOM Elements</h3><p>Before we can do anything fun, we need to grab elements from our page. JavaScript gives us several ways to do this:</p><h4>The Most Common Ways:</h4><pre>// Grab an element by its ID<br>const header = document.getElementById(&#39;main-header&#39;);</pre><pre>// Grab the first element with a specific class<br>const button = document.querySelector(&#39;.btn-primary&#39;);</pre><pre>// Grab ALL elements with a class<br>const allButtons = document.querySelectorAll(&#39;.btn&#39;);</pre><pre>// Grab elements by tag name<br>const paragraphs = document.getElementsByTagName(&#39;p&#39;);</pre><h3>🛠️ Manipulating Elements</h3><p>Once you’ve selected an element, the fun begins! You can change pretty much anything about it.</p><h4>Changing Content:</h4><pre>const title = document.querySelector(&#39;h1&#39;);</pre><pre>// Change just the text<br>title.textContent = &#39;New Title!&#39;;</pre><pre>// Change HTML content (be careful with this!)<br>title.innerHTML = &#39;New &lt;strong&gt;Bold&lt;/strong&gt; Title!&#39;;</pre><h4>Messing with Attributes:</h4><pre>const image = document.querySelector(&#39;img&#39;);</pre><pre>// Set attributes the traditional way<br>image.setAttribute(&#39;src&#39;, &#39;new-image.jpg&#39;);<br>image.setAttribute(&#39;alt&#39;, &#39;A cool picture&#39;);</pre><pre>// Or directly<br>image.src = &#39;another-image.jpg&#39;;<br>image.className = &#39;featured-image&#39;;</pre><h4>Playing with CSS Classes:</h4><pre>const box = document.querySelector(&#39;.box&#39;);</pre><pre>// Add, remove, or toggle classes<br>box.classList.add(&#39;highlighted&#39;);<br>box.classList.remove(&#39;old-style&#39;);<br>box.classList.toggle(&#39;active&#39;); // adds if not there, removes if it is</pre><h4>Styling Elements:</h4><pre>const box = document.querySelector(&#39;.box&#39;);</pre><pre>// Direct styling (not always the best approach)<br>box.style.backgroundColor = &#39;#ff6b6b&#39;;<br>box.style.padding = &#39;20px&#39;;</pre><pre>// Better approach: use CSS classes<br>box.classList.add(&#39;styled-box&#39;);</pre><p>Pro tip: It’s usually better to define styles in CSS and just add/remove classes with JavaScript. Keeps things cleaner!</p><h3>👂 Event Listeners: Making Things Interactive</h3><p>This is where JavaScript gets really exciting. Event listeners let your code respond to user actions like clicks, typing, scrolling, you name it.</p><h4>Common Events:</h4><ul><li>click, dblclick, mouseover, mouseout</li><li>keydown, keyup, keypress</li><li>submit, change, input, focus, blur</li><li>load, resize, scroll</li></ul><h4>Adding Event Listeners:</h4><p>Here’s the modern way to handle events:</p><pre>const button = document.querySelector(&#39;#my-button&#39;);</pre><pre>button.addEventListener(&#39;click&#39;, function(event) {<br>    console.log(&#39;Button was clicked!&#39;);<br>    console.log(&#39;Event details:&#39;, event);<br>});</pre><pre>// I prefer arrow functions for simple stuff<br>button.addEventListener(&#39;click&#39;, (event) =&gt; {<br>    console.log(&#39;Button clicked!&#39;);<br>});</pre><h4>The Event Object:</h4><p>The event object is packed with useful info:</p><pre>button.addEventListener(&#39;click&#39;, (event) =&gt; {<br>    console.log(&#39;What happened:&#39;, event.type);           // &#39;click&#39;<br>    console.log(&#39;What was clicked:&#39;, event.target);      // the button element<br>    console.log(&#39;Mouse position:&#39;, event.clientX, event.clientY);<br>    <br>    // Stop the default behavior (useful for forms)<br>    event.preventDefault();<br>    <br>    // Stop the event from bubbling up to parent elements<br>    event.stopPropagation();<br>});</pre><h3>🎯 Pro Tips and Best Practices</h3><h4>1. Wait for the DOM to Load</h4><pre>// Make sure everything is loaded before running your code<br>document.addEventListener(&#39;DOMContentLoaded&#39;, () =&gt; {<br>    // Your code here<br>    initializeApp();<br>});</pre><h4>2. Check if Elements Exist</h4><pre>// Always check before using elements<br>const button = document.getElementById(&#39;maybe-missing&#39;);<br>if (button) {<br>    button.addEventListener(&#39;click&#39;, handleClick);<br>} else {<br>    console.log(&#39;Button not found!&#39;);<br>}</pre><h4>3. Clean Up Event Listeners</h4><pre>function handleClick(event) {<br>    console.log(&#39;Clicked!&#39;);<br>}</pre><pre>const button = document.querySelector(&#39;#temp-button&#39;);</pre><pre>// Add the listener<br>button.addEventListener(&#39;click&#39;, handleClick);</pre><pre>// Remove it later if needed (prevents memory leaks)<br>button.removeEventListener(&#39;click&#39;, handleClick);</pre><h4>4. Event Delegation</h4><p>Instead of adding listeners to lots of individual elements, you can listen on a parent:</p><pre>const container = document.getElementById(&#39;button-container&#39;);</pre><pre>container.addEventListener(&#39;click&#39;, (event) =&gt; {<br>    // Check what was actually clicked<br>    if (event.target.classList.contains(&#39;action-btn&#39;)) {<br>        const action = event.target.dataset.action;<br>        console.log(`Doing: ${action}`);<br>    }<br>});</pre><p>This works even for buttons that get added later!</p><h3>🎉 Wrapping Up</h3><p>And there you have it! We’ve covered the DOM, element selection and manipulation, and event listeners. These are the core tools for making interactive web pages. These concepts are fundamental to everything you’ll do in web development. Whether you end up using React, Vue, Angular, or any other framework, they all build on these same principles.</p><p>Thanks for following along with this series! In the next post, we will be covering all CRUD functions and how to craft basic RESTful APIs.</p><p>As always, feel free to reach out if you have questions or want to chat about code. I love hearing from fellow developers!</p><p>Happy coding! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fdbc0d686fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ JavaScript Basics — Part 3: Arrays, Objects, Sets & How to Iterate Through Them]]></title>
            <link>https://medium.com/@kmparks60/javascript-basics-part-3-arrays-objects-sets-how-to-iterate-through-them-b513f9613f07?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b513f9613f07</guid>
            <category><![CDATA[tech-blog]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[data-type]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Fri, 23 May 2025 18:32:33 GMT</pubDate>
            <atom:updated>2025-05-23T18:32:33.179Z</atom:updated>
            <content:encoded><![CDATA[<h3>📘 JavaScript Basics — Part 3: Arrays, Objects, Sets &amp; How to Iterate Through Them</h3><p><a href="https://www.linkedin.com/in/kenmparks/">LinkedIn</a> / <a href="https://github.com/kmparks60">GitHub</a> / <a href="https://kenparks.b12sites.com/">My Website</a></p><p>It’s been a while since my last post, and a lot has happened since — <strong>I became a dad!</strong> My son is now almost two years old, and watching him grow has been incredible.</p><p>This week, we’re picking up where we left off with <strong>Part 3</strong> of my JavaScript series. If you are just now joining, check out the earlier posts (<a href="https://medium.com/@kmparks60/let-blogtopic-js-basics-pt-1-f14b0569e8a9">1</a>, <a href="https://medium.com/@kmparks60/flatiron-junction-whats-your-function-1cc4fc795601">2</a>) covering variables, conditionals, functions, and scope. In this post, we’re diving into some foundational data structures in JavaScript:</p><ul><li><strong>Arrays</strong></li><li><strong>Objects</strong></li><li><strong>Sets</strong></li><li><strong>Iteration</strong></li></ul><p>I have switched to OneCompiler instead of Replit, so follow along <a href="https://onecompiler.com/javascript"><strong>here</strong></a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*Huh9UmDmacF8lq6OvwbCQQ.gif" /><figcaption><strong>I’m baaack!!</strong></figcaption></figure><h4>🧾 <strong>Arrays</strong></h4><p>An array is an ordered collection of values, where each item is stored at a numbered index starting from zero. Arrays can hold any data type — strings, numbers, booleans, objects, or even other arrays.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*5iNdZtAh0dOV61pftQfkTw.png" /><figcaption><strong>Array</strong></figcaption></figure><p>In the example above, ‘apple’ is at index 0, ‘banana’ is at index 1, and so on. Arrays are useful for storing lists of things, like a to-do list, user names, or favorite movies, and they come with a lot of helpful built-in methods.</p><p>Let’s take a look at some of the most common ones:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*thwKSWXPWiIKOMGYgQfgew.png" /><figcaption><strong>Common Array Methods</strong></figcaption></figure><ul><li>.push() — Adds an item to the <strong>end</strong> of the array.</li><li>.pop() — Removes the <strong>last</strong> item from the array.</li><li>.unshift() — Adds an item to the <strong>beginning</strong> of the array.</li><li>.shift() — Removes the <strong>first</strong> item from the array.</li><li>.slice() — Returns a <strong>copy</strong> of a portion of the array without modifying the original.</li><li>.splice() — Changes the array by removing or replacing items.</li><li>.length() — Returns the <strong>number of items</strong> in the array.</li><li>.indexOf() — Returns the <strong>index</strong> of a specific item, or -1 if not found.</li></ul><h4>🧱 <strong>Objects</strong></h4><p>An <strong>object</strong> is a collection of <strong>key-value</strong> pairs. It’s a great way to group related data, like user details or settings.</p><p>You can access values in an object using dot notation or bracket notation. Here’s how you can add or update values:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*hW1xkDQVt3RW3EvUQwV0xQ.png" /><figcaption><strong>Add or Update an Object’s Key-Value Pairs</strong></figcaption></figure><p>Objects are extremely flexible and used everywhere in JavaScript, especially when working with APIs or user data.</p><h4>📦 <strong>Sets</strong></h4><p>A <strong>set</strong> is a collection of unique values. Unlike arrays, sets automatically ignore duplicate values and don’t maintain a specific order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*klgSCOlx7LWa5AOxBhBGWA.png" /><figcaption><strong>Sets</strong></figcaption></figure><p>Sets are perfect when you need to store a list without duplicates, like unique user IDs or tags. You can also loop through sets (we’ll see how below), but note that you can’t access values by index like in arrays.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*BzcJxxJB9O_FHP_9EDjI0Q.png" /><figcaption><strong>Set Methods</strong></figcaption></figure><h3>🔄 <strong>Iteration: Arrays, Objects, and Sets</strong></h3><p>So, how do you loop through these structures?</p><h4><strong>🧾 Arrays</strong></h4><p>Use forEach() or with a traditional for loop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*rQyt1jis8WX1jw6lKEpNyA.png" /><figcaption><strong>Array Iteration</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/70/1*Uzqq6QVZP_vPkeTRJWkiFw.png" /><figcaption><strong>Iteration Output</strong></figcaption></figure><h4><strong>🧱 Objects</strong></h4><p>Use a for...in loop to go through each key:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*kLzZOyDe3hKnBfkmgJ7KJg.png" /><figcaption><strong>Object Iteration</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*c_cTZCCRchZKj-tEQoRNUw.png" /><figcaption><strong>Itearation Output</strong></figcaption></figure><h4><strong>📦Sets</strong></h4><p>Use forEach() or a for...of loop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*95TySDncw-vQsz01Gq7NyA.png" /><figcaption><strong>Set Iteration</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/59/1*gkLJUQJ35xfK4cKLkI1_cQ.png" /><figcaption><strong>Iteration Output</strong></figcaption></figure><h3>🎉 Wrapping Up</h3><p>That’s a wrap on <strong>arrays, objects, sets,</strong> and how to <strong>iterate</strong> through each. These three data types are the building blocks of so many JavaScript applications, which you will learn about in Part 4: <em>JavaScript and the DOM + Event Listeners</em>.</p><p>Thanks for sticking with me, and as always, feel free to message me if you have questions or want to talk code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*Ntyvetfvpw29Ee1G.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b513f9613f07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flatiron Junction What’s Your function()]]></title>
            <link>https://medium.com/@kmparks60/flatiron-junction-whats-your-function-1cc4fc795601?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cc4fc795601</guid>
            <category><![CDATA[functions-in-javascript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 06:42:21 GMT</pubDate>
            <atom:updated>2023-04-18T06:42:21.237Z</atom:updated>
            <content:encoded><![CDATA[<p>As stated in last week’s blog, we’ll be learning about <strong>functions</strong> vs <strong>arrow functions</strong> and how <strong>scope</strong> works! Just like the last blog if you would like to follow along with this blog <a href="https://replit.com/languages/javascript"><strong>here</strong></a> is the link to replit!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/128/0*04hhrrWaqncvY1AJ.jpg" /></figure><h3>Functions</h3><p>A function is a block of code that performs a specific task. It can take input in the form of <strong>arguments</strong> or <strong>parameters</strong> and return a value. Function <strong>parameters</strong> are the names listed in the function’s definition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*xOWpJOwqkDlhJlOTNrwTxw.png" /></figure><p>Here is an example of a simple function that takes two <strong>parameters</strong> and returns their sum:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*TXY23nBNV9IoDTZKKyWm2A.png" /></figure><p><strong>Arguments</strong> are the values passed to (and received by) the function. To use this function, let’s call it with two <strong>arguments</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*r54LIQNCN4N6HoMJ8kaHVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*kclsbY9IcskxZ7jUWs2fsA.png" /></figure><p>Functions can also be defined using function expressions. A function expression is when a function is assigned to a variable! After a function expression has been stored in a variable, the variable can be used as a function. Here is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*TdDPdykRX0APUUtmuG1Nwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*_C3SgWH1yC8C06VV8UWkjw.png" /></figure><h3>Arrow functions</h3><p>Arrow functions are a shorthand way of writing functions. Here is an example of an arrow function that does the same thing as the <em>addNumbers</em> function from earlier:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*Cj2lbB3TWlIX5MpPlSA5ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*0Euu05olqQnnr_Z3fg0QSg.png" /></figure><p>In this example, the “<strong>=&gt;”</strong> symbol is used to indicate that this is an arrow function. The function body is wrapped in curly braces, and the return statement is used to return the value.</p><p>Arrow functions can be written in an even shorter way when there is only one expression in the function’s body. Here is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*pAWWnrhlCdQ9rEbFxrMAOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*U7jfGcgPsMaklqSoj-mmSg.png" /></figure><p>In this example, the function is a single expression that returns the product of <strong>a</strong> and <strong>b</strong>. The curly braces and return statement are removed which uses fewer lines of code.</p><h3>Scope</h3><p>Scope refers to the accessibility of variables and functions in different parts of a program. In JavaScript, there are two types of scope: global scope and local scope.</p><p>Global scope refers to variables and functions that are accessible throughout the entire program. Here is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*KVz25eJ6XT0qaZO2AhuxbQ.png" /></figure><p>Here we have declared <em>globalExample</em> in <strong>global scope </strong>outside of our function. In the body of the function we declared <em>localExample, </em>in<em> </em><strong>local scope. </strong>Notice what happens when we invoke<strong> scopeExample</strong> and then try to console.log<strong> globalExample </strong>vs<strong> localExample:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*i--Xo1dJ5CsEJWWiVT_20g.png" /></figure><p>When scopeExample everything in global scope is accessible as well as everything inside of the body of the function, aka local scope. However we see below when we console.log the two variables outside of our function only global scope is available!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*minVp3Gzvf_ghrQPOrFOAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*Fc1I0tH8MJA-E6VV.png" /></figure><p>If JavaScript is something you’re interested in learning <a href="https://www.w3schools.com/js/"><strong>here</strong></a> is a great tutorial from W3 Schools. As usual please feel free to reach out with any questions and if you enjoyed this post please follow!</p><p><strong><em>P.S.</em></strong> There might not be a blog post next week. Our cohort is working on our last group project this week, then Phase 5 solo projects starts the week after.</p><p><a href="https://www.linkedin.com/in/kenmparks/"><strong><em>LinkedIn</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cc4fc795601" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[let blogTopic = ‘JS Basics pt. 1’]]></title>
            <link>https://medium.com/@kmparks60/let-blogtopic-js-basics-pt-1-f14b0569e8a9?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f14b0569e8a9</guid>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Tue, 04 Apr 2023 16:24:09 GMT</pubDate>
            <atom:updated>2023-04-18T06:05:27.676Z</atom:updated>
            <content:encoded><![CDATA[<p>Our cohort is on it’s ninth week out of fifteen with Flatiron School…. That’s 64 consecutive of learning, coding, debugging, and coffee making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*vLtgsjf8lWGfH22QIkZmeg.gif" /><figcaption>What even is outdoors?</figcaption></figure><p>We’ve covered so much material between then and now that I started getting nervous that I wouldn’t be able to remember it all. So what’s the solution? A series of blogs that covers the need-to-know basics from each language, starting with the basics of JavaScript.</p><h3>In this blog post we will cover the basics of JavaScript:</h3><p>To better follow along <a href="https://replit.com/languages/javascript"><strong>here</strong></a> is a link to replit, a fun way to test out the JavaScript basics and better help yourself understand them!</p><h3>Variable Declaration</h3><p>Let… us start with variable declaration🥁. No really, variable delcaration is an essentaial part of all programming languages. For now we will focus on <strong>let</strong> and <strong>const</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*umpE0pkjLoLEXFdp3dKnhQ.png" /></figure><p>Variables can be any letter, word, or combinations of words. When using a combination of words always use camelCase making sure the fist word is always lower case and every one after is Capitalized.</p><p>Values can be assigned as letters, numbers words, or even functions(but this will be covered later on). When assigning letters or words as a value they must be a wrapped in “” making them a string. If you are assigning your variable a number it can also be in string form or it can be passed as an integer without “” the same way we assign x below!</p><p><strong>let</strong> allows you to declare variables that are limited to the scope of a block statement, or expression on which it is used. Basically this means that even though you are assigning a variable a value, it can be changed later on!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*Wp6sjqoqHfF_4M1YH2cZSw.png" /><figcaption>Assigning the variable coffee a value of “gourmet roast”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*atIKCAEVutXgQJrSX95sfw.png" /></figure><p><strong>const</strong> allows us to do the same as Let but in a more permanent way. Unlike <strong>let </strong>when assigning a variable with<strong> const </strong>the value cannot be changed and will show an error. I’ll show you in the example below of what I mean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*j2DhmUI5a0GjoXPlJpiL5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*BVftZIkIHTvdMksX3Jft5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*dfwh4hdObpEQJ-VnybvZrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*zFl6yQy36dr6nbwofLIlfg.png" /></figure><p>As you can see we are not able to reassign the variable ‘coffee’ when using const as it has already been declared a value.</p><h3>Comparison and Equality Operators</h3><p>Understanding comparison and equality operators is equally important as understanding variable declaration. Both concepts will be used throughout your whole career in coding. The main operators you will be using are ===, !==, ==, !=, &lt;, and &gt;. You may notice some of this from math classes from school!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*LemM-MX0ol9uS4xY9YEAhg.png" /></figure><p>We will start with “equality operators” ===, !==, ==, and !=. The main difference between === and == is that === checks the value and data type while == just checks the value. Here is an example of the difference. Notice we’re already using our variable declarations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/1*CWlh7HBLRGfp0ZptwPw5KQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/164/1*vi0H-sQ22voYlFihP95q2g.png" /></figure><p>As you can see the difference is that === takes a deeper look at the data type of the declared value. x is assigned a value of a “string” of 5 not an integer, this is why == will return true no matter what, but === will only return true if it’s a string of 5!</p><p>The != and !== work in the same way as == and === do but they check to see if the statement is false. Just the same as the === strict equality operator the !== strict inequality operator checks for the data type of the value as well. Here is an exampe below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/1*NtqS-e-Ezpv3GtshmaLRJw.png" /><figcaption>Assuming x = 5</figcaption></figure><p>Using the comparison operators may be a little easier to grasp as they are more straight forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*KxvNqA7Q7bIKCpOvwZYlBg.png" /></figure><p>Comparison operators will most commonly be used in if/else if statemnts and ternary expressions. Below are examples of using comparison operators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/130/1*4x9XO20zhuQx0C-_B8O4Cw.png" /><figcaption>Again assuming x = 5</figcaption></figure><h3>Conditionals</h3><p>There are several types of conditionals, in this blog we will be dealing with: <strong>if, else</strong>, and<strong> else if. </strong>When dealing with conditionals we will be creating a code block and inside of that code block we will have JS expressions. A JavaScript expression is <strong>a unit of code that returns a value. </strong>If the expressions inside are truthy we will return true, if they are falsy we will return undefined. If we add in an <strong>else </strong>conditional<strong> </strong>we can return false instead of undefined! Here is an example of an if else conditional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*Wwn8e6s5kMPR7HSjfa0phQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/137/1*VLufJvbOFWk4IJZS9tuC_A.png" /></figure><p>Let’s break this down. We’re declaring the variable age to 33 and declaring the variable isAdult. In the first if statement we’re saying if the person is above or equal to the age of 18 they are an adult and will return true. In the else statement we’re saying if they are not above the age of 18 they are not and adult and will return false. Below is an example if we change the age to 16!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*RUsf4f3Hn5HZr6CAuSSRFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/136/1*yca_Xa9uTKct-dkor2eR9A.png" /></figure><p>Here we see that since the person is not above or equal to the value assigned to age the if statement is no longer true and the else statement will be returned which is false!</p><p><strong>else if </strong>statements are used when we need to check multiple conditions! Let’s say we want to see if more than one criteria is true or false based upon our declared variables, this is where else if comes in handy! Below is an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*hu9eY5NpP8-MjhDRsF0-FQ.png" /></figure><p>As we can see age variable is assigned a value of 20 and we have several variables declared. In the if statement we are checking the variables against the age of 21. This says that if they are equal to or above the age of 21 they are an adult, can work, and can drink. In the first else if statement we are declaring that if they are above or equal to the age of 18 the person <strong>isAdult</strong>, <strong>canWork</strong>, and <strong>canEnlist</strong>. In the last else if statement we are declaring that they can work but are not an adult, not able to work, not able to enlist or drink.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/158/1*ehDWLCkN8cBt2JoTB4xMwg.png" /></figure><p>Here we see when checking each variable that they all return true except <strong>canDrink</strong> which returns undefined. This is because the age value of 20 only fits into the first else if statement which does not have the variable canDrink set to false. This causes it to return as undefined!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*41aNHjg5si1MboCZ0Vnwvg.png" /></figure><p>Here is the basic layout of blogs to come, although the layout may change. If you are looking for a step by step tutorial W3 Schools has one at this link <a href="https://www.w3schools.com/js/"><strong>here</strong></a>! In the next blog we will go over <strong>functions </strong>vs<strong> arrow functions and scope! </strong>As usual if you enjoyed this blog please subscribe and stay tuned for more!</p><p><a href="https://www.linkedin.com/in/kenmparks/"><strong><em>LinkedIn</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f14b0569e8a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Python Classes and Transitioning into SQL]]></title>
            <link>https://medium.com/@kmparks60/understanding-python-and-transitioning-into-sql-642e3b7dff50?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/642e3b7dff50</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 13:50:19 GMT</pubDate>
            <atom:updated>2023-03-29T15:41:52.692Z</atom:updated>
            <content:encoded><![CDATA[<p>Here we have the <strong>BloodOath</strong> lab:</p><p>After creating the Cult, Follower, and BloodOath classes and the __init__() methods inside them I began building out the debug.py.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*OdR441qKVgbCApGKyWQ33g.png" /><figcaption>BloodOath debug.py</figcaption></figure><p>Once that is finished I then start entering the information from each Class into a table helped me to better visualize it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*6KcOVlSohmMRrJWEJNJPNw.png" /><figcaption>Follower Class Table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0O8lV-_QDcV4nGpKD6NYfw.png" /><figcaption>Cult Class Table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*uC0T62ByVpcwu4zH_x7FhQ.png" /><figcaption>BloodOath Class Table</figcaption></figure><p>From here I like to reference my tables to help me create the different methods inside each class, then test in ipdb.</p><p>As we move further into SQL and learn how to use CRUD methods to create tables and manipulate the data I feel creating Python classes and the methods inside them will become easier to understand. Apologies for the short blog but we’ve got code challenge this week, and SQLAlchemy as well as our group projects next week so stay tuned!</p><p><a href="https://www.linkedin.com/in/kenmparks/"><strong><em>LinkedIn</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=642e3b7dff50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 VS Code Extensions That Will Save You Time ]]></title>
            <link>https://medium.com/@kmparks60/2-5-vs-code-extensions-that-will-save-you-time-4b141f2bb8d1?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b141f2bb8d1</guid>
            <category><![CDATA[vs-code-extensions]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[settings-sync]]></category>
            <category><![CDATA[bookmarks]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Mon, 13 Mar 2023 19:07:35 GMT</pubDate>
            <atom:updated>2023-03-14T16:26:57.174Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Settings Sync</strong></h3><p>I know it may seem odd starting off this list with a deprecated extension but VS Code found it so useful they built the function in! While it doesn’t necessarily help you write code, it certainly makes it easier to write code across multiple computers. By going to File-Preferences-Settings Sync is On, you will be prompted to sign-in to your GitHub account. Once signed in your preferences and extensions for VS Code will be saved to your GitHub. This will allow you to access your own VS Code preferences on any computer you use!<br>More details <a href="https://code.visualstudio.com/docs/editor/settings-sync"><strong>here</strong></a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*26NqBcRD6xWmfEP5afZT7A.png" /></figure><h3>ES7+ React/Redux/React-Native/JS snippets</h3><p>I found this extension in a <a href="https://www.youtube.com/@WebDevSimplified"><strong>Web Dev Simplified</strong></a><strong> </strong>and it quickly became one of my favorite/most useful extensions to date. By entering one of the many snippets VS Code will auto-fill in anything from an import to a react component using an arrow function 🤯.</p><p><strong>imr: import React from ‘react’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*48SzlTsFVObZz25Z6QP3Rg.png" /><figcaption>imr</figcaption></figure><p><strong>clg: console.log(object)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*wHNxSnBsiVS4kykTRTR0_A.png" /><figcaption>clg</figcaption></figure><p><strong>rfc: react functional component<br></strong>vs<br><strong>rfce: react functional component with export default at bottom</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*SzX_M0PdpWYZcLBUH5EAKg.png" /><figcaption>rfc</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*AGSB385Xcs1eC1m6fRLWWQ.png" /><figcaption>rfce</figcaption></figure><p><strong>rafce: react component with arrow function</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*D4BNX727PrNZFhYqMnaVdQ.png" /><figcaption>rafce</figcaption></figure><p><strong>nfn: named arrow function</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*NGTQxXlv01gKAfBNO07HxA.png" /><figcaption>nfn</figcaption></figure><p>VS Code has many other snippets that you may find useful, <a href="https://github.com/ults-io/vscode-react-javascript-snippets/blob/HEAD/docs/Snippets.md"><strong>HERE</strong></a> is a link to them!</p><h3>TODO Highlight</h3><p>I recently discovered <a href="https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight">this</a> when looking for ways to become a more productive coder. TODO Highlight allows you to utilize ‘TODO:’ and ‘FIXME:’ to better help you identify your set tasks inside of your //commented out section//.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXF4F8g2xRuPkJxvsKQQxw.png" /><figcaption>‘TODO:’ and ‘FIXME:’</figcaption></figure><h3>Bookmarks</h3><p>This extension allows you place bookmarks on you page as well as naming them to make them easily accessible. Ctrl+Alt+K places a bookmark on the selected line to set an unlabeled. If you would like to access it by a more specific name you can right click-&gt;Bookmarks-&gt;Toggle Labeled then enter the desired name of bookmark. Ctrl+Shft+P will open a search bar in VS Code, then simply type Bookmarks: List from All Files(or “b l a”) and it will present you with a list of your labeled bookmarks.</p><p>Here’s a link to <a href="https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks">Bookmarks</a> here!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4QmC46hGfbc3bjHQV0IYbQ.png" /><figcaption>right click — Bookmarks — Toggle Lableled</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xv3qQs72gz89Q2Tpgo9NYA.png" /><figcaption>Labeling ‘Submit Function’ from Line 3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ue6aTF3PssSFukNaeSCX1w.png" /><figcaption>Type ‘b l a’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frtEmoom-25-jur4Y_-J9A.png" /><figcaption>Select your labeled bookmark</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*w6rMqiCKip2Kh8G1OjNhtg.png" /><figcaption>VS Code jumps to ‘Submit Function’</figcaption></figure><h3>AREPL for Python</h3><p>AREPL lets you see your code in a preview on the right side of your code. After installing in VS Code click the orange cat icon in the top right to open the preview screen shown below. One of the major benefits is that not only will it provide you with a detailed error messge but it provides you with a link to help you better understand the error! <a href="https://marketplace.visualstudio.com/items?itemName=almenon.arepl"><strong>Here</strong></a> is a link to download as well as a list of some of the more advanced features of AREPL!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/24/0*O5in6aRv3N1qjbFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HllOZjCmQpntzP2y.gif" /></figure><p>If you find these extensions helpful or just enjoy my posts in general, please subscribe!</p><p><a href="https://www.linkedin.com/in/kenmparks/"><strong><em>LinkedIn</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b141f2bb8d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tartes to Tech]]></title>
            <link>https://medium.com/@kmparks60/tartes-to-tech-fd357e9907b8?source=rss-c61a9cb7e3c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd357e9907b8</guid>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[about-me]]></category>
            <dc:creator><![CDATA[Ken Parks]]></dc:creator>
            <pubDate>Mon, 06 Mar 2023 14:32:03 GMT</pubDate>
            <atom:updated>2023-03-07T17:12:12.462Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proofing My Career</h3><p>It was a long thought out whim in August of 2012 that prompted me to enroll in Le Cordon Bleu’s Baking and Patisserie program. Immediately after graduating I started work as an assistant pastry chef for City Grocery restaurant group in Oxford, MS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*34KbqSsqxWQEcyA4UXZQzA.jpeg" /></figure><p>In 2015 I moved to New York and started working as a baker in Bridgehampton; quickly transitioning from baker to pastry chef before finally working as a private chef. I served Food Network stars, worked along side award winning chefs, appeared on tv in <strong><em>A Chef’s Life</em></strong>, and did things that young me could only dream of. It was also around this time that I started to realize if I ever wanted a family or a normal life a career change was imminent. One hospital trip later I realized I was right.</p><h3>Laying the Foundation</h3><p>In 2017 I began working as a property manager and soon found myself with more free time than anticipated. It didn’t take long for me to realize that if I didn’t find a new hobby I was going to go crazy. One day while sitting in Starbuck’s I saw someone writing code and decided to strike up a conversation. They pointed me in the direction of <a href="https://www.freecodecamp.org/">freeCodeCamp</a> and suggested I start with the HTML course. After a month or so I finished HTML and moved on to the CSS program. Due to work picking up and a 3 year long build I was forced to put my new found hobby on hold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*loDwgs0wVkeZv5gt-CWdhw.png" /></figure><h3>npx create-react-app newcareer</h3><p>Fast forward to 2022 I’m hangin out with some friends and brought up freeCodeCamp, they in-turn pointed me in the direction of Flatiron. After some consideration I signed up and was placed in the 013023 Live cohort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*PtbkYMnfsObe_adnUxkK8Q.jpeg" /></figure><p>I’m now in week 1 of phase 2 and so far we’ve learned JavaScript and React JS with Python on the horizon. I’ve got a code challenge looming and then group project week after that. This wraps up my journey from tartes to tech. I hope you enjoyed it, there will be more blogs to come soon!</p><p><a href="https://www.linkedin.com/in/kenmparks/"><em>LinkedIn</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd357e9907b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>