<?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: Gyanendra Kumar Knojiya</title>
    <description>The latest articles on DEV Community by Gyanendra Kumar Knojiya (@gyanendraknojiya).</description>
    <link>https://dev.to/gyanendraknojiya</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%2F746928%2Fd26d3797-0934-456d-b87b-089b57c57ff4.png</url>
      <title>DEV Community: Gyanendra Kumar Knojiya</title>
      <link>https://dev.to/gyanendraknojiya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gyanendraknojiya"/>
    <language>en</language>
    <item>
      <title>Face detection and blink counter</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Fri, 27 Jan 2023 11:12:11 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/face-detection-and-blink-counter-3278</link>
      <guid>https://dev.to/gyanendraknojiya/face-detection-and-blink-counter-3278</guid>
      <description>&lt;p&gt;Face detection and blink counter&lt;br&gt;
The Face and Eye Detector and Eye Blink Counter is a powerful tool created using Python and OpenCV. This tool can detect faces and eyes within an image or video stream and track the number of times a person blinks their eyes.&lt;/p&gt;

&lt;p&gt;Using Python and OpenCV, the tool first detects faces within an image or video stream using Haar cascades. Once a face is detected, the tool then uses a similar process to detect eyes within the face using Haar cascades. The tool then uses a combination of image processing techniques, such as edge detection and thresholding, to determine if the person's eyes are open or closed.&lt;/p&gt;

&lt;p&gt;The Eye Blink Counter then keeps track of the number of times a person blinks their eyes, which can be useful in a variety of applications. For example, in a video conferencing app, this feature can be used to detect when a user is paying attention and alert them if they seem to be drifting off. In a security system, this feature can be used to detect when a person's eyes are closed for an extended period, which could indicate that they are sleeping or unconscious.&lt;/p&gt;

&lt;p&gt;to run: python main.py&lt;/p&gt;

&lt;p&gt;visit: &lt;a href="https://github.com/gyanendraknojiya/Face-detection-and-blink-counter" rel="noopener noreferrer"&gt;https://github.com/gyanendraknojiya/Face-detection-and-blink-counter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2i0csdu8n10dxtw7pq3b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2i0csdu8n10dxtw7pq3b.png" alt="Image description" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>documentation</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Youtube Channels You Should Follow as a Dev</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Fri, 14 Jan 2022 19:23:23 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/youtube-channels-you-should-follow-as-a-dev-4dm8</link>
      <guid>https://dev.to/gyanendraknojiya/youtube-channels-you-should-follow-as-a-dev-4dm8</guid>
      <description>&lt;h4&gt;
  
  
  20 famous YouTube channels you should watch in 2022
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuhpc7wsmh8spm2zuasel.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuhpc7wsmh8spm2zuasel.jpeg" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the fast evolution of web technologies, it is critical to learn and nurture fresh knowledge about these technologies. As a result, in today's essay, I'll reveal 20 famous YouTube channels in 2021 so that we may learn to program ourselves and supplement our income. Incorporate fresh information into the website creation process. Let's go together and find out!&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;a href="https://www.youtube.com/channel/UC29ju8bIPH5as8OGnQzwJyA" rel="noopener noreferrer"&gt;Traversy Media&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;Traversy Media is a YouTube channel that specializes in delivering classes on new technologies as well as web development programming languages. This channel, in my opinion, is ideal for individuals who are just beginning to learn a new programming language with each course and highly practical examples. This channel offers a wealth of information about web programming languages and technologies such as React, VueJS, NodeJS, HTML, CSS, Python, and more. Also, offer your life experiences, perspectives, and solutions to difficulties that a coder may face.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. &lt;a href="https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg" rel="noopener noreferrer"&gt;The Net Ninja&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;The Net Ninja is a YouTube channel dedicated to delivering courses for web developers such as Modern JavaScript, Node.js, React, Vue.JS, and more, with content updated regularly. It was established by Mr. Shaun, who has over 12 years of programming expertise and a strong interest in Javascript. I believe it will give a wealth of information on new technologies that will help you create your website.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. &lt;a href="https://www.youtube.com/channel/UCyU5wkjgQYGRB0hIHMwm2Sg" rel="noopener noreferrer"&gt;Level Up Tuts&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;Level Up Tuts is a YouTube channel founded in 2012 by Scott Tolinski and Ben Schaaf to teach people how to code. The goal is to educate you on how to solve common programming problems by providing instructional videos ranging from beginner to expert. With online technologies mostly focusing on CMS (Content Management System), Sketch, and React... With new programmers' lessons, such as phrases How to design your website, often asked questions in interviews... Programming skills and a strong desire to learn Javascript. I believe it will give a wealth of information on new technologies that will help you create your website.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. &lt;a href="https://www.youtube.com/channel/UCoebwHSTvwalADTJhps0emA" rel="noopener noreferrer"&gt;Wes Bos&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;Wes Bos is a place where you can discover lessons that are primarily focused on the front-end side of things. With technologies such as Javascript, HTML, CSS, React.js, Node, Express, Lambda, Gatsby, and Next.js, we improve our abilities in interface construction, web design, and programming. I'm quite impressed with the 30-day Javascript programming challenge series since it helps you comprehend and put the language's capabilities into reality.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. &lt;a href="https://www.youtube.com/channel/UClb90NQQcskPUGDIXsQEz5Q" rel="noopener noreferrer"&gt;Dev Ed&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;Dev Ed assists you in adding actual expertise about development, web design, programming hints, and relevant topics surrounding the author to your resume. With Javascript-focused courses, React, CSS, and Nodejs... What I appreciate the most is the in-depth, humorous, and simple explanation of the difficulties. Programming themes are frequently inquired about as crucial things that programmers should be aware of and should select. What front-end framework should I choose for web development...&lt;/p&gt;

&lt;h2&gt;
  
  
  6. &lt;a href="https://www.youtube.com/channel/UClb90NQQcskPUGDIXsQEz5Q" rel="noopener noreferrer"&gt;Programming with Mosh&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;Programming with Mosh is a channel created by Mosh Hamedani to share his programming expertise with the rest of the world. Python, Javascript, and C# are three programming languages that are primarily focused. In addition, this channel offers thorough video courses for both front-end and back-end web programming, as well as films that address queries for novice programmers regarding common programming and daily life concerns.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. &lt;a href="https://www.youtube.com/channel/UCJbPGzawDH1njbqV-D5HqKw" rel="noopener noreferrer"&gt;TheNewBoston&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;TheNewBoston is a channel that began broadcasting in 2008 and now has over 2.4 million members. With over 4,200 video tutorials, this channel delivers a wide spectrum of technical courses in programming, web design, networking, computer security, development of phone apps... Although this channel has not been updated with fresh content for a while, I believe you will be able to learn a lot of valuable and fascinating things about web development. And I hope that the author returns one day to provide more appealing courses to a wider audience.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. &lt;a href="https://www.youtube.com/channel/UCJbPGzawDH1njbqV-D5HqKw" rel="noopener noreferrer"&gt;programming knowledge&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;programming knowledge is a front-end and back-end technical channel. It is equipped with keys. For people who are just getting started with programming languages like Java, Python, React, Bootstrap, and ASP.NET, the course is broken into tiny chunks. This is one of the greatest Youtube channels for learning web programming, with over 1 million followers and dozens of courses.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. &lt;a href="https://www.youtube.com/channel/UCJbPGzawDH1njbqV-D5HqKw" rel="noopener noreferrer"&gt;edureka!&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;edureka! is a 2012 channel where the majority of the courses are taught by Indians. Bachelor's degree (but still speak English in the video). This is where you may learn more about several hot subjects nowadays, such as Big Data, Web Development, DevOps, Machine Learning, cloud computing certification, and so on. There is, however, one little drawback: some instructors claim that English is difficult to understand.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. &lt;a href="https://codingcafe.co.in/" rel="noopener noreferrer"&gt;CodingCafe&lt;/a&gt;:
&lt;/h2&gt;

&lt;p&gt;This is a site where you will find everyday articles on development. Gyanendra Knojiya created and maintains this website. This is a good website to bookmark if you want to learn full-stack programming.&lt;/p&gt;

&lt;h2&gt;
  
  
  More:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Learn Web Development: &lt;a href="https://bit.ly/3pPJg0d" rel="noopener noreferrer"&gt;https://bit.ly/3pPJg0d&lt;/a&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Learn Node JS: &lt;a href="https://bit.ly/3yWpDbd" rel="noopener noreferrer"&gt;https://bit.ly/3yWpDbd&lt;/a&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Learn Python: &lt;a href="https://bit.ly/30WE5Do" rel="noopener noreferrer"&gt;https://bit.ly/30WE5Do&lt;/a&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Learn Java: &lt;a href="https://bit.ly/3t5cGuI" rel="noopener noreferrer"&gt;https://bit.ly/3t5cGuI&lt;/a&gt;
&lt;/h3&gt;

