<?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: Mohammad Sohrab Hossain</title>
    <description>The latest articles on DEV Community by Mohammad Sohrab Hossain (@sohrab09).</description>
    <link>https://dev.to/sohrab09</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%2F627700%2F38fa79aa-e037-4544-aac3-38758c9648b5.jpeg</url>
      <title>DEV Community: Mohammad Sohrab Hossain</title>
      <link>https://dev.to/sohrab09</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sohrab09"/>
    <language>en</language>
    <item>
      <title>SQL for Beginners</title>
      <dc:creator>Mohammad Sohrab Hossain</dc:creator>
      <pubDate>Tue, 13 Feb 2024 08:44:36 +0000</pubDate>
      <link>https://dev.to/sohrab09/sql-for-beginners-212a</link>
      <guid>https://dev.to/sohrab09/sql-for-beginners-212a</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;আজকে আমরা জানবো SQL নিয়ে। SQL কি, SQL কিভাবে কাজ করে, SQL Table কি, SQL Table কিভাবে তৈরি করতে হয়, How to insert data in SQL Table with a command, and much more.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, Let's start with our SQL Journey.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is SQL?&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;SQL (Structured Query Language) হল একটি শক্তিশালী ডেটা ম্যানিপুলেশন ল্যাংগুয়েজ যা আপনাকে ডেটাবেসের সাথে যোগাযোগ করতে দেয়।&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Why Should I learn SQL?&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;আপনি বিভিন্ন কারণে SQL শিখতে পারেন। এখানে কয়েকটি কারণ উল্লেখ করা হল:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;ক্যারিয়ারের সুযোগ:&lt;/strong&gt; SQL ডেটা বিশ্লেষণ, ডেটাবেস অ্যাডমিনিস্ট্রেশন এবং ডেটা সায়েন্সের মতো ক্ষেত্রগুলিতে একটি গুরুত্বপূর্ণ দক্ষতা। এসকিউয়েল জানা আপনাকে এই ক্ষেত্রগুলিতে চাকরির সুযোগ পেতে সাহায্য করতে পারে।&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;ডেটা বিশ্লেষণ:&lt;/strong&gt; SQL আপনাকে ডেটা থেকে মূল্যবান অন্তর্দৃষ্টি বের করতে সাহায্য করতে পারে। আপনি এসকিউয়েল ব্যবহার করে ডেটা ট্রেন্ড, প্যাটার্ন এবং সম্পর্ক খুঁজে পেতে পারেন।&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;ডেটাবেস ম্যানেজমেন্ট:&lt;/strong&gt; SQL আপনাকে ডেটাবেস তৈরি, পরিচালনা এবং রক্ষণাবেক্ষণ করতে সাহায্য করতে পারে। আপনি এসকিউয়েল ব্যবহার করে ডেটা টেবিল তৈরি করতে, ডেটা যোগ করতে, ডেটা আপডেট করতে এবং ডেটা মুছে ফেলতে পারেন।&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;ব্যক্তিগত ব্যবহার:&lt;/strong&gt; SQL আপনাকে আপনার ব্যক্তিগত ডেটা ট্র্যাক করতে সাহায্য করতে পারে। আপনি SQL ব্যবহার করে আপনার ব্যক্তিগত ফাইন্যান্স, আপনার স্বাস্থ্যের রেকর্ড বা আপনার কাজের তালিকা ট্র্যাক করতে পারেন।&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;এছাড়াও আরো অনেক কারনে আপনি SQL শিখতে পারেন।&lt;/p&gt;

