<?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 Eun on Medium]]></title>
        <description><![CDATA[Stories by Eun on Medium]]></description>
        <link>https://medium.com/@Eun90?source=rss-7b26c347c381------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*g8G58juwWN4DF1yj4elnZQ@2x.jpeg</url>
            <title>Stories by Eun on Medium</title>
            <link>https://medium.com/@Eun90?source=rss-7b26c347c381------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:15:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Eun90/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[What is Node.js? A Beginner’s Guide]]></title>
            <link>https://code.likeagirl.io/what-is-node-js-a-beginners-guide-32f50da3b072?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/32f50da3b072</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Sat, 29 Jul 2023 14:09:22 GMT</pubDate>
            <atom:updated>2023-07-29T14:09:22.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blBVXlwtziW0YsE5uMjMHQ.jpeg" /></figure><p>If you want to become a full-stack developer and are interested in learning Node.js, but you’re not exactly sure what Node.js is, don’t worry! I’ll explain what Node.js is, why we should use it, and the key differences between Node.js and regular Javascript.</p><h4>1. What is Node.js?</h4><p>Let’s start by looking at the definition of Node.js on its main homepage:</p><blockquote>“Node.js is an asynchronous event-driven JavaScript runtime, designed to build scalable network applications.”</blockquote><p>This may sound a little complicated, but let’s break it down step by step.</p><p>Firstly, let’s talk about <strong>“JavaScript runtime.”</strong> Regular JavaScript is primarily designed to run within web browsers, limiting its usage to website development. However, Node.js is different as it utilizes the V8 Engine, the same engine used by Chrome and written in C++. This makes Node.js fast and powerful, allowing JavaScript to be used beyond website development. With Node.js, you can create applications for desktop and server-side environments, expanding the possibilities of what you can build.</p><p>Next, let’s understand the term <strong>“asynchronous event-driven.”</strong> In simple terms, Node.js allows you to build applications that can handle multiple tasks concurrently without waiting for one task to finish before moving on to the next. This asynchronous capability enhances the performance and responsiveness of Node.js applications, making them efficient and user-friendly.</p><p>Node.js is a versatile platform that extends the usage of JavaScript beyond the web browser. Utilizing the V8 Engine, it empowers JavaScript to be used in various applications, not limited to website development. Its asynchronous event-driven nature ensures that applications built with Node.js can handle multiple tasks simultaneously, boosting performance and overall user experience.</p><h4><strong>2. Why Should We Use Node.js?</strong></h4><p>But why Node.js? We have lots of options to make a server-side. I&#39;ll tell you why we should use Node.js.</p><ul><li><strong>Full Stack JavaScript:</strong> One of the key advantages of using Node.js is its ability to facilitate full-stack JavaScript development. Using Node.js, you can write your application&#39;s front-end and back-end in JavaScript. This unified language approach allows developers to leverage their existing knowledge, making it easy to transition seamlessly from front-end to back-end development.</li><li><strong>Scalability:</strong> Node.js is known for its scalability, making it an excellent choice for building applications that can handle many concurrent connections. Its event-driven, non-blocking architecture ensures efficient handling of multiple tasks simultaneously, providing a smooth and responsive user experience.</li><li><strong>Speed &amp; Non-blocking:</strong> Node.js is fast and non-blocking, primarily due to its asynchronous event-driven nature. Traditional web servers often wait for tasks to complete before moving on to the next one, causing delays. However, Node.js can execute tasks concurrently, avoiding such bottlenecks and significantly improving performance.</li><li><strong>NPM (Node Package Manager) Ecosystem:</strong> Node.js benefits from an extensive and vibrant community that actively contributes to its ecosystem. The Node Package Manager (NPM) houses a vast collection of open-source modules and libraries, making it easy for developers to access and integrate existing solutions into their projects. This extensive support network ensures that you are not alone in choosing Node.js, with major companies like LinkedIn, eBay, Uber, and Netflix also relying on its capabilities for their applications.</li></ul><h4>3. What is the Difference Between Node.js and JavaScript?</h4><p>When comparing Node.js and JavaScript, there are some significant differences between the two.</p><ul><li>JavaScript in the Browser:</li></ul><p>JavaScript in the browser is primarily used for DOM manipulation. It allows developers to interact with a webpage&#39;s Document Object Model (DOM), enabling dynamic updates and interactivity on the client side. Developers can access the window object, which provides information about the browser window and allows for various interactions. Additionally, JavaScript in the browser supports modern ES6 features, enhancing the language with new functionalities. However, one limitation is that it lacks access to the file system.</p><ul><li>Node.js:</li></ul><p>In contrast, Node.js is a server-side runtime environment that operates outside the browser context. One of the main distinctions is that Node.js does not have access to the DOM or browser-specific APIs, as they do not exist in this environment. As a result, tasks like DOM manipulation or using browser-specific features like fetch are not available in Node.js. It is important to note that Node.js is not meant for building interactive front-end applications that directly respond to user actions like toggling elements.</p><p>Instead, Node.js is designed explicitly for server-side development. It allows developers to build server-side applications that focus solely on handling logic and data processing without any graphical user interface. As a result, Node.js does not have a window object or support for client-side features like document.querySelector.</p><p>Now that we’ve explored the ins and outs of Node.js, I hope you found this article helpful!</p><p>If you enjoyed the content and gained valuable insights, I’d genuinely appreciate it if you could show your support by giving it a clap.</p><p>Also, feel free to follow me if you’re interested in reading more tech articles and tutorials in the future.</p><p>Your support means a lot, and I’ll keep bringing you informative and engaging content. Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32f50da3b072" width="1" height="1" alt=""><hr><p><a href="https://code.likeagirl.io/what-is-node-js-a-beginners-guide-32f50da3b072">What is Node.js? A Beginner’s Guide</a> was originally published in <a href="https://code.likeagirl.io/">Code Like A Girl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a MERN To-Do App: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@Eun90/building-a-mern-to-do-app-a-step-by-step-guide-eb772e5991ff?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb772e5991ff</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 13:25:09 GMT</pubDate>
            <atom:updated>2023-07-26T13:25:09.310Z</atom:updated>
            <content:encoded><![CDATA[<p>How to Create a Full-Stack To-Do App from Scratch with Node.js, express, mongoose, React</p><h4><strong>1. Prerequisites</strong></h4><p>Before getting started with the MERN TODO APP, you should have a basic understanding of the following technologies:</p><ul><li>Node.js: Know how to run it and understand its basic syntax.</li><li>Express.js: Know how to install it and the fundamentals of creating routes.</li><li>Mongoose: Understand the basics of creating schemas and modeling data.</li><li>Basic React: UseState, UseEffect, fetch(), Props, onClick(), onChange()</li><li>Postman: Know how to test API endpoints.</li></ul><h4><strong>2. Set Up the Backend Server</strong></h4><p>To begin, create a new folder called “api” for your backend code. Inside this folder, you’ll set up the server and link it to the MongoDB database.</p><p>In the “api” folder, open the terminal and run the command <strong><em>`npm init` </em></strong>to initialize a new Node.js project. This will generate a <strong><em>package.json</em></strong> file with project information and dependencies.</p><p>Next, we need to install the required Node.js modules using the following command.</p><pre>npm install express cors mongoose dotenv </pre><p>The package.json file will now contain the dependencies: cors, dotenv, express, mongoose.</p><p>Next, configure the server.js file by requiring the necessary modules and setting up the Express app</p><ul><li>server.js file</li></ul><pre>const express = require(&#39;express&#39;); <br>const cors = require(&#39;cors&#39;); <br>const mongoose = require(&#39;mongoose&#39;); <br>require(&#39;dotenv&#39;).config(); <br><br>//Execute express <br>const app = express(); <br><br>//Middlewares<br>app.use(express.json()); <br>app.use(cors()); <br><br>const port = 4001; <br><br>app.listen(port, () =&gt; console.log(`Server is running on port ${port}`)); </pre><p>Now if you are commading “<strong><em>node server.js”,</em></strong> then you ll see the message “Server is running on port 4001”</p><h4><strong>3. Connect to the Database</strong></h4><p><strong>*Please make sure you have MongoDB Atlas, and connect to your cluster!*</strong></p><p>Before connecting to the MongoDB database, you need to create a <strong><em>.env </em></strong>file in the root of your project. In this file, store your MongoDB connection URI as follows:</p><p>In the<strong><em> .env file,</em></strong> add your MongoDB connection URI.</p><pre>//.env file <br>MONGO_URI= mongodb+srv://${username}:${password}@${cluster}.mongodb.net/${dbname}?retryWrites=true&amp;w=majority<br> </pre><p><strong><em>Make sure to replace “username”, “password”, “cluster”, and “dbname” with your MongoDB credentials.</em></strong></p><p>Next, add the<strong><em> .env file</em></strong> to your <strong><em>.gitignore file</em></strong>. This ensures that your MongoDB URI remains private and is not pushed to the GitHub repository.</p><p>In the server.js file, access the MONGO_URI from the .env file and connect Mongoose to the database:</p><pre>const connectionString = process.env.MONGO_URI; <br>mongoose.connect(connectionString)<br>        .then(() =&gt; console.log(&#39;Connected to the database…&#39;)) <br>        .catch((err) =&gt; console.error(&#39;Connection error:&#39;, err));</pre><p>Now, when you run the server, you should see a message indicating that the server is running on port 4001, and it has successfully connected to the MongoDB database.</p><h4><strong>4. Define the Database Schema</strong></h4><p>Create a “models” folder, and create a new file called “Todo.js” to define the database schema for our TODO items:</p><ul><li>Todo.js file</li></ul><pre>//Require mongoose<br>const mongoose = require(&#39;mongoose&#39;); <br><br>//Create schema contains a single field named &#39;name.&#39; <br>//The &#39;name&#39; field is of type String<br>const TodoSchema = new mongoose.Schema({ name: String }); <br><br>//Export the Mongoose model with the collection name &quot;Todo&quot;<br>module.exports = mongoose.model(&#39;Todo&#39;, TodoSchema);</pre><h4><strong>5. Create API Routes</strong></h4><p>Now it’s time to create the API routes to interact with the database. In the server.js file, import the Todo schema:</p><pre><br>const Todo = require(‘./models/Todo’);</pre><p>After importing the Todo schema, we can now proceed to create routes. We’ll implement GET, POST, and DELETE requests, enabling users to view all tasks, create new tasks, and delete existing tasks. These tasks will be saved in the database.</p><h4><strong>5-1.GET Request : Get All tasks</strong></h4><pre><br>app.get(&#39;/todo&#39;, async (req, res) =&gt; { <br>const todos = await Todo.find(); <br>res.json(todos); });</pre><p>First, we handle a GET request sent to the ‘/todo’ endpoint. When a client makes this request, our server will retrieve all tasks from the Todo model using the Todo.find() method. The retrieved tasks will then be converted to JSON format and sent back as a response to the client.</p><h4><strong>5–2. POST Request : Create a new task</strong></h4><pre><br>app.post(&#39;/todo/new&#39;, async (req,res) =&gt; {<br>    const newTask = await Todo.create(req.body);<br>    res.status(201).json({newTask})<br>})</pre><p>POST request sent to the ‘/todo/new’ endpoint. When a user creates a new task, the request will contain the necessary data in the request body. We use the Todo.create() method to create a new task in the Todo model using the data received from the request body.</p><p>After successfully creating the new task, we respond with the status code 201 (indicating successful creation) and send the newly created task details in JSON format.</p><p>Note: The usage of a separate route, ‘/todo/new,’ for creating a new task is a good practice to keep the API organized and follow RESTful conventions.</p><h4><strong>5–3. DELETE Request : Delete a task</strong></h4><pre><br>app.delete(&#39;/todo/delete/:id&#39;, async(req,res)=&gt;{<br>    const result = await Todo.findByIdAndDelete(req.params.id)<br>    res.json(result)<br>})</pre><p>In this final section, we handle a DELETE request sent to the ‘/todo/delete/:id’ endpoint. The ‘:id’ is a route parameter that represents the unique identifier of the task to be deleted. When the server receives a DELETE request with a specific task’s ID, it uses the Todo.findByIdAndDelete() method to find and delete the corresponding task from the Todo model.</p><p>Each task in the Todo model should have a unique ID, which the client can send in the request to identify the task to be deleted. After successful deletion, we respond with the details of the deleted task in JSON format.</p><p>Well done! Now our code looks like this!</p><ul><li>server.js file</li></ul><pre><br>const express = require(&#39;express&#39;); <br>const cors = require(&#39;cors&#39;); <br>const mongoose = require(&#39;mongoose&#39;); <br>require(&#39;dotenv&#39;).config(); <br>const Todo = require(&#39;./models/Todo&#39;);<br><br><br>const app = express(); <br><br>app.use(express.json()); <br>app.use(cors()); <br><br>const port = 4001; <br><br>const connectionString = process.env.MONGO_URI; <br>mongoose.connect(connectionString)<br>.then(() =&gt; console.log(&#39;Connected to the database…&#39;))<br>.catch((err) =&gt; console.error(&#39;Connection error:&#39;, err));<br><br>//Routes <br>app.get(&#39;/todo&#39;, async (req, res) =&gt; { <br>   const allTasks = await Todo.find();<br>   res.json(allTasks)<br> });<br><br>app.post(&#39;/todo/new&#39;, async (req,res) =&gt; {<br>    const newTask = await Todo.create(req.body);<br>    res.status(201).json({newTask})<br>})<br><br>app.delete(&#39;/todo/delete/:id&#39;, async(req,res)=&gt;{<br>    const result = await Todo.findByIdAndDelete(req.params.id)<br>    res.json(result)<br>})<br><br><br>app.listen(port, () =&gt; console.log(`Server is running on port ${port}`));</pre><h4><strong>6. Test the API Endpoints on POSTMAN</strong></h4><p>Let’s check our API endpoints on Postman to ensure everything is working correctly!</p><p>Checking Endpoints Using Postman is the easiest way to test your API. We can easily send new data to our API and quickly check the results.</p><p>First, let’s check the POST request. As you can see below, select the POST method and use the endpoint: <a href="http://localhost:4001/todo/new">http://localhost:4001/todo/new</a>. In the body, select “raw,” choose JSON format, and create a new dummy task. You can see the result below; we successfully received our request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RBTTxukx-tjk0oRngaSatg.png" /><figcaption>Check POST request</figcaption></figure><p>Now, let’s check the GET request. As you can see, we now have the new task we just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y2jgXd-ccTZNOouaK1yPSA.png" /><figcaption>Check GET request</figcaption></figure><p>Finally, let’s check the DELETE request. We successfully deleted the item we created!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lXIP_hgSlBRNYLa7N2vn_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBqegeIDt8UfDFnP6VWjNw.png" /><figcaption>DELETE -&gt; GET (Now we don’t have a task)</figcaption></figure><h4>7. React HTML</h4><p>Let’s install React in your main folder.</p><p>Run the following command:</p><pre><br>npx create-react-app todo</pre><p>Now, you’ll have two folders. “api” and “todo,” inside the main folder. Inside the “todo” folder, we’ll create a React application.</p><p>Next, we will modify the boilerplate code of React to suit our needs.</p><ul><li>todo folder — index.js file</li></ul><pre><br>import React from &#39;react&#39;;<br>import ReactDOM from &#39;react-dom/client&#39;;<br>import &#39;./index.css&#39;;<br>import App from &#39;./App&#39;;<br><br>const root = ReactDOM.createRoot(document.getElementById(&#39;root&#39;));<br>root.render(<br>  &lt;React.StrictMode&gt;<br>    &lt;App /&gt;<br>  &lt;/React.StrictMode&gt;<br>);<br></pre><ul><li>to-do folder- App.js file</li></ul><pre>import { useEffect, useState } from &quot;react&quot;;<br>import TodoItem from &quot;./TodoItem&quot;;<br><br>function App() {<br><br>  return (<br>    &lt;div className=&quot;container&quot;&gt;<br>      &lt;div className=&quot;heading&quot;&gt;<br>        &lt;h1&gt;TO-DO-APP&lt;/h1&gt;<br>      &lt;/div&gt;<br><br>      &lt;div className=&quot;form&quot;&gt;<br>        &lt;input type=&#39;text&#39;&gt;&lt;/input&gt;<br>        &lt;button&gt;<br>          &lt;span&gt;ADD&lt;/span&gt;<br>        &lt;/button&gt;<br>      &lt;/div&gt;<br><br>      &lt;div className=&quot;todolist&quot;&gt;  <br>        &lt;TodoItem/&gt;  <br>      &lt;/div&gt;<br>    &lt;/div&gt;<br> <br>  );<br>}<br><br>export default App;</pre><p>This is the HTML structure for our React App. We have a main container that holds all the components. Inside the main container, we have an input box and an add button to create new to-do items. Additionally, we have a to-do list container to display the to-do items. To make the code more organized and manageable, we will separate the TodoItem component into a separate file. This will help keep the codebase readable and maintainable.</p><ul><li>to-do folder — TodoItem.js file</li></ul><pre>import React, {useState} from &quot;react&quot;;<br><br>function TodoItem(){<br>    return(<br>     &lt;div className=&quot;todo&quot;&gt;<br>        &lt;div className=&quot;text&quot;&gt;Test&lt;/div&gt;<br>        &lt;div className=&quot;delete-todo&quot;&gt;&lt;span &gt;X&lt;/span&gt;&lt;/div&gt;<br>      &lt;/div&gt;<br>    )<br>}<br><br>export default TodoItem;</pre><p>This is the component TodoItem, which represents an individual to-do item in the to-do list container.</p><p>Inside the TodoItem, we have the following elements:</p><ol><li>text div: This div displays the name of the task (in this example, it shows &quot;Test&quot;).</li><li>delete-todo div: This div contains an &quot;X&quot; icon, which represents the delete button to remove the to-do item.</li></ol><p>8. React styling</p><ul><li>index.css file</li></ul><pre>:root {<br> --primary: #D81E5B;<br> --light: #EEE;<br> --light-alt: #61759b;<br> --dark: #131A26;<br>}<br><br>* {<br> margin: 0;<br> padding: 0;<br> box-sizing: border-box;<br> font-family: &quot;Fira Sans&quot;, sans-serif;<br>}<br><br>body {<br> background-color: var(--light-alt);<br> color: var(--light);<br>}<br><br>.container {<br>  max-width: 20rem;<br>  padding: 32px;<br>  margin: 0 auto;<br>}<br><br>.heading{<br>  text-align: center;<br>}<br><br>.form{<br>  margin-top: 2rem;<br>}<br><br>.form input {<br>  width: 85%;<br>  padding: 3px;<br>}<br><br>.form button {<br>  padding: 3px;<br>  border: none;<br>  cursor: pointer;<br>}<br><br>.todo {<br>  padding: 10px;<br>  border-radius: 13px;<br>  background-color: var(--dark);<br>  margin-top: 2rem;<br>  display: grid;<br>  grid-template-columns: 3fr 0.3fr;<br>  transition: 0.5s;<br>  cursor: pointer;<br>}<br><br>.checkbox {<br>  width: 20px;<br>  height: 20px;<br>  border-radius: 50%;<br>  background-color: var(--light);<br>  transition: 0.4s;<br>}<br><br>.check-complete .checkbox{<br>  background-color: var(--primary); <br>}<br><br>.check-complete .text{<br>  text-decoration: line-through;<br>}<br><br><br>.text {<br>  margin-left: 1rem;<br>}<br><br>.delete-todo {<br>  display: flex;<br>  justify-content: center;<br>  align-items: center; <br>}<br><br></pre><p>After styling, our result looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e74AdknsI4zmKHr1XTQFkA.png" /><figcaption>React HTML/CSS</figcaption></figure><h4>9. GET all of the tasks</h4><p>First, we will get all of the tasks from our database through our API.</p><pre>import { useEffect, useState } from &quot;react&quot;;<br>import TodoItem from &quot;./TodoItem&quot;;<br><br>//Add API base<br>const API_BASE= &#39;http://localhost:4001/todo&#39;;<br><br>function App() {<br>  <br> //Add useState, we ll store items in the array<br>  const [items, setItems] = useState([]);<br><br> //Add useEffect, GetTodos() will run every time the component renders<br> useEffect(() =&gt; {<br>    GetTodos();<br>  }, []);<br><br>// Add GetTodos() function, fetches data from our API, converts to JSON<br>// and then saves the data in the &#39;items&#39; state<br>// If there&#39;s an error, it will be logged to the console<br> const GetTodos = () =&gt; {<br>  fetch(API_BASE)<br>  .then(res =&gt; res.json())<br>  .then(data =&gt; setItems(data))<br>  .catch(err =&gt; console.log(err))<br> }<br><br>  return (<br>    &lt;div className=&quot;container&quot;&gt;<br>      &lt;div className=&quot;heading&quot;&gt;<br>        &lt;h1&gt;TO-DO-APP&lt;/h1&gt;<br>      &lt;/div&gt;<br><br>      &lt;div className=&quot;form&quot;&gt;<br>        &lt;input type=&#39;text&#39;&gt;&lt;/input&gt;<br>        &lt;button&gt;<br>          &lt;span&gt;ADD&lt;/span&gt;<br>        &lt;/button&gt;<br>      &lt;/div&gt;<br><br>      &lt;div className=&quot;todolist&quot;&gt;  <br>        &lt;TodoItem/&gt;  <br>      &lt;/div&gt;<br>    &lt;/div&gt;<br> <br>  );<br>}<br><br>export default App;<br></pre><p>Now, you have successfully grabbed the data from our database by fetching it with our API. Shall we display our data?</p><p>We’ll iterate through each item using the map method inside the ‘todolist’ div. Then, we’ll deconstruct our keys to get individual values.</p><p>Finally, we’ll pass down each value to the ‘TodoItem’ component.</p><pre>  <br>     &lt;div className=&quot;todolist&quot;&gt;  <br>      {items.map((item)=&gt; {<br>        const {_id, name} = item<br>        return  &lt;TodoItem name={name} id={_id} setItems={setItems}/&gt;   <br>      })<br>      &lt;/div&gt;</pre><p>we use the map method to iterate through each ‘item’ in the ‘items’ array. For each ‘item’, we destructure the keys ‘_id’ and ‘name’ from the object and store them in separate variables. Then, we pass these ‘name’ and ‘id’ values, along with the ‘setItems’ function, as props to the ‘TodoItem’ component.</p><p>Let’s move on to the TodoItem.js file.</p><pre>import React, {useState} from &quot;react&quot;;<br>//Add API, we ll need it later when we send a delete request<br>const API_BASE= &#39;http://localhost:4001/todo&#39;;<br><br>function TodoItem(props){<br> // Pass down props<br> // Modify hardcoding content to dynamic content<br> // Now it displays the data we created in advance<br>const {name, id, setItems} = props<br>    return(<br>     &lt;div className=&quot;todo&quot;&gt;<br>        &lt;div className=&quot;text&quot;&gt;{name}&lt;/div&gt;<br>        &lt;div className=&quot;delete-todo&quot;&gt;&lt;span &gt;X&lt;/span&gt;&lt;/div&gt;<br>      &lt;/div&gt;<br>    )<br>}<br><br>export default TodoItem;</pre><p>Now you can see the data!</p><ul><li><strong>Note</strong>: Only data will be displayed if you create a new task while testing an endpoint! If you delete a task for testing a delete request and don’t create a new one, you may not see any tasks displayed.</li></ul><h4>10. Create a new task</h4><p>Our goal is to create a new task when a user clicks the add button. To do that, we need to capture the user’s input first.</p><pre><br>import { useEffect, useState } from &quot;react&quot;;<br>import TodoItem from &quot;./TodoItem&quot;;<br><br>const API_BASE = &#39;http://localhost:4001/todo&#39;;<br><br>function App() {<br>  <br>  const [items, setItems] = useState([]);<br><br>  // Add input state, we will store the user&#39;s input in this state<br>  const [input, setInput] = useState(&quot;&quot;);<br><br>  useEffect(() =&gt; {<br>    GetTodos();<br>  }, []);<br><br>// Store the target&#39;s value into the input state <br>  const handleChange = (e) =&gt; {<br>    setInput(e.target.value);<br>  }<br><br>  const GetTodos = () =&gt; {<br>    fetch(API_BASE)<br>      .then(res =&gt; res.json())<br>      .then(data =&gt; setItems(data))<br>      .catch(err =&gt; console.log(err))<br>  }<br><br>  return (<br> // The input field&#39;s value is now taken from the input state. <br> //It will update dynamically as the user types.<br> // Add the onChange method, so that handleChange function will be executed<br> // every time something has been changed in the input field.<br><br>    &lt;div className=&quot;container&quot;&gt;<br>      &lt;div className=&quot;heading&quot;&gt;<br>        &lt;h1&gt;TO-DO-APP&lt;/h1&gt;<br>      &lt;/div&gt;<br><br>      &lt;div className=&quot;form&quot;&gt;<br>        &lt;input type=&#39;text&#39; value={input} onChange={handleChange}&gt;&lt;/input&gt;<br>        &lt;button&gt;<br>          &lt;span&gt;ADD&lt;/span&gt;<br>        &lt;/button&gt;<br>      &lt;/div&gt;<br><br>      &lt;div className=&quot;todolist&quot;&gt;  <br>        &lt;TodoItem/&gt;  <br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Now you can see that our state value is updating as a user is typing in the input field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfbdIau_BCZKaCo-h1qtvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xLAC4lxvUC6Gvr0R_LyVg.png" /><figcaption>The input value is updated in a setInput state</figcaption></figure><p>Let’s add an onClick method to the add button. Whenever the button has been clicked, the addItem() function will be executed.</p><pre> <br>  const addItem = async() =&gt; {<br>   const data = await fetch(API_BASE + &quot;/new&quot;, {<br>    method: &quot;POST&quot;,<br>    headers: {<br>      &quot;content-type&quot; : &quot;application/json&quot;<br>    },<br>    body: JSON.stringify({<br>      name: input,<br>        })<br>   }).then(res =&gt; res.json()) <br>   await GetTodos()<br>   setInput(&#39;&#39;)<br>  }<br><br> &lt;button onClick={()=&gt;addItem()}&gt;<br> &lt;span&gt;ADD&lt;/span&gt;<br> &lt;/button&gt;</pre><ol><li>fetch our API to create a new task</li></ol><p>2. The input value from the state will be sent as an object with the key “name” and its value being the user’s input.Then convert to JSON</p><p>3. Response from the API is being converted to JSON and stored in the data variable.</p><p>4. Added to indicate that the GetTodos function will be called after adding a new task to update the task list with the latest data from the server.</p><p>5. input field will be cleared after adding a new task. The setInput function is used to set the state of the input field to an empty string.</p><p>Congratulations! Now you can create a new task in the React application!</p><h4>11. Delete a task</h4><p>The next step is deleting an item, which follows the same logic as creating a new task. We will add an onClick method to the X button and execute the deleteTodo() function. The only difference is that we will pass the ‘id’ as an argument to the deleteTodo() function, so it knows which task to delete.</p><ul><li>TodoItem.js file</li></ul><pre><br>  const deleteTodo = async(id) =&gt; {<br>        try{<br>            const response = await fetch(API_BASE + &quot;/delete/&quot; + id, {<br>                method: &quot;DELETE&quot;,<br>              });<br>            if(!response.ok){<br>                throw new Error(&quot;Faild to delete a task&quot;)<br>            } <br>            const data = await response.json()<br>            setItems(items=&gt; items.filter(item=&gt; item._id !== data._id))<br>        }catch (error) {<br>            console.error(&quot;Error updating task status:&quot;, error);<br>          }<br>      }<br><br>  &lt;div className=&quot;delete-todo&quot; onClick={()=&gt;deleteTodo(id)}&gt;<br>   &lt;span &gt;X&lt;/span&gt;<br>  &lt;/div&gt;</pre><ol><li>In order to delete a task, we need to identify which task the user wants to delete. For this, we use an ‘id’ parameter that uniquely identifies each task.</li></ol><p>2. When the user clicks on the delete button (the X button), the ‘deleteTodo()’ function is executed. We pass the ‘id’ of the task as an argument to the ‘deleteTodo()’ function.</p><p>3. Inside the ‘deleteTodo()’ function, we make a request to our API’s delete endpoint with the specified ‘id’ to delete the task from the server.</p><p>4. After successfully deleting the task on the server, we want to update our user interface to reflect the changes. To do this, we use the ‘setItems’ state. We filter the ‘items’ array by keeping only the tasks whose ‘id’ is not equal to the ‘id’ of the task that was just deleted.</p><p>5. By doing this, the task that was deleted will be removed from the list, and the user will see the updated task list without the deleted task.</p><p>Great job! We have successfully created a full-stack app using Mongoose, Express, Node.js, and React. If you found this tutorial helpful, I would really appreciate it if you could show your support by giving it a clap.</p><p>If you have any questions or come across any issues while following this tutorial, don’t hesitate to leave a comment. Your feedback is incredibly valuable and will help improve this tutorial for other learners.</p><p>Thank you for joining me on this journey of building a full-stack app!</p><p>*Github repo: <a href="https://github.com/EunbyulNa/MERN-TO-DO-APP">https://github.com/EunbyulNa/MERN-TO-DO-APP</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb772e5991ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Test Driven Development (TDD) and Its Workflow]]></title>
            <link>https://code.likeagirl.io/understanding-test-driven-development-tdd-and-its-workflow-4bab2c8f2e43?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bab2c8f2e43</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Sat, 15 Jul 2023 09:47:33 GMT</pubDate>
            <atom:updated>2023-07-15T09:47:33.945Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. What is TDD (Test Driven Development)?</h3><p>Before we discuss what TDD is, let’s think about the traditional coding approach.</p><p>Usually, we think about the function we want to create first, then write the code, and finally test it to see if it works.</p><p>However, <strong>the TDD workflow is the opposite</strong>. We are writing automated <strong><em>tests before writing the actual code</em></strong>. Instead of writing the code first and then trying to create a test to verify it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MsEeqKaQ6AoRJNuIxSRNjg.jpeg" /><figcaption>TDD workflow</figcaption></figure><ol><li>Write a test</li></ol><p>2. Write the actual code</p><p>3. Test it to pass</p><p>4. Refactorize if necessary</p><p>Before we dive into TDD, I want to tell you about the various types of automated tests that can be written:</p><ul><li><strong>Unit tests</strong>: These tests focus on testing individual functions that perform specific tasks. Unit testing is relatively simple to get started with. You call a single function and check the result to ensure its correctness.</li><li><strong>Integration tests</strong>: These tests verify that unit collaborations work correctly. In integration testing, you typically check the interaction and integration between multiple units of code simultaneously. It ensures that different components or modules work together as expected.</li><li><strong>End-to-end tests</strong>: These tests examine the entire application or system as a whole, simulating real user interactions. End-to-end testing aims to validate the flow and functionality of the application from start to finish. It ensures that all the components and systems collaborate seamlessly, mimicking real-world scenarios.</li></ul><h3>2. What are the Benefits of TDD?</h3><p>TDD offers not only assistance in developing the logic in our code but also a couple of other benefits.</p><ul><li><strong>Focused Development</strong></li></ul><p>TDD enables you to stay focused while coding. By starting with a failing test, you concentrate solely on making it pass. This approach encourages thinking in terms of smaller chunks of code, rather than tackling the entire function at once.</p><ul><li><strong>Fewer Bugs</strong></li></ul><p>It can be incredibly frustrating to discover bugs after building an entire function. Finding the problem and determining when it occurred becomes challenging. However, by practising TDD and frequently testing small blocks of code, you can reduce the occurrence of bugs. This approach helps identify and resolve issues before the function grows in complexity.</p><h3>3. Unit Test Process with an Example</h3><p>Let’s delve into how the TDD process works with a simple example.</p><ol><li>Write a test</li></ol><p>To demonstrate the TDD process, let’s consider a simple example where we want to test a function called addNumber(). We will write a test to verify that the function correctly adds two numbers.</p><pre>function addNumber() {<br>if (add(4, 5) === 9) {<br>console.log(&quot;TEST PASSED&quot;);<br>} else {<br>console.log(&quot;TEST FAILED&quot;);<br>}<br>}</pre><p>In this test, we expect the addNumber() function to call another function named add() with the parameters 4 and 5. We then check if the result is equal to 9. If the condition is true, we log “TEST PASSED”, otherwise, we log “TEST FAILED”.</p><p>2. Write a code</p><p>We write the code for the add() function to make the test pass.</p><pre>function add(a, b) {<br>return a + b;<br>}</pre><p>The add() function takes two parameters, a and b, and returns their sum.</p><p>3. Run the test and Observe Success</p><pre>addNumber()</pre><p>After implementing the add() function, we rerun the test and observe that it passes successfully. The result of add(4, 5) is indeed 9.</p><p>4. Refactor (if needed)</p><p>If there is a need for refactoring, this step allows us to improve the code structure without changing its behaviour. In this simple example, there might not be a need for significant refactoring.</p><p>By following the TDD process, we ensure that our code is developed incrementally and tested thoroughly. This iterative approach helps identify and address issues early on, leading to more reliable and maintainable code.</p><h3>4. Conclusion</h3><p>Test Driven Development (TDD) is a valuable practice that promotes code reliability and logical thinking. By writing tests first, we can focus on smaller units of code, leading to fewer bugs and better maintainability. The TDD process, as demonstrated with the example of testing the addNumber() function, allows us to incrementally build and test our code, ensuring that the desired functionality is achieved.</p><p>By adopting TDD, developers can enhance the quality of their code, improve productivity, and build robust software that meets the desired requirements. So why not give TDD a try in your next project and experience its benefits firsthand? Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bab2c8f2e43" width="1" height="1" alt=""><hr><p><a href="https://code.likeagirl.io/understanding-test-driven-development-tdd-and-its-workflow-4bab2c8f2e43">Understanding Test Driven Development (TDD) and Its Workflow</a> was originally published in <a href="https://code.likeagirl.io/">Code Like A Girl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Doubt to Triumph: How to Overcome Fear and Excel in Tech?]]></title>
            <link>https://code.likeagirl.io/from-doubt-to-triumph-how-to-overcome-fear-and-excel-in-tech-48489d9d1b27?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/48489d9d1b27</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[woman-in-tech]]></category>
            <category><![CDATA[success-story]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[woman-empowerment]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Mon, 03 Jul 2023 09:17:50 GMT</pubDate>
            <atom:updated>2023-07-03T09:17:50.266Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Men are more likely to apply for a job if they meet only 60% of the qualifications, whereas women tend to apply if they meet 100% of the qualifications. Consequently, there is a need for more skilled female talent in science, technology, engineering, and math.</blockquote><p>A few days ago, I watched a <a href="https://www.ted.com/talks/reshma_saujani_teach_girls_bravery_not_perfection">TED video</a> where Reshma discussed some interesting points. She mentioned,</p><blockquote><em>“Most females are taught to avoid risk and failure. We’re taught to smile pretty, play it safe, and get all A’s. On the other hand, boys are taught to play rough, aim high, and climb to the top of the monkey bars. They jump off headfirst, and by the time they’re adults, whether negotiating a raise or asking someone out on a date, they’re habituated to taking risk after risk. They are rewarded for it.”</em></blockquote><p>As a female junior software engineer, I found myself nodding along and reflecting on my journey. <strong>How can we overcome our fear and encourage other women to join the IT industry?</strong></p><p>Here are three tips based on my own experiences.</p><h3><strong>1. Acknowledge that nobody is perfect</strong></h3><p>Let me share my story. I was born and raised in South Korea, and my mum was a typical Asian tiger mum. I was forced to study relentlessly since I was around seven years old. I spent several hours every day studying Korean, Math, and English. One day, I received a terrible score on a maths test. Fearing disappointment, I forged the score to appear perfect in front of my mum. It’s hard to believe that at such a young age, I resorted to deception just to meet the expectations of perfection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*p99Kvaod81HuUIIAcuLHHQ.gif" /></figure><p>In the IT industry, especially as a female junior software engineer, we often see brilliant senior engineers who seem to have perfect career paths and vast knowledge. However, they are not 100% perfect. They, too make mistakes and encounter bugs, which is why popular apps like Facebook or Instagram regularly release updates.</p><p>The mindset of striving for perfection can stifle creativity and harm self-esteem. It can even push us toward making wrong choices, as I did when I was a young girl.</p><h3><strong>2. Don’t be too hard on yourself</strong>, instead take an objective view.</h3><p>In the same TED video, a professor highlighted the differing reactions between male and female students when struggling with code. Male students ask, “Professor, what’s wrong with the code?” while female students tend to ask, “Professor, what’s wrong with me?”</p><p>Isn’t that sad? I’ve had the same experience. When a computer gets stuck while my husband is working, he says, “Stupid program! What’s the point?” I’ve seen him blame the software, not himself, many times. Whereas I often ask myself, “What’s wrong with me? Did I click something wrong?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zQXU5dqExGFVyztpuxeFEg.gif" /></figure><p>We need to adopt an objective view. Instead of blaming ourselves, it’s important as software developers to recognize that we are faced with large codebases and unexpected bugs. Problems are a regular part of our work, and it’s easy to doubt our abilities and think, “Am I not good enough to be a software engineer?” This self-blame is not a healthy way to reflect on our mistakes. We must step back, think clearly, and stop putting ourselves down.</p><h3>3. Take Risks: High Risk, High Return</h3><p>A report revealed that men are more likely to apply for a job if they meet only 60% of the qualifications, whereas women tend to apply only if they meet 100% of the qualifications. Consequently, there is a shortage of skilled female talent in science, technology, engineering, and math.</p><p>I took the biggest risk of my life when I switched my career from being a Radiographer in South Korea to becoming a software engineer in the UK, where I faced a different language and culture. Becoming a soft engineer is a huge challenge without a computer-related degree in the UK.</p><p>However, I refused to give up. I was willing to take risks and embrace bigger challenges step by step and improve myself every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*5fPdf_rjvxWuLmMLESe27Q.gif" /></figure><p>I vividly remember struggling to understand JavaScript while taking a Udemy course. At first, I had no idea what I was typing. Simply reading the English materials was a huge obstacle, and it took me a long time to understand it.</p><p>Today, I am proud to be a trainee at Founders and Coders, an exclusive program that accepts only a few select individuals. The more you are willing to take a challenge, the more you are trying to be out of your comfort zone, it will make you stronger and more unique.</p><p>Let’s be open to stepping out of our comfort zones, even if we don’t meet every qualification or possess all the necessary skills. Taking risks and pushing ourselves unlock the doors to new opportunities!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48489d9d1b27" width="1" height="1" alt=""><hr><p><a href="https://code.likeagirl.io/from-doubt-to-triumph-how-to-overcome-fear-and-excel-in-tech-48489d9d1b27">From Doubt to Triumph: How to Overcome Fear and Excel in Tech?</a> was originally published in <a href="https://code.likeagirl.io/">Code Like A Girl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do you care about user experience as a front-end developer?]]></title>
            <link>https://medium.com/@Eun90/do-you-care-about-user-experience-as-a-front-end-developer-82398eaff6b6?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/82398eaff6b6</guid>
            <category><![CDATA[user-testing]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[user-experience]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Thu, 22 Jun 2023 06:09:01 GMT</pubDate>
            <atom:updated>2023-06-22T06:21:57.126Z</atom:updated>
            <content:encoded><![CDATA[<h3>Do you care about user experience as a front-end developer? Here are the insights from the Sunrise-Sunset project.</h3><p>The second team project at Founders and Coders is creating an interactive web service using at least two different APIs. We decided to work on the “Sunrise-Sunset” project. The idea is that when a user enters a city name (it’s also possible to enter a postal code), the website will display a static map with a marker and provide information about the sunset, sunrise, and current time. Additionally, users will be able to view a graph showing the monthly average daylight hours.</p><ol><li><strong>Two problems my team didn’t consider regarding user experience:</strong></li></ol><p>Before this project, I knew about UX. but I hadn’t thought about how to enhance the user experience. I was primarily focused on creating a visually appealing website, and I thought that was enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*NFN0EhqSWNbbsfh4ncGVpA.gif" /><figcaption>Not bad, not bad</figcaption></figure><p>The problem arose when I wrote a significant portion of JavaScript code to calculate the monthly average daylight time. This code involved using a nested for loop to retrieve data from the API and perform calculations, which turned out to be a time-consuming process. As a result, users had to wait for a long time. Although I added a loading spinner, it wasn’t helpful at all. Because users didn’t know when the spinner would stop. For impatient users, seeing an unfinished loading spinner became frustrating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*7_Wflsl9d-j3J7ARzq88_g.gif" /><figcaption>Please test our web &gt; &gt; <a href="https://eunbyulna.github.io/FAC-28-Http/">https://eunbyulna.github.io/FAC-28-Http/</a></figcaption></figure><p><strong>2. Why user experience matters:</strong></p><p>While user experience may not be a significant concern when developing a static website, it becomes crucial when creating an interactive web service that can potentially cause performance issues.</p><p>Imagine building a banking or booking web service with similar problems as I encountered. Users would become frustrated and eventually stop using our web service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*6TYqMppsXPc0yo95nyisPA.gif" /><figcaption>Like a sloth….v..ery..sl..ow…</figcaption></figure><p><strong>3. How much should front-end developers consider user experience?</strong></p><p>When I faced this issue, I realized that if I had a UX/UI designer and a product management team, I might not have made this mistake. It made me wonder about the role and purpose of a front-end developer. How much should we prioritize user experience? Are we simply technical people or are we also architects/designers?</p><p><strong><em>My answer is that we are architects/designers/technical individuals who can be anything we need to be.</em></strong></p><p>Let’s consider the analogy of building a house. As a constructor, you are responsible for physically constructing the house, laying bricks, and painting the walls, for example. However, when the main designer presents the floor plan, you notice something seems off. The sink in the bathroom is too high, and the bathroom is located on the second floor instead of the ground floor. Then, you discover that the client is an 80-year-old grandfather who uses a wheelchair.</p><p>As a good constructor, you would voice your concerns about this issue, saying, “This design isn’t suitable for our client.” I believe this is what a front-end developer should do. Even though thinking about UX may not be our primary responsibility, it is still one of our tasks.</p><p><strong><em>We should recognize when something is not good for the user, bring up the issue, and work together to resolve it.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*4KrzSDvlNeljhs7mrMUEJA.gif" /><figcaption>Got ya!</figcaption></figure><p>Overall, This project gives me a valuable opportunity to reconsider UX, and what kind of front-end developer I should be.</p><p>-Written by Eun &amp; ChatGPT</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82398eaff6b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Are APIs and How Can We Use them with the Fetch Method?]]></title>
            <link>https://medium.com/@Eun90/what-are-apis-and-how-can-we-use-them-with-the-fetch-method-4ae1f988ae64?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ae1f988ae64</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Tue, 13 Jun 2023 13:02:03 GMT</pubDate>
            <atom:updated>2023-06-13T13:10:37.634Z</atom:updated>
            <content:encoded><![CDATA[<p>An API (Application Programming Interface) is a set of commands, functions, protocols, and objects that programmers can use to create software or interact with an external system. There are countless types of APIs available today, spanning different industries and contexts. For example, APIs can be used to access weather data, financial information, social media platforms, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*6yWHDGbhpeHPpIIGGaYFtQ.gif" /><figcaption>Don’t worry! I’ll explain with examples :)</figcaption></figure><p>Imagine you want to create a crime map of London and require crime data for that purpose. However, the police cannot provide all the details of crime data due to confidentiality concerns. Instead, authorized personnel can access confidential data.</p><p>But they may be willing to provide basic information such as the location or time of the crime, which can be found in news reports. <strong>APIs act as a contract between users and data providers, specifying the extent of data that can be revealed and the methods users can employ to access and manipulate that data to create software or websites.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvPdmWT3_eNX6HJLXNRgLA.jpeg" /><figcaption>API is serving your menu like a waiter in a restaurant!</figcaption></figure><p>APIs are designed to be user-friendly, much like ordering from a restaurant menu. When you order a pizza at a restaurant, the server responds by serving you the pizza. Similarly, <strong>when a user sends a request to an API, the server responds with the requested data if the request is valid. If the request is incorrect, the server does not respond.</strong></p><p>Now that we know what APIs are, let’s explore how we can use them in our real projects using fetch() method.</p><p>JavaScript provides the Fetch API, a built-in feature that simplifies making HTTP requests and handling responses. The Fetch API allows you to send GET, POST, PUT, DELETE, and other types of requests to APIs.</p><p>To fetch data from an API, you can start by making a GET request. Here’s an example of how to use the Fetch API to retrieve data:</p><pre>fetch(&#39;https://api.example.com/data&#39;)<br>  .then(response =&gt; response.json())<br>  .then(data =&gt; {<br>    // Handle the data<br>    console.log(data);<br>  })<br>  .catch(error =&gt; {<br>    // Handle any errors<br>    console.error(&#39;Error:&#39;, error);<br>  });</pre><p>In the code above, we use the fetch function to send a GET request to the specified API endpoint (https://api.example.com/data). We then use the then method to handle the response by extracting the JSON data using the json method. Finally, we can access and process the data in the second then block or handle any errors in the catch block.</p><p>The response from the API can vary depending on the specific API you’re working with. It could be JSON, XML, HTML, or plain text. Make sure to check the API documentation to understand the response format and structure.</p><p>Besides GET requests, you may also need to send data to an API using a POST request. Here’s an example:</p><pre><br>const data = {<br>  name: &#39;John Doe&#39;,<br>  email: &#39;johndoe@example.com&#39;<br>};<br><br>fetch(&#39;https://api.example.com/users&#39;, {<br>  method: &#39;POST&#39;,<br>  headers: {<br>    &#39;Content-Type&#39;: &#39;application/json&#39;<br>  },<br>  body: JSON.stringify(data)<br>})<br>  .then(response =&gt; response.json())<br>  .then(data =&gt; {<br>    // Handle the response<br>    console.log(data);<br>  })<br>  .catch(error =&gt; {<br>    // Handle any errors<br>    console.error(&#39;Error:&#39;, error);<br>  });</pre><p>In this example, we use the fetch function again, but this time we provide additional options in the second parameter. We specify the HTTP method as &#39;POST&#39; and set the &#39;Content-Type&#39; header to &#39;application/json&#39; since we&#39;re sending JSON data. The data object is converted to a JSON string using JSON.stringify() and included in the request body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*gIoQ0FkLayjHr-20P0uy-Q.gif" /><figcaption>Well done! Now we know pretty much all about APIs!</figcaption></figure><p>Fetching data from an API is a fundamental skill in web development. With JavaScript’s Fetch API, you can easily retrieve data from external sources and incorporate it into your applications. By following the steps from my article, you should now know how to fetch an API using JavaScript and handle the response data effectively.</p><p><em>Written by Eun &amp; ChatGPT</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ae1f988ae64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop creating a pretty website, instead make an accessible and inclusive website.]]></title>
            <link>https://medium.com/@Eun90/stop-creating-a-pretty-website-instead-make-an-accessible-and-inclusive-website-681cc0143f3d?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/681cc0143f3d</guid>
            <category><![CDATA[inclusive-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[codingbootcamp]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Tue, 06 Jun 2023 12:39:09 GMT</pubDate>
            <atom:updated>2023-06-06T12:48:53.973Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Is your website exclusive and high-fashion or inclusive like GAP?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5juO-VQVeB_hvf2zLPUrQ.jpeg" /></figure><p>The main thing I learned during boot camp is how to create an accessible and inclusive website. When building projects for my portfolio, I never considered accessibility. I haven’t come across any tutorials on YouTube that discuss making websites accessible or address the needs of keyboard and screen reader users.</p><blockquote>It was quite shocking to realize why accessibility is important. I feel embarrassed that I’ve always built projects based solely on my own perspective, without considering the needs of others. I assumed that all users have the same physical conditions as me.</blockquote><h4>Remember, not everyone has the same condition as you!</h4><p>I will cover the topics of keyboard and screen reader accessibility since they tend to be the main challenges for web developers to address.</p><p>Let’s imagine a user with a broken arm who cannot use a mouse. If your UI doesn’t allow them to navigate using the keyboard, they won’t be able to interact with your website or fill out forms. In this case, having keyboard navigation is crucial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opXj2_6woSMsMKwZoPlMfA.gif" /><figcaption>Users can navigate to links using the ‘tab’ key</figcaption></figure><p>Here’s a checklist to consider. Once you have finished your website, please check all the requirements to ensure that users can perform all actions using only a keyboard.</p><ul><li>Can Users scroll up and down a web page by pressing the up ↑ or down ↓ arrow keys? (on Mac keyboards: ⎇ option + ↑ or ↓).</li><li>Can Users scroll to the top or bottom of a page using the Home or End keys? (on Mac keyboards without these keys, you can use ⌘ command + ↑ or ↓).</li><li>Can Users navigate to links, buttons, or inputs using the “tab” ⇥ key. This allows them to move the focus to the next interactive element on the page.</li><li>Can Users “click” a focused button or link using the “return” ⮐ or spacebar keys. Users can also submit a form by pressing “return” while an input is focused.</li></ul><p>Let’s move on to the screen readers. Visually impaired and blind people rely on screen reader software to read out loud what is displayed on a web page. It is essential to include all types of users. Most operating systems now have built-in screen readers.</p><p>Here’s how to access them.</p><ol><li>VoiceOver (Mac OS): You can activate VoiceOver by pressing ⌘ command + F5 (or by opening System Preferences and navigating to Accessibility &gt; VoiceOver &gt; Enable VoiceOver). By default, VoiceOver shortcuts use the ∧ control and ⌥ option keys as modifiers, referred to as the “VO key” in the documentation.</li><li>Narrator (Windows 10): You can activate Narrator by pressing the Windows logo key + control + ⮐. By default, Narrator keyboard shortcuts use the caps lock ⇪ key as the modifier, labeled the “Narrator” key in their documentation.</li><li>Orca (Linux): Depending on the Linux distribution you’re using, you may need to install Orca. Use the following command: sudo apt install orca &gt;&gt; convert to snap chat. You should be able to run the “orca” command in your terminal to start it. By default, Orca keyboard shortcuts use the caps lock ⇪ key as the modifier key on laptops. Read more in their documentation.</li></ol><p>Here is one attribute that is easily overlooked when building a website: Image elements with [alt] attributes. To be honest, I always forget to include descriptions in the alt attribute.</p><p>If you don’t provide alternative text for an image, it will be hidden from screen readers. It is essential to describe the purpose of the image.</p><h4>Another tip, use the correct HTML semantic tag every time!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rAXDMddhVNtlMOQhzB0zBA.png" /><figcaption>Test my team project with a voice recorder.</figcaption></figure><p>For example, let’s say you have created a toggle navigation button. Some of you might use a &lt;div&gt; for the toggle button. Instead, we should use a &lt;button&gt;, as they are naturally focusable and can be used with the keyboard. They are also announced as interactive by screen readers.</p><p>So far, we have been building an accessible website. However, we are unsure whether our website is accessible or not. How can we test it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k6LcDCcfdyeWRUTn6zKXhQ.png" /><figcaption>I tested my team project with LightHouse</figcaption></figure><p>You can test it using Lighthouse, which can be found in the Chrome developer tools. Lighthouse can run different types of tests on a page, including accessibility. It will inform you of obvious failures, such as low color contrast or missing image alt text. However, it may not catch more complex problems, like a custom component that cannot be controlled with the keyboard. In such cases, you need to manually check for accessibility.</p><p>Another way to test is, to visit here, <a href="https://www.a11yproject.com/checklist/">https://www.a11yproject.com/checklist/</a> It provides a list of simple things you should do for every site you build.</p><blockquote><em>Neglecting accessibility is like creating fashionable but unwearable costumes. As a customer, you may feel that you are not their prioritized one and you don’t feel included.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*WC_mpVl25WrGQKKW5Xjftw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbQI1eax7fmSge6XtIBJ8Q.jpeg" /><figcaption>They are creative and fashionable. But…</figcaption></figure><p>Many web developers want to showcase their technical skills and create cool stuff rather than focusing on basic, simple web and app designs.</p><h4><strong>However, it’s important to remember that we should always prioritize the user.</strong></h4><p>We need to be like brands such as GAP or Banana Republic. They may not be the most fashionable or fancy, but their outfits are easily wearable for everyone. Regardless of body shape or skin color, their clothing is suitable for a wide range of people.</p><p>Are you making a fancy-exclusive website or are you making a little bit simple but inclusive for everyone?</p><p><strong><em>Written by Eun &amp; ChatGPT</em></strong><a href="https://emojipedia.org/writing-hand-light-skin-tone/"><strong><em>✍🏻</em></strong></a><a href="https://emojipedia.org/robot/"><strong><em>🤖</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=681cc0143f3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The lessons I learned from my first collaboration project during my boot camp]]></title>
            <link>https://medium.com/@Eun90/the-lessons-i-learned-from-my-first-collaboration-project-during-my-boot-camp-1c92547dd8f7?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c92547dd8f7</guid>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[team-collaboration]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 07:31:05 GMT</pubDate>
            <atom:updated>2023-06-02T10:46:25.011Z</atom:updated>
            <content:encoded><![CDATA[<p>Something I learned after completing my first collaboration project is that I started a part-time bootcamp with Founders and Coders. I was incredibly excited to begin because I had been planning to join for a long time. Before I share my story, let me explain what Founders and Coders is all about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jEhMZUC_ElXUlKTYTkXU-Q.png" /><figcaption><a href="https://www.foundersandcoders.com/">https://www.foundersandcoders.com/</a></figcaption></figure><p>Founders and Coders is a 100% free and peer-led bootcamp, unlike paid bootcamps. This means that only talented and enthusiastic individuals can join.</p><p>To be accepted, all applicants must complete five different projects involving HTML, CSS, and vanilla JavaScript (each project is slightly different). After the interview process, I was finally granted the opportunity to study alongside brilliant people.</p><p>The part-time bootcamp runs for 12 weeks and is entirely remote, with sessions taking place twice a week in the evenings. This schedule is convenient for those who have jobs and want to transition into a tech career. We use a combination of VR sessions for group discussions and Zoom meetings.</p><p>Personally, I found the VR experience, particularly in the Meta Horizon world, to be incredibly interesting and captivating.</p><p>One of the most significant benefits of completing the 12-week course is the opportunity to have an interview with potential apprenticeship employers. Essentially, this part-time bootcamp serves as a pre-apprenticeship course. Of course, merely completing the course doesn’t guarantee an apprenticeship job, but according to Founders and Coders, most applicants end up diving into the apprenticeship program.</p><p>Now, let’s discuss what happened during the first three weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*0CkpOdJ5TxbH7d0ft7b1eg.gif" /><figcaption>Overwhelming first 3 weeks!</figcaption></figure><p>Every three weeks, we were given a main topic to study, along with study materials. We were expected to complete the workshops independently at home. Once the session started, we could discuss the topic, share ideas, and clarify any areas of confusion. Finally, we would collaborate with our team members to build a project related to what we had learned so far.</p><p>The first main topic we covered was markup, which involved learning about accessibility and how to use semantic HTML tags correctly. We also focused on organizing CSS classes effectively.</p><p>Reflecting on my first project, it involved building a responsive agency website with a navigation menu, about us section, and contact form. The core requirement was to ensure the website was accessible to both keyboard users and screen reader users. Initially, I thought it would be a relatively straightforward and manageable project since all team members, including myself, had previously created numerous websites. This gave me a sense of confidence.</p><p>However, what proved to be more challenging was not the technical aspects but rather communication and soft skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*q2ssF4tC8zCk_Y_iXElsFQ.gif" /></figure><p>As a non-native English speaker, I hadn’t engaged in this type of work before. While working as a sales assistant in London, the content and discussions were completely different. Communicating and participating in meetings with native speakers was difficult for me. I often stumbled during discussions and presentations, and in small group code interviews, I failed to actively listen to my team members and sometimes insisted on my own incorrect ideas.</p><p><strong>Soft skills and communication abilities tend to be underestimated in the field of web development. Many people believe that software engineers need to excel in technical areas rather than verbal expression. However, this belief is misguided.</strong></p><p>While technical skills can be improved independently through resources like Chat GPT or online searches, communication and soft skills require interaction with people.</p><p>Consider this scenario: What if your team members or manager asked, “Eun, can you do ‘A’?” and you replied, “Ok, no problem,” but ended up doing ‘B’ instead? It would be a disaster. I learned the importance of listening carefully to avoid missing important information and asking for clarification when things are unclear instead of pretending to understand.</p><p>Additionally, being polite is crucial, especially for non-native speakers who may have a tendency to speak directly and straightforwardly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*TYoVHphF561n3Ftmk98rhA.gif" /><figcaption>Not sure I did it right though…</figcaption></figure><p><strong>Sharing my issues with team members was also an important lesson. While I didn’t share every single issue I encountered, it’s crucial to know when the right time is to share a bug or when I’m stuck so that I can ask for help at the appropriate moment.</strong></p><p><strong>Working as a team with multiple perspectives is always better than relying solely on one’s own brain.</strong></p><p>In my case, I was in charge of creating a responsive navigation bar for the project. I thought it was pretty cool, but I didn’t realize it had a bug. The week before our project presentation, we had a code review session where we tested and reviewed each other’s projects. During the code review, my reviewers pointed out a few mistakes, including the navigation bar bug.</p><p>It was a humbling moment. Without the review session, I would have completely missed my mistake and presented our website with a bug.</p><p>It’s natural to make mistakes, and no website, app, or software can be 100% perfect. That’s why regular updates are necessary. So, I learned not to be afraid of sharing the mistakes or bugs I made unintentionally. <strong>Making mistakes is normal, and that’s precisely why we work as a team. Single engineers can’t create a completely bug-free project without a team.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*cQObzHw2EgTX9JoALVb5Sg.gif" /><figcaption>YAY, WELL DONE ALL OF US!</figcaption></figure><p>I am happy to have completed my first collaboration project, and I’m still in the learning curve, trying not to be too hard on myself. It’s a privilege to be part of such a fabulous community. I’m eagerly looking forward to studying the next topic, HTTP, and building a new project with a new team member.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*DBeRxBIAYdPU9dgnX6R3Cg.gif" /></figure><p>In summary, here’s what I learned from my first team project:</p><ol><li>Communication skills are more challenging to improve than programming skills. Even if you’re an excellent programmer, if you struggle with communication, no one will want to work with you. Soft skills can only be improved by working with others.</li><li>Working as a team is better than working alone. Your team members can point out mistakes you’ve made and are willing to help you fix them. Don’t be afraid to ask questions and make mistakes.</li></ol><ul><li><em>Writtem by Eun And ChatGPT </em><a href="https://emojipedia.org/writing-hand-light-skin-tone/"><em>✍🏻</em></a><a href="https://emojipedia.org/robot/"><em>🤖</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c92547dd8f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a web developer career from full-time mom]]></title>
            <link>https://medium.com/@Eun90/how-to-build-a-web-developer-career-from-full-time-mom-18bd07359e9e?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/18bd07359e9e</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 20:01:09 GMT</pubDate>
            <atom:updated>2023-03-08T20:01:09.429Z</atom:updated>
            <content:encoded><![CDATA[<h3>I want to share the story of how I Learned to Code with a Baby</h3><p>In 2020, I received a UK spouse visa and returned to the UK after living in London from 2018 to 2020. At that time, I had just completed a government front-end boot camp in Korea and felt confident in my ability to become a web developer. However, due to the lockdown measures, I was unsure about my prospects.</p><p>Despite this uncertainty, I created a portfolio and applied to a few companies. I was thrilled when I received an interview invitation, but then I discovered that I was pregnant and suffering from severe morning sickness. I had to give up my plans to find a job and become a full-time mom.</p><p>Last year was challenging, and I struggled with feelings of depression as I missed having a professional job and being independent. However, I realized that I could use my downtime effectively, such as when the baby napped or early in the morning until 9am (thankfully, my husband worked from home and could look after the baby from 7–9 am).</p><p>By managing my time well, I have completed five projects to apply to the bootcamp in London (Founders and Coders), which is more like a pre-apprenticeship course than a paid bootcamp. I have also created at least five more mini-projects using Javascript and I am currently learning React.</p><p>Here are some tips I want to share with you, as a full-time mom, to help you build a career as a web developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*3wMJXmNyo67OWNrzcR5pMA.gif" /></figure><ol><li><strong>Set goals.</strong></li></ol><p>The first thing to do if you want to manage your time effectively is to set specific goals. Without clear goals, you may give up easily. It’s important that your goals are vivid and have deadlines. For example, you can set the goal like this “I will create a To-Do list app with vanilla JavaScript by the end of the week.” Once you have set your goals, you can create a schedule for yourself.</p><p>Here’s an example schedule:</p><ul><li>Monday: Work on the design</li><li>Tuesday: Finish the HTML structure</li><li>Wednesday: Complete 50% of the CSS</li><li>Thursday: Finish the remaining 50% of the CSS</li><li>Friday: Work on 50% of the JavaScript</li><li>Saturday: Complete the remaining 50% of the JavaScript, test the app, and upload it to GitHub</li></ul><p><strong>Don’t make your schedule too difficult to achieve</strong>. <strong>Remember, programming is a marathon, not a sprint.</strong></p><p>Especially when it comes to CSS and JavaScript, don’t try to build everything at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*8MbBDYRQszSgV0NMFIobpQ.gif" /></figure><p>Take it step by step and keep testing your code as you go.</p><p><strong>2. Make the most of downtime.</strong></p><p>Whether you’re a full-time mom or a full-time professional, you may have downtime throughout the day. For example, you could use your early morning, lunch break, or bedtime as opportunities to work on your projects. Check your schedule and find a suitable time for yourself. Personally, I recommend using early mornings. If your day starts at 7am, wake up an hour earlier and work on your project.</p><p>Here’s my schedule:</p><ul><li>Morning session: Wake up at 5:30am and work on programming until 8am. since I finish the BootCamp application project, I usually wake up at 7am (it’s hard to wake up at 5:30am!). This gives me 2.5 hours to work on my project, which is a lot of time!</li><li>Afternoon session: During my baby’s nap time (usually between 1–3pm), I can watch React tutorials for two hours.</li><li>Night session: After my baby goes to bed at 7pm, I usually spend an extra hour programming or having a conversation with my husband.</li><li>Overall, I have 5.5 hours of downtime, which is a significant chunk of time. You could use this time to work on your projects or do some writing. <strong>Don’t underestimate small pockets of downtime; use them wisely!</strong></li></ul><p><strong>3. Don’t try to make it perfect, just do it!</strong></p><p>Quality is important, but as a learner, quantity should come first. To reach the boiling point, you need to keep building or studying. Set your mind on finishing your project first, then you can go back and make it better. If you obsess over making the perfect result, you’ll become overwhelmed and eventually want to give up.</p><p><strong>4. Find a role model who inspires you.</strong></p><p>To stay motivated, having a role model is crucial. Even if you have a clear goal and vision, you may feel stuck or frustrated without any inspiration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*pSJhK9A3HXt9smRhtrlKhQ.gif" /></figure><p>Personally, I am inspired by a female web developer. Maybe it’s because we’re the same gender, so I feel more connected to the role model. You can find your own role model in the developer community or even on Medium! Alternatively, you can google some cool portfolios and follow them. Your role model will help you stay inspired, even though you may have never met them in person.</p><p><strong>5. Make it a daily routine!</strong></p><p>The last and most important tip I want to share with you is to make programming a part of your daily routine. Just like eating, programming should be a habit and a routine. I started learning programming from scratch in 2019 on and off. The more I learn, the more I realize how much I don’t know yet. In other words, it takes time to get used to all the programming concepts, syntax, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*l39uFr4VK-37ZKFaJT2GhQ.gif" /></figure><p>If you’ve decided to become a web developer or programmer, that means you need to keep learning every day, forever! Embrace programming and don’t be afraid to be a <strong><em>“cool nerd”!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18bd07359e9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t underestimate 1% a day improvement]]></title>
            <link>https://medium.com/@Eun90/dont-underestimate-1-a-day-improvement-b87c223d0557?source=rss-7b26c347c381------2</link>
            <guid isPermaLink="false">https://medium.com/p/b87c223d0557</guid>
            <category><![CDATA[new-year-resolution]]></category>
            <category><![CDATA[habits-for-success]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[improvement]]></category>
            <category><![CDATA[habit-building]]></category>
            <dc:creator><![CDATA[Eun]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 19:52:03 GMT</pubDate>
            <atom:updated>2023-01-24T19:52:03.010Z</atom:updated>
            <content:encoded><![CDATA[<p>22th January is Selnal (설날) which is known as Lunar new year. In Korea, we consider Selnal as the first day of the new year. So if anyone failed to keep their new year&#39;s resolutions, dont’ give up. It’s time to restart, because today (which is 24th) is only the third day of 2023! You still have a chance.</p><ol><li><strong>Giving up is equal to failing.</strong></li></ol><p>Let’s say your new years resolution is to diet, you want to lose weight, and have a nice body shape. so here’s a question, which step is the most important part?</p><ol><li>Setting up a goal</li><li>Making a plan</li><li>Doing it every day</li></ol><p>I think, step 3 is not only the most important, but its also the hardest part. Doing your plan every single day is really difficult. However, if you give up step 3, you can’t reach your goal. In other words, giving up is equal to failing.</p><p><strong>2.My story</strong></p><p>I am a full-time mum, and I made an ambitious new years resolution. My plan is to partake in a Web developer Bootcamp, then potentially join an apprenticeship program at a big company in the UK. In order to get into the BootCamp, I have to finish 5 projects.</p><p>No1. Set up the goal. Tick! Now it’s time to make a plan! So here’s my plan. My plan is to wake up early in the morning, around 5:00 am, and do some programming, or codewars kata until my baby and husband wake up.</p><p>I have been doing my plan for around 5 months. While I was doing the 3 steps, I think step 3 is the hardest one. Setting up the goal is the easiest one, and persevering is the most difficult one.</p><p>Setting up a goal for the future Tends to be the easiest part. Like a new year wish. You don’t need to action anything to make it happen.</p><p>I still don’t enjoy waking up early. Because every 5am, my laziness is whispering to me “Sleep ten mins more. it’s fine. Nobody cares.” So I have to fight my laziness every single day.</p><p>I find myself getting frustrated when I and studying and programming. Programming is not easy, programming is active learning. It’s not like a reading articles or memorizing some words. I need to design my next project, think of the logic, fix bugs. The whole process is quite exhausting.</p><p>However, I believe that doing it every day is the only way to reach my goal, and change my life.</p><p><strong>3.The power of tiny gains</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*F8-ayZMGFcdTVvvPdUrUJQ.jpeg" /></figure><p>This graph comes from James Clear’s book Atomic Habits. It shows how a 1% a day improvement will accumulate over time to contribute to your improvement.</p><p>In the beginning, there is no difference between making a choice that is 1 percent better or 1 percent worse. But as time goes on, this small gap between better every day and worse every day will make a huge difference in the end.</p><p>However people underestimate that 1 percent. Its not instantly noticeable. That 1% is a small change so people tend to ignore it.</p><p><strong>James Clear said, success is not an event. It’s the sum of all the moments when we chose to do things.</strong> I totally agree. So I won’t give up, like I said earlier give up is equal to failing.</p><p>Don’t forget, a slower cook is always a better taste than 3 minute instant food. Its the same with your life. We need to think we are making good quality food, not unhealthy junk food. It does take time, it’s boring, and it is a hard journey. At the end of this year, I hope we all achieve what you set out to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b87c223d0557" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>