</description>
      <category>youtube</category>
      <category>youtubechannelsforde</category>
      <category>learnprogramming</category>
      <category>bestyoutubechannel</category>
    </item>
    <item>
      <title>How can you make money online?</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Wed, 12 Jan 2022 17:51:09 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/how-can-you-make-money-online-1718</link>
      <guid>https://dev.to/gyanendraknojiya/how-can-you-make-money-online-1718</guid>
      <description>&lt;h4&gt;
  
  
  These methods might help you earn a good passive income.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2AZ9UDRKYSDZ0_gTp2" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2AZ9UDRKYSDZ0_gTp2" width="1024" height="576"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Who doesn’t like to make a little more cash? However, everyone has a job, and to make more money, we must devote additional time.&lt;/p&gt;

&lt;p&gt;Working extra hours regularly is nearly impossible, and it is also hazardous to your physical and emotional health.&lt;/p&gt;

&lt;p&gt;This is where passive income comes into play. It is possible to make money without actively working. There are several ways to generate passive income, but let us focus on how we might do it.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the definition of passive income?
&lt;/h3&gt;

&lt;p&gt;According to &lt;a href="https://en.wikipedia.org/wiki/Passive_income" rel="noopener noreferrer"&gt;Wikipedia&lt;/a&gt;,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Passive income is income that requires minimal labor to earn and maintain.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Passive income is money that you earn without having to perform a lot of “active” effort to keep it coming in. As an example, suppose you own a home and make money from the rental revenue. You may profit from rental revenue without actually working.&lt;/p&gt;

&lt;p&gt;Here are a few ideas for generating a solid passive income-&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Affiliate marketing
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2AOsm8qikuLcV-KJP0" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2AOsm8qikuLcV-KJP0" width="1024" height="683"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Website owners, social media “influencers,” and bloggers use affiliate marketing to promote a third-party product by providing a link to it on their site or social media account. Although Amazon is the most well-known affiliate partner, other big brands include eBay, Awin, and ShareASale. Instagram and TikTok, in particular, have grown in popularity among those trying to build a following and market their businesses.&lt;/p&gt;

&lt;p&gt;The site owner receives a commission when a visitor clicks on the link and purchases anything from the third-party affiliate. The fee might be anything from 5% to 20%, so you’ll need a lot of visitors to your site to make any money. However, if you can increase your audience or find a more lucrative sector (such as software, financial services, or fitness), you may make a lot of money.&lt;/p&gt;

&lt;p&gt;Learn affiliate marketing: &lt;a href="https://bit.ly/3K1ieMZ" rel="noopener noreferrer"&gt;https://bit.ly/3K1ieMZ&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Advertise on the back of your automobile
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AUJAFxHZlvpb5ar5j" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AUJAFxHZlvpb5ar5j" width="720" height="314"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;By Gabriel Gurrola on Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You might be able to supplement your income by just driving about town in your automobile. Inquire with a specialist advertising firm about your driving patterns, including where you drive and how many kilometers you drive. If you’re a good fit for one of their sponsors, the firm will “wrap” your automobile with adverts for free. Newer automobiles are preferred by agencies, and drivers must have a clean driving record.&lt;/p&gt;

&lt;p&gt;While you will have to get out and drive, if you are already doing so, this is a terrific opportunity to earn hundreds of dollars every month for little or no additional expense. Drivers might be compensated per mile driven.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Create a blog, website, or YouTube channel
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2A6rTluoRm--ssiZzE" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2A6rTluoRm--ssiZzE" width="720" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;By Corinne Kutz on Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Are you an expert in Bangkok travel? Are you a Minecraft aficionado? Swing dancing’s sultan? Turn your enthusiasm for a subject into a blog or a YouTube channel, and monetize it with advertisements or sponsorships. Find a popular topic, even if it’s a small niche, and learn everything there is to know about it. You’ll have to build out a content suite and attract an audience initially, but as you become renowned for your engaging material, it may provide a stable revenue stream over time.&lt;/p&gt;

&lt;p&gt;You may start with a free (or very low-cost) platform and then grow your audience with amazing content. The more distinctive your voice or area of expertise, the more likely you are to become “the” person to follow. Then you’ll be able to attract sponsors.&lt;/p&gt;

&lt;p&gt;Learn to blog: &lt;a href="https://bit.ly/3zOXdAl" rel="noopener noreferrer"&gt;https://bit.ly/3zOXdAl&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Household objects can be rented out
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AhKb-WkDtIEPTuNKE" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AhKb-WkDtIEPTuNKE" width="720" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;By PlanetCare on Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Here’s a different way to rent out an idle car: Begin with other home things that people may require but are accumulating dust in your garage. Lawnmowers? What are the most powerful tools? Tools and a toolbox for mechanics? Large coolers or tents? Look for high-value products that individuals only require for a brief period and where owning the item makes no sense. Then devise a method for customers to locate your goods as well as a method for them to pay for them.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Sell your creations on the internet
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2ADPAb5q17avkRUo4Y" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2ADPAb5q17avkRUo4Y" width="720" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;By UX Store on Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you have design skills, you may be able to turn them into a money-maker by selling items with your printed designs on them. Businesses such as CafePress and Zazzle allow you to sell items such as T-shirts, hats, mugs, and more with your designs. You can sell templates on Canva.&lt;/p&gt;

&lt;p&gt;You may start with your designs and observe what the market responds to before expanding. You might be able to take advantage of increased interest in a current event by designing a shirt that encapsulates the spirit of the times or at the very least a sardonic perspective on it. You may also use a service like Shopify to create your web storefront to sell your products.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Making a Software as a Service (SaaS) Product
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AbRE320RrmbAwngH-" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AbRE320RrmbAwngH-" width="720" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;By Joan Gamell on Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;“Software as a Service” is what Saas stands for. One of the finest business models is SaaS. You’ll create software and charge a monthly membership fee for it. Adobe software, Microsoft Office, Dropbox, and Slack are all examples of SaaS that we use often in our everyday lives.&lt;/p&gt;

&lt;p&gt;You can make a lot of money if you can create helpful things that people want. You don’t have to create such complicated software. You can create some simple yet helpful applications.&lt;/p&gt;

&lt;p&gt;Get started: &lt;a href="https://bit.ly/3zZ0ywH" rel="noopener noreferrer"&gt;https://bit.ly/3zZ0ywH&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Make a Real Estate investment
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2A65jwu3-BIuoL51TO" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2A65jwu3-BIuoL51TO" width="720" height="419"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;By Jason Dent on Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For almost as long as real estate has existed, real estate investing has been a well-established means for accumulating wealth. Real estate investment used to be a difficult business to get into, taking a lot of time, effort, and knowledge. Real estate investing apps, on the other hand, have simplified the process and made it possible to become a real estate mogul from the comfort of your own home.&lt;/p&gt;

&lt;p&gt;If owning properties is out of your price range, consider investing in a real estate investment trust, or REIT. These investments often pay out large dividends and track the stock market’s success. Your investment value will rise and fall in this manner, much like actual property, but it will be significantly easier to purchase and sell, and you will be able to diversify your portfolio by investing in multiple markets.&lt;/p&gt;

&lt;p&gt;Learn Estate Investing: &lt;a href="https://bit.ly/3Fk1PPR" rel="noopener noreferrer"&gt;https://bit.ly/3Fk1PPR&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Invest in stocks that pay out dividends
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2ArUCmMCIf3dSifhLQ" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2ArUCmMCIf3dSifhLQ" width="720" height="478"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;By Nicholas Cappello on Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You might gain a lot of money from your investments if you invest in stocks that pay out significant dividends to shareholders. Hopefully, the value of your shares will rise while you own them, allowing you to benefit from dividends as well as capital gains when you sell.&lt;/p&gt;

&lt;p&gt;Keep in mind that investing has a significant level of risk, and you might lose more than you put in. Before establishing an investing portfolio, always seek counsel.&lt;/p&gt;

&lt;p&gt;Learn To Trade The Stock Market: &lt;a href="https://bit.ly/33e05uv" rel="noopener noreferrer"&gt;https://bit.ly/33e05uv&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;You can’t predict how much passive money you’ll make. This can be beneficial or detrimental. You can make a lot more money than you think, but you might also make a lot less.&lt;/p&gt;

&lt;p&gt;But you’ll never know if you never try. You may make 10 times or 100 times more money than you do now. If you make enough money, you may not need to work your normal job!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you don’t find a way to make money while you sleep, you will work until you die. — Warren Buffett&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thank you for taking the time to read this article. Please leave your opinions in the comments area or contact me personally &lt;a href="https://gyanendra.tech/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Published on&lt;a href="https://codingcafe.co.in/journal/how-can-you-make-money-online/" rel="noopener noreferrer"&gt;CodingCafe&lt;/a&gt;&lt;/p&gt;

