<?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 Rokibul Islam</title>
    <description>The latest articles on DEV Community by MD Rokibul Islam (@rokibulslam).</description>
    <link>https://dev.to/rokibulslam</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%2F776886%2Fafbc242f-46f9-400a-b34b-f698af1fcc3c.png</url>
      <title>DEV Community: MD Rokibul Islam</title>
      <link>https://dev.to/rokibulslam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rokibulslam"/>
    <language>en</language>
    <item>
      <title>Javascript Data structure</title>
      <dc:creator>MD Rokibul Islam</dc:creator>
      <pubDate>Mon, 20 Nov 2023 02:49:30 +0000</pubDate>
      <link>https://dev.to/rokibulslam/javascript-data-structure-1d39</link>
      <guid>https://dev.to/rokibulslam/javascript-data-structure-1d39</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;           **  Javascript Data structure **
                   (Big O Notation)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Time Complexity&lt;br&gt;
    O(1): no matter how big the job is, it takes the same amount of time to complete. It's like saying, "It's a one-size-fits-all speed, and the size of the task doesn't matter."&lt;br&gt;
    O(n): If you have a process with O(n) complexity, doubling the size of the input will roughly double the time it takes to finish the task. It scales linearly with the input size.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nsZLaAg0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b2qmhz924k9a8glu2brm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nsZLaAg0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b2qmhz924k9a8glu2brm.png" alt="Time Complexity javascript Datastructure example" width="798" height="1210"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Space Complexity&lt;br&gt;
O(1) space complexity: This means that the amount of memory used by an algorithm or operation remains constant, regardless of the size of the input data. It's often considered very efficient because the memory usage doesn't grow as the input size increases.&lt;/p&gt;

&lt;p&gt;O(n) space complexity: This means that the amount of memory used by an algorithm or operation grows linearly with the size of the input data. As the input size increases, the amount of memory used also increases proportionally.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3DbpszxK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6tlvcwmsiv0q23jkrd9x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3DbpszxK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6tlvcwmsiv0q23jkrd9x.png" alt="Space Complexity javascript Datastructure example" width="800" height="805"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>datastructures</category>
      <category>interview</category>
    </item>
    <item>
      <title>You should know this about Node JS </title>
      <dc:creator>MD Rokibul Islam</dc:creator>
      <pubDate>Fri, 18 Feb 2022 11:35:17 +0000</pubDate>
      <link>https://dev.to/rokibulslam/you-should-know-this-about-node-js-18a9</link>
      <guid>https://dev.to/rokibulslam/you-should-know-this-about-node-js-18a9</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Nodejs? Difference between Nodejs and javaScript&lt;/strong&gt;&lt;br&gt;
Node js is a Javascript runtime and open-source server environment. Node js run a web application outside the client browser. Node js non-blocking means asynchronous. &lt;br&gt;
Javascript is a programming language other side nodejs is a javascript runtime. Javascript is mostly used for client-side and nodejs is used to server-side of a web application. Node.js is a very powerful JavaScript-based platform built on Google Chrome's JavaScript V8 Engine. It is used to develop I/O intensive web applications like video streaming sites, single-page applications, and other web applications. Node.js is open source, completely free, and used by thousands of developers around the world.&lt;/p&gt;