&lt;p&gt;তাহলে চলুন, SQL নিয়ে আরো বিশদ ভাবে একটা যাত্রা শুরু করি।&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;বিঃদ্রঃ SQL নিয়ে আপনার কোনো প্রশ্ন থাকলে কমেন্ট বক্সে জানাতে পারেন।&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What are the main topics of SQL?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. ডেটাবেস ম্যানেজমেন্ট:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ডেটাবেস তৈরি, পরিচালনা এবং রক্ষণাবেক্ষণ&lt;/li&gt;
&lt;li&gt;ডেটা টেবিল তৈরি, পরিবর্তন এবং মুছে ফেলা&lt;/li&gt;
&lt;li&gt;ডেটা টাইপ এবং ডেটা কনস্ট্রেন্ট&lt;/li&gt;
&lt;li&gt;ইউজার এবং পারমিশন&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. ডেটা ম্যানিপুলেশন:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ডেটা যোগ, আপডেট এবং মুছে ফেলা&lt;/li&gt;
&lt;li&gt;ডেটা ট্রান্সফরমেশন এবং ফাংশন&lt;/li&gt;
&lt;li&gt;JOINs ব্যবহার করে ডেটা টেবিল একত্রিত করা&lt;/li&gt;
&lt;li&gt;Subqueries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. ডেটা কুয়েরি:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SELECT কমান্ড ব্যবহার করে ডেটা বের করা&lt;/li&gt;
&lt;li&gt;WHERE clause ব্যবহার করে ডেটা ফিল্টার করা&lt;/li&gt;
&lt;li&gt;ORDER BY clause ব্যবহার করে ডেটা সাজানো&lt;/li&gt;
&lt;li&gt;GROUP BY clause ব্যবহার করে ডেটা গ্রুপ করা&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;4. ডেটা অ্যানালাইসিস:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Aggregation ফাংশন ব্যবহার করে ডেটা সারাংশ করা&lt;/li&gt;
&lt;li&gt;Window ফাংশন ব্যবহার করে ডেটা ট্রেন্ড বিশ্লেষণ করা&lt;/li&gt;
&lt;li&gt;Common Table Expressions (CTE) ব্যবহার করে জটিল ক্যোয়ারি তৈরি করা&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;5. SQL এর বিভিন্ন ভার্সন:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MySQL&lt;/li&gt;
&lt;li&gt;PostgreSQL&lt;/li&gt;
&lt;li&gt;Oracle&lt;/li&gt;
&lt;li&gt;SQL Server&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;6. ডেটাবেস ডিজাইন:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ডেটাবেস নরমালাইজেশন&lt;/li&gt;
&lt;li&gt;Entity-relationship (ER) ডায়াগ্রাম&lt;/li&gt;
&lt;li&gt;ডেটা মডেলিং&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;7. ডেটাবেস সিকিউরিটি:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ডেটা এনক্রিপশন&lt;/li&gt;
&lt;li&gt;Access control&lt;/li&gt;
&lt;li&gt;Auditing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;8. SQL এর উন্নত টপিক:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Triggers&lt;/li&gt;
&lt;li&gt;Stored procedures&lt;/li&gt;
&lt;li&gt;Views&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;এই টপিক গুলো ছাড়াও আরও অনেক গুলো বিষয় আছে SQL-এর মধ্যে। ধীরে ধীরে আমরা সে টপিক গুলো সম্পর্কে জানবো। যেহেতু এটা Beginners দের জন্য, তাই আমরা আপাতত Basic Level শিখবো।&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  যেহেতু এটা একটা Query Language, তাই আজকে শিখবো কিভাবে Database এ কমান্ডের মাধ্যমে Table তৈরি করতে হয় 😎.
&lt;/h2&gt;