</description>
      <category>earnmoneyonline</category>
      <category>earnmoneyfromhome</category>
      <category>makemoneyonline</category>
      <category>money</category>
    </item>
    <item>
      <title>OnePlus 10 Pro has been launched with the most powerful Snapdragon processor</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Tue, 11 Jan 2022 00:00:00 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/oneplus-10-pro-has-been-launched-with-the-most-powerful-snapdragon-processor-53ng</link>
      <guid>https://dev.to/gyanendraknojiya/oneplus-10-pro-has-been-launched-with-the-most-powerful-snapdragon-processor-53ng</guid>
      <description>&lt;h4&gt;
  
  
  The OnePlus 10 Pro is available in three RAM and storage capacities, as well as two color options.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxxraqv6co61l7y20s8pt.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxxraqv6co61l7y20s8pt.jpeg" width="800" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The OnePlus 10 Pro, the Chinese manufacturer’s latest flagship smartphone, has finally been released in China. This follows months of speculation and rumors about OnePlus’ new flagship, which creates a lot of attention every year. We already know the majority of the smartphone’s specs before its formal release in the United States. The OnePlus 10 Pro is powered by Qualcomm’s newest flagship processor, the Snapdragon 8 Gen 1, and features an LTPO display panel with a variable refresh rate of up to 120Hz.&lt;/p&gt;

&lt;h3&gt;
  
  
  Price of OnePlus 10 Pro:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flx7y0fmqtmx6c13ichg6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flx7y0fmqtmx6c13ichg6.jpg" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The OnePlus 10 Pro is available in three configurations-&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;8GB RAM + 128GB storage&lt;/li&gt;
&lt;li&gt;8GB RAM + 256GB storage&lt;/li&gt;
&lt;li&gt;12GB RAM and 256GB storage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 8GB RAM + 128GB storage model costs about Rs 55,000, the 256GB storage variant costs about Rs 58,000, and the top-end variant costs about Rs 58,000. It is available in two colors- &lt;strong&gt;Volcanic Black&lt;/strong&gt; and &lt;strong&gt;Emerald Forest&lt;/strong&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;a href="https://amzn.to/3zJa1YZ" rel="noopener noreferrer"&gt;Buy on Amazon&lt;/a&gt;
&lt;/h4&gt;

&lt;h3&gt;
  
  
  Specification of OnePlus 10 Pro:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftl5pgn4dp1qo06anov9e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftl5pgn4dp1qo06anov9e.png" width="800" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In terms of features, the OnePlus 10 Pro has a 6.7-inch LTPO AMOLED display with a QHD+ resolution and a refresh rate of 120Hz. The OnePlus 10 Pro’s display can automatically vary its refresh rate from 1Hz to 120Hz. The Snapdragon 8 Gen 1 CPU powers the smartphone, which is combined with up to 12GB of RAM and up to 512GB of internal storage. The phone sports a 5,000mAh battery and 80W SuperVOOC rapid charging technology.&lt;/p&gt;

&lt;h3&gt;
  
  
  Camera of OnePlus 10 Pro:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvauc5w9ozrf0mtccw41k.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvauc5w9ozrf0mtccw41k.jpg" width="800" height="585"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The OnePlus 10 Pro comes with a triple rear camera arrangement that features a Sony IMX789 48-megapixel primary sensor, a Samsung 50-megapixel ultra-wide shooter, and an 8-megapixel tertiary shooter. This year’s camera system, like the previous one, was co-developed with Swedish camera manufacturer Hasselblad. The OnePlus 10 Pro comes with a 32-megapixel Sony IMX615 front-facing camera.&lt;/p&gt;

&lt;h3&gt;
  
  
  Connectivity and software of OnePlus 10 Pro:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcq0rnufzrrt1w2bt4drx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcq0rnufzrrt1w2bt4drx.jpg" width="800" height="585"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The OnePlus 10 Pro has Bluetooth v5.2, Wi-Fi, NFC, a USB Type-C port, and other connection features. ColorOS 12.1 is based on Android 12 and is pre-installed on the smartphone. The firm has informed consumers that the OnePlus 10 Pro would debut in India with OxygenOS 12.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at&lt;/em&gt; &lt;a href="https://codingcafe.co.in/journal/oneplus-10-pro-has-been-launched-with-the-most-powerful-snapdragon-processor/" rel="noopener noreferrer"&gt;&lt;em&gt;https://codingcafe.co.in&lt;/em&gt;&lt;/a&gt; &lt;em&gt;on January 11, 2022.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>oneplus10pro</category>
      <category>oneplus10pro5g</category>
      <category>oneplus</category>
      <category>oneplus10proprice</category>
    </item>
    <item>
      <title>How to Become a Backend Developer</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Mon, 03 Jan 2022 08:05:47 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/how-to-become-a-backend-developer-ja2</link>
      <guid>https://dev.to/gyanendraknojiya/how-to-become-a-backend-developer-ja2</guid>
      <description>&lt;h4&gt;
  
  
  Are you considering a career in backend development?
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3dweccktyi39hbi6f02k.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3dweccktyi39hbi6f02k.jpeg" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Companies require superstar back-end engineers to create full-fledged applications that go beyond the user interface.&lt;/p&gt;

&lt;p&gt;All of the app’s data is stored and processed on the backend. Back-end development refers to everything that goes behind the scenes. Databases, business logic, the API layer, and pretty much anything else that isn’t linked to the user interface are all part of it.&lt;/p&gt;

&lt;p&gt;A back-end developer’s annual pay in the United States is $120,654. Let’s have a look at what it takes to work as a Back-end Developer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Select a Programming Language:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AAwye0TXNVU9a6E9_" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2AAwye0TXNVU9a6E9_" width="720" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before you can begin constructing the backend, you must first decide which programming language you will use for your application. Depending on the programming language you employ, you’ll need a range of skills to become a competent back-end developer.&lt;/p&gt;

&lt;p&gt;The following are the top tech stacks to utilize as a backend developer:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The following components comprise the backend stack:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Programming languages:&lt;/strong&gt; These are used to write the logic for apps and websites. The codes connect the internet to a database. JavaScript, PHP, and Python are a few examples.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frameworks:&lt;/strong&gt; it provides application support based on a single programming language. Among the most popular frameworks are Laravel, Django, and Ruby on Rails. The majority of current apps are developed with an MVC framework.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web Servers:&lt;/strong&gt; Backend servers are required to manage client requests. The most popular web servers are Apache, Nginx, and Microsoft’s Internet Information Server (IIS).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Databases:&lt;/strong&gt; Most applications need the use of a SQL or NoSQL database. Databases that are widely used include MongoDB, PostgreSQL, and MySQL.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s take a deeper look at the four most often used back-end programming languages and the technology stack that supports them.&lt;/p&gt;

&lt;h3&gt;
  
  
  JavaScript Stack:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frl41qh8ul089yg4qwzn9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frl41qh8ul089yg4qwzn9.jpg" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;JavaScript is the most popular programming language for the sixth year in a row, according to a StackOverflow analysis. JavaScript is utilized to construct apps by numerous forward-thinking Fortune 500 businesses, including Facebook, Netflix, and PayPal. To work as a JavaScript back-end developer, you must have a deep grasp of JavaScript as a programming language. Once you’ve learned JavaScript, you’ll need the following abilities to complete the stack.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skills Required-&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Node.js:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiwnull5h8ayo3yk8bpoq.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiwnull5h8ayo3yk8bpoq.jpg" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the backend, JavaScript code is executed using the sophisticated open-source server environment Node.js. Before you begin learning node, you must be comfortable with JavaScript. Node.js is the way to go if you’re utilizing JavaScript to construct back-end apps. It is quite popular and has a sizable community following.&lt;/p&gt;

&lt;p&gt;Node is built to support asynchronous JavaScript development. It may be used for asynchronous operations such as file system reading and writing, database connection management, and web server queries. Node.js is a server-side programming language capable of interacting with databases and files.&lt;/p&gt;

&lt;p&gt;Learn Node JS: &lt;a href="https://bit.ly/3xLFffz" rel="noopener noreferrer"&gt;https://bit.ly/3xLFffz&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Python Stack:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfqajq9agchtduo80a66.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkfqajq9agchtduo80a66.jpg" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Python has long been a favorite programming language among developers. Because of its easy syntax, many schools are now teaching Python to pupils as their first programming language. Python is an excellent choice if your API requires a large number of computations.&lt;/p&gt;

&lt;p&gt;After learning Python, You can learn Django, flask, fast API to develop a webserver.&lt;/p&gt;

&lt;p&gt;Learn Python: &lt;a href="https://bit.ly/3pmDzYA" rel="noopener noreferrer"&gt;https://bit.ly/3pmDzYA&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  C# Stack:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx4s6gn9oydhoeom10iy4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx4s6gn9oydhoeom10iy4.jpg" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The C# programming language is used by businesses that employ Microsoft technology. To work as a C# back-end developer, you must have a good grasp of C# as a programming language. After you’ve learned C#, you’ll need a few additional skills to create a web application.&lt;/p&gt;

&lt;p&gt;Learn C#: &lt;a href="https://bit.ly/3mra4TN" rel="noopener noreferrer"&gt;https://bit.ly/3mra4TN&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Java Stack:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzi0pv2jmciuqepwteyf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgzi0pv2jmciuqepwteyf.jpg" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Java is a prominent programming language used by firms such as Google and Amazon in a range of backend development projects. Is Object-Oriented Programming something you love doing? If you answered yes, you should use Java as the programming language for your backend stack.&lt;/p&gt;

