<?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 Hidayt Rahman on Medium]]></title>
        <description><![CDATA[Stories by Hidayt Rahman on Medium]]></description>
        <link>https://medium.com/@hidaytrahman?source=rss-34cb46105eec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*DsRvd7SbV9WJU_5HFZizzA.jpeg</url>
            <title>Stories by Hidayt Rahman on Medium</title>
            <link>https://medium.com/@hidaytrahman?source=rss-34cb46105eec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 04:29:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hidaytrahman/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[Flat array from the multi-dimensional zig-zag array]]></title>
            <link>https://hidaytrahman.medium.com/flat-array-from-the-multi-dimensional-zig-zag-array-7076f7f2a310?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7076f7f2a310</guid>
            <category><![CDATA[questions-answers]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 13:03:06 GMT</pubDate>
            <atom:updated>2023-01-10T13:03:06.240Z</atom:updated>
            <content:encoded><![CDATA[<p>To flatten a multi-dimensional zig-zag array in JavaScript, you can use a combination of loops and array manipulation techniques.</p><p>Here is an example of how you might flatten a multi-dimensional zig-zag array:</p><pre>const array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];</pre><pre>// Flatten the array using a loop<br>const flatArray = [];<br>for (const subArray of array) {<br>  flatArray.push(...subArray);<br>}</pre><pre>console.log(flatArray); // Outputs: [1, 2, 3, 4, 5, 6, 7, 8, 9]</pre><p>In this example, the flatArray array is initialized as an empty array. A loop is used to iterate over the elements of the array variable, which represents the multi-dimensional zig-zag array. For each element, the spread operator (...) is used to add the elements of the subarray to the flatArray array.</p><p>This will result in a flattened array that contains all of the elements of the original array in the order they appear.</p><p>Alternatively, you can use the Array.prototype.flat method to flatten the array, as follows:</p><pre>const array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];<br>const flatArray = array.flat();<br>console.log(flatArray); // Outputs: [1, 2, 3, 4, 5, 6, 7, 8, 9]</pre><p>The flat method will return a new array that is one level deeper than the input array. To flatten a multi-dimensional array with more than one level of nesting, you can call the flat method multiple times or pass it a depth parameter. For example:</p><pre>const array = [[1, 2, 3], [4, [5, 6], 7], [8, 9]];<br>const flatArray = array.flat(2);<br>console.log(flatArray); // Outputs: [1, 2, 3, 4, 5, 6, 7, 8, 9]</pre><p>This will result in a flattened array that contains all of the elements of the original array in the order they appear.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7076f7f2a310" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Absolute path in React]]></title>
            <link>https://hidaytrahman.medium.com/absolute-path-in-react-929ba9464c0f?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/929ba9464c0f</guid>
            <category><![CDATA[absolute-path]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[js]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Mon, 31 Oct 2022 11:48:28 GMT</pubDate>
            <atom:updated>2022-10-31T11:48:28.911Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XI_QR0BzCKFVovLWe72fWA.png" /><figcaption>Absolute path in React</figcaption></figure><h4>Why do we need an Absolute path in the App?</h4><p><strong>Problems</strong></p><p>Working on applications without spending much time on organizing a folder structure is a common story of most developers as it requires granular details and sometimes we don’t create folder structure perfectly because of the early stage of the app.<br>And most of the time it&#39;s nightmare when we change the folder structure after finishing or middle in of the app.<br>It’s painful to change the path for all the affected files relatively.</p><p><strong>Solution</strong></p><p>So here is the solution to the Absolute path.</p><p>Absolute path helps us to not care about the folder structure changes even in the middle of development or frequent folder structure changes as it can access files from the root folder (as per the configuration)</p><p><strong>Relative path vs Absolute path</strong></p><p>Relative path : ../../SubFolder/File<br>Absolute path: components/Folder/SubFolder/File</p><h3>How to set up it in React?</h3><p>Go to the root folder and create a file jsconfig.json for JS based react app.<br>and put the configuration into the file</p><pre>{<br>  &quot;compilerOptions&quot;: {<br>    &quot;baseUrl&quot;: &quot;src&quot;<br>  },<br>  &quot;include&quot;: [&quot;src&quot;]<br>}</pre><p>Try to<strong> restart the server</strong> and now you can access your files by the full path</p><pre>components/Folder/SubFolder/File</pre><p>tsconfig.json (already created in the TypeScript template) at the root of your project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=929ba9464c0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convert any type into boolean — JS]]></title>
            <link>https://hidaytrahman.medium.com/convert-any-type-into-boolean-js-88579a010c79?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/88579a010c79</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[boolean]]></category>
            <category><![CDATA[convert]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Sun, 19 Jun 2022 07:40:49 GMT</pubDate>
            <atom:updated>2022-06-19T07:40:49.676Z</atom:updated>
            <content:encoded><![CDATA[<h3>Convert any type into boolean — JS</h3><h3>!!</h3><p>it’s used to convert something to boolean</p><p>Converts Object to boolean. If it was falsy (e.g. 0, null, undefined, etc.), it will be false, otherwise, true.</p><p>So !! is not an operator, it&#39;s just the ! operator twice.</p><p>It may be simpler to do:</p><pre>Boolean(object) // boolean</pre><p>Real-World Example “Test IE version”:</p><pre>const isIE8 = !! navigator.userAgent.match(/MSIE 8.0/);  <br>console.log(isIE8); // returns true or false</pre><p>If you ⇒</p><pre>console.log(navigator.userAgent.match(/MSIE 8.0/));  <br>// returns either an Array or null</pre><p>But if you ⇒</p><pre>console.log(!!navigator.userAgent.match(/MSIE 8.0/));  <br>// returns either true or false</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88579a010c79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Roadmap | Zero to Hero in JavaScript]]></title>
            <link>https://hidaytrahman.medium.com/roadmap-zero-to-hero-in-javascript-653eb3bcfcff?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/653eb3bcfcff</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-frameworks]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript-roadmap]]></category>
            <category><![CDATA[zero-to-hero]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Sun, 25 Jul 2021 05:23:32 GMT</pubDate>
            <atom:updated>2021-07-25T05:23:32.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39LRy0Y50PF0y_Ez3rd_TA.png" /></figure><p><strong>JavaScript</strong> is a programming language used both on the <strong>client-side</strong> and <strong>server-side</strong> that allows you to make web pages interactive.</p><h4>Pros</h4><ul><li>Popularity. JavaScript is used everywhere on the web.</li><li>Gives the ability to create rich interfaces.</li><li>Easy to learn and implement.</li></ul><h4>Cons</h4><ul><li>Browser Support. JavaScript is sometimes interpreted differently by different browsers. Difficult to write cross-browser code.</li><li>Code is always visible to everyone on the client side.</li></ul><h4>Advise before start</h4><p>Learn how the web works and the Basic HTML and CSS.</p><h3>Pillars of JavaScript</h3><p>I split into seven sections</p><ol><li><strong>Fundamentals</strong></li><li><strong>Advance Level</strong></li><li><strong>Web Platform</strong></li><li><strong>Tools</strong></li><li><strong>Frameworks and Libraries</strong></li><li><strong>Testing</strong></li><li><strong>Security</strong></li></ol><h4>1. Fundamentals</h4><blockquote>This is the most important section, It might take time but it&#39;s worth learning to go for advance level smoothly.</blockquote><ul><li>Variables, Types, and Expressions</li><li>Functions</li><li>Array</li><li>Objects</li><li>Loops</li><li>IF, Switch Statements</li><li>Lexical structures</li><li>Data Structures</li><li>Control Flow</li><li>Operators</li><li>Type Conversation</li><li>Scope</li><li>Events</li></ul><p><strong>Assignment</strong></p><ul><li>Counter App</li><li>Todo App (CRUD)</li></ul><h4>2. Advanced Level</h4><ul><li>Try Catch</li><li>Callbacks</li><li>Promises</li><li>Async Await</li><li>Error handling</li><li>Modules</li><li>Closure</li><li>Timers</li><li>Prototyping</li><li>Inheritance</li><li>Binding</li><li>Regular Expressions</li><li>Unicode</li><li>Event Loops</li><li><em>Generators</em></li></ul><p><strong>Assignment</strong></p><ul><li>Ludo Dice (with Score)</li><li>Quiz Game</li></ul><h4>3. Web Platform</h4><ul><li>Cookies</li><li>Web Storage</li><li>Fetch</li><li>APIs</li><li>DOM Manipulation</li><li>Service Workers</li></ul><p><strong>Assignment</strong></p><ul><li>Messenger</li><li>eCommerce Prototype (API Integration)</li><li>Todo App (Store Data on Browser)</li></ul><h4>4. Tools</h4><ul><li>TypeScript</li><li>Node, NPM / Yarn</li><li>Webpack or Grunt / Gulp</li><li>Babel</li><li>ESLint</li></ul><p><strong>Assignment</strong></p><ul><li>Setup ES6 project using webpack and babel</li></ul><h4>5. Frameworks / Libraries</h4><ul><li>React</li><li>Vue</li><li>Angular</li><li>ExpressJS</li></ul><p><strong>Assignment</strong></p><ul><li>Migrate all the existing apps (eCommerce Prototype, Todo App) in all the above techs individiually.</li></ul><h4>6. Testing (Anyone)</h4><ul><li>Jest</li><li>Mocha</li><li>Jasmine</li></ul><p><strong>Assignment</strong></p><ul><li>Perform test cases for TodoApp</li></ul><h4>7. Security</h4><ul><li>OWASP</li><li>Synk</li></ul><p><strong>Assignment</strong></p><ul><li>Security fixes for all the existing apps</li></ul><h3>Platform to learn</h3><ul><li><a href="https://javascript.info/">The Modern JavaScript Tutorial</a></li><li><a href="https://www.w3schools.com/js/default.asp">W3Schools.com</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/javascript">JavaScript | MDN</a></li><li><a href="https://learnjavascript.online/">Learn JavaScript</a></li></ul><p>You’re now all set to get your dream job and help the dev community by creating the best solutions.</p><h4>All the best :)</h4><blockquote>$ { Happy Learning }</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=653eb3bcfcff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRUD Operation with Array in JavaScript]]></title>
            <link>https://hidaytrahman.medium.com/crud-operation-with-array-in-javascript-6061ba48f0bc?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/6061ba48f0bc</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[mutable]]></category>
            <category><![CDATA[crud]]></category>
            <category><![CDATA[array-methods]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Wed, 14 Jul 2021 09:28:13 GMT</pubDate>
            <atom:updated>2021-07-14T09:28:47.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BhrR8c9lJVHRxyRTFoJLCg.png" /></figure><p>We often use an array in every project for data manipulation.</p><p>Let’s play with the CRUD operation.</p><h3>Create</h3><p>Create an array. It will contain programming languages.</p><pre>const programmingLanguages = [&quot;JavaScript&quot;, &quot;Python&quot;];</pre><h3>Read</h3><p>We have a lot of options to read it.</p><p><strong>Print the entire array in a referenced way.</strong></p><pre>console.log(<strong>programmingLanguges</strong>); // (2) [&quot;JavaScript&quot;, &quot;Python&quot;]</pre><p><strong>Print the first item by using </strong><strong>index</strong></p><pre>console.log(<strong>programmingLanguages[0]</strong>); // JavaScript</pre><p><strong>Print all items by using for loop</strong></p><pre>for(var i = 0; i&lt;<strong>programmingLanguages.length</strong>; i++) {<br>    console.log(<strong>programmingLanguages[i]</strong>);<br>    // JavaScript<br>    // Python<br>}</pre><blockquote><em>The above snippet will print all items of the array individually.</em></blockquote><p><strong>Print all items by using </strong><strong>forEach</strong></p><p>Cleaner way to print all items.</p><pre><strong>programmingLanguages</strong>.forEach((item, index) =&gt; {<br>     console.log(`${<strong>index</strong>}. ${<strong>item</strong>}`);<br>     // 0. JavaScript<br>     // 1. Python<br>});</pre><h4>Add New</h4><p>Let’s add a new language to the array using push().</p><pre><strong>programmingLanguages.push(&quot;Java&quot;);</strong></pre><pre>// [&quot;JavaScript&quot;, &quot;Python&quot;, &quot;Java&quot;]</pre><h3>Update</h3><p>Let’s update java with C# using splice()</p><pre><strong>programmingLanguages.splice(2, 1, &quot;C#&quot;)</strong></pre><pre>// (3) [&quot;JavaScript&quot;, &quot;Python&quot;, &quot;C#&quot;]</pre><blockquote>splice() is used to add, update or delete an item from the array</blockquote><p><em>The first parameter </em><strong><em>selects the item by index</em></strong></p><p><em>2nd parameter </em><strong><em>selects the number of items</em></strong></p><p><em>3rd parameter </em><strong><em>add a new item of the selected item</em></strong></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice">Read more about splice</a></p><h3>Delete</h3><p>Let’s delete the C# from the language array.</p><p>We will use splice() again but this time we will pass only 2 parameters.</p><pre>programmingLanguages.splice(2, 1);</pre><pre>// (2) [&quot;JavaScript&quot;, &quot;Python&quot;]</pre><p>That&#39;s It.</p><p>${HappyCode}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6061ba48f0bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy a React App to GitHub Pages]]></title>
            <link>https://hidaytrahman.medium.com/deploy-a-react-app-to-github-pages-e74ce5253d0c?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/e74ce5253d0c</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Thu, 01 Jul 2021 17:50:13 GMT</pubDate>
            <atom:updated>2021-07-01T17:50:13.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwTYQD34yybrejq_ZMJRRQ.png" /><figcaption>Deploy a React App to GitHub Pages</figcaption></figure><p>Let&#39;s <strong>deploy react application on GitHub</strong> by using <a href="https://pages.github.com/">GitHub Pages</a>.</p><h3>Prerequisites</h3><p>You need to have <strong>Node</strong>, yarn, and npm installed on your machine. To check if they are installed, open up a terminal window and type the following:</p><pre>npm -v<br>yarn -v<br>node -v</pre><p>If these commands print out a version number in the terminal, you are good to go. If not, you need to go ahead and install what is missing.</p><ul><li><a href="https://nodejs.org/en/download/">Node</a> (contains npm)</li><li><a href="https://classic.yarnpkg.com/en/docs/install/#windows-stable">Yarn</a></li></ul><p>Am assuming you already have a <strong>Github account</strong>. if not create <a href="https://github.com/">here</a></p><h3>Create a project</h3><p>To create a project, you need to type the following in the terminal:</p><pre>npx create-react-app <strong>my-react-app</strong></pre><p>Once the operation finishes, you will have a boilerplate React project, ready to go. To see if it works properly run the command:</p><p>cd <strong>my-react-app</strong></p><p>and run below command</p><p>yarn start or npm start</p><p>If everything runs properly, you will see a message in the terminal that says that your application is running on a local server at this address: <a href="http://localhost:3000/"><strong>http://localhost:3000</strong></a></p><h3>Deploy Project to GitHub</h3><p>In order for us to be able to upload our built application to GitHub Pages, we first need to install the <a href="https://www.npmjs.com/package/gh-pages">gh-pages package</a>.</p><pre><strong>yarn add gh-pages</strong></pre><p>OR</p><pre><strong>npm install gh-pages --save-dev</strong></pre><p>This package will help us to deploy our code to the gh-pages branch which will be used to host our application on GitHub Pages.</p><p>To allow us to use the gh-pagespackage properly, we need to<strong> add two keys </strong>into<strong> scripts </strong>value in the package.json file:</p><pre>&quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;react-scripts start&quot;,<br>   <strong> &quot;predeploy&quot;: &quot;npm run build&quot;</strong>, <br>    <strong>&quot;deploy&quot;: &quot;gh-pages -d build</strong>&quot;, <br>    &quot;build&quot;: &quot;react-scripts build&quot;,<br>    &quot;test&quot;: &quot;react-scripts test&quot;,<br>    &quot;eject&quot;: &quot;react-scripts eject&quot;<br>  },</pre><p>Next, we need to modify our package.json file by adding the <strong>homepage </strong>field</p><pre>{<br>  &quot;name&quot;: &quot;my-react-app&quot;,<br>  <strong>&quot;homepage&quot;: &quot;https://&lt;username&gt;.github.io/my-react-app/&quot;,</strong><br>  &quot;version&quot;: &quot;0.1.0&quot;,<br>  /....<br>}</pre><p>Replace &lt;username&gt; with your own username.</p><p>This is URL of your hosted app.</p><h4>Ready to go</h4><p>To deploy our application, type the following in the terminal:</p><pre><strong>npm run deploy</strong></pre><p>Running the command above takes care of building your application and pushing it to a branch called gh-pages, which GitHub uses to link with GitHub Pages.</p><h4>Woohoo!!!!! 🥳</h4><p>Access the link<strong>https://&lt;username&gt;.github.io/my-react-app/</strong></p><p><strong>Note:</strong> It can take few hours to publish for the first time.</p><blockquote>&lt;Happy Code /&gt;</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e74ce5253d0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Browser Storage with React Hooks]]></title>
            <link>https://hidaytrahman.medium.com/handling-browser-storage-with-react-hooks-f04fc037914d?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f04fc037914d</guid>
            <category><![CDATA[sessionstorage]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-hook]]></category>
            <category><![CDATA[localstorage]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 15:19:04 GMT</pubDate>
            <atom:updated>2021-06-30T15:20:36.211Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LtzwCJv9gPyymNGtbfHoDQ.png" /></figure><p>Let’s start with an issue that is listed on many platforms but not with the exact solution.</p><ul><li>localStorage won’t update values 🤔</li><li>local storage in react is not storing the updated value 😐</li><li>localStorage not working properly in ReactJS 😑</li><li>localStorage value doesn’t get updated automatically 😫</li></ul><p>This is a very common issue when you need to store data in the browser by using any methods<strong> sessionStorage or localStorage with React Hooks</strong>.</p><p>let&#39;s get rid out of it. 😎</p><h3>Scenario</h3><p>I have a language that I change on the selection of dropdown and store on the browser.</p><pre>const [<strong>language</strong>, setLanguage] = useState(null);</pre><pre>const changeLang = () =&gt; {<br>    // update language<br>     setLanguage(&quot;en-IN&quot;);</pre><pre>    // store language in browser as well<br>    localStorage.setItem(&#39;language&#39;, <strong>language</strong>);<br>}<br></pre><p>Does the above snippet look fine and store data???🙄 Noooo!!!! It can’t store on the first hit, Because of the async behavior of setLanguage in useState()hooks</p><h3>Solution ☺️</h3><pre>useEffect(() =&gt; {</pre><pre>   localStorage.setItem(&#39;language&#39;, <strong>language</strong>);</pre><pre>}, [<strong>language</strong>])</pre><blockquote>This is nothing but a <strong>dependent state</strong> which gets fire when the <strong>language </strong>gets changed.</blockquote><p>That&#39;s It!!!</p><p>Enjoy browser storage peacefully 😍</p><blockquote>{HappyCode}</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f04fc037914d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Customize GitHub Profile with Decent theme]]></title>
            <link>https://hidaytrahman.medium.com/customize-github-profile-with-decent-theme-d93666283435?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/d93666283435</guid>
            <category><![CDATA[themes]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-profile]]></category>
            <category><![CDATA[resume]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Mon, 28 Jun 2021 05:13:33 GMT</pubDate>
            <atom:updated>2021-06-28T05:13:33.356Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYDzh4h2U72Zi0Cxj9xAOw.jpeg" /></figure><p>Github introduced a new feature, Where you can add personal information about yourself in your bio, projects you’ve contributed to, or interests you have that other person may like to know about.</p><h3>Do it in a minute</h3><p><strong>If you’re in hurry or already aware of the markdown. You can skip all the steps.</strong></p><blockquote>Just click on the <a href="https://github.com/hidaytrahman/hidaytrahman/edit/main/README.md">link </a>, copy all and paste it to your repo in yourREADME.md file.</blockquote><p>github.com/&lt;username&gt;/&lt;username&gt;/README.md</p><p>and start editing with your own information. 😉</p><h4>Or follow the steps</h4><p><strong>If you are new and want to explore then follow the steps</strong></p><p>Let’s start with creating a new repo with the same username.</p><h3>Step 1</h3><p>in my case, my username is hidaytrahman</p><p>create a repo with the same username</p><blockquote>{username}/{username}</blockquote><p>hidaytrahman/hidaytrahman</p><h3>Step 2</h3><p>create a readme.md file.</p><p><strong>Clone repo in local machine.</strong></p><p>git clone `<a href="https://github.com/hidaytrahman/hidaytrahman.git">https://github.com/&lt;username&gt;/&lt;username&gt;.git</a>`</p><h3>Step 3</h3><p>open repo folder in vs code and right-click on README.md file and click on open preview.</p><p>It’s time to start with the very first info, I will recommend adding a banner.</p><p><strong>Put the banner</strong> in the root folder of the repo.</p><p>And use it with relative path</p><pre>![Your Name - Anything about your banner](banner.png)`</pre><p>Write a bio about you and your primary skillset.</p><p>Let’s <strong>add a few gadgets</strong>.</p><p>Add visitor info by using the below snippet and replace hidaytrahman with your `username`</p><pre>[![Visitor](<a href="https://visitor-badge.laobi.icu/badge?page_id=hidaytrahman.hidaytrahman)](https://github.com/hidaytrahman)">https://visitor-badge.laobi.icu/badge?page_id=hidaytrahman.hidaytrahman)](https://github.com/hidaytrahman)</a></pre><pre>[![GitHub followers](<a href="https://img.shields.io/github/followers/hidaytrahman.svg?style=social&amp;label=Follow)](https://github.com/hidaytrahman?tab=followers)">https://img.shields.io/github/followers/hidaytrahman.svg?style=social&amp;label=Follow)](https://github.com/hidaytrahman?tab=followers)</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*_-UrhhUgpe63gEDxwPZlVg.jpeg" /></figure><p>The above snippet shows the visitors and followers.</p><p>Let’s <strong>add all of your skills</strong> like (git, GitHub)</p><pre>![Git](<a href="https://img.shields.io/badge/-Git-05122A?style=flat&amp;logo=git)&amp;nbsp">https://img.shields.io/badge/-Git-05122A?style=flat&amp;logo=git)&amp;nbsp</a>;<br>![GitHub](<a href="https://img.shields.io/badge/-GitHub-05122A?style=flat&amp;logo=github)&amp;nbsp">https://img.shields.io/badge/-GitHub-05122A?style=flat&amp;logo=github)&amp;nbsp</a>;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*H7TF8tCcmklTgRciqEd8Ww.jpeg" /></figure><p>You can put as many as you like, Put the exact name of the skills.</p><h3>Publish it :)</h3><p>git add *</p><p>git commit -m &quot;my decent profile&quot;</p><p>git push origin main</p><p>That’s it!</p><p>Let’s visit the profile and check if everything works fine,</p><p>Customized it with your own style by exploring <a href="https://guides.github.com/features/mastering-markdown/">markdown</a></p><h4>Thanks!</h4><p><strong>Visit my profile.</strong></p><p><a href="https://github.com/hidaytrahman">hidaytrahman - Overview</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d93666283435" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FullStack Developer Roadmap 2021]]></title>
            <link>https://hidaytrahman.medium.com/fullstack-developer-roadmap-2021-aa1389ac7cb7?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa1389ac7cb7</guid>
            <category><![CDATA[fullstack-development]]></category>
            <category><![CDATA[clients]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Mon, 21 Jun 2021 08:01:48 GMT</pubDate>
            <atom:updated>2021-06-21T08:01:48.527Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuB27vT1s4Rr8C6k2OvqJA.png" /><figcaption>A person who can develop the entire application — Fullstack developer graph</figcaption></figure><p>Hi Folks,</p><p>Currently, most of the newcomers are planning to go for full-stack development.</p><h4>What is a <a href="https://www.w3schools.com/whatis/whatis_fullstack.asp">full-stack developer</a>?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNIJpUx-QxMF6c1gxs08Ig.png" /><figcaption>A person who can develop both <strong>client</strong> and <strong>server</strong> software</figcaption></figure><p>A person who can develop the entire application (both <strong>client</strong> and <strong>server)</strong>.</p><p><strong>Advantages:</strong></p><ul><li>Master all the techniques involved in a development project.</li><li>Can provide help to all the team members</li><li>Can reduce the cost of the project</li><li>Can reduce the time used for team communication</li></ul><p><strong>Disadvantages:</strong></p><ul><li>The solution chosen can be dependent on developer skills</li><li>The solution chosen can be wrong for the project</li><li>Being a full-stack developer is increasingly complex</li></ul><h4>Things to skip…. Trust me it&#39;s not worthy :/</h4><p>I am going to share my experience as a <strong>full-stack developer.</strong> However, my journey was quite interesting and adventurous.</p><p>I started my career as an <strong>HTML developer</strong> and got work for a WordPress CMS to develop a portal.<em> Phew!!!! I did that :(</em></p><p>Then I started working in <strong>PHP </strong>just to make the <strong>header and footer reusable </strong>(<em>Yes those were static website</em> )</p><p>Then I got a chance to work with jQuery, my long term smart and stupid friend for few years, but I am still missing it :/</p><p>Huh!!! I was on the wrong path. But that was the main thing that makes me curious to learn new stuff.</p><p>Then I have learned Angular 2+ and work for 2 years for no reason. I was a fan of angular and I used to fight with my friends over the angular. (trust me I hate angular nowadays)</p><p>And then I was started learning every new thing which I thought I should use for any live project.</p><p>So learned <strong>React</strong>, <strong>EJS</strong>, <strong>Angular, Python, NodeJS, ExpressJS, mySQL,</strong> <strong>mongoDB</strong>, <strong>SASS</strong>, <strong>LESS</strong>, <strong>AEM</strong>, <strong>Intershop</strong>, <strong>MustacheJS, HandlebarsJS, BackboneJS, jQuery, ES6, PHP, ASP, JSP, C#, .NET MVC, Drupal, Magento, OpenCart, Photshop</strong></p><p>No doubt I learned a lot of tech stacks but it took many years.</p><blockquote>It can be done in a limited time if you will have the roadmap.</blockquote><p><strong>Apologies for the boring story of my journey</strong> from HTML developer to FullStack Developer.</p><h4>Let’s get started.</h4><h3><strong>HTML</strong></h3><p>Is designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript and mandatory for all web developers</p><p><strong>Must read:</strong></p><ul><li>Basic HTML and DOM</li><li>Form</li><li>HTML5 APIs (Storage)</li></ul><p>A beginner can start from <a href="https://www.w3schools.com/html/">w3schools</a></p><h3>CSS</h3><p><a href="https://www.w3schools.com/css/">CSS</a> — Styling for web pages (Makeup HTML)</p><p><strong>Must read:</strong></p><ul><li>Selectors (class, ID, element, attribute, pseudo)</li><li>Box Model</li><li>Position (absolute, fixed, relative)</li><li>Flex, Grid</li><li>Media Query (screen, print)</li></ul><h3>JavaScript</h3><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">Javascript </a>is the programming language of the Web.</p><p><strong>Must read:</strong></p><ul><li>Basics (var, loop, statements)</li><li>Scope</li><li>Closure</li><li>Functions</li><li>DOM manipulation</li><li>Event handling</li></ul><p>Also, read these articles.</p><ul><li><a href="https://hidaytrahman.medium.com/7-javascript-concepts-that-every-web-developer-should-know-6e8a9ed14433">7 JavaScript Concepts That Every Web Developer Should Know</a></li><li><a href="https://hidaytrahman.medium.com/9-array-methods-every-javascript-developer-should-know-104d21ae7b8">9 Array Methods Every JavaScript Developer Should Know</a></li></ul><h3>React</h3><p><a href="https://reactjs.org/">React</a> is an open-source front-end JavaScript library for building user interfaces or UI components. React can be used as a base in the development of single-page or mobile applications.</p><p><strong>Must read:</strong></p><ul><li>Components</li><li>Hooks</li><li>Router</li><li>Data binding</li><li>State Management</li></ul><h3>NodeJS</h3><p><a href="https://nodejs.org/en/">Node.js </a>is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser.</p><p><strong>Must read:</strong></p><ul><li>HTTP</li><li>File Storage (CRUD)</li><li>OS</li><li>Events</li><li>Sync and Async</li><li>Event Loop</li></ul><h3>ExpressJS</h3><p>Develop very first API</p><p><a href="https://expressjs.com/">Express </a>is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.</p><p><strong>Must read:</strong></p><ul><li>Middlewares</li><li>Routing</li><li>Error Handling</li><li>Debugging</li></ul><p><strong>Additionally</strong></p><ul><li>Authentication</li><li>Authorization</li><li>Crypto</li></ul><h3>MySQL</h3><p><a href="https://www.mysql.com/">MySQL </a>is an open-source relational database management system. Its name is a combination of “My”, the name of co-founder Michael Widenius’s daughter, and “SQL”, the abbreviation for Structured Query Language</p><p><strong>This is not necessary but basic knowledge will definitely help you with the relational database management system.</strong></p><h3>MongoDB</h3><p><a href="https://www.mongodb.com/">MongoDB </a>is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas</p><p><strong>Must read:</strong></p><ul><li>Databases</li><li>collections</li><li>Schema</li><li>Aggregation</li></ul><h3><strong>Live Project and Deployments</strong></h3><p>Woohoo!!!!!!! 🥳 🥳</p><blockquote>You did it….. now it&#39;s time to develop something with a real-world solution.</blockquote><h4>Project Ideas</h4><ul><li>Blog (CRUD)</li><li>Todo App</li><li>Chat Bot</li><li>Quiz App</li></ul><h4>Congratulations!!! You’re now a <strong>full-stack developer</strong>. 😎</h4><p>You can now consider yourself as a <strong>one-man army</strong>. 🤝</p><p>Feel free to apply for a job.</p><p><strong>All the best &lt;Happy Code /&gt;</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa1389ac7cb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object destructuring in JavaScript]]></title>
            <link>https://hidaytrahman.medium.com/object-destructuring-in-javascript-feb8bd425bd8?source=rss-34cb46105eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/feb8bd425bd8</guid>
            <category><![CDATA[object-destructuring]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript30]]></category>
            <dc:creator><![CDATA[Hidayt Rahman]]></dc:creator>
            <pubDate>Tue, 15 Jun 2021 04:01:27 GMT</pubDate>
            <atom:updated>2021-06-15T04:01:27.948Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_tLXChoCNAbQzVnUifILg.png" /></figure><p>Object<strong> destructuring</strong> is a useful <strong>JavaScript</strong> feature to extract properties from <strong>objects</strong> and bind them to variables. What’s better, <strong>object destructuring</strong> can extract multiple properties in one statement, can access properties from nested <strong>objects</strong>, and can set a default value if the property doesn’t exist.</p><p>Normally, we access objects with the key. Nothing new :)</p><pre>object.key</pre><p>Let’s have quick look at the example below:</p><pre>// object (Literal)<br>var user = {<br>    name: &quot;Hidayt&quot;,<br>    city: &quot;Delhi&quot;,<br>    type: &quot;Admin&quot;<br>}</pre><pre>console.log(user.name); // Hidayt</pre><p>We have a user object which contains user info (name, city, type). We will be using this example for object destructuring.</p><h3>Object destructuring</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*f0chEeG4RhjGiMgihO2N6A.png" /><figcaption>object destructuring</figcaption></figure><p>Let’s use object destructuring and Destructuring the object into our variables.</p><pre>// object destructuring<br><strong>var {name, city, type} = user;</strong></pre><pre>// access as a normal variable<br>console.log(name); // Hidayt<br>console.log(city); // Delhi<br>console.log(type); // Admin</pre><p>You can access <strong>name </strong>directly instead of <strong>user.name</strong></p><blockquote>Now it can be accessible as a normal variable.</blockquote><p><strong>Destructuring makes code tidy and easy to access.</strong></p><p>&lt;Happy Code /&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=feb8bd425bd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>