&lt;p&gt;**&lt;br&gt;
CRUD OPERATION**&lt;br&gt;
C for Create&lt;br&gt;
R For Read &lt;br&gt;
D for Delete &lt;br&gt;
U for Update&lt;br&gt;&lt;br&gt;
This CRUD operation is used to read , write, update and delete data from database from UI. CRUD stands for create, read, update and delete. These are the four basic functions of persistent storage. Also, each letter in the acronym can refer to all functions executed in relational database applications and mapped to a standard HTTP method, SQL statement or DDS operation.&lt;br&gt;
Json Web Token(JWT)&lt;br&gt;
JWT token used for secure API .&lt;br&gt;
JWT token has three parts. they are below&lt;br&gt;
header&lt;br&gt;
payload&lt;br&gt;
signature&lt;br&gt;
Header&lt;br&gt;
Header consist of two parts. the type of the token, which is JWT, and the signing algorithm being used, such as HMAC SHA256 or RSA.&lt;br&gt;
Payload&lt;br&gt;
Second part of the token is payload. It contains claims.&lt;br&gt;
There are three types of claims: registered, public, and private claims.&lt;br&gt;
Signature: &lt;br&gt;
To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benefits of using Node and Mongo with  React project&lt;/strong&gt;&lt;br&gt;
Because Node, MongoDB, React has close relation with Javascript. MongoDB is designed to store JSON data natively, JSON is a javascript object notation that represents data on javascript object syntax. React is a javascript library and nodejs is a javascript run time. For this reason, we use NODE MONGO with REACT.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are the differences between SQL and NoSQL database&lt;/strong&gt;&lt;br&gt;
SQL is a relational database and NoSQL is a non-relational database. &lt;br&gt;
SQL databases are vertically scalable and NoSQL are horizontally scalable.&lt;br&gt;
SQL database is table-based other hand NoSQL is document-based.&lt;/p&gt;

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

</description>
    </item>
    <item>
      <title>Some Important Topics of React</title>
      <dc:creator>MD Rokibul Islam</dc:creator>
      <pubDate>Fri, 18 Feb 2022 11:03:48 +0000</pubDate>
      <link>https://dev.to/rokibulslam/some-important-topics-of-react-3n10</link>
      <guid>https://dev.to/rokibulslam/some-important-topics-of-react-3n10</guid>
      <description>&lt;p&gt;&lt;strong&gt;JSX&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JSX stands for javascript XML. It looks like HTML but it comes with the full power of Javascript.JSX allows us to write HTML code in React and convert HTML code into React elements. we don’t need to use appendChild() or ceateELement() method to put HTML element in DOM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Virtual Dom &amp;amp; React&lt;/strong&gt;&lt;br&gt;
We can say virtual DOM is a copy of a Browser DOM. Virtual DOM is a virtual representation that is saved in memory and linked up with Browser DOM with ReactDOM. &lt;br&gt;
The main difference between virtual DOM and Real DOM is that real DOM directly changes the content of the screen and virtual does not change any screen content it only changes the specific content of REAL DOM. Virtual DOM wastes less memory But Real DOM waste too much memory. Manipulation in REAL DOM is very expensive because it reloads the whole DOM But Virtual DOM manipulation is less expensive.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--08Nkpcu7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ef3ujfkvmd1r5is3sc9e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--08Nkpcu7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ef3ujfkvmd1r5is3sc9e.jpg" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Props and State&lt;/strong&gt;&lt;br&gt;
state is mutable other hand Props are immutable &lt;br&gt;
Props are used to pass data other hand state is managed within components.&lt;br&gt;
Props are read-only and state can be changed&lt;br&gt;
state does not make components reusable and Props make components reusable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;React Hooks&lt;/strong&gt;&lt;br&gt;
Custom hook allows us to reuse functions made by me. When I need a function that will be reused in many components, then we can get those functions extracting custom hooks. Here reusable function and hook are made by me not built-in hook or function. &lt;br&gt;
example: &lt;br&gt;
import react from “react”&lt;br&gt;
const useCustomHook =()=&amp;gt;{&lt;br&gt;
Here we can create our common function for component re use&lt;br&gt;
}&lt;br&gt;
export default useCustomHook&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Optimize a react js application&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use state where necessary: We should avoid state passing down as a prop.&lt;br&gt;
By Memoizing and Preventing unnecessary rendering&lt;br&gt;
By using React.memo() or useMemo() we can avoid unnecessary re-rendering&lt;br&gt;
By avoiding rendering all images at once we can also optimize react app . this called lazy loading images &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
