<?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: Tanjir Ahmed</title>
    <description>The latest articles on DEV Community by Tanjir Ahmed (@tanjir_ahmed).</description>
    <link>https://dev.to/tanjir_ahmed</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%2F777023%2F45e4cf87-b4ba-49b3-b79b-931a8d5a9b76.jpeg</url>
      <title>DEV Community: Tanjir Ahmed</title>
      <link>https://dev.to/tanjir_ahmed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanjir_ahmed"/>
    <language>en</language>
    <item>
      <title>Node JS </title>
      <dc:creator>Tanjir Ahmed</dc:creator>
      <pubDate>Thu, 23 Dec 2021 12:47:15 +0000</pubDate>
      <link>https://dev.to/tanjir_ahmed/node-js-4cd6</link>
      <guid>https://dev.to/tanjir_ahmed/node-js-4cd6</guid>
      <description>&lt;p&gt;CRUD Operations&lt;br&gt;
Crud stands for Create Read Update and delete operations. According to the definition crud operation means the way to create an object then read the object then update that if needed a finally delete all data after use. Crud operation is used to make those changes to storage systems.&lt;br&gt;
  JWT &lt;br&gt;
JWT The JSON web tokens are known as secure identification for websites which helps to make sure that the requests getting from the user side are originally from a valid user or not. Jwt is basically a json object that holds user information and matches with the information that the user provides on the website.&lt;br&gt;
For an example&lt;br&gt;&lt;br&gt;
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c&lt;br&gt;
Is  a token when we decode the token we get &lt;br&gt;
 {&lt;br&gt;
  "sub": "1234567890",&lt;br&gt;
  "name": "John Doe",&lt;br&gt;
  "iat": 1516239022&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;The object that holds information&lt;br&gt;
Mongoose&lt;br&gt;
Mongoose is a node-based library for MongoDB. The main objective of mongoose is to provide developers to enforce a specific schema at the application.&lt;br&gt;
Relational database (MySql)&lt;br&gt;
My Sql is a popular database system for storing data. All the datas are stored is a table row everytime in my sql database.My sql uses structure query  language (SQL).in MySQL one can access associated data using joins which minimizes duplication. &lt;br&gt;
Where mongo DB or any othe no sql databases  stores data in json formate but my sql stores data on table raw basis.&lt;br&gt;
NODE js&lt;br&gt;
Node js is an asynchronous backend related javascript run time. Node js is used to create scalable live application.Node.js takes the event model a bit further. It presents an event loop as a runtime construct instead of as a library. In other systems, there is always a blocking call to start the event loop.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>React redux and context API</title>
      <dc:creator>Tanjir Ahmed</dc:creator>
      <pubDate>Wed, 22 Dec 2021 15:08:38 +0000</pubDate>
      <link>https://dev.to/tanjir_ahmed/react-redux-and-context-api-4j1c</link>
      <guid>https://dev.to/tanjir_ahmed/react-redux-and-context-api-4j1c</guid>
      <description>&lt;p&gt;Redux &lt;/p&gt;

&lt;p&gt;What is redux?&lt;br&gt;
Redux is a state management library for react based web applications. Redux makes a react app to manage states available from any component without the hassle of prop drilling. Redux was initially introduced by Andrew Clark in 2015.&lt;br&gt;
 What redux does?&lt;br&gt;
Redux actually creates a store where all the states are kept for availability from any components. instead of sending data from state to state redux can send data to any components.&lt;br&gt;
Install Redux &lt;/p&gt;

&lt;p&gt;There are two ways to install redux in web apps &lt;br&gt;
With npm &lt;br&gt;
npm install redux&lt;br&gt;
npm install @reduxjs/toolkit&lt;br&gt;
With yarn &lt;br&gt;
yarn add redux&lt;br&gt;
yarn add @reduxjs/toolkit &lt;br&gt;
                   Sometimes it becomes necessary to install the react-redux package by npm Install &lt;br&gt;
                   React-redux&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Creating store.
In order to store data on the store, we have t create one first. To create a store in redux we need to create some files with javascript codes .with that code we call the create store function
Which returns a store that is basically a javascript object. And later with the help of the reducer, we can get data stored in the store very easily and effectively.

&lt;ol&gt;
&lt;li&gt;Store State in redux store
Redux is used for state storing for components. Once we need to load data in a simple react app we used to store them in state and share the states through components to components. But in redux we don’t need to use state instead we store our state to the redux store with a unique name to be identified quickly. We do that with a hook called use dispatch. Dispatch function creates a space in the redux store and sends the required data&lt;/li&gt;
&lt;li&gt;Get stored data from store
To acces stored data we need to acess thw states that are create in the redux store. In order to do that we have to use  the redux useSelector hook. 
const products=useSelector((state)=&amp;gt;state.allProducts.products)
useSelector hook make a connection to the reduces and the reducer calls the store that gves a state object.insiede that state object the related state is stored.
We can use that state from any component and any where any time.&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;context API&lt;br&gt;
Context API is a system to create a way to send data among all the parent and child components. With the help of context When we need to use a single state to multiple components then we use context API make it easy to share . for that propose we need to wrap all the needing components with context Provider component and make all other components its children component to pass data through Context value. &lt;br&gt;
To create context We use createContext Hook &lt;br&gt;
ANd to get value from the context&lt;br&gt;&lt;br&gt;
 Have to use Context Hook. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Things one needs to know as a javascript developer-part-2</title>
      <dc:creator>Tanjir Ahmed</dc:creator>
      <pubDate>Tue, 21 Dec 2021 12:12:38 +0000</pubDate>
      <link>https://dev.to/tanjir_ahmed/things-one-needs-to-know-as-a-javascript-developer-part-2-422n</link>
      <guid>https://dev.to/tanjir_ahmed/things-one-needs-to-know-as-a-javascript-developer-part-2-422n</guid>
      <description>&lt;p&gt;Inheritance &lt;br&gt;
Inheritance is a concept of abject oriented programing. With this concept, we can &lt;br&gt;
base a function or class to a new class&lt;br&gt;
class person {&lt;br&gt;
    constructor(name, weight) {&lt;br&gt;
        this.name = name;&lt;br&gt;
        this.weight = weight;&lt;br&gt;
    }&lt;/p&gt;

&lt;p&gt;In the above code we declared a class of a person that takes persons name and weight as argument. And gives name and weight as value. To implement this in inheritance we need to call the function with the name and value of weight as a parameter of the class. We can create multiple objects from this one constructor.&lt;br&gt;
To initiate the constructor &lt;/p&gt;

&lt;p&gt;const person = new person('George', '160Kg'); &lt;br&gt;
With the help of inheritance, we can create multiple objects from a single class in javascript.&lt;br&gt;
This Keyword &lt;br&gt;
is a keyword of function that indicates the function where it was declared. This keyword indicates the global object. &lt;br&gt;
The syntax is &lt;br&gt;
“ This “&lt;br&gt;
Example:&lt;br&gt;
 Function Func(){this.console.log('This Keyword")}:&lt;/p&gt;

&lt;p&gt;The above code prints “this Keyword” from the func function.&lt;br&gt;
DOM &lt;br&gt;
The Full meaning of DOM is the document object model. DOm basically means javascript to interact with HTML documents. with the help o dom-manipulation user, interactive websites can be created. There are a few Built-in Syntax for javascript DOM manipulation. &lt;br&gt;
 Document.inner HTML &lt;br&gt;
Document.Inner text&lt;br&gt;
Document. Style&lt;br&gt;
Add event listener&lt;br&gt;
With the help of document. inner HTML we can set HTML code to create a new section or element with javascript. With inner text, we can change the inner value of any Html element.&lt;br&gt;
And with event listener, we add Events to the HTML document to interact with users for this page. Interaction such as onclick, hover and many more.&lt;br&gt;
Fetch &lt;br&gt;
Fetch is a javascript method that makes HTTP requests from the server and loads needed data from the server to document.&lt;br&gt;
API&lt;br&gt;
Full form of API stands for Application Programming Interface. Fetch uses API to make HTTP requests API is like a messenger to the back end and front. Api interacts with the database and gives the required data is needed t perform any operation, its popular lightweight way of transferring data&lt;br&gt;
What is Postman is a Client tool to work with APIs &lt;br&gt;
to send requests to get responses.&lt;br&gt;
Header: exists in both request and response, &lt;br&gt;
is metadata about the request.&lt;br&gt;
Content-Type: in the request header: to specify what kind of data &lt;br&gt;
we are sending to the server &lt;br&gt;
in response header: what was the content type we got  a response &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Things one needs to know as a javascript developer </title>
      <dc:creator>Tanjir Ahmed</dc:creator>
      <pubDate>Mon, 20 Dec 2021 14:26:24 +0000</pubDate>
      <link>https://dev.to/tanjir_ahmed/things-one-needs-to-know-as-a-javascript-developer-2ghj</link>
      <guid>https://dev.to/tanjir_ahmed/things-one-needs-to-know-as-a-javascript-developer-2ghj</guid>
      <description>&lt;p&gt;Scopes &lt;br&gt;
Scopes are basically the address of a variable where it is allocated. javascript always stays on root scope. In other words, Scopes are the boundaries for objects, functions and variables.&lt;br&gt;
There are two types of scops available.&lt;br&gt;
Local Scope: Local scope indicates the variables that are declared inside of a function and can not be accessed from outside.&lt;br&gt;
Global scope: Global scopes are not like local scopes. Global scopes are declared out of function to be accessible from anywhere in the document.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;  Immediately Invoked Function Expression(IIFE)
IIFE goes just as its name indicates it is a function that immediately invokes execution As soon as it is declared 
The syntax for IIFE is 
(function () {
statements
})();
Hoisting 
Hoisting is basically a way to call a function before it is declared. In javascript through the context of hoisting all the declaration goes to the top of the program. Hoisting is a complicated topic in javascript. Most developer gets unexpected results. As for calling a function before initialization should be an error. But in javascript, we can do that for the concept of hoisting.
Closures
The closure is a function that is called inside of another function. The closure is used to get the local variable of another function.
Callbacks 
Call back functions are the function that takes a function as an argument and returns another function. In the callback method, a function waits for another function to be called.
function greeting(name) {
alert('Hello ' + name);
}&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;function processUserInput(callback) {&lt;br&gt;
  var name = prompt('Please enter your name.');&lt;br&gt;
  callback(name);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;processUserInput(greeting);&lt;br&gt;
Async Await &lt;br&gt;
Async await is from es-7.&lt;br&gt;
Async await is a concept of waiting for something to be complete. Async await is kind of similar to promises but it also creates asynchronous operations synchronously&lt;br&gt;
In javascript, async-await is defined by 3 version&lt;br&gt;
Call back. (ES5)&lt;br&gt;
Promises. (ES6)&lt;br&gt;
Async await (ES7)&lt;br&gt;
The syntax for async-await is ;&lt;br&gt;
  Function async (){&lt;/p&gt;

&lt;p&gt;Const post= await fetch(“URL”)&lt;br&gt;
Await console.log (post)&lt;br&gt;
}.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>CSS BLOG</title>
      <dc:creator>Tanjir Ahmed</dc:creator>
      <pubDate>Sun, 19 Dec 2021 10:01:18 +0000</pubDate>
      <link>https://dev.to/tanjir_ahmed/css-blog-2on5</link>
      <guid>https://dev.to/tanjir_ahmed/css-blog-2on5</guid>
      <description>&lt;p&gt;CSS Dimension&lt;br&gt;
 Css dimension is basically height,width,max-min height,max-min width etc.&lt;br&gt;
Implement css height and width :&lt;br&gt;
  .Container{&lt;br&gt;
    Height:”30px”&lt;br&gt;
Width:”60px”&lt;/p&gt;

&lt;p&gt;}&lt;br&gt;
Width and height take more values like rem, em, pt, cm etc&lt;br&gt;
CSS Media Queries&lt;br&gt;
Media Queries are used to make a responsive web page that can respond in different devices with different type ratios.&lt;br&gt;
The break point for some devices are as follows;&lt;br&gt;
Smartphones (portrait and landscape)&lt;br&gt;
Max-width=480px min-width 320px&lt;br&gt;
Smartphones (portrait) &lt;br&gt;
Max-width=320 px&lt;br&gt;
Tablets &lt;br&gt;
Max-width =786 px&lt;br&gt;
Laptop and desktop&lt;br&gt;
Min-width=1224px&lt;br&gt;
For larger devices&lt;br&gt;
Min width =1824px&lt;/p&gt;

&lt;p&gt;CSS Gradiant&lt;br&gt;
CSS gradient is a way to implement animation to an image. there are 2 types of the gradient in CSS. those are linear gradient and radial gradient.&lt;br&gt;
Linier gradient is implemented by &lt;br&gt;
linear-gradient(direction, color-stop1, color-stop2, ...)&lt;br&gt;
  Linear gradient style two colours must be declared. The more complex effect may be applied through the linear gradient.&lt;br&gt;
Radial gradient is implemented by &lt;br&gt;
radial-gradient(shape size at position, color-stop1, color-stop2, ...);&lt;/p&gt;

&lt;p&gt;CSS CURSOR&lt;br&gt;
CSS cursor property is used to define the specific action based style to the mouse cursor.&lt;br&gt;
There are a few types of cursor effects based on interaction with the website. And they are &lt;br&gt;
Cursor Default&lt;br&gt;
Cursor Pointer&lt;br&gt;
Cursor help&lt;br&gt;
Cursor wait&lt;br&gt;
Cursor progress&lt;br&gt;
Cursor move and so on.&lt;/p&gt;

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