&lt;p&gt;মনে করুন আপনি একটা টেবিল তৈরি করবেন, যার নাম হলো &lt;strong&gt;&lt;em&gt;AllEmployeeList&lt;/em&gt;&lt;/strong&gt;, এবং তার মধ্যে বেশ কিছু কলাম থাকবে, সেগুলো হলো - &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ID
&lt;/li&gt;
&lt;li&gt;EmployeeId&lt;/li&gt;
&lt;li&gt;Name&lt;/li&gt;
&lt;li&gt;Department&lt;/li&gt;
&lt;li&gt;Designation&lt;/li&gt;
&lt;li&gt;Phone&lt;/li&gt;
&lt;li&gt;Email&lt;/li&gt;
&lt;li&gt;Grade&lt;/li&gt;
&lt;li&gt;Salary&lt;/li&gt;
&lt;li&gt;JoiningDate&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;এবার শিখবো কিভাবে কমান্ড এর মাধ্যমে Table এবং Column তৈরি করতে হয় ✌️😎&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Create Table&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;CREATE TABLE AllEmployeeList (&lt;br&gt;
    ID INT PRIMARY KEY AUTO_INCREMENT,&lt;br&gt;
    EmployeeId INT,&lt;br&gt;
    Name VARCHAR(255),&lt;br&gt;
    Department VARCHAR(255),&lt;br&gt;
    Designation VARCHAR(255),&lt;br&gt;
    Phone VARCHAR(20),&lt;br&gt;
    Email VARCHAR(255),&lt;br&gt;
    Grade VARCHAR(10),&lt;br&gt;
    Salary DECIMAL(10, 2),&lt;br&gt;
    JoiningDate DATE&lt;br&gt;
);&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;এবার শিখবো কমান্ড এর মাধ্যমে উক্ত &lt;strong&gt;AllEmployeeList&lt;/strong&gt; Table এ কিভাবে Data Insert করতে হয়।&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Insert Data into Table&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;INSERT INTO AllEmployeeList (ID, EmployeeId, Name, Department, Designation, Phone, Email, Grade, Salary, JoiningDate) &lt;br&gt;
VALUES (1, 100001, 'MR. Nahid', 'Information Technology', 'Software Engineer', '01700000000', 'nahid@gmail.com', '1st', 100000, '2023-01-01')&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;অনুরূপ ভাবে আমরা শেখার সুবিধার্থে আরো একটি Table এবং Column তৈরি করা শিখবো।&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;যার নাম হলো &lt;strong&gt;&lt;em&gt;AllEmployeeDetails&lt;/em&gt;&lt;/strong&gt;, এবং তার মধ্যে বেশ কিছু কলাম থাকবে, সেগুলো হলো - &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ID&lt;/li&gt;
&lt;li&gt;EmployeeId&lt;/li&gt;
&lt;li&gt;Name&lt;/li&gt;
&lt;li&gt;Department&lt;/li&gt;
&lt;li&gt;Designation&lt;/li&gt;
&lt;li&gt;Phone&lt;/li&gt;
&lt;li&gt;Email&lt;/li&gt;
&lt;li&gt;Grade&lt;/li&gt;
&lt;li&gt;Salary&lt;/li&gt;
&lt;li&gt;PresentAddress&lt;/li&gt;
&lt;li&gt;PermanentAddress&lt;/li&gt;
&lt;li&gt;MaritalStatus&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;অনুরূপ ভাবে শিখবো কিভাবে কমান্ড এর মাধ্যমে উক্ত Table এবং Column তৈরি করতে হয় ✌️😎&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CREATE TABLE AllEmployeeDetails (&lt;br&gt;
    ID INT,&lt;br&gt;
    EmployeeId INT,&lt;br&gt;
    Name VARCHAR(255),&lt;br&gt;
    Department VARCHAR(255),&lt;br&gt;
    Designation VARCHAR(255),&lt;br&gt;
    Phone VARCHAR(20),&lt;br&gt;
    Email VARCHAR(255),&lt;br&gt;
    Grade VARCHAR(10),&lt;br&gt;
    Salary DECIMAL(10, 2),&lt;br&gt;
    PresentAddress VARCHAR(255),&lt;br&gt;
    PermanentAddress VARCHAR(255),&lt;br&gt;
    MaritalStatus VARCHAR(20),&lt;br&gt;
    PRIMARY KEY (ID, EmployeeId)&lt;br&gt;
);&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;একই ভাবে এবার শিখবো কমান্ড এর মাধ্যমে উক্ত &lt;strong&gt;AllEmployeeDetails&lt;/strong&gt; Table এ কিভাবে Data Insert করতে হয়।&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;INSERT INTO AllEmployeeDetails (ID, EmployeeId, Name, Department, Designation, Phone, Email, Grade, Salary, PresentAddress, PermanentAddress, MaritalStatus) &lt;br&gt;
VALUES (1, 100001, 'MR. Nahid', 'Information Technology', 'Software Engineer', '01700000000', 'nahid@gmail.com', '1st', 100000, 'Bangladesh', 'Dhaka', 'Unmarried')&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is JOIN in Table&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;জয়েন হলো SQL-এর একটি শক্তিশালী ক্লজ যা আপনাকে দুটি বা ততোধিক টেবিল থেকে ডেটা একত্রিত করতে দেয়। টেবিলগুলোর মধ্যে ডেটা সম্পর্কিত হতে হবে।&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;ধরুন, আপনার কাছে দুটি আলাদা টেবিল আছে: **AllEmployeeList&lt;/strong&gt; এবং &lt;strong&gt;AllEmployeeDetails&lt;/strong&gt; **&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;আপনি যদি "AllEmployeeList" এবং "AllEmployeeDetails" টেবিলের মধ্যে JOIN করতে চান, তাহলে আপনি এই দুটি টেবিলের "EmployeeId" কলাম ব্যবহার করে JOIN করতে পারেন। এই উদাহরণে, আমরা "AllEmployeeList" এর তথ্য সহ যৌক্তিক করতে চাইব। নিচে একটি উদাহরণ দেওয়া হলো।&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;SELECT AllEmployeeList.ID, AllEmployeeList.EmployeeId, AllEmployeeList.Name, AllEmployeeList.Department, AllEmployeeList.Designation, AllEmployeeList.Phone, AllEmployeeList.Email, AllEmployeeList.Grade, AllEmployeeList.Salary, AllEmployeeList.JoiningDate, AllEmployeeDetails.PresentAddress, AllEmployeeDetails.PermanentAddress, AllEmployeeDetails.MaritalStatus&lt;br&gt;
FROM AllEmployeeList&lt;br&gt;
JOIN AllEmployeeDetails ON AllEmployeeList.EmployeeId = AllEmployeeDetails.EmployeeId;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;আজকের জন্য এটুকুই, ইনশাআল্লাহ্‌ আবারো ফিরে আসবো SQL নিয়ে আরো কিছু ব্লগে। &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;বিঃদ্রঃ ভুলত্রুটি ক্ষমা সুন্দর দৃষ্টিতে দেখবেন।&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;ধন্যবাদ&lt;/strong&gt;
&lt;/h2&gt;

