<?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: Md.  Raihan Hossain Jibon</title>
    <description>The latest articles on DEV Community by Md.  Raihan Hossain Jibon (@rjibon49).</description>
    <link>https://dev.to/rjibon49</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%2F778101%2Ff08e891f-e5ce-474a-864c-d59529212f56.jpeg</url>
      <title>DEV Community: Md.  Raihan Hossain Jibon</title>
      <link>https://dev.to/rjibon49</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rjibon49"/>
    <language>en</language>
    <item>
      <title>How express.js works</title>
      <dc:creator>Md.  Raihan Hossain Jibon</dc:creator>
      <pubDate>Sun, 26 Dec 2021 17:41:36 +0000</pubDate>
      <link>https://dev.to/rjibon49/how-expressjs-works-160c</link>
      <guid>https://dev.to/rjibon49/how-expressjs-works-160c</guid>
      <description>&lt;p&gt;In this post, we will go through the source code of express, and try to understand how it works under the hood. Studying how a popular open source library works, will help us make better applications using it, and reduces some of the “magic” involved &lt;/p&gt;

&lt;h3&gt;
  
  
  when using it.
&lt;/h3&gt;

&lt;p&gt;The “Hello World” example&lt;br&gt;
Let’s use the “Hello world” example given in the official website to form a starting point for digging into the source code:&lt;br&gt;
&lt;/p&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("/", (req, res) =&amp;gt; res.send("Hello World!"))

app.listen(3000, () =&amp;gt; console.log("Example app listening on port 3000!"))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Creating a new express application
&lt;/h3&gt;

&lt;p&gt;The var app = express() statement creates a new express application for you. The createApplication function from the lib/express.js file is the default export, which we see as the express() function call.&lt;/p&gt;

&lt;p&gt;Some of the important bits are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const mixin = require("merge-descriptors")
const proto = require("./application")

