<?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 Gilberto Medero on Medium]]></title>
        <description><![CDATA[Stories by Gilberto Medero on Medium]]></description>
        <link>https://medium.com/@gjmedero?source=rss-76fd1463b39b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kYtCpiXDAhUbcIYF</url>
            <title>Stories by Gilberto Medero on Medium</title>
            <link>https://medium.com/@gjmedero?source=rss-76fd1463b39b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 16:55:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gjmedero/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[Refermate 2023 Scholarship.]]></title>
            <link>https://medium.com/@gjmedero/refermate-2023-scholarship-58123204013d?source=rss-76fd1463b39b------2</link>
            <guid isPermaLink="false">https://medium.com/p/58123204013d</guid>
            <category><![CDATA[inclusivity]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[society]]></category>
            <category><![CDATA[education-reform]]></category>
            <dc:creator><![CDATA[Gilberto Medero]]></dc:creator>
            <pubDate>Wed, 06 Dec 2023 23:37:39 GMT</pubDate>
            <atom:updated>2023-12-06T23:40:58.705Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*H4mivja97Ay_uQdAI1fRBA.jpeg" /></figure><p>Education is the cornerstone of personal and societal growth, yet accessibility remains a significant challenge in today’s dynamic world. Implementing innovative strategies to make education more accessible includes addressing issues related to technology, inclusivity, and affordability.</p><p><strong>Technological Accessibility and Learning Curricula</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*JClK_BZQISgJuN3L-Fdxsg.jpeg" /></figure><p>Technology serves as a powerful tool to democratize education. Resources such as online learning platforms, interactive educational apps, and virtual classrooms help break down geographical barriers. Allowing learners from diverse backgrounds to access quality education. Additionally, integrating technology into traditional teaching methods enhances flexibility and provides tailored learning experiences.</p><p>Platforms like Khan Academy offer a vast array of courses, from academic subjects to professional development, making high-quality education accessible to anyone with an internet connection.</p><p>Adaptive learning technologies use artificial intelligence to tailor education content to individual learners. These systems analyze the progress, strengths, and weaknesses of each student, providing personalized learning paths. This ensures that learners can move at their own pace, reinforcing concepts they find challenging while accelerating through familiar material.</p><p>In conjunction with technological accessibility, a crucial aspect of that accessibility is creating curricula that cater to diverse learning styles and needs. Incorporating multicultural perspectives, diverse authors, and inclusive content ensures that education is relevant and relatable to a wide range of learners.</p><p>Recognizing that traditional, rigid learning models may not suit everyone, flexible learning options should be explored. Part-time programs, evening classes, and modular courses allow individuals with varied schedules and responsibilities to pursue education without sacrificing other aspects of their lives.</p><p><strong>Cost Reduction and Equal Opportunities</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*RSZAa_-kfqKgorM5c719Tg.jpeg" /></figure><p>The cost of educational materials can be a significant barrier. Open Educational Resources (OER), such as freely available textbooks, videos, and online courses play a pivotal role in reducing financial constraints. Advocating for the widespread adoption and creation of OER fosters a culture of shared knowledge and equal access.</p><p>Economic barriers often prevent deserving individuals from pursuing education. Establishing financial support systems, including scholarships, grants, and low-interest loans, can alleviate the financial burden on students. Collaborations between education institutions, governments, and private sectors are essential to create sustainable funding models.</p><p>Bridging the urban-rural education divide involves investing in infrastructure, improving connectivity, and implementing innovative solutions such as mobile learning apps. Bringing quality education to rural areas empowers communities and ensures equal opportunities for all.</p><p><strong>Continuous Learning</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*icOG_zrexk2QYekSroQnOQ.png" /></figure><p>In a rapidly changing world, the concept of education as a one-time event is outdated. Promoting lifelong learning initiatives encourages individuals to continuously acquire new skills and knowledge throughout their lives. This approach not only enhances personal development but also contributes to a more adaptable and skilled workforce.</p><p>Lifelong learning initiatives should recognize and value the skills and knowledge individuals have acquired through non-traditional routes, such as work experience or self-directed learning. Prior learning assessments can provide credits or exemptions, acknowledging the expertise individuals bring to the table and motivating them to continue their educational journey.</p><p>Mentorships and coaching also play an important role when it comes to such initiatives. Experienced professionals can guide learners by providing insights, advice, and real-world perspectives. Establishing mentorship programs fosters a sense of community and support, enhancing the overall learning experience and encouraging individuals to pursue continuous growth.</p><p>In conclusion, the journey to making education more accessible involves a multifaceted approach that addresses technological, economic, and societal challenges. Embracing innovation, fostering inclusivity, and building strong support systems are essential steps toward creating a more equitable educational landscape. By prioritizing accessibility, we not only empower individuals but also contribute to the collective growth and prosperity of society as a whole.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58123204013d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Composition vs Inheritance]]></title>
            <link>https://medium.com/@gjmedero/composition-vs-inheritance-8301be9a4978?source=rss-76fd1463b39b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8301be9a4978</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Gilberto Medero]]></dc:creator>
            <pubDate>Mon, 15 May 2023 02:22:08 GMT</pubDate>
            <atom:updated>2023-05-15T14:57:55.515Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rYak2haNfcAaG3Lw" /><figcaption>Photo by <a href="https://unsplash.com/de/@clark_fransa?utm_source=medium&amp;utm_medium=referral">Arnold Francisca</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Introduction</h4><p>Composition and Inheritance are two popular ways of building software systems. While both approaches have their benefits and drawbacks, they are fundamentally different and have different use cases. In the end I will explain why Composition is preferred in almost all use cases.</p><h4>Inheritance</h4><p>Inheritance is a mechanism that allows one class to inherit the properties and behaviors of another class. It is a way to create a hierarchy of classes with increasing levels of abstraction. Inheritance can be a powerful tool for code reuse and abstraction, but it can also lead to complex class hierarchies that are difficult to maintain and test.</p><h4>Example:</h4><pre>import React from &#39;react&#39;;<br><br>class Button extends React.Component {<br>  render() {<br>    return &lt;button&gt;{this.props.label}&lt;/button&gt;;<br>  }<br>}<br><br>class SubmitButton extends Button {<br>  handleClick() {<br>    // Handle submit logic<br>  }<br><br>  render() {<br>    return (<br>      &lt;button onClick={this.handleClick}&gt;<br>        {this.props.label}<br>      &lt;/button&gt;<br>    );<br>  }<br>}<br><br>function App() {<br>  return (<br>    &lt;div&gt;<br>      &lt;SubmitButton label=&quot;Submit&quot; /&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>In this inheritance example, we have a Button component that is a base class, and a SubmitButton component that extends the Button class. The SubmitButton component inherits the rendering behavior from the Button component but also adds its own logic for handling a click event. The SubmitButton component can customize and extend the behavior of the base Button component. The App component uses the SubmitButton component, which includes both the inherited rendering behavior and the added functionality.</p><h4>Composition</h4><p>Composition is a way of building complex objects by combining smaller, simpler objects together. Instead of inheriting from a base class, an object is composed of other objects, each responsible for a specific task. Composition can result in more flexible and modular code that is easier to maintain and test.</p><p>In React, composition is often preferred over inheritance. React components are built by composing other components, rather than inheriting from a base component class. This approach makes it easier to build reusable, composable components that can be combined in different ways to create complex user interfaces.</p><h4>Example:</h4><pre>import React from &#39;react&#39;;<br><br>function Button(props) {<br>  return &lt;button&gt;{props.label}&lt;/button&gt;;<br>}<br><br>function App() {<br>  return (<br>    &lt;div&gt;<br>      &lt;Button label=&quot;Click me!&quot; /&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>In this composition example, we have a Button component that is composed within the App component. The Button component is a reusable component that takes a label prop and renders a button element. The App component utilizes the Button component by passing it the necessary props. This approach allows for flexible composition and reusability of components in React.</p><h4>Reasons why use Composition over Inheritance</h4><ol><li>Flexibility and reusability: By composing smaller components together, you can create a variety of different compositions to suit different needs. In contrast, inheritance can lead to rigid class hierarchies that are difficult to modify or reuse.</li><li>Better separation of concerns: Composition helps to separate the concerns of different parts of your application. By breaking down your UI into smaller, more manageable components, you can focus on building each piece separately, without worrying about the implementation details of other components.</li><li>Easier testing: Components built with composition are typically easier to test, since you can test each component in isolation. This makes it easier to write unit tests and catch bugs early in the development process.</li><li>Improved performance: In some cases, using composition over inheritance can lead to improved performance. By breaking down your UI into smaller components, you can reduce the amount of unnecessary re-rendering that occurs when a change is made to your application.</li></ol><h4>Conclusion</h4><p>In summary, while inheritance can be useful in certain situations, composition is generally preferred in React due to its flexibility, reusability, separation of concerns, ease of testing, and potential for improved performance. By using composition, you can build more modular and maintainable code that is easier to test and modify over time.</p><h4>Sources</h4><ul><li><a href="https://www.geeksforgeeks.org/difference-between-inheritance-and-composition-in-java/">Difference between Inheritance and Composition in Java - GeeksforGeeks</a></li><li><a href="https://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html">Inheritance</a></li><li><a href="https://www.pluralsight.com/guides/react.js-and-inheritance">React.js and Inheritance</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8301be9a4978" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get, Post, Patch request]]></title>
            <link>https://medium.com/@gjmedero/get-post-patch-request-8302a4f7934b?source=rss-76fd1463b39b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8302a4f7934b</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Gilberto Medero]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 06:24:10 GMT</pubDate>
            <atom:updated>2023-04-25T06:26:12.342Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dsy7j8UY93y4S4LY" /><figcaption>Photo by <a href="https://unsplash.com/@ffstop?utm_source=medium&amp;utm_medium=referral">Fotis Fotopoulos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When building web applications, developers often need to interact with servers to perform various actions such as fetching data, creating new resources, or updating existing ones. JavaScript provides several methods to interact with servers, including GET, POST, and PATCH requests.</p><h3><strong>Get</strong></h3><p>GET requests are used to retrieve data from a server. When a GET request is made, the server sends back a response containing the requested data. This data can be in various formats such as JSON, HTML, or plain text. GET requests can be easily made using the fetch API or XMLHttpRequest (XHR). Site note, the XMLHttpRequest method can request data from a web server’s API endpoint/URL without doing a full page refresh.</p><pre>fetch(&quot;http://localhost:3000/toys&quot;)<br>  .then((response) =&gt; response.json())<br>  .then((json) =&gt; console.log(json));<br>  .catch(error =&gt; console.error(error));</pre><p>In this example, we use the fetch method to make a GET request to the URL http://localhost:3000/toys .This URL is the endpoint of the API we are accessing, and it specifies the data we want to retrieve from the server.</p><p>Once the request is made, the then method is used to handle the response. The reponse.json method is called on the response object to extract the JSON data from the response. This method returns a promise that resolves with the parsed JSON data.</p><p>The second then method is used to handle the parsed data. In this example, we simply log the data to the console, but you could use the data for other purposes, such as rendering it on a web page.</p><p>Finally, the catch method is used to handle any errors that may occur during the request or response. If an error occurs, the error message is logged to the console</p><h3><strong>Post</strong></h3><p>POST requests are used to create new resources on the server. When a POST request is made, data is sent to the server in the request body. This data can be in various formats such as JSON or FormData. The server then creates a new resource based on the provided data and sends back a response containing the newly created resource’s details. POST requests can also be easily made using the fetch API or XHR.</p><pre>const requestOptions = {<br>  method: &#39;POST&#39;,<br>  headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>  body: JSON.stringify({ username: &#39;johndoe&#39;, password: &#39;secretpassword&#39; })<br>};<br><br>fetch(&#39;https://api.example.com/login&#39;, requestOptions)<br>  .then(response =&gt; response.json())<br>  .then(data =&gt; console.log(data))<br>  .catch(error =&gt; console.error(error));</pre><p>In this example, we use the fetch method to make a POST request to the URL https://api.example.com/login. This URL is the endpoint of the API we are accessing, and it specifies the action we want to perform on the server, which is to log in with a username and password.</p><p>To make a POST request, we need to specify the request options, which include the request method, headers, and body. In this example, we use an object literal to define these options:</p><ul><li>method: Specifies the HTTP method to use, which is POST in this case.</li><li>headers: Specifies the headers to include in the request, which include the Content-Type header set to application/json. This indicates that the request body is in JSON format.</li><li>body: Specifies the data to include in the request body, which is the username and password in this case. The JSON.stringify method is used to convert the data into a JSON string.</li></ul><h3><strong>Patch</strong></h3><p>PATCH requests are used to update existing resources on the server. When a PATCH request is made, data is sent to the server in the request body, specifying the changes to be made to the resource. The server then updates the resource and sends back a response containing the updated resource’s details. Like GET and POST requests, PATCH requests can also be easily made using the fetch API or XHR.</p><pre>const requestOptions = {<br>  method: &#39;PATCH&#39;,<br>  headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>  body: JSON.stringify({ name: &#39;John Doe Jr.&#39; })<br>};<br><br>fetch(&#39;https://api.example.com/users/123&#39;, requestOptions)<br>  .then(response =&gt; response.json())<br>  .then(data =&gt; console.log(data))<br>  .catch(error =&gt; console.error(error));</pre><p>In this example, we use the fetch method to make a PATCH request to the URL https://api.example.com/users/123. This URL specifies the user with ID 123 that we want to update on the server.</p><p>To make a PATCH request, we need to specify the request options, which include the request method, headers, and body. In this example, we use an object literal to define these options:</p><ul><li>method: Specifies the HTTP method to use, which is PATCH in this case.</li><li>headers: Specifies the headers to include in the request, which include the Content-Type header set to application/json. This indicates that the request body is in JSON format.</li><li>body: Specifies the data to include in the request body, which is the updated name of the user in this case. The JSON.stringify method is used to convert the data into a JSON string.</li></ul><p>In summary, GET requests are used to retrieve data, POST requests are used to create new resources, and PATCH requests are used to update existing resources. These three types of requests are essential for building web applications that interact with servers and allow users to perform various actions.</p><p>Sources:</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">Fetch API - Web APIs | MDN</a></li><li><a href="https://www.freecodecamp.org/news/javascript-get-request-tutorial/">JavaScript Get Request - How to Make an HTTP Request in JS</a></li><li><a href="https://www.w3schools.com/tags/ref_httpmethods.asp">W3Schools.com</a></li></ul><p><a href="https://javascript.info/fetch"><em>https://javascript.info/fetch</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8302a4f7934b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>