<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by HM YOUNUS on Medium]]></title>
        <description><![CDATA[Stories by HM YOUNUS on Medium]]></description>
        <link>https://medium.com/@hmyounus?source=rss-3178a688c431------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*absGwkqqNoAJwVySwiOjLA.png</url>
            <title>Stories by HM YOUNUS on Medium</title>
            <link>https://medium.com/@hmyounus?source=rss-3178a688c431------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 00:21:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hmyounus/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DevOps Lifecycle]]></title>
            <link>https://hmyounus.medium.com/devops-lifecycle-08dcc75ccb68?source=rss-3178a688c431------2</link>
            <guid isPermaLink="false">https://medium.com/p/08dcc75ccb68</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devops-practice]]></category>
            <dc:creator><![CDATA[HM YOUNUS]]></dc:creator>
            <pubDate>Sat, 24 Feb 2024 09:25:21 GMT</pubDate>
            <atom:updated>2024-02-24T09:25:21.827Z</atom:updated>
            <content:encoded><![CDATA[<p>DevOps lifecycle is the methodology where professional development teams come together to bring products to market more efficiently and quickly. The structure of the DevOps lifecycle consists of Plan, Code, Building, Test, Releasing, Deploying, Operating, and Monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*xsxl4qJOtDWB6iRkVMUopQ.png" /></figure><ul><li><strong>Plan: </strong>Determining the commercial needs and gathering the opinions of end-users by professionals in this level of the DevOps lifecycle.</li><li><strong>Code: </strong>At this level, the code for the same is developed and in order to simplify the design, the team of developers uses tools and extensions that take care of security problems.</li><li><strong>Build: </strong>After the coding part, programmers use various tools for the submission of the code to the common code source.</li><li><strong>Test: </strong>This level is very important to assure software integrity. Various sorts of tests are done such as user acceptability testing, safety testing, speed testing, and many more.</li><li><strong>Release: </strong>At this level, everything is ready to be deployed in the operational environment.</li><li><strong>Deploy: </strong>In this level, Infrastructure-as-Code assists in creating the operational infrastructure and subsequently publishes the build using various DevOps lifecycle tools.</li><li><strong>Operate: </strong>At this level, the available version is ready for users to use. Here, the department looks after the server configuration and deployment.</li><li><strong>Monitor: </strong>The observation is done at this level that depends on the data which is gathered from consumer behavior, the efficiency of applications, and from various other sources.</li></ul><h3>Best Practices to follow:</h3><ul><li>Implement automated dashboard</li><li>Keep the entire team together</li><li>Allow DevOps to be a cultural change</li><li>Be patient with the developers</li><li>Maintain a centralized unit</li><li>Build a flexible infrastructure</li></ul><h3>Advantages:</h3><ol><li>Faster Delivery: DevOps enables organizations to release new products and updates faster and more frequently, which can lead to a competitive advantage.</li><li>Improved Collaboration: DevOps promotes collaboration between development and operations teams, resulting in better communication, increased efficiency, and reduced friction.</li><li>Improved Quality: DevOps emphasizes automated testing and continuous integration, which helps to catch bugs early in the development process and improve the overall quality of software.</li><li>Increased Automation: DevOps enables organizations to automate many manual processes, freeing up time for more strategic work and reducing the risk of human error.</li><li>Better Scalability: DevOps enables organizations to quickly and efficiently scale their infrastructure to meet changing demands, improving the ability to respond to business needs.</li><li>Increased Customer Satisfaction: DevOps helps organizations to deliver new features and updates more quickly, which can result in increased customer satisfaction and loyalty.</li><li>Improved Security: DevOps promotes security best practices, such as continuous testing and monitoring, which can help to reduce the risk of security breaches and improve the overall security of an organization’s systems.</li><li>Better Resource Utilization: DevOps enables organizations to optimize their use of resources, including hardware, software, and personnel, which can result in cost savings and improved efficiency.</li></ol><h3>Disadvantages:</h3><ol><li>High Initial Investment: Implementing DevOps can be a complex and costly process, requiring significant investment in technology, infrastructure, and personnel.</li><li>Skills Shortage: Finding qualified DevOps professionals can be a challenge, and organizations may need to invest in training and development programs to build the necessary skills within their teams.</li><li>Resistance to Change: Some employees may resist the cultural and organizational changes required for successful DevOps adoption, which can result in resistance, resistance to collaboration, and reduced efficiency.</li><li>Lack of Standardization: DevOps is still a relatively new field, and there is a lack of standardization in terms of methodologies, tools, and processes. This can make it difficult for organizations to determine the best approach for their specific needs.</li><li>Increased Complexity: DevOps can increase the complexity of software delivery, requiring organizations to manage a larger number of moving parts and integrate multiple systems and tools.</li><li>Dependency on Technology: DevOps relies heavily on technology, and organizations may need to invest in a variety of tools and platforms to support the DevOps process.</li><li>Need for Continuous Improvement: DevOps requires ongoing improvement and adaptation, as new technologies and best practices emerge. Organizations must be prepared to continuously adapt and evolve their DevOps practices to remain competitive.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08dcc75ccb68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to DevOps]]></title>
            <link>https://hmyounus.medium.com/introduction-to-devops-7bb24cea48ea?source=rss-3178a688c431------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bb24cea48ea</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[HM YOUNUS]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 11:05:14 GMT</pubDate>
            <atom:updated>2024-02-14T11:05:14.354Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Introduction to devops" src="https://cdn-images-1.medium.com/max/600/1*JvDzMF-xqn2hGbRJNPYYEA.jpeg" /><figcaption>Introduction to DevOps</figcaption></figure><p>DevOps is basically a combination of two words- <strong>Dev</strong>elopment and <strong>Op</strong>eration<strong>s</strong>. DevOps is a culture that implements the technology in order to promote collaboration between the developer team and the operations team to deploy code to production faster in an automated and repeatable way.</p><h4>Why DevOps?</h4><p>The goal of DevOps is to increase an organization’s speed when it comes to delivering applications and services. Many companies have successfully implemented DevOps to enhance their user experience including Amazon, Netflix, etc.</p><p>Facebook’s mobile app which is updated every two weeks effectively tells users you can have what you want and you can have it. Now ever wondered how Facebook was able to do social smoothing? It’s the DevOps philosophy that helps Facebook ensure that apps aren’t outdated and that users get the best experience on Facebook. Facebook accomplishes this true code ownership model that makes its developers responsible that includes testing and supporting through production and delivery for each kernel of code. They write and update their true policies like this but Facebook has developed a DevOps culture and has successfully accelerated its development lifecycle.</p><p>Industries have started to gear up for digital transformation by shifting their means to weeks and months instead of years while maintaining high quality as a result. The solution to all this is- DevOps.</p><h4>How DevOps is different from Traditional IT?</h4><p>Traditional IT has 1000s lines of code and is created by different teams with different standards whereas DevOps is created by one team with intimate knowledge of the product. Traditional IT is complex to understand and DevOps is easily understandable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bb24cea48ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Express.js Learning]]></title>
            <link>https://hmyounus.medium.com/express-js-learning-20b502117a3d?source=rss-3178a688c431------2</link>
            <guid isPermaLink="false">https://medium.com/p/20b502117a3d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[HM YOUNUS]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 09:19:57 GMT</pubDate>
            <atom:updated>2024-02-11T09:19:57.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Express Js" src="https://cdn-images-1.medium.com/max/1000/0*yVFtn_C8Tu3KGFHp.jpg" /></figure><p>Express JS is a small framework that works on top of Node web server functionality to simplify its APIs and add helpful new features. It makes it easier to organize your application’s functionality with middleware and routing. It adds helpful utilities to Node HTTP objects and facilitates the rendering of dynamic HTTP objects.</p><h3>Why learn Express?</h3><p>Express makes the development of Node applications very easy and it is very simple to use. It provides a simple and efficient way to build web applications and APIs using JavaScript. It helps Node to handle routes, requests, and responses, making it easier for you to create robust and scalable applications. It is very flexible, lightweight, and easy to learn and contains a ton of middleware options making it an excellent choice to learn and use Express in your application.</p><h3>Express Advantages:</h3><ul><li><strong>Simplicity and Minimalism: </strong>Express JS has a very simple design, that makes it easy to learn and use. With its simple structure, you can quickly set up a server, define routes, and handle HTTP requests which makes it an excellent choice for building web applications efficiently.</li><li><strong>Flexibility and Customization:</strong> Express JS is a flexible framework that allows you to structure the application based on your preferences. It does have a strict application architecture so you can organize your code according to your preference.</li><li><strong>Middleware Ecosystem:</strong> Express JS has a large number of middleware that can be easily integrated into applications. Middleware functions increase the functionality of Express by allowing you to handle various tasks such as authentication, logging, and error handling.</li><li><strong>Scalability: </strong>Express JS is designed to be lightweight and scalable, which makes it suitable for building both small projects and large-scale applications. It is asynchronous and has an event-driven architecture which allows you to handle a large number of requests.</li><li><strong>Active Community Support:</strong> Express JS has a large active community that contributes to its growth and improvement. Because of them the framework is regularly updated and well-documented.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20b502117a3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Main Interview Questions]]></title>
            <link>https://hmyounus.medium.com/javascript-main-interview-questions-49f8647f25e2?source=rss-3178a688c431------2</link>
            <guid isPermaLink="false">https://medium.com/p/49f8647f25e2</guid>
            <dc:creator><![CDATA[HM YOUNUS]]></dc:creator>
            <pubDate>Thu, 05 Nov 2020 07:28:32 GMT</pubDate>
            <atom:updated>2020-11-05T12:51:18.123Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Null vs Undefined</h3><p><strong>null</strong> means there is no value. Just like in other programming languages, you can assign a value of <em>null </em>to a variable, which indicates that it has no value. In the example below, we are assigning <em>a</em> to <em>null</em>.</p><pre>let value = null;</pre><pre>console.log(value);</pre><pre>// null<br></pre><p><strong>Undefined</strong> usually means a <strong>variable</strong> has been declared, but not defined.</p><pre>let value;</pre><pre>console.log(value);</pre><pre>// undefined</pre><h3>2. Double equal (==) vs Triple equal (===):</h3><p><strong>double (==) </strong>in <strong>JavaScript</strong> is used for comparing two variables, but it ignores the data type of variable.</p><pre>var num = 0;<br>var obj = new String(&#39;0&#39;);<br>var str = &#39;0&#39;;<br><br>console.log(num == num); // true<br>console.log(obj == obj); // true<br>console.log(str == str); // true<br><br>console.log(num == obj); // true<br>console.log(num == str); // true<br>console.log(obj == str); // true<br>console.log(null == undefined); // true<br><br>// both false, except in rare cases<br>console.log(obj == null);<br>console.log(obj == undefined);</pre><p><strong>triple (===) </strong>is used for comparing two variables, but this operator also checks datatype and compares two values. … It returns true only if both values and data types are the same for the two variables.</p><pre>var num = 0;<br>var obj = new String(&#39;0&#39;);<br>var str = &#39;0&#39;;<br><br>console.log(num === num); // true<br>console.log(obj === obj); // true<br>console.log(str === str); // true<br><br>console.log(num === obj); // false<br>console.log(num === str); // false<br>console.log(obj === str); // false<br>console.log(null === undefined); // false<br>console.log(obj === null); // false<br>console.log(obj === undefined); // false</pre><h3>3. map()</h3><p><strong>map()</strong> method create new array with the result of calling a function for every array element. <strong>map()</strong> method call the provide function once for element in an array, example;</p><pre>const array1 = [1, 4, 9, 16];</pre><pre>// pass a function to map<br>const map1 = array1.map(x =&gt; x * 2);</pre><pre>console.log(map1);<br>// expected output: Array [2, 8, 18, 32]</pre><h3>4. Filer()</h3><p><strong>filter</strong>() method create an array filled with all array element that passes a test provide as a function. <strong>filter</strong>() does not execute the function for array elements without values. <strong>filter</strong>() does not change the original array.</p><pre>const words = [&#39;spray&#39;, &#39;limit&#39;, &#39;elite&#39;, &#39;exuberant&#39;, &#39;destruction&#39;, &#39;present&#39;];</pre><pre>const result = words.filter(word =&gt; word.length &gt; 6);</pre><pre>console.log(result);<br>// expected output: Array [&quot;exuberant&quot;, &quot;destruction&quot;, &quot;present&quot;]</pre><h3>5. Find()</h3><p><strong>find</strong>() method execute the function once for each element present in the array. If it find an array element where the function returns a true value, <strong>find</strong>() returns value that array element and does not check the remaining values Otherwise it returns undefined.</p><pre>const array1 = [5, 12, 8, 130, 44];</pre><pre>const found = array1.find(element =&gt; element &gt; 10);</pre><pre>console.log(found);<br>// expected output: 12</pre><h3>6. Scope:</h3><p><strong>Scoping</strong> is another important issue in JavaScript. You need to know where you can access or use your declared variables/functions. How or where to declare a variable or function if you want to privatize it or access a variable from anywhere</p><p><strong>There are two main types of scoping in JavaScript:</strong></p><ol><li>Local scope</li><li>Global scope</li></ol><p><strong>LocalScope</strong> variables declared inside the function are the local variables of that function. The scope of such variables is the local scope, meaning that this variable can only be accessed within the declared function. Cannot access outside of this or any other function.</p><pre>function localScope() {<br>   var local = &#39;I am local to my own function&#39;;<br>   console.log(local);<br>}<br>localScope();</pre><pre>output// I am local to my own function</pre><h3>7. Global Scope</h3><p>If a variable is not declared inside a function, then it is a variable declared in the global scope, meaning that the variable declared anywhere outside the function will get the global scope. These are also called global variables. Global variables can be accessed from inside any function or from anywhere.</p><pre>var globalVar = &#39;I am a Global Variable&#39;;<br><br>function globalScope() {<br>   console.log(&#39;Inside a Function: &#39; + globalVar);<br>}<br><br>globalScope();<br><br>console.log(&#39;Outside: &#39; + globalVar);</pre><pre>output// Inside a Function:I am a Global Variable<br>output// Outside: I am a Global Variable</pre><h3>8. Call():</h3><p><strong>call()</strong> method is a predefined JavaScript<strong> </strong>method. It can be used to invoke (<strong>call</strong>) a method with an owner object as an argument parameter. With <strong>call()</strong>, an object can use a method belonging to another object.</p><pre>function Product(name, price) {<br>  this.name = name;<br>  this.price = price;<br>}</pre><pre>function Food(name, price) {<br>  Product.call(this, name, price);<br>  this.category = &#39;food&#39;;<br>}</pre><pre>console.log(new Food(&#39;cheese&#39;, 5).name);<br>// expected output: &quot;cheese&quot;</pre><h3>9. bind():</h3><p>bind() method create new function, when invoked has the this set to the provide value. bind() method allows an object to a method from another object without making a copy of that method. This is known as function borrowing in JavaScript.</p><pre>const module = {<br>  x: 42,<br>  getX: function() {<br>    return this.x;<br>  }<br>};</pre><pre>const unboundGetX = module.getX;<br>console.log(unboundGetX()); // The function gets invoked at the global scope<br>// expected output: undefined</pre><pre>const boundGetX = unboundGetX.bind(module);<br>console.log(boundGetX());<br>// expected output: 42</pre><h3>10. Array Of Objects</h3><p><strong>Array</strong> of object store multiple values in single variable. It store fixed-size collection of elements the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49f8647f25e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React.js Fundamental Concept]]></title>
            <link>https://hmyounus.medium.com/react-js-fundamental-concept-946547df3415?source=rss-3178a688c431------2</link>
            <guid isPermaLink="false">https://medium.com/p/946547df3415</guid>
            <dc:creator><![CDATA[HM YOUNUS]]></dc:creator>
            <pubDate>Wed, 04 Nov 2020 11:05:39 GMT</pubDate>
            <atom:updated>2020-11-04T11:05:39.085Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*tpznTPM6-KV53_q_3xeMvw.png" /></figure><h3>1. <strong>React is a JavaScript “library”:</strong></h3><p>React — framework or library? React developers describe the javascript library for <strong>building</strong> user interfaces, as you can see in the big banner on its homepage. But most people call it a framework and thus make it part of the front-end Javascript frameworks, React is often given the <strong>Just JavaScript </strong>label. This means very small API learn and after that your JavaScript skills make better React developer. This is an advantage over libraries with bigger APIs Frameworks are not flexible, Frameworks serve a great purpose, especially for young teams and startups. When working with a framework, many smart design decisions are already made for you.</p><h3>2. React’s tree reconciliation:</h3><p>Reconciliation is the process through which React updates the DOM. When a component’s state changes, React has calculated if it is necessary to update the DOM. It does this by creating a virtual DOM and comparing it with the current DOM. In this context, the virtual DOM will contain the new state of the component.</p><h3>3. Understanding the Virtual-DOM:</h3><p>The <strong>virtual DOM</strong> is a programming concept and ideal, or <strong>virtual</strong>, representation of a UI is kept in memory and sync with the real <strong>DOM</strong> by a library such as ReactDOM. This process is called reconciliation They may also be considered a part of <strong>virtual DOM</strong> implementation in <strong>React</strong>. So generally libraries and frameworks which provide virtual DOM functionality implement virtual tree of UI nodes and on change or re-rendering process, it will check the new node tree with the older node tree that is virtual DOM and then call browser DOM API to re-render only the part that has been changed.</p><h3>4. User-Defined Components Must Be Capitalized:</h3><p>Components type starts with a lowercase letter, It means to a built-in component like &lt;div&gt; or &lt;span&gt; and results in a string &#39;div&#39; or &#39;span&#39; pass to React.createElement. Types that start with a capital letter like &lt;Foo /&gt; compile to React.createElement(Foo) and correspond to a component defined or imported in your JavaScript file.</p><p>We recommend naming components with a capital letter. If you do have a component that starts with a lowercase letter, assigns it to a capitalized variable before using it in JSX. for example:</p><pre>import React from &#39;react&#39;;<br><br>// Wrong! This is a component and should have been</pre><pre> capitalized:function hello(props) {  // Correct! This use of &lt;div&gt; is legitimate because div is a valid HTML tag:<br>  return &lt;div&gt;Hello {props.toWhat}&lt;/div&gt;;<br>}<br><br>function HelloWorld() {<br>  // Wrong! React thinks &lt;hello /&gt; is an HTML tag because it&#39;s not capitalized:  return &lt;hello toWhat=&quot;World&quot; /&gt;;}</pre><p>To fix this, we will rename hello to Hello and use &lt;Hello /&gt; when referring to it:</p><pre>import React from &#39;react&#39;;<br><br>// Correct! This is a component and should be capitalized:<br>function Hello(props) { </pre><pre> // Correct! This use of &lt;div&gt; is legitimate because div is a valid HTML tag:<br>  return &lt;div&gt;Hello {props.toWhat}&lt;/div&gt;;<br>}<br><br>function HelloWorld() {<br>  // Correct! React knows &lt;Hello /&gt; is a component because it&#39;s capitalized.  return &lt;Hello toWhat=&quot;World&quot; /&gt;;}</pre><h3>5. What exactly are hooks?</h3><p>React hook in a component is a call to a special function. All hooks functions begin with the word <strong>use</strong>. Some of them can be used to provide a functional component with stateful elements <strong>( like useState)</strong>, others can be used to managed side effects <strong>(like useEffect) </strong>or to cache/memoize functions and objects<strong> (like useCallback)</strong>. Hooks are very powerful and the sky is the limit when it comes to things you can do with them.</p><p>React hook functions can only be used in functional components. You can’t use them in class components.</p><h3>6. React Lifecycle Methods:</h3><p>React <strong>lifecycle methods.</strong> You can think of React <strong>lifecycle methods</strong> as the series of events that happen from the birth of a React component to its death. Every component in React goes through a <strong>lifecycle</strong> of events. I like to think of them as going through a cycle of birth, growth, and death.</p><p><strong>Common React Lifecycle Methods.</strong></p><p><strong>render()</strong></p><p>The <em>render()</em> method is the most used lifecycle method. You will see it in all React classes. This is because<em> render()</em> is the only required method within a class component in React.</p><pre>class Hello extends Component{</pre><pre>   render(){</pre><pre>      return &lt;div&gt;Hello {this.props.name}&lt;/div&gt;<br>   }<br>}</pre><h3>7. component DidMount():</h3><p>Now your component has been mounted and ready, that’s when the next React lifecycle method <strong><em>componentDidMount()</em></strong> comes into play.</p><p><strong>componentDidMount()<em> </em></strong>is called as soon as the component is mounted and ready. This is a good place to begin API calls if you need to load data from a remote endpoint.</p><p>Unlike the <em>render()</em> method, <em>componentDidMount() </em>allows the use of <em>setState()</em>. Calling the <em>setState() </em>here will update the state and cause another rendering but it will happen before the browser updates the UI. This is to ensure that the user will not see any UI updates with the double rendering.</p><h3>8. component DidUpdate():</h3><p>This lifecycle method is invoked as soon as the updating happens. The most common use case for the<strong> <em>componentDidUpdate()</em></strong><em> </em>method is updating the DOM in response to prop or state changes.</p><p>You can call <strong><em>setState()</em></strong><em> </em>in this lifecycle, but keep in mind that you will need to wrap it in a condition to check for state or prop changes from the previous state. Incorrect usage of<strong> <em>setState()</em></strong> can lead to an infinite loop.</p><p>Example.</p><pre>componentDidUpdate(prevProps) {</pre><pre> //Typical usage, don&#39;t forget to compare the props</pre><pre> if (this.props.userName !== prevProps.userName) {</pre><pre>   this.fetchData(this.props.userName);<br> }<br>}</pre><h3>9. component willUnmount():</h3><p>As the name suggests this lifecycle method is called just before the component is unmounted and destroyed. If there are any cleanup actions that you would need to do, this would be the right spot.</p><blockquote>You cannot modify the component state in the <em>component </em><strong>willunmount()</strong> lifecycle.</blockquote><p>This component will never be re-rendered and because of that, we cannot call <strong><em>setState()</em></strong> during this lifecycle method. example:</p><pre>componentWillUnmount() {</pre><pre> window.removeEventListener(&#39;resize&#39;, this.resizeListener)</pre><pre>}</pre><h3>10. Class Properties:</h3><p><strong>DefaultProps</strong></p><p><strong>default props</strong> can be defined as a property on the component class itself, to set the default props for the class. This is used for undefined props, but not for null props. For example:</p><pre>class CustomButton extends React.Component {<br>  // ...<br>}<br><br>CustomButton.defaultProps = {<br>  color: &#39;blue&#39;<br>};</pre><p>if props.color is not provided, it will be set by default to &#39;blue&#39;:</p><pre>render() {<br>    return &lt;CustomButton /&gt; ; // props.color will be set to blue<br>  }</pre><p>if props.color is set to null, it will remain null:</p><pre>render() {<br>    return &lt;CustomButton color={null} /&gt; ; // props.color will remain null<br>  }</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=946547df3415" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Fundamental Concept For Every Programmer.]]></title>
            <link>https://hmyounus.medium.com/javascript-fundamental-concept-for-every-programmer-340e956bd2c9?source=rss-3178a688c431------2</link>
            <guid isPermaLink="false">https://medium.com/p/340e956bd2c9</guid>
            <dc:creator><![CDATA[HM YOUNUS]]></dc:creator>
            <pubDate>Tue, 03 Nov 2020 04:35:33 GMT</pubDate>
            <atom:updated>2020-11-03T10:26:51.209Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript Fundamental Concept Data type, Block, and Function.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Q_sIkaIaXqunVHIsPZMN9Q.png" /></figure><h3>1: Data Type;</h3><p>There are basically <strong>two</strong> types of <strong>data types</strong> in JavaScript:</p><p><strong>(1) Primitive data type (2) Non-Primitive Data type:</strong></p><p><strong>(1) Primitive data type:</strong></p><p>Values ​​are stored directly in primitive type data. We know all objects in JavaScript. But without these primitive data types. These are not objects. As like: <strong>Number, String, Boolean, Undefined, Null.</strong></p><p><strong>(2) Non-Primitive Data type:</strong></p><p>The values ​​of the non-primitive data types are not saved directly. Rather the value reference remains saved. And this type of data object. This means that they also have a lot of properties. as Like: <strong>Array, Object, Function.</strong></p><h3>2: Comment:</h3><p>Commenting on code is a good practice. Because it is often difficult to understand which part of the code is doing what. In that case, if you write down some description that this part works, that part works then anyone or you can see your code after a few years and understand that this part is actually working. So it is better to keep proper comments in the code. And the comments will be completely avoided by the engine of JavaScript. This means they will never come to the output</p><h4>Comments can be made in two ways:</h4><p><strong>1: Single line comment: </strong>If you want to write something at the end of your code if you comment on the same line</p><p>const myName = &#39;md younus&#39;; // your comment here</p><p><strong>2: Multi-line comment: </strong>If you want to write a comment in a few lines:</p><p>/* Your Comments here*/</p><h3>3: Block binding:</h3><p>Variable means binding. we declare a variable, we bind a value to a name inside a scope. confusion in binding before ES6.Because block binding was not introduced then. Javascript hoisted everything to the top rather we declare a variable within a block. we can access this from any other block. To remove this confusion/problem, Javascript introduces <strong>Block binding</strong> in ES6.</p><h3><strong>4. Var Declarations and Hoisting:</strong></h3><p>variable declarations use the <strong>var</strong> keyword.it is treated that variable is declared at the top. where the actual declaration occurs. This is called hoisting. example:</p><pre>function getValue (condition) {</pre><pre>if (condition) {</pre><pre>var name = “MD YOUNUS”;</pre><pre>return name;</pre><pre>} else {</pre><pre>return null;</pre><pre>}</pre><pre><br>}</pre><h3>5. <strong>Block-Level Declarations:</strong></h3><p>variable declare anything block-level.inaccessible from the outside the given block. Block scopes are created:</p><ul><li>Inside of a function</li></ul><ol><li>Inside of a block ( indicated by {} curly brackets)</li></ol><h3>6. <strong>Global Block Bindings:</strong></h3><p>Let and the const keyword is instead of var when we declare any variable globally. Because var key overwrites our window variable that is already declared in our global object. But let and const keyword doesn’t overwrite the existing global variable, make a shadow variable of its. So this is the best practice to use the let or const keyword when we declaring anything globally.</p><h3>7. <strong>Block Binding in Loops:</strong></h3><p>var<strong> </strong>variable is also problematic when it is declared in loops. Because outside the loop block, they are accessible. Because the var declaration gets hoisted. Example:</p><pre>for (var i=0; i &lt; 10; i++) {</pre><pre>    process(items[i]);<br>}<br><br>// i is still accessible here</pre><pre>console.log(i);                     // 10</pre><h3>8. <strong>Emerging Best practices for Block Bindings:</strong></h3><p>The use of const is safe when we declaring any variable globally if our variable doesn’t need any modification in the future. Because unexpected value changes are a source of bugs. If we need modification in the declaration, we can use let which is safer than var. Because var has to scope.</p><h3>9. <strong>Function With Default Parameter value:</strong></h3><p>If we want to set a default value of a given parameter when defining a function, then we can easily use this default parameter of ES6. However, the matter was not so easy in ES5. examples.</p><pre>function makeRequest(url, timeout, callback) {<br><br>    timeout = timeout || 2000;<br>    callback = callback || function() {};<br><br>    // the rest of the function<br><br>}</pre><h3>10. The Spread Operator:</h3><p>The spread operator is a useful and quick syntax for adding items to arrays, combining arrays or objects, and spreading an array out into a function’s arguments.</p><p>The spread operator was added to JavaScript in ES6 (ES2015), just like the rest parameters, which have the same syntax: three magic dots ….</p><pre>let values = [25, 50, 75, 100]<br><br>// equivalent to</pre><pre>// console.log(Math.max(25, 50, 75, 100));</pre><pre>console.log(Math.max(...values));           // 100</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=340e956bd2c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Basic Concept For Programmer]]></title>
            <link>https://hmyounus.medium.com/javascript-basic-concept-for-programmer-fabc479fcfa1?source=rss-3178a688c431------2</link>
            <guid isPermaLink="false">https://medium.com/p/fabc479fcfa1</guid>
            <dc:creator><![CDATA[HM YOUNUS]]></dc:creator>
            <pubDate>Mon, 02 Nov 2020 12:41:38 GMT</pubDate>
            <atom:updated>2020-11-02T12:41:38.680Z</atom:updated>
            <content:encoded><![CDATA[<h3>1: var Let and Const:</h3><p>Variable is the most concept of every programmer&#39;s learning. the variable means datastore as like name, number, anything. var and let variable keyword all use changes and modify but const is the first declare variable not changes and modify. so variable is the most concept every programmer.</p><h3>2: String :</h3><p>Every programming language String is the most concept of every programmer&#39;s learning. The string is the definition of all data holding store. String useful method.</p><h3>3: IndexOf():</h3><p>Index of useful string method. string length number search for the index of used. The <strong>indexOf</strong>() method returns the position of the first occurrence of a specified value in a string. The method searches the array for the specified item and returns its position.</p><h3>4: Slice():</h3><p>Slice is a method of String Object and Array Object. It is non-destructive since it returns a new copy and it doesn’t change the content of the input array. Slice is normally used in function programming</p><h3>5: trim(), TrimEnd(), TrimStart():</h3><p>Every programming language removes whitespace.javaScript string method trim(), TrimEnd(), TrimStart(), remove whitespace this every context . Trim() method removes whitespace this all context. TrimEnd() method removes whitespace last context, and TrimStart() string method first whitespace removes context.</p><h3>6: Math</h3><p>JavaScript has a fully built-in object to handle all the day to day problems of mathematics. That object is the Math object. Inside this object are the necessary functions or in other words methods to solve many of our everyday mathematics problems.</p><h3>7: Math Floor, Max, and Min</h3><p>The Function of this method to convert decimal numbers to integer numbers. Max and Min Both methods take numbers as arguments, you can give as many numbers as you want. These are the maximum of all Or give out the minimum.</p><h3>8: Array</h3><p>The Array in JavaScript is a global object which contains a list of items. It is similar to any variable, in that you can use it to hold any type of data. However, it has one important difference: it can hold <em>more than one item</em> of data at a time. An array is ordered collection values. each value is called an element, and each element has a numeric position in the array, known as its indexOf.</p><h3>9: Map</h3><p>the Array Map Method operates on an array to run a transformation on every element of the array. It does so through the use of a callback function<em> </em>which is called for each item of the array. After running the callback function on each item, the Map Method returns <em>the transformed array</em>, leaving the <em>original array</em> unchanged.</p><h3>10: Reduce</h3><p>The Reduce The method is applied to arrays in Javascript. This method does what its name says; it takes the values in an array, from the first till the last element, and applies functionality such that it changes the array into one singular value. Hence, it reduces the array.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fabc479fcfa1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>