&lt;p&gt;Learn Java: &lt;a href="https://bit.ly/3mt4obT" rel="noopener noreferrer"&gt;https://bit.ly/3mt4obT&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Select a Database:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2ApIG1k0RzKFP0eWtc" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F720%2F0%2ApIG1k0RzKFP0eWtc" width="720" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Regardless of the programming language you choose for your back-end, a database will always be necessary. Any application you write will necessitate the use of a database. This is where the data is maintained. The two most prevalent database types are SQL and NoSQL.&lt;/p&gt;

&lt;p&gt;SQL databases are becoming more popular. SQL-driven databases are utilized by companies such as Facebook, Netflix, Uber, and Airbnb, to name a few. To be a good back-end developer, you must have a thorough understanding of SQL.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at&lt;/em&gt; &lt;a href="https://vocal.media/journal/how-to-become-a-backend-developer" rel="noopener noreferrer"&gt;&lt;em&gt;https://vocal.media&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>backenddevelopment</category>
      <category>technology</category>
      <category>backenddeveloper</category>
      <category>programming</category>
    </item>
    <item>
      <title>Best Books for Software Engineers</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Thu, 30 Dec 2021 07:06:19 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/best-books-for-software-engineers-2mj1</link>
      <guid>https://dev.to/gyanendraknojiya/best-books-for-software-engineers-2mj1</guid>
      <description>&lt;p&gt;List of books that provide a roadmap for software engineers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6i2f1q4txounlak15b15.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6i2f1q4txounlak15b15.jpeg" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’d want to share some links as well as a brief synopsis of each book on the roadmap. This should make it simple to locate a replacement or simply skip.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. &lt;a href="https://amzn.to/3H6ttRH" rel="noopener noreferrer"&gt;Building a Career in Software&lt;/a&gt; by Daniel Heller:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://amzn.to/3H6ttRH" rel="noopener noreferrer"&gt;Building a Career in Software: A Comprehensive Guide to Success in the Software Industry&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is a problem with software engineering education: colleges and boot camps train aspiring engineers to write code, but then leave grads to learn the many supporting tools necessary to survive in actual software organizations. Building a Career in Software is the answer, a comprehensive guide to the essential skills that instructors don’t need and professionals never think to teach: landing jobs, selecting teams and projects, asking good questions, running meetings, going on-call, debugging production problems, technical writing, making the most of a mentor, and much more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What You Will Discover:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Learn about every major non-technical aspect of professional programming, as well as numerous critical technical practices required for the move from student to professional.&lt;/li&gt;
&lt;li&gt;Develop relationships with your boss.&lt;/li&gt;
&lt;li&gt;Improve your communication skills, such as technical writing, excellent questioning, and public speaking.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Who Should Read This Book?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;All graduates of computer science or software engineering university programs, as well as all software engineering boot camp participants, are software engineers who are either early in their careers or are ready to make the shift to the professional sector.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;a href="https://amzn.to/3HbrITh" rel="noopener noreferrer"&gt;The Passionate Programmer&lt;/a&gt; by Chad Fowler:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://amzn.to/3HbrITh" rel="noopener noreferrer"&gt;The Passionate Programmer: Creating a Remarkable Career in Software Development&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In today’s IT climate, success necessitates viewing your profession as a commercial venture. This book will teach you how to become an entrepreneur and steer your career in the direction of your choice. You’ll learn how to create your software development profession step by step, just like you would if you were creating, promoting, and selling a product. After all, your abilities are a product in and of themselves.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;a href="https://amzn.to/3eAylmd" rel="noopener noreferrer"&gt;You Don’t Know JS&lt;/a&gt; by Kyle Simpson:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://amzn.to/3eAylmd" rel="noopener noreferrer"&gt;https://amzn.to/3eAylmd&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No matter how much JavaScript expertise you have, chances are you don’t completely comprehend the language. “You Don’t Know JS” is a book series that delves further into JavaScript kinds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This series’ novels are as follows:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You Don’t Know JS: On the Rise&lt;/li&gt;
&lt;li&gt;You Don’t Understand JS: Types and Grammar&lt;/li&gt;
&lt;li&gt;You Don’t Understand JS: ES6 and Beyond&lt;/li&gt;
&lt;li&gt;You’re Not a JS Expert: Async and Performance&lt;/li&gt;
&lt;li&gt;You’re Not a JS Expert: This and Object Prototypes&lt;/li&gt;
&lt;li&gt;You’ve Never Heard of JS: Scope and Closures&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  4. &lt;a href="https://amzn.to/3pmUxWO" rel="noopener noreferrer"&gt;Elements of Computing Systems&lt;/a&gt; by Noam Nisan, Shimon Schocken:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://amzn.to/3pmUxWO" rel="noopener noreferrer"&gt;https://amzn.to/3pmUxWO&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The easiest way to learn how computers operate is to construct one from the ground up, and this textbook walks students through twelve chapters and tasks that gradually develop the hardware platform and software hierarchy for a small but powerful computer system. Learners receive hands-on experience with hardware, architecture, operating systems, programming languages, compilers, data structures and algorithms, and software engineering along the process. Using this constructive method, the book introduces readers to a large amount of computer science knowledge while also synthesizing essential theoretical and applied approaches into a single constructive framework. The result is known as Nand to Tetris: a trip that begins with the most basic logic gate, named Nand and finishes with a general-purpose computer system capable of executing Tetris and any other application that comes to mind, twelve projects later.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. &lt;a href="https://amzn.to/3H9sCQs" rel="noopener noreferrer"&gt;Design Patterns&lt;/a&gt; by Gamma Erich, Helm Richard, Johnson Ralph, Vlissides John, Grady Booch:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://amzn.to/3H9sCQs" rel="noopener noreferrer"&gt;https://amzn.to/3H9sCQs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This might come up in an interview, but it’s more probable that you use patterns at work — and sometimes you don’t even realize you’re doing so. Memorizing all of them is probably not the ideal method, but understanding a couple and when to utilize them will improve the quality of your codebases.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. &lt;a href="https://amzn.to/3JhEhhK" rel="noopener noreferrer"&gt;Grokking Algorithms&lt;/a&gt; by Aditya Bhargava:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://amzn.to/3JhEhhK" rel="noopener noreferrer"&gt;Manning Publications Grokking Algorithms: An illustrated guide for programmers and other curious people&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cracking the Coding Interview is an excellent resource for algorithms, however, I believe it is primarily geared for engineers who need to master technical interviews. Grokking Algorithms is a shorter book with easier explanations. This will ultimately be required learning material (algorithms and data structures), whether for an on-the-job assignment or an interview.&lt;/p&gt;

&lt;p&gt;Thanks for reading this article. I hope you like this.&lt;/p&gt;

</description>
      <category>programmingbooks</category>
      <category>softwaredevelopment</category>
      <category>books</category>
      <category>booksrecommendation</category>
    </item>
    <item>
      <title>Highest Paid Programming Languages in 2022</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Thu, 16 Dec 2021 00:00:00 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/highest-paid-programming-languages-in-2022-21oe</link>
      <guid>https://dev.to/gyanendraknojiya/highest-paid-programming-languages-in-2022-21oe</guid>
      <description>&lt;h4&gt;
  
  
  Programming languages that are exploding right now and in the coming years to which you should pay attention.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2A25k8MWhkPqmyiXsZ" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2A25k8MWhkPqmyiXsZ" width="1024" height="576"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are a programmer, you should be aware of which programming languages will be in demand in the future. Every year, programming languages evolve, and as a result, the market for programming abilities evolves as well. Knowing what companies want today and in 2022 might assist you in making an informed decision about your future schooling or career path. Here are the highest-paying programming languages that you should be aware of!&lt;/p&gt;

&lt;h3&gt;
  
  
  1. &lt;a href="https://go.dev/" rel="noopener noreferrer"&gt;GO Lang&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F87tjiofe1ogiie15ij76.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F87tjiofe1ogiie15ij76.png" width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go is a simple, trustworthy, and efficient open-source programming language that allows you to create simple, dependable, and efficient programs. Google invented Go in 2009, and it has since been used by Uber, SoundCloud, Netflix, and Dropbox. This language was designed in the style of the well-known C programming language.&lt;/p&gt;

&lt;p&gt;Despite the fact that this programming language is still relatively young, it has quickly gained popularity among many coders due to its ease of use. It’s akin to Python and JavaScript, and it’s just as powerful as C++.&lt;/p&gt;

&lt;p&gt;Go programmers earn between 110,000 and110,000_and_115,000 per year on average.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;a href="https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html" rel="noopener noreferrer"&gt;Objective-C&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy00zkr762g1rpip3b4b2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy00zkr762g1rpip3b4b2.jpg" width="753" height="653"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This language was the first to allow the development of programs for macOS and iOS-based devices. Objective-C was derived from C and, like Go, incorporated Smalltalk-style messaging components. As a result, Objective-C is an object-oriented programming language. Swift, a more sophisticated version of the same language, took its place in 2014.&lt;/p&gt;