</description>
      <category>sql</category>
      <category>sqlserver</category>
      <category>query</category>
      <category>development</category>
    </item>
    <item>
      <title>JavaScript Interview Questions, You Need to know.</title>
      <dc:creator>Mohammad Sohrab Hossain</dc:creator>
      <pubDate>Sun, 18 Jun 2023 11:15:55 +0000</pubDate>
      <link>https://dev.to/sohrab09/javascript-interview-questions-you-need-to-know-57h2</link>
      <guid>https://dev.to/sohrab09/javascript-interview-questions-you-need-to-know-57h2</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;What is Null vs Undefined?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Null:&lt;/strong&gt; The intentional absence of any value in a variable is called null.&lt;br&gt;
Example:&lt;br&gt;
var myVar = null;&lt;br&gt;
alert(myVar);&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Undefined:&lt;/strong&gt; If a parameter is not passed in a variable, it is called undefined.&lt;br&gt;
Example:&lt;br&gt;
let x;&lt;br&gt;
console.log(x);&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is Double (==) and Triple (===)?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Double (==):&lt;/strong&gt; Double Equals (==) checks for value equality only.&lt;br&gt;
Example:&lt;br&gt;
var x = "test"&lt;br&gt;
var y = "test"&lt;br&gt;
console.log (x == y)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Triple (===):&lt;/strong&gt; Triple === is used for comparing two variables, but this operator also checks datatype and compares two values.&lt;br&gt;
Example:&lt;br&gt;
const number = 1234&lt;br&gt;
const stringNumber = '1234'&lt;br&gt;
console.log(number === stringNumber);&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What are Hoisting, Block Scope, and Global Scope?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Hoisting:&lt;/strong&gt; Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Block Scope:&lt;/strong&gt; A block scope is the area within if, switch conditions or for and while loops. Generally speaking, whenever you see {curly brackets}, it is a block.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Global Scope:&lt;/strong&gt; the global scope is the complete JavaScript environment. In HTML, the global scope is the window object. All global variables belong to the window object.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is Closure, Encapsulation, and Private Variable?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Closure:&lt;/strong&gt; A closure is a combination of a function bundled together with references to its surrounding state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Encapsulation:&lt;/strong&gt; JavaScript Encapsulation is a process of binding the data with the functions acting on that data. It allows us to control the data and validate it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Private Variable:&lt;/strong&gt; A private variable is only visible to the current class. It is not accessible in the global scope or to any of its subclasses.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is Bind, Call, Apply?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Bind:&lt;/strong&gt; The bind () method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Call:&lt;/strong&gt; The call () allows for a function/method belonging to one object to be assigned and called for a different object. call() provides a new value of this to the function/method.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Apply:&lt;/strong&gt; Apply method is similar to the call method. In last this starts with an array.&lt;br&gt;
Syntax: oldObject.object. apply (newObjectName, [value]);&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How to find the largest element from an array?&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;There are the three approaches:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;with a FOR loop&lt;/li&gt;
&lt;li&gt;using the reduce () method&lt;/li&gt;
&lt;li&gt;using Math.max ()&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>interview</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Looking for Reporting tools in React Application.</title>
      <dc:creator>Mohammad Sohrab Hossain</dc:creator>
      <pubDate>Tue, 02 Aug 2022 03:30:05 +0000</pubDate>
      <link>https://dev.to/sohrab09/looking-for-reporting-tools-in-react-application-1ddk</link>
      <guid>https://dev.to/sohrab09/looking-for-reporting-tools-in-react-application-1ddk</guid>
      <description>&lt;p&gt;My company is looking for a Reporting tool to integrate into our React Application.&lt;br&gt;