function createApplication() {
    const app = function(req, res, next) {
        app.handle(req, res, next)
    }
    mixin(app, proto, false)
    return app
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Starting the HTTP server
&lt;/h2&gt;

&lt;p&gt;After setting up the routes, the server has to be started. In our example, we call the app.listen method, with the port number, and callback function as the arguments. To understand this method, we can see lib/application.js. The gist of it is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app.listen = function listen() {
    var server = http.createServer(this)
    return server.listen.apply(server, arguments)
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hopefully, this post helped you in understanding the important aspects of the source code, which you can use to understand the rest of it.&lt;/p&gt;

&lt;p&gt;If there are any libraries or frameworks whose internal workings you feel deserve an explanation, let me know in the comments.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>React Concept</title>
      <dc:creator>Md.  Raihan Hossain Jibon</dc:creator>
      <pubDate>Wed, 22 Dec 2021 17:53:14 +0000</pubDate>
      <link>https://dev.to/rjibon49/react-concept-4kj9</link>
      <guid>https://dev.to/rjibon49/react-concept-4kj9</guid>
      <description>&lt;p&gt;Today we are going to talk about some interesting react concepts that will help you to understand react more efficiently. Concepts that we are going to cover in this blog: JSX and the hooks component.&lt;/p&gt;

&lt;h2&gt;
  
  
  JSX
&lt;/h2&gt;

&lt;p&gt;JSX stands for JavaScript XML⇒( Extensible Markup Language ). It is a syntax extension of javascript that helps us to write HTML codes within JavaScript. There are many good sides of jsx some of these are jsx lets us write any javascript expression within { curly braces }. It is a lot easy to implement better than the other stuff. And one more thing is that jsx is used in camel-cased characters.&lt;br&gt;
An example of jsx: const jsx = &lt;/p&gt;
&lt;p&gt;this is a paragraph tag in jsx&lt;/p&gt;

&lt;h2&gt;
  
  
  Hooks
&lt;/h2&gt;

&lt;p&gt;React hooks are newly introduced in react version 16.8.0. It is an additional feature of react.js. Hooks are used in functional components and let you have state and other react features in the functional components. By using hooks in the functional components we can have an organized codebase and performance webpage. There are many hooks in react they are useState, useEffect, useContext, useRef, useReducer, and so on. Now the useState hook lets you have states in a functional component which we didn’t have in an older version of react. The useEffect hook lets you have any kind of side effect in your component such as HTTP requests and so on. The useContext hook is used to get any kind of data from anywhere on the react website.&lt;br&gt;
Now there are some rules about react hooks:&lt;br&gt;
Hooks can only be used in react functional components.&lt;br&gt;
They only can be called at the top level of components.&lt;br&gt;
And they can’t be conditional like any other component or element in react functional component.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>API and CRUD system</title>
      <dc:creator>Md.  Raihan Hossain Jibon</dc:creator>
      <pubDate>Tue, 21 Dec 2021 15:44:51 +0000</pubDate>
      <link>https://dev.to/rjibon49/api-and-crud-system-1hd2</link>
      <guid>https://dev.to/rjibon49/api-and-crud-system-1hd2</guid>
      <description>&lt;p&gt;API stands for application programming interface, which is a set of definitions and protocols for building and integrating application software.&lt;/p&gt;

&lt;p&gt;REST API stands for Representational State Transfer and is an architectural pattern for creating web services. It was developed by Roy Fielding in 2000 and has led to a growing collection of RESTful web services that follow the REST principles.&lt;/p&gt;

&lt;p&gt;Rest API Data sharing clients and servers. Its easy design style is used creating HTTP or other. REST applications use methods &lt;strong&gt;GET, POST, DELETE&lt;/strong&gt; and &lt;strong&gt;PUT.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GET Methods&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Stored data call from the server to client-side using GET method. The GET method works as a data read system.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;POST Method&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;POST Method used to create new data to save server.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;DELETE Method&lt;/strong&gt; &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Delete method used for data delete to server.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;PUT Method&lt;/strong&gt; &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This method is used when any data information changes or updates then used put method.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>Functions</title>
      <dc:creator>Md.  Raihan Hossain Jibon</dc:creator>
      <pubDate>Tue, 21 Dec 2021 12:56:28 +0000</pubDate>
      <link>https://dev.to/rjibon49/functions-2nm5</link>
      <guid>https://dev.to/rjibon49/functions-2nm5</guid>
      <description>&lt;p&gt;A Function is a way yo bundle code so that it can be reused. Functions allow us to run the same piece of code from multiple places in a program without having to copy paste the code repeatedly.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Basic Anatomy of a function
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F81pz0j1e5b0sm52utttc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F81pz0j1e5b0sm52utttc.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
The code between the curly brackets is called the function body.&lt;/p&gt;
&lt;h3&gt;
  
  
  Creating A Simple Function
&lt;/h3&gt;

&lt;p&gt;Lets create a simple function. Enter the following code in the browser console.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hello World!&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const firstFunction = function () {
console.log("Hello World!);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Passing Arguments into Function
&lt;/h3&gt;

&lt;p&gt;firstFunction just prints the same line of text every time you call it, but you will probably want your function to be more flexible than  that. Function argument allow us to pass value and change to function behavior.&lt;br&gt;
Lets create function with argument&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const secoundFunction = function (name) {
console.log("Hello" + name "!");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can send multiple argument also .&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const secoundFunction = function (firstName, LastName) {
console.log("Hello" + firstName + LastName"!");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More Information Updating Soon.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>functional</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Set flex direction</title>
      <dc:creator>Md.  Raihan Hossain Jibon</dc:creator>
      <pubDate>Tue, 21 Dec 2021 09:51:19 +0000</pubDate>
      <link>https://dev.to/rjibon49/set-flex-direction-and-wrapping-246n</link>
      <guid>https://dev.to/rjibon49/set-flex-direction-and-wrapping-246n</guid>
      <description>&lt;p&gt;Hello Everyone Today we will learn how to work flex direction.&lt;/p&gt;

&lt;p&gt;Here's the starter code for the example we'll be using in the following chapters.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2QjosU6f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5q1rl8b4app92ax52fov.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2QjosU6f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5q1rl8b4app92ax52fov.png" alt="Image description" width="880" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;HTML&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="container"&amp;gt;
    &amp;lt;div class="item"&amp;gt;1&amp;lt;/div&amp;gt;
    &amp;lt;div class="item"&amp;gt;2&amp;lt;/div&amp;gt;
    &amp;lt;div class="item"&amp;gt;3&amp;lt;/div&amp;gt;
    &amp;lt;div class="item"&amp;gt;4&amp;lt;/div&amp;gt;
    &amp;lt;div class="item"&amp;gt;5&amp;lt;/div&amp;gt;
    &amp;lt;div class="item"&amp;gt;6&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;CSS&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* {
    font-family: Helvetica;
    font-size: 1.4em;
    color: white;
    text-align: center;
}

.container {
    border: 2px solid black;
}

.item {
    width: 100px;
    height: 70px;
}

.container div:nth-child(1), div:nth-child(6) {
    background-color: #00BFB8;
}

.container div:nth-child(2), div:nth-child(7) {
    background-color: #8E007E;
}

.container div:nth-child(3), div:nth-child(8) {
    background-color: #23D0EA;
}

.container div:nth-child(4) {
    background-color: #EF8956;
}

.container div:nth-child(5) {
    background-color: #060A3D;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is a container div that contains 6 items. To be as clear as possible, each item has a class of item. Each is also 100px wide and 70px tall with a different background color.&lt;/p&gt;

&lt;p&gt;There is also a black border around the containing div. This will help you visualize the relationship between the flex items and the flex container.&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
    </item>
  </channel>
</rss>