&lt;p&gt;Despite this, Objective-C is fairly popular since there are several IOS programs on the market that were created in it and require maintenance. As a result, if you hire an iOS developer, they will almost probably be familiar with Objective-C.&lt;/p&gt;

&lt;p&gt;Objective-C programmers earn between 100,000 and100,000_and_110,000 per year on average.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;a href="https://www.javascript.com/" rel="noopener noreferrer"&gt;JavaScript&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyolhdq1br50gbb4vx3da.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyolhdq1br50gbb4vx3da.png" width="367" height="137"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;JavaScript is the most popular programming language at the moment. It’s commonly used in web development, front-end design, and back-end programming. JavaScript programmers are in great demand and will remain so in 2022. With JS, you can create nearly anything, from a web application to a neural network.&lt;/p&gt;

&lt;p&gt;Previously, JavaScript was seen as a “minor language” that may be used to enhance websites. However, with the advent of NodeJS and its enhanced capability, JS has evolved into more than simply a supplement. It is now feasible to construct full-fledged applications or even a web browser using contemporary frameworks such as React or VueJS using JS.&lt;/p&gt;

&lt;p&gt;JavaScript programmers earn an annual salary of $100,000 on average.&lt;/p&gt;

&lt;p&gt;Learn JavaScript: &lt;a href="https://codingcafe.co.in/" rel="noopener noreferrer"&gt;https://codingcafe.co.in/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;a href="https://www.python.org/" rel="noopener noreferrer"&gt;Python&lt;/a&gt;:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5gkmh082vb5sh6qr4uo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5gkmh082vb5sh6qr4uo.png" width="300" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Python is a powerful programming language that may be used for scripting, data analysis, machine learning, and other tasks. As more firms use Python for their projects, the need for Python developers is rising. This language allows you to construct server-side web applications, desktop programs with graphical user interfaces, and machine learning algorithms. In addition to being easier to use for developing scripts than other programming languages such as C++ or Java, it is also a very effective tool that allows you to write fewer lines of code.&lt;/p&gt;

&lt;p&gt;Python programmers get paid an average of $110,000 per year.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. C/C++:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04jnmxq22olvxxk84fq0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04jnmxq22olvxxk84fq0.png" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Although C++ has been around since 1985, it remains one of the most popular programming languages today. Because of its ability to generate quick and efficient code, C++ is used to program many video games. C++ developers are in great demand now and will be in 2022.&lt;/p&gt;

&lt;p&gt;C++ can be found everywhere, including your computer, mobile phone, and toaster. As a result, you may create your microcontrollers and fully customized desktop apps, among other things. This is a lower level than the same Python or Javascript, which means it virtually directly talks with the computer and has tens of times the speed of its competitors.&lt;/p&gt;

&lt;p&gt;C++ programmers earn an annual salary of $105,000 on average.&lt;/p&gt;

&lt;p&gt;Thanks for reading this article.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at&lt;/em&gt; &lt;a href="https://codingcafe.co.in/post/highest-paid-programming-languages-in-2022/" rel="noopener noreferrer"&gt;&lt;em&gt;https://codingcafe.co.in&lt;/em&gt;&lt;/a&gt; &lt;em&gt;on December 16, 2021.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>technology</category>
      <category>programminglanguages</category>
      <category>careeradvice</category>
      <category>career</category>
    </item>
    <item>
      <title>18 Must-Visit Websites For Developers</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Fri, 10 Dec 2021 00:00:00 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/18-must-visit-websites-for-developers-4jl7</link>
      <guid>https://dev.to/gyanendraknojiya/18-must-visit-websites-for-developers-4jl7</guid>
      <description>&lt;h4&gt;
  
  
  DevDocs organizes API documentation into a single, searchable interface. You’ll discover documentation for a variety of programming languages and technologies all in one spot.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fupg4ppl3jp5qhfsn3m5q.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fupg4ppl3jp5qhfsn3m5q.jpeg" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. &lt;a href="https://devdocs.io/" rel="noopener noreferrer"&gt;DevDocs&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;DevDocs organizes API documentation into a single, searchable interface. You’ll discover documentation for a variety of programming languages and technologies all in one spot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqsnl8v0o5loonja2n37t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqsnl8v0o5loonja2n37t.png" width="720" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;a href="https://ray.so/" rel="noopener noreferrer"&gt;ray.so&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This website allows you to take gorgeous code screenshots. It also has a dark mode and preset themes for several programming languages. You may also utilize its Visual Studio Code plugin.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frc1jde258429947m2qwq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frc1jde258429947m2qwq.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;a href="https://poet.so/" rel="noopener noreferrer"&gt;Poet.so&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This website is helpful for developers who want to share photographs of their tweets on social media. The website converts your tweet into a beautiful, editable design.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5cb0a8b5gd4czmc00tbk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5cb0a8b5gd4czmc00tbk.png" width="720" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;a href="https://roadmap.sh/" rel="noopener noreferrer"&gt;roadmap.sh&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This website offers roadmaps, guidelines, and other instructional information to help developers decide on a course of action and direct their learning. It is quite beneficial to both a beginning and a student who needs coaching.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdfq818by2fzdadll5bh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdfq818by2fzdadll5bh.png" width="720" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. &lt;a href="https://www.lambdatest.com/" rel="noopener noreferrer"&gt;LambdaTest&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;LambdaTest is a cloud-based cross-browser testing tool that allows you to test web applications across over 2000 browsers, operating systems, and devices. LambdaTest allows you to manually and automatically test cross-browser compatibility.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2415jp1ex88oyt6k0pl0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2415jp1ex88oyt6k0pl0.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  6. &lt;a href="https://app.daily.dev/" rel="noopener noreferrer"&gt;daily.dev&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;It is a site where you can find a plethora of interesting things to read on a regular basis. It displays the finest items from many platforms in your feed. By utilizing its extension, you may stay up to date with great material from numerous platforms straight in your browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fat0x4qde6l7320fbcuos.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fat0x4qde6l7320fbcuos.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  7. &lt;a href="https://www.showwcase.com/" rel="noopener noreferrer"&gt;Showwcase&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Showwcase is a new social networking platform designed just for coders to interact, establish community, and discover new possibilities. It’s a site similar to LinkedIn, but it’s solely for developers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F43tlraw0rbp4jhy6afqk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F43tlraw0rbp4jhy6afqk.png" width="720" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  8. &lt;a href="https://css-tricks.com/" rel="noopener noreferrer"&gt;CSS Tricks&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;You may improve your web development abilities by studying the fundamentals of CSS from this website. CSS is what makes web pages appear lovely if you didn’t already know.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqxjqa2m4u7j4c67pc2ql.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqxjqa2m4u7j4c67pc2ql.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  9. &lt;a href="https://www.medusajs.com/" rel="noopener noreferrer"&gt;Medusa&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;An open-source Shopify substitute. Medusa is a fast and adaptable open-source headless commerce engine. It’s completely free.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbqu2vbjjl8465ecm7902.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbqu2vbjjl8465ecm7902.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  10. &lt;a href="https://smartmockups.com/" rel="noopener noreferrer"&gt;smartmockups&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Why waste time learning how to use Photoshop? Smartmockups enable you to create stunning high-resolution mockups directly in your browser and across several devices using a single interface. The most rapid web-based mockup tool accessible, There is no prior experience or ability necessary, and the collection of professional mockups is always expanding.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc2bybuj9enbep93gkxkg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc2bybuj9enbep93gkxkg.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  11. &lt;a href="https://codebeautify.org/" rel="noopener noreferrer"&gt;Code Beautify&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Make your source code more beautiful and easier to read by beautifying it with code. AI technology will make your source code more appealing and easy to read.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1d9qrticer91dbtx4lsl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1d9qrticer91dbtx4lsl.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  12. &lt;a href="https://overapi.com/" rel="noopener noreferrer"&gt;overAPI&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;OverAPI is one of the most attractive and useful websites for developers. Cheatsheets for the majority of programming languages may be found on this website. Check it out right now.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtz7vrst8ryvctva3oh2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtz7vrst8ryvctva3oh2.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  13. &lt;a href="https://responsively.app/" rel="noopener noreferrer"&gt;Responsively&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This is an open-source website that speeds up web app development by 5 times. In a single window, all target screens are presented side by side. Reduces the amount of time it takes to grow!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyub5xgjy548t2czdd0ty.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyub5xgjy548t2czdd0ty.png" width="720" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  14. &lt;a href="https://colorhunt.co/" rel="noopener noreferrer"&gt;Color Hunt&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Colorhunt is a website that &lt;a href="https://colorhunt.co/allows" rel="noopener noreferrer"&gt;https://colorhunt.co/allows&lt;/a&gt; you to choose beautiful color palettes. Web designers would benefit greatly by selecting attractive and appealing colors, as well as accepting color recommendations from other artists and art projects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fph11dro9tsmyeb4m6gbx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fph11dro9tsmyeb4m6gbx.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  15. &lt;a href="https://carbon.now.sh/" rel="noopener noreferrer"&gt;Carbon&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This website will assist you in creating and sharing stunning source code pictures. You may also make adjustments to the photos. You should try it right now.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxjedwyhv6v2pw04xzkwf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxjedwyhv6v2pw04xzkwf.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  16. &lt;a href="https://pfpmaker.com/" rel="noopener noreferrer"&gt;Profile Pic Maker&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This website generates a professional and visually appealing profile for each photo in your Web developer portfolio. You will be exposed to social media as a developer. All you have to do is upload any of your photographs, and it will edit and improve them for you. Now is the time to give it a go.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdqot71auyzfgrhvx827w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdqot71auyzfgrhvx827w.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  17. &lt;a href="https://smalldev.tools/"&gt;Small Dev Tools&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This website provides free development tools such as encoders/decoders, HTML/CSS/Javascript formatters, minifiers, fake or test data generators, and more. You may also share codes with others.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk2qne1denxhi8x7pcyl9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk2qne1denxhi8x7pcyl9.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  18. &lt;a href="https://resume.io/" rel="noopener noreferrer"&gt;resume.io&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This website enables you to construct a professional resume. It will assist you in creating a professional resume by presenting you with tried-and-true templates. Give it a go.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqrtaehjxrmcul2o0694s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqrtaehjxrmcul2o0694s.png" width="720" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading this article.&lt;/p&gt;