Our backend is ASP.net core with SQL server and Front end React with redux.&lt;/p&gt;

&lt;p&gt;We are looking for a reporting tool. And then the reports are exported into pdf, excel, and so on.&lt;/p&gt;

&lt;p&gt;We are looking for something similar to Reporting tools like &lt;em&gt;&lt;strong&gt;Crystal Report&lt;/strong&gt;&lt;/em&gt; which use the asp.net reporting system. can anyone please suggest to me something about it, please ❤️&lt;/p&gt;

</description>
      <category>react</category>
      <category>reportingtools</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Chatting Application</title>
      <dc:creator>Mohammad Sohrab Hossain</dc:creator>
      <pubDate>Thu, 28 Jul 2022 07:13:35 +0000</pubDate>
      <link>https://dev.to/sohrab09/chatting-application-bfj</link>
      <guid>https://dev.to/sohrab09/chatting-application-bfj</guid>
      <description>&lt;p&gt;I want to create a chatting application, what should I learn first and which step took for building this project?&lt;/p&gt;

</description>
      <category>react</category>
      <category>socketio</category>
      <category>node</category>
      <category>express</category>
    </item>
    <item>
      <title>10 Things you need to know in React.</title>
      <dc:creator>Mohammad Sohrab Hossain</dc:creator>
      <pubDate>Sat, 08 May 2021 09:33:33 +0000</pubDate>
      <link>https://dev.to/sohrab09/10-things-you-need-to-know-in-react-1cg7</link>
      <guid>https://dev.to/sohrab09/10-things-you-need-to-know-in-react-1cg7</guid>
      <description>&lt;p&gt;What is react?&lt;/p&gt;

