<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sibi🥱</title>
    <description>The latest articles on DEV Community by Sibi🥱 (@sibichandru-rajendran).</description>
    <link>https://dev.to/sibichandru-rajendran</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1137950%2F1eef169b-9a58-441d-843c-043cc47f2b46.jpg</url>
      <title>DEV Community: Sibi🥱</title>
      <link>https://dev.to/sibichandru-rajendran</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sibichandru-rajendran"/>
    <language>en</language>
    <item>
      <title>Must know concepts of JS to make life simple</title>
      <dc:creator>Sibi🥱</dc:creator>
      <pubDate>Fri, 03 Nov 2023 20:13:17 +0000</pubDate>
      <link>https://dev.to/sibichandru-rajendran/must-know-concepts-of-js-to-make-life-simple-2och</link>
      <guid>https://dev.to/sibichandru-rajendran/must-know-concepts-of-js-to-make-life-simple-2och</guid>
      <description>&lt;h2&gt;
  
  
  Promises and Async/Await:
&lt;/h2&gt;

&lt;p&gt;Handling asynchronous operations in JavaScript will be a pain, especially using callbacks. If one uses callbacks he'll find himself in callback hell. To avoid that, we use &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Promises - A way to handle asynchronous operations in JavaScript.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Async/await - It simplifies working with Promises. It makes asynchronous code look synchronous.&lt;br&gt;
&lt;code&gt;async function fetchData() {&lt;br&gt;
try {&lt;br&gt;
let response = await fetch('https://api.example.com/data');&lt;br&gt;
let data = await response.json();&lt;br&gt;
console.log(data);&lt;br&gt;
} catch (error) {&lt;br&gt;
console.error(error);&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Modules in JavaScript:
&lt;/h2&gt;

&lt;p&gt;Modules are an alternative of commonJS which is a feature of ECMA script that allows us to organize code into reusable and maintainable units by exporting and importing modules.&lt;br&gt;
&lt;code&gt;export&lt;br&gt;
  export function myFunction() {&lt;br&gt;
  // Your code here&lt;br&gt;
 }&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;code&gt;import&lt;br&gt;
   import { myFunction } from (path of the export file)&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Event Handling:
&lt;/h2&gt;

&lt;p&gt;Handling user interactions and events like adding event listeners to buttons or forms.&lt;br&gt;
&lt;code&gt;const button = document.querySelector('#myButton');&lt;br&gt;
button.addEventListener('click', () =&amp;gt; {&lt;br&gt;
  // Your event handling code here&lt;br&gt;
});&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  map() Function:
&lt;/h2&gt;

&lt;p&gt;The map() function is a powerful and commonly used array method in JavaScript. It allows you to transform each element of an array by a function and create a new array based on the result.&lt;br&gt;
&lt;code&gt;const numbers = [1, 2, 3, 4, 5];&lt;br&gt;
// map function to double each number&lt;br&gt;
const doubledNumbers = numbers.map((number) =&amp;gt; {&lt;br&gt;
  return number * 2;&lt;br&gt;
});&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;code&gt;&lt;br&gt;
console.log(doubledNumbers); // Output: [2, 4, 6, 8, 10]&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Mastering A Framework</title>
      <dc:creator>Sibi🥱</dc:creator>
      <pubDate>Tue, 22 Aug 2023 10:37:00 +0000</pubDate>
      <link>https://dev.to/sibichandru-rajendran/mastering-a-framework-ha9</link>
      <guid>https://dev.to/sibichandru-rajendran/mastering-a-framework-ha9</guid>
      <description>&lt;p&gt;Learning a new framework can be both exciting and challenging for any web developer. Whether you're a backend-focused developer like yourself or someone well-versed in front-end technologies, approaching a new framework can seem like a daunting task. However, with the right mindset and strategy, you can master a new framework effectively. In this blog post, we'll explore a step-by-step approach to learning a new framework.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand the Basics:
&lt;/h2&gt;

&lt;p&gt;Before diving into the new framework, take some time to understand its fundamental concepts. Familiarize yourself with its core components, architecture, and the problem it aims to solve. This foundation will help you grasp the framework's purpose and structure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Explore Documentation:
&lt;/h2&gt;

&lt;p&gt;Documentation is your best friend when it comes to learning a new framework. Dive into the official documentation provided by the framework's creators. This resource will give you insights into the framework's features, syntax, and usage. Follow tutorials and guides to build small projects, gradually increasing the complexity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hands-on Coding:
&lt;/h2&gt;

&lt;p&gt;Theory alone won't make you proficient in a new framework. Start coding as soon as you understand the basics. Begin with simple exercises and gradually move to more complex projects. Apply the concepts you've learned to practical scenarios to solidify your understanding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a Project:
&lt;/h2&gt;

&lt;p&gt;One of the most effective ways to learn a new framework is to build a project from scratch. Choose a project idea that aligns with your interests and showcases the framework's capabilities. This hands-on experience will teach you problem-solving and application of the framework's features in a real-world context.&lt;/p&gt;

&lt;h2&gt;
  
  
  Study Existing Projects:
&lt;/h2&gt;

&lt;p&gt;To gain deeper insights, study open-source projects built with the framework. Analyze their code structure, design patterns, and best practices. This will expose you to different ways of using the framework and improve your coding skills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Experiment and Tinker:
&lt;/h2&gt;

&lt;p&gt;Don't be afraid to experiment with the framework. Try out different approaches, refactor your code, and explore advanced features. Learning often involves making mistakes, so embrace them as opportunities for growth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Online Communities:
&lt;/h2&gt;

&lt;p&gt;Engage with the framework's community. Join forums, discussion boards, and social media groups dedicated to the framework. Here, you can ask questions, share your progress, and learn from others' experiences.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pair Programming:
&lt;/h2&gt;

&lt;p&gt;Consider pair programming with a colleague or a friend who's familiar with the framework. Collaborative coding can expose you to new techniques, debugging strategies, and different viewpoints.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stay Updated:
&lt;/h2&gt;

&lt;p&gt;Frameworks evolve over time, so it's important to stay updated with the latest releases, features, and best practices. Follow the framework's official channels and subscribe to newsletters or blogs that provide updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Teach Others:
&lt;/h2&gt;

&lt;p&gt;Once you've gained proficiency, consider sharing your knowledge. Write blog posts, create tutorials, or give talks about your experience with the new framework. Teaching others not only solidifies your understanding but also contributes to the developer community.&lt;/p&gt;




&lt;p&gt;Learning a new framework requires dedication, patience, and a willingness to embrace challenges. By following these steps and maintaining a growth-oriented mindset, you'll find yourself becoming adept at using the framework in no time. Happy learning!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Building Backends with Node.js and MongoDB</title>
      <dc:creator>Sibi🥱</dc:creator>
      <pubDate>Fri, 18 Aug 2023 16:52:01 +0000</pubDate>
      <link>https://dev.to/sibichandru-rajendran/building-backends-with-nodejs-and-mongodb-230g</link>
      <guid>https://dev.to/sibichandru-rajendran/building-backends-with-nodejs-and-mongodb-230g</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XaCN7uIX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9lgsj45pfxo2fztreun.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XaCN7uIX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9lgsj45pfxo2fztreun.jpg" alt="Image description" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
As a seasoned backend Node.js developer, I understand the importance of creating robust and efficient applications. In this blog post, we will delve into the world of Node.js and MongoDB, exploring best practices and techniques that can help you build powerful and scalable backend systems.&lt;/p&gt;

&lt;p&gt;To develop a Robust project the foundation needs to be strong, for that the general practice of creating a node project is shared below step-by-step&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a project folder like "nodeBasic" and cd into the directory.&lt;/li&gt;
&lt;li&gt;Run "npm init" and setup the project.&lt;/li&gt;
&lt;li&gt;Now type "npm i express" to add express in your dependency&lt;/li&gt;
&lt;li&gt;In the directory create index.js file and follow along with the code below.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const express = require('express');
const app = express();

app.get('/api/users', (req, res) =&amp;gt; {
  const users = ['User 1', 'User 2', 'User 3'];
  res.json(users);
});

const PORT = 3000;
app.listen(PORT, () =&amp;gt; {
  console.log(`Server listening on port ${PORT}`);
});

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Express.js, a minimal and flexible web application framework for Node.js, simplifies the process of building APIs. Its middleware architecture, routing capabilities, and extensibility make it a go-to choice for backend developers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now to connect the Mongo db we are going to use the most famous ODM "Mongoose" &lt;/li&gt;
&lt;li&gt;To install it type "npm i mongoose"&lt;/li&gt;
&lt;li&gt;Then follow along the code in the index.js file to connect the mongo db
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const mongoose = require('mongoose');

mongoose.connect('mongodb://{localhost:PORT}/nodeBasic')
  .then(() =&amp;gt; console.log('Connected to MongoDB'))
  .catch(error =&amp;gt; console.error('Error connecting to MongoDB:', error));

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Node.js and MongoDB form a powerful duo for backend development. With Node.js's event-driven architecture and MongoDB's flexibility, you can create highly responsive and scalable applications. By utilizing frameworks like Express.js, you can design elegant APIs that cater to your application's needs. As you embark on your backend journey, remember to prioritize code quality, security, and performance to build a foundation that stands the test of time.&lt;/p&gt;

&lt;p&gt;Thank you for joining me on this exploration of backend development with Node.js and MongoDB. If you found this blog post helpful, stay tuned for more insights and tips in the future!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>node</category>
    </item>
  </channel>
</rss>