&lt;p&gt;If you have any queries, feel free to contact me &lt;a href="https://gyanendra.tech/#contact" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Buy a coffee for me here &lt;a href="https://www.buymeacoffee.com/gyanknojiya" rel="noopener noreferrer"&gt;https://www.buymeacoffee.com/gyanknojiya&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at&lt;/em&gt; &lt;a href="https://codingcafe.co.in/post/18-mustvisit-websites-for-developers/" rel="noopener noreferrer"&gt;&lt;em&gt;https://codingcafe.co.in&lt;/em&gt;&lt;/a&gt; &lt;em&gt;on December 10, 2021.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>developertools</category>
      <category>development</category>
      <category>softwaredevelopment</category>
      <category>listings</category>
    </item>
    <item>
      <title>GoLang — Introduction | Create REST API with Auto Reload</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Thu, 02 Dec 2021 00:00:00 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/golang-introduction-create-rest-api-with-auto-reload-1jd9</link>
      <guid>https://dev.to/gyanendraknojiya/golang-introduction-create-rest-api-with-auto-reload-1jd9</guid>
      <description>&lt;h3&gt;
  
  
  GoLang — Introduction | Create REST API with Auto Reload
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Go is a High-Level, Strong ( you can not change variables type ) and Statically (All variables should be declared at compile time ) typed, complied programing language created by Google.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2AHwtRZZWW_4QPoQVj" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2AHwtRZZWW_4QPoQVj" width="1024" height="576"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Simplicity — Go have only very useful and necessary features.&lt;/li&gt;
&lt;li&gt;Fast Compile — Go have very little compile time.&lt;/li&gt;
&lt;li&gt;Garbage Collection — Garbage collection is a type of memory management that is automated.&lt;/li&gt;
&lt;li&gt;Built-In-Concurrency — The capacity for functions to operate independently of one another.&lt;/li&gt;
&lt;li&gt;Compiled into standalone binaries&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Gin — Web Development Framework
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Gin allows you to create Go web apps and microservices. It includes a set of frequently used capabilities (e.g., routing, middleware support, rendering, etc.)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In this article, I am going to create a simple GO server using Gin that will allow you to perform CRUD (Create, Read, Update, Delete) operations. I will also implement auto-reload so you do not need to restart the server again and again after making some changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create a server using Gin
&lt;/h3&gt;

&lt;p&gt;Steps are included in this process-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a GO project.&lt;/li&gt;
&lt;li&gt;Install and import Gin in the project.&lt;/li&gt;
&lt;li&gt;Add AIR config for auto-reload.&lt;/li&gt;
&lt;li&gt;Add get, post, put, and update APIs.&lt;/li&gt;
&lt;li&gt;Validate responses using postman.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So, we are going to start with the very first step-&lt;/p&gt;

&lt;h3&gt;
  
  
  Create a GO project
&lt;/h3&gt;

&lt;p&gt;First, we need to initialize GO in the project.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;go&lt;/span&gt; &lt;span class="n"&gt;mod&lt;/span&gt; &lt;span class="n"&gt;init&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;project&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will create a go.mod file in the root folder of ours project.&lt;/p&gt;

&lt;p&gt;Now, we can create main.go file to start writing code.&lt;/p&gt;

&lt;p&gt;To test everything working, paste hello word program in main.go file and run it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;package&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s"&gt;"fmt"&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello, World!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To run this code, simply command-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;go&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="k"&gt;go&lt;/span&gt;

&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="c"&gt;// expected output: Hello, World!_&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install and Import Gin in Project
&lt;/h3&gt;

&lt;p&gt;To install Gin, Go v1.13+ is required. To install gin, run-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;go&lt;/span&gt; &lt;span class="n"&gt;get&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="n"&gt;github&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;gonic&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installing, you can import gin in your main.go file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s"&gt;"github.com/gin-gonic/gin"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We also need net/http to send status.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s"&gt;"net/http"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Add AIR config for auto reload
&lt;/h3&gt;

&lt;p&gt;Create a  &lt;strong&gt;.air.conf&lt;/strong&gt; file in the root folder of the project and add this config in that file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;import _ &lt;span class="s2"&gt;"github.com/joho/godotenv/autoload"&lt;/span&gt;
root &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"."&lt;/span&gt;
tmp_dir &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"tmp"&lt;/span&gt;

&lt;span class="o"&gt;[&lt;/span&gt;build]
_# Just plain old shell command. You could use &lt;span class="sb"&gt;`&lt;/span&gt;make&lt;span class="sb"&gt;`&lt;/span&gt; as well._
cmd &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"go build -o ./tmp/main ."&lt;/span&gt;
_# Binary file yields from &lt;span class="sb"&gt;`&lt;/span&gt;cmd&lt;span class="sb"&gt;`&lt;/span&gt;._
bin &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"tmp/main"&lt;/span&gt;
_# Customize binary._
full_bin &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"APP_ENV=dev APP_USER=air ./tmp/main"&lt;/span&gt;
_# Watch these filename extensions._
include_ext &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"go"&lt;/span&gt;, &lt;span class="s2"&gt;"tpl"&lt;/span&gt;, &lt;span class="s2"&gt;"tmpl"&lt;/span&gt;, &lt;span class="s2"&gt;"html"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
_# Ignore these filename extensions or directories._
exclude_dir &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"assets"&lt;/span&gt;, &lt;span class="s2"&gt;"tmp"&lt;/span&gt;, &lt;span class="s2"&gt;"vendor"&lt;/span&gt;, &lt;span class="s2"&gt;"frontend/node_modules"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
_# Watch these directories &lt;span class="k"&gt;if &lt;/span&gt;you specified._
include_dir &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;[]&lt;/span&gt;
_# Exclude files._
exclude_file &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;[]&lt;/span&gt;
_# It&lt;span class="s1"&gt;'s not necessary to trigger build each time file changes if it'&lt;/span&gt;s too frequent._
delay &lt;span class="o"&gt;=&lt;/span&gt; 1000 _# ms_
_# Stop to run old binary when build errors occur._
stop_on_error &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;true
&lt;/span&gt;_# This log file places &lt;span class="k"&gt;in &lt;/span&gt;your tmp&lt;span class="se"&gt;\_&lt;/span&gt;dir._
log &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"air_errors.log"&lt;/span&gt;

&lt;span class="o"&gt;[&lt;/span&gt;log]
_# Show log time_
&lt;span class="nb"&gt;time&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;false&lt;/span&gt;

&lt;span class="o"&gt;[&lt;/span&gt;color]
_# Customize each part&lt;span class="s1"&gt;'s color. If no color found, use the raw app log._
main = "magenta"
watcher = "cyan"
build = "yellow"
runner = "green"

[misc]
_# Delete tmp directory on exit_
clean_on_exit = true
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, you have to run your project using AIR. So you need to command-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="n"&gt;air&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="k"&gt;go&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Add GET, POST, PUT, and UPDATE APIs
&lt;/h3&gt;