&lt;p&gt;React is an open source, front end, declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called “components”.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Here are just few of the reasons why people choose to program with React.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;React if fast. Apps made in React can handle complex updates and still feet quick and responsive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React is modular. Instead of writing large, dense files of code, you can write many smaller, reusable files. Reacts modularity can be a beautiful solution to JavaScript’s maintainability problems.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React is scalable. Large programs that display a lot of changing data are where React performs best.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React is flexible. You can use React for interesting projects that have nothing to do with making a web app. People are still figuring out Reacts potential.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React is popular. While this reason has admittedly little to do with Reacts quality, the truth is that understanding React will make you more employable.&lt;br&gt;
What React Components?&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Components are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and return HTML via a render () function.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Components come in two types
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Class Components&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Function Components&lt;/p&gt;

&lt;p&gt;Class Components: A class component is a more featured way to define a React component. It also acts like a function that receives props, but that function also considers a private internal state as additional input that controls the returned JSX.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When creating a React component, the component’s name must start with an upper-case letter.&lt;/p&gt;

&lt;p&gt;The component has to include the extends React. Component statement, this statement creates an inheritance to React. Component, and gives your component access to React. Component’s functions.&lt;/p&gt;

&lt;p&gt;The component also requires a render () method, this method returns HTML.&lt;/p&gt;

&lt;p&gt;Example: Create a Class components called Car&lt;/p&gt;

&lt;p&gt;class Car extends React. Components {&lt;/p&gt;

&lt;p&gt;render () {&lt;/p&gt;

&lt;p&gt;return &lt;/p&gt;
&lt;h1&gt; Hi, I’m a Rolls Royce Car! &lt;/h1&gt;;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Now React application has a component called Car, which returns a &lt;/p&gt;
&lt;h1&gt; element.

&lt;/h1&gt;
&lt;p&gt;To use this component in your application, use similar syntax as normal HTML: &lt;/p&gt;

&lt;p&gt;Example: Display the Car component in the “root” element:&lt;/p&gt;

&lt;p&gt;ReactDOM.render(, document.getElementById(‘root’));&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Function Components: A functional component is just a plain JavaScript function which accepts props as an argument and returns a React element. … Component and create a render function which returns a React element. This requires more code but will also give you some benefits which you will see later on.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Here is the same example as above, but created using a Function component instead.&lt;/p&gt;

&lt;p&gt;A Function component also returns HTML, and behaves pretty much the same way as a Class component, but Class components have some additions, and will be preferred in this tutorial.&lt;/p&gt;

&lt;p&gt;Example: Create a Function component called Car&lt;/p&gt;

&lt;p&gt;function Car () {return &lt;/p&gt;
&lt;h1&gt;Hi, I am also Rolls Royce Car! &lt;/h1&gt;;}

&lt;p&gt;Once again, your React application has a Car component.&lt;/p&gt;

&lt;p&gt;Refer to the Car component as normal HTML (except in React, components must start with an upper-case letter):&lt;/p&gt;

&lt;p&gt;Example: Display the Car component in the "root" element:&lt;/p&gt;

&lt;p&gt;ReactDOM.render(, document.getElementById('root'));&lt;/p&gt;

&lt;p&gt;What are Props?&lt;/p&gt;

&lt;p&gt;React is a component-based library which divides the UI into little reusable pieces. In some cases, those components need to communicate (send data to each other) and the way to pass data between components is by using props.&lt;/p&gt;

&lt;p&gt;“Props” is a special keyword in React, which stands for properties and is being used for passing data from one component to another. But the important part here is that data with props are being passed in a uni-directional flow. (one way from parent to child)&lt;/p&gt;

&lt;p&gt;Here are two important things about Props:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Props are read-only.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Props cannot be modified.&lt;/p&gt;

&lt;p&gt;Using Props in React: I will be explaining how to use Props step by step&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Firstly, define an attribute and its value(data).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Then pass it to child components by using props.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally, render the Props Data.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Example, we have a ParentComponent including another component (child):&lt;/p&gt;

&lt;p&gt;class ParentComponent extends Component {&lt;/p&gt;

&lt;p&gt;render () {&lt;/p&gt;

&lt;h1&gt;

I’m the parent components.



&lt;/h1&gt;

&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;And this is our ChildComponents:&lt;/p&gt;

&lt;p&gt;const ChildComponents = () =&amp;gt; {&lt;/p&gt;

&lt;p&gt;return &lt;/p&gt;
&lt;p&gt; I’m the 1st child! &lt;/p&gt;


&lt;p&gt;};&lt;br&gt;
What is state?&lt;/p&gt;

&lt;p&gt;Answer: React components has a built-in state object. The state object is where you store property values that belongs to the component. When the state object changes, the component re-renders.&lt;/p&gt;

&lt;p&gt;Here are two important things about State:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;State changes can be asynchronous.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;State can be modified using this.setState&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ü Using State in React: I will be explaining how to use State step by step.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;We import useState Hook from React. It lets us keep local state in a function component.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Inside the example components, we declare a new state variable by calling the useState Hook. It returns a pair of values, to which we give names.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When the user clicks, we call setCount with a new value.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The State object can contain as many properties as you like:&lt;/p&gt;

&lt;p&gt;Example: Specify all the properties your component need:&lt;/p&gt;

&lt;p&gt;class Car extends React.Component {constructor(props) {super(props);this.state = {brand: "Ford",model: "Mustang",color: "red",year: 1964};}render() {return (&lt;/p&gt;
&lt;h1&gt;My Car&lt;/h1&gt;);}}

&lt;p&gt;What is JSX?&lt;/p&gt;

&lt;p&gt;JSX stands for JavaScript XML. JSX makes it easier to write and add HTML in React.&lt;/p&gt;

&lt;p&gt;JSX allows us to write HTML in React.&lt;/p&gt;

&lt;p&gt;JSX is an inline markup that looks like HTML and gets transformed to JavaScript. A JSX expression starts with an HTML-like open tag, and ends with the corresponding closing tag. JSX tags support the XML self-close syntax so you can optionally leave the closing tag off.&lt;/p&gt;

&lt;p&gt;Coding JSX&lt;/p&gt;

&lt;p&gt;JSX allows us to write HTML elements in JavaScript and place them in the DOM without any createElement() and/or appendChild() methods.&lt;/p&gt;

&lt;p&gt;JSX converts HTML tags into react elements.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;With JSX:&lt;/p&gt;

&lt;p&gt;const myelement = &lt;/p&gt;
&lt;h1&gt;I Love JSX!&lt;/h1&gt;;

&lt;p&gt;ReactDOM.render(myelement, document.getElementById(‘root’));&lt;/p&gt;

&lt;p&gt;Without JSX:&lt;/p&gt;

&lt;p&gt;const myelement = React.createElement(‘h1’, {}, ‘I do not use JSX!’);&lt;/p&gt;

&lt;p&gt;ReactDOM.render(myelement, document.getElementById(‘root’));&lt;br&gt;
What is virtual DOM?&lt;/p&gt;

&lt;p&gt;Virtual DOM is a virtual representation of the real DOM.&lt;/p&gt;

&lt;p&gt;The virtual DOM then sends a batch update to the real DOM to update the UI. React uses virtual DOM to enhance its performance.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;How does virtual DOM works?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;the Virtual DOM is a node tree that lists elements and their attributes and content as objects and properties. React’s render() method creates a node tree from React components and updates this tree in response to mutations in the data model, caused by actions.&lt;/p&gt;

&lt;p&gt;htmlhead lang="en"bodyul class="list"li class="list__item""List item"&lt;/p&gt;

&lt;p&gt;What is Optimizing performance in React?&lt;/p&gt;

&lt;p&gt;Performance Optimization of a programs and software is the process modifying a software system to make it work more efficiently and execute more rapidly.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;21 Performance Optimization Techniques for React Apps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Using Immutable Data Structures&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Function/Stateless Components and React.PureComponent&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Multiple Chunk Files&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Using Production Mode Flag in Webpack&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dependency optimization&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use React.Fragments to Avoid Additional HTML Element Wrappers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoid Inline Function Definition in the Render Function.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Throttling and Debouncing Event Action in JavaScript&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoid using Index as Key for map&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoiding Props in Initial States&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Spreading props on DOM elements&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use Reselect in Redux to Avoid Frequent Re-render&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Avoid Async Initialization in componentWillMount()&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Memoize React Components&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CSS Animations Instead of JS Animations&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Using Web Workers for CPU Extensive Tasks&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Using a CDN&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Virtualize Long Lists&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Analyzing and Optimizing Your Webpack Bundle Bloat&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Consider Server-side Rendering&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enable Gzip Compression on Web Server&lt;br&gt;
What is React Hook?&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It allows you to use state and other React features without writing a class. Hooks are the functions which “hook into” React state and lifecycle features from function components. It does not work inside classes.&lt;/p&gt;

&lt;p&gt;When to use Hook: If you write a function component, and then you want to add some state to it, previously you do this by converting it to a class. But now you can do it by using a Hook inside the existing function component.&lt;/p&gt;

&lt;p&gt;Rules of Hook: Hooks are similar to JavaScript functions, but you need to follow these two rules when using them. Hook’s rule ensures that all the stateful logic in a component is visible in its source code. These rules are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Only call Hooks at the top level&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Do not call Hooks inside loops, conditions, or nested functions. Hooks should always be used at the top level of the React functions. This rule ensures that Hooks are called in the same order each time a component render.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Only call Hooks from React functions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You cannot call Hooks from regular JavaScript functions. Instead, you can call Hooks from React function components. Hooks can also be called from custom Hooks.&lt;/p&gt;

&lt;p&gt;Pre requisites for React Hook&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Node version 6 or above&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NPM version 5.2 or above&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create-react-app tool for running the React App&lt;br&gt;
What is Conditional Rendaring?&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Conditional rendering is a term to describe the ability to render different user interface (UI) markup if a condition is true or false.&lt;br&gt;
In React, it allows us to render different elements or components based on a condition.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;7 Ways to Implement Conditional Rendering in React Applications
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Using an if…else Statement&lt;/li&gt;
&lt;li&gt;Using a switch Statement&lt;/li&gt;
&lt;li&gt;Using Element Variables&lt;/li&gt;
&lt;li&gt;Using Ternary Operators&lt;/li&gt;
&lt;li&gt;Using Logical &amp;amp;&amp;amp; (Short Circuit Evaluation)&lt;/li&gt;
&lt;li&gt;Using Immediately Invoked Function Expressions (IIFEs)&lt;/li&gt;
&lt;li&gt;Using Enhanced JSX Libraries
Composition is the key&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Parent components that own the state are often referred to as container components. They are responsible for state management and rendering children (this sounds so odd). Child components are used to trigger event handlers passed down from parents (like the InputBox component in previous examples) and to display the data.&lt;/p&gt;

&lt;p&gt;Child components that are responsible for displaying the data are called presentational components.&lt;/p&gt;

&lt;p&gt;Container component is often responsible for fetching data, API calls (see componentDidMount() lifecycle method) and so on. You should keep this in one place to avoid side-effects in presentational components. Those should be as dumb as possible about everything other than displaying the data.&lt;/p&gt;

&lt;p&gt;This separation of concerns and terminology were popularized by Dan Abramov, the author of Redux. You can read more about it in his article.&lt;/p&gt;

&lt;p&gt;You can see that it all fits together. When every component follows single responsibility principle it can be composed with others and reused.&lt;/p&gt;

&lt;p&gt;The biggest challenge is to figure out how to divide those responsibilities and where to put the state. If you want to know more about the topic search for “thinking in react” articles.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
    </item>
  </channel>
</rss>