&lt;p&gt;I have added some sample data for this. You can copy it from here &lt;a href="https://github.com/gyanendraknojiya/GO-Gin-REST-API#get-all-users" rel="noopener noreferrer"&gt;https://github.com/gyanendraknojiya/GO-Gin-REST-API#get-all-users&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a main function in main.go file, and run your server a port 8080 (Port can be any).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
    &lt;span class="n"&gt;router&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Default&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"localhost:8080"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can see the server running. We need to create user json.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="s"&gt;`json:"id"`&lt;/span&gt;
    &lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="s"&gt;`json:"name"`&lt;/span&gt;
    &lt;span class="n"&gt;UserName&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="s"&gt;`json:"userName"`&lt;/span&gt;
    &lt;span class="n"&gt;Email&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="s"&gt;`json:"email"`&lt;/span&gt;
    &lt;span class="n"&gt;Phone&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="s"&gt;`json:"phone"`&lt;/span&gt;
    &lt;span class="n"&gt;Website&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="s"&gt;`json:"website"`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Leanne Graham"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;UserName&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Bret"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Email&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Sincere@april.biz"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Phone&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"1-770-736-8031 x56442"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Website&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"hildegard.org"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Ervin Howell"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;UserName&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Antonette"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Email&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"Shanna@melissa.tv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Phone&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"010-692-6593 x09125"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;Website&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"anastasia.net"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add all APIs in main function-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;router&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Default&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GET&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;getAllUsers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GET&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/user/:id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;getUserById&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;POST&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/addUser"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;addUser&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;PUT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/updateUser"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DELETE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"/deleteUser"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;deleteUser&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;router&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"localhost:8080"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;getAllUsers&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;getAllUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusOK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;getUserById&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;getUserById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Param&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="k"&gt;range&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusOK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusNotFound&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;H&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"user not found!"&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;addUser&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;addUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;newUser&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BindJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;newUser&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="no"&gt;nil&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;newUser&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusOK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;updateUser&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BindJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="no"&gt;nil&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;H&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"id is missing!"&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="k"&gt;range&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Email&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Email&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Email&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Phone&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Phone&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Phone&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Website&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Website&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;updateUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Website&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;
            &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusOK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;H&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"id is not found!"&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;deleteUser&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;RemoveIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;...&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;deleteUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;deleteUser&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BindJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;deleteUser&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="no"&gt;nil&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Println&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;deleteUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;H&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"id is missing!"&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="k"&gt;range&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;deleteUser&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ID&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;RemoveIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StatusOK&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IndentedJSON&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;400&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gin&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;H&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"id is not found!"&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s all. We can now utilize these APIs to get, add, update, and remove data from the server.&lt;/p&gt;

&lt;p&gt;Source code: &lt;a href="https://github.com/gyanendraknojiya/GO-Gin-REST-API" rel="noopener noreferrer"&gt;https://github.com/gyanendraknojiya/GO-Gin-REST-API&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Buy me a coffee here &lt;a href="https://www.buymeacoffee.com/gyanknojiya" rel="noopener noreferrer"&gt;https://www.buymeacoffee.com/gyanknojiya&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have any queries, feel free to contact me &lt;a href="https://gyanendra.tech/#contact" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at&lt;/em&gt; &lt;a href="https://codingcafe.co.in/post/golang-introduction-create-rest-api-with-auto-reload/" rel="noopener noreferrer"&gt;&lt;em&gt;https://codingcafe.co.in&lt;/em&gt;&lt;/a&gt; &lt;em&gt;on December 2, 2021.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gin</category>
      <category>gowebdevelopment</category>
      <category>ginwebframework</category>
      <category>golanguage</category>
    </item>
    <item>
      <title>Higher-Order Functions, Callback Function, and Closures in JavaScript</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Sat, 20 Nov 2021 00:00:00 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/higher-order-functions-callback-function-and-closures-in-javascript-25kn</link>
      <guid>https://dev.to/gyanendraknojiya/higher-order-functions-callback-function-and-closures-in-javascript-25kn</guid>
      <description>&lt;p&gt;We’ll look at the HOF (Higher-order function), Callbacks, and the wacky JavaScript Closures in this post, which have all made us pull our hair out at some point throughout our learning path.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Higher-Order Functions(HOF)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9a6bbvypjewelwnh33of.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9a6bbvypjewelwnh33of.jpg" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Functions can be assigned to variables in Javascript in the same manner that strings, numbers, booleans, and arrays can. They can be supplied as arguments to other functions or returned from them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A function that accepts functions as parameters and/or returns a function is referred to as a “higher-order function.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;For example&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const isEven = (x) =&amp;gt; x &amp;gt; 0 &amp;amp;&amp;amp; x % 2 === 0

const logger = (Fn, Num) =&amp;gt; {
  const isEven = Fn(Num)
  console.log(isEven)
}

logger(isEven, 6)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because it accepts the isEven function as an input, “logger” is the Higher-Order Function in the preceding excerpt.&lt;/p&gt;

&lt;p&gt;Some JavaScript methods like map, filter, reduce, etc are higher-order functions.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Callback Function
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxaofwyqfrd0bb8i6sk0m.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxaofwyqfrd0bb8i6sk0m.jpg" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A callback is a function that is supplied as an input to another function and then runs later. isEven is the callback function in the last code snippet.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A callback is a function that is sent to another function as an argument.&lt;/p&gt;

&lt;p&gt;After another function has been completed, a callback function can be called.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;For example&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const logger = (output) =&amp;gt; console.log(output)

const add = (x, y, callback) =&amp;gt; {
  const z = x + y
  logger(z)
}

add(51, 96, logger)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this code snippet, the logger is a callback function that is passed to add function as an argument and called after adding two numbers to display the result.&lt;/p&gt;

&lt;p&gt;Async JavaScript can be handled via callback functions.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Closures
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx99ixnx3n8au8w7abp3z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx99ixnx3n8au8w7abp3z.png" width="800" height="570"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Variables in JavaScript can be in the local or global scope. Closures can be used to make global variables local (private).&lt;/p&gt;

&lt;p&gt;A closure is a function that continues to have access to the outer variables after the outer function has been returned.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let countryCode = '+1'

function getPhoneNumber() {
  let phone = '2354687262'
  function encryptedPhone() {
    _// A closure function_
    let encryptedNumber = phone * 5
    return countryCode + encryptedNumber
  }

  return encryptedPhone
}
getPhoneNumber()() _// +111773436310_
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The closure function encrypted phone in the following code snippet has access to the outer variables (countryCode and phone).&lt;/p&gt;

&lt;p&gt;Because of Lexical Scoping, closures are possible in JS. If a variable is not discovered in the local scope, it is searched in the outer scope, and so on until it reaches the global scope.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbptc1hikcpdkc7h7aioc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbptc1hikcpdkc7h7aioc.png" width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: Except for functions created using the “new Function” syntax, every function in JavaScript is a closure.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thanks for reading this article.&lt;/p&gt;

&lt;p&gt;Buy me a coffee here &lt;a href="https://www.buymeacoffee.com/gyanknojiya" rel="noopener noreferrer"&gt;https://www.buymeacoffee.com/gyanknojiya&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have any queries, feel free to contact me &lt;a href="https://gyanendra.tech/#contact" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at&lt;/em&gt; &lt;a href="https://codingcafe.co.in/post/higher-order-functions-callback-function-and-closures-in-javascript/" rel="noopener noreferrer"&gt;&lt;em&gt;https://codingcafe.co.in&lt;/em&gt;&lt;/a&gt; &lt;em&gt;on November 20, 2021.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>closuresfunctions</category>
      <category>higherorderfunction</category>
      <category>callback</category>
    </item>
    <item>
      <title>JavaScript — All About Local Storage, Session Storage, and Cookies</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Thu, 18 Nov 2021 00:00:00 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/javascript-all-about-local-storage-session-storage-and-cookies-f47</link>
      <guid>https://dev.to/gyanendraknojiya/javascript-all-about-local-storage-session-storage-and-cookies-f47</guid>
      <description>&lt;h3&gt;
  
  
  JavaScript — All About Local Storage, Session Storage, and Cookies
&lt;/h3&gt;

&lt;h4&gt;
  
  
  What are the advantages and disadvantages of localStorage, sessionStorage, session, and cookies from a technological standpoint, and when should we utilize one over the other?
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2A-AAFYx31jyYcpsj0" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2A-AAFYx31jyYcpsj0" width="1024" height="576"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the client-side, today’s Web applications process massive volumes of data. They may even need to be able to work without internet access. These requirements help to explain why client-side data storage is so important for next-generation Web-based applications.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codingcafe.co.in/post/javascript-all-about-local-storage-session-storage-and-cookies/" rel="noopener noreferrer"&gt;https://codingcafe.co.in/post/javascript-all-about-local-storage-session-storage-and-cookies/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Client-side storage?
&lt;/h3&gt;

&lt;p&gt;Client-side storage, as the name implies, allows the user to store data on the client (i.e. the user’s browser). And Server-side storage, on the other hand, keeps data on the server (i.e. an external database).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fymxzp7eznkzr1s4cyqcj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fymxzp7eznkzr1s4cyqcj.png" width="800" height="564"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The image is taken from Wikimedia&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Nowadays, Pages are dynamically loaded in many browsers. This means they retrieve data from the server and render it in the browser using server-side storage. Client-side storage can, nevertheless, be advantageous in some circumstances.&lt;/p&gt;
&lt;h3&gt;
  
  
  When does it come in handy?
&lt;/h3&gt;

&lt;p&gt;The following use scenarios may benefit from client-side storage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data may be accessed quickly and without the need for a network.&lt;/li&gt;
&lt;li&gt;User preferences can be saved (i.e. font size, theme, etc.)&lt;/li&gt;
&lt;li&gt;Save the previous activity’s session (i.e. auth token, user details, shopping cart, etc.)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Client-Side Storage Types
&lt;/h3&gt;

&lt;p&gt;Here are types of client-side storage-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cookies&lt;/li&gt;
&lt;li&gt;Local Storage&lt;/li&gt;
&lt;li&gt;Session Storage&lt;/li&gt;
&lt;li&gt;Indexed DB&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  1. What is the localStorage?
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;localStorage is a feature that allows JavaScript sites and applications to save key-value pairs in a web browser without having to worry about them expiring. This indicates that the data stored in the browser will survive the closing of the browser window.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4&gt;
  
  
  Where we find this stored data
&lt;/h4&gt;

&lt;p&gt;Web storage data is saved in an SQLite file in a subdirectory in the user’s profile in Google Chrome. On Windows PCs, the subdirectory is stored at &lt;strong&gt;\AppData\Local\Google\Chrome\User Data\Default\Local Storage&lt;/strong&gt; whereas, on macOS, it is found at &lt;strong&gt;~/Library/Application Support/Google/Chrome/Default/Local Storage&lt;/strong&gt;.&lt;/p&gt;
&lt;h4&gt;
  
  
  Methods for adding and removing data from Local Storage
&lt;/h4&gt;

&lt;p&gt;There are five different ways to use localStorage in your web applications:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;localStorage.setItem('Key', 'value')
localStorage.getItem('Key')
localStorage.removeItem('Key')
localStorage.clear() _// Clear all localStorage_
localStorage.key() _// Pass a number to retrieve the key of a localStorage_
Object.keys(localStorage); find all keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. What is Session Storage?
&lt;/h3&gt;

&lt;p&gt;The Session Storage saves data in the form of Keys and Values for a single session. When the browser is closed, the data stored in Session Storage will be removed.&lt;/p&gt;

&lt;h4&gt;
  
  
  Methods for adding and removing data from session storage
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sessionStorage.setItem('Key', 'Value') _// Save data to sessionStorage_
sessionStorage.getItem('Key') _// Get saved data from sessionStorage_
sessionStorage.removeItem('Key') _// Remove saved data from sessionStorage_
sessionStorage.clear() _// Remove all saved data from sessionStorage_
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Local Storage vs Session Storage
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0278rolsxjk8o2og2y06.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0278rolsxjk8o2og2y06.png" width="623" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The expiration date is the difference between Local Storage and Session Storage-&lt;/p&gt;

&lt;p&gt;localStorage data will survive until&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deleted by function (clear or remove).&lt;/li&gt;
&lt;li&gt;The browser data is cleared by the user.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the user is using incognito or private browsing, Local Storage data will be lost.&lt;/p&gt;

&lt;p&gt;When a tab or browser is closed, the session storage is removed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F47q07wic0ddpt5ouvfek.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F47q07wic0ddpt5ouvfek.png" width="800" height="187"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Cookies
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2ABrtCKECWSlYJIPtd" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1024%2F0%2ABrtCKECWSlYJIPtd" width="1024" height="683"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Image Source Unsplash&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A cookie is a term that most people are familiar with. They’re the most common sort of client-side storage, and they’ve been there since the dawn of the internet.&lt;/p&gt;

&lt;p&gt;The server sends cookies to the client, which are subsequently stored on the client. When the client makes another request to the server, the saved cookie can be retrieved and delivered back to the server. Cookies are commonly used to track user statistics, manage account sessions, and save user information.&lt;/p&gt;

&lt;p&gt;Cookies, on the other hand, are the oldest types of client-side storage, and as such, they have several security and storage constraints, making them an undesirable option for storing client-side&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.cookie = 'username=Gyanendra'
document.cookie = 'username=Gyanendra; expires=any upcoming date and time; path=/'
document.cookie = 'username=Gyanendra; expires=passed date and time; path=/;'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Written by &lt;a href="https://gyanendra.tech/" rel="noopener noreferrer"&gt;Gyanendra Knojiya&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Buy a coffee for me here &lt;a href="https://www.buymeacoffee.com/gyanknojiya" rel="noopener noreferrer"&gt;https://www.buymeacoffee.com/gyanknojiya&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at&lt;/em&gt; &lt;a href="https://codingcafe.co.in/post/javascript-all-about-local-storage-session-storage-and-cookies/" rel="noopener noreferrer"&gt;&lt;em&gt;https://codingcafe.co.in&lt;/em&gt;&lt;/a&gt; &lt;em&gt;on November 18, 2021.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cookies</category>
      <category>localstorage</category>
      <category>sessionstorage</category>
      <category>javascript</category>
    </item>
    <item>
      <title>10 Awesome JavaScript One-Liners</title>
      <dc:creator>Gyanendra Kumar Knojiya</dc:creator>
      <pubDate>Mon, 08 Nov 2021 19:34:38 +0000</pubDate>
      <link>https://dev.to/gyanendraknojiya/10-awesome-javascript-one-liners-3lo2</link>
      <guid>https://dev.to/gyanendraknojiya/10-awesome-javascript-one-liners-3lo2</guid>
      <description>&lt;h4&gt;
  
  
  I’d like to share some mind-blowing javascript one-liners with you today that can save you a lot of time.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgep5lgncvssz7mnqx1ol.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgep5lgncvssz7mnqx1ol.jpeg" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Good day, everyone! Gyanendra here, 2 years of experience as a Full Stack developer. I’d like to share some mind-blowing javascript one-liners with you today.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Reverse a string
&lt;/h2&gt;

&lt;p&gt;We can split a string. As a result, we’ll have an array. We can revert this array and join to get a string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;str&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;codingcafe&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="nx"&gt;str&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;reverse&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// efacgnidoc&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Get query parameters from the URL
&lt;/h2&gt;

&lt;p&gt;To obtain query parameters, we must first divide the URL at “?” and then replace &lt;strong&gt;“=” **with&lt;/strong&gt; “:”** and &lt;strong&gt;“&amp;amp;” *&lt;em&gt;with *&lt;/em&gt;“,”.&lt;/strong&gt; As we did here-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getQueryParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;decodeURI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;?&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
  &lt;span class="nx"&gt;URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{"&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;decodeURI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;?&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]).&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/&amp;amp;/g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;","&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/=/g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;":"&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;"}&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;URL&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;getQueryParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://codingcafe.co.in?name=gyan&amp;amp;age=24&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// {name: 'gyan', age: '24'}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Check Odd/Even
&lt;/h2&gt;

&lt;p&gt;The remainder becomes 0 when we divide an even integer by two. Otherwise, it’s an odd number.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;isEven&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;isEven&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Clipboard API
&lt;/h2&gt;

&lt;p&gt;To copy a text, we can use JavaScript navigator.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;copy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;navigator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;clipboard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Hello world!&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To paste text:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;navigator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;clipboard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;readText&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Remove duplicate from an Array
&lt;/h2&gt;

&lt;p&gt;We can make a set from an array to get rid of duplicates.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;removeDuplicates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ary&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ary&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;removeDuplicates&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;

&lt;span class="c1"&gt;// [5, 6, 1, 2, 3]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Shuffle an array:
&lt;/h2&gt;

&lt;p&gt;We can use &lt;strong&gt;array.sort()&lt;/strong&gt; with (&lt;strong&gt;Math.random() — 0.5&lt;/strong&gt;). **Math.random() — 0.5 **is a random number, which may be positive or negative.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;shuffle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;array&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sort&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;shuffle&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;

&lt;span class="c1"&gt;// [7, 5, 3, 6]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Check to see if the current tab is visible or focused
&lt;/h2&gt;

&lt;p&gt;we can **document.hidden **to check-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;inView&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hidden&lt;/span&gt;
&lt;span class="nf"&gt;inView&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;// Result: returns true or false depending on if tab is focused&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Check to see if the Element is focused
&lt;/h2&gt;

&lt;p&gt;we can **document.activeElement **to check-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;inView&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;activeElement&lt;/span&gt;
&lt;span class="nf"&gt;inView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// Result: returns true or false depending on if element is focused&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  9. Scroll to top
&lt;/h2&gt;

&lt;p&gt;The x- and y-coordinates to scroll to will be sent to the window.scrollTo() function. We’ll scroll to the top of the page if we set these to zero and zero.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;scrollToTop&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;scrollToTop&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  10. Scroll to the bottom
&lt;/h2&gt;

&lt;p&gt;The x- and y-coordinates to scroll to will be sent to the window.scrollTo() function. We’ll scroll to the bottom of the page if we set these to zero and the height of the page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;scrollToBottom&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scrollTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;scrollHeight&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;scrollToBottom&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Thanks for reading this article. I hope you like this article.&lt;br&gt;
buy a coffee for me &lt;a href="https://www.buymeacoffee.com/gyanknojiya" rel="noopener noreferrer"&gt;https://www.buymeacoffee.com/gyanknojiya&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tricks</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>oneline</category>
    </item>
  </channel>
</rss>
