<?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: Akshaay9</title>
    <description>The latest articles on DEV Community by Akshaay9 (@akshaay9).</description>
    <link>https://dev.to/akshaay9</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%2F515384%2F9b1e2587-45e2-46cf-9aad-d6a909520bcf.png</url>
      <title>DEV Community: Akshaay9</title>
      <link>https://dev.to/akshaay9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akshaay9"/>
    <language>en</language>
    <item>
      <title>How does the web work?</title>
      <dc:creator>Akshaay9</dc:creator>
      <pubDate>Sun, 13 Jun 2021 14:37:12 +0000</pubDate>
      <link>https://dev.to/akshaay9/how-does-the-web-work-1c02</link>
      <guid>https://dev.to/akshaay9/how-does-the-web-work-1c02</guid>
      <description>&lt;p&gt;If you are a person who is learning web development or just an average internet user then you might have stumbled across these questions&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How does the web work exactly?&lt;/li&gt;
&lt;li&gt;How does the browser manage to get all the data by just an URL.&lt;/li&gt;
&lt;li&gt;What is all the stuff that happens behind the scenes the moment you type in a URL and the browser renders something.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;if yes, then you are in a right place, in this article I will try to answer all the above questions so it would help you understand things one level deeper and appreciate how things work behind the scenes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lets goo&lt;/strong&gt;🚀🚀🚀&lt;/p&gt;

&lt;p&gt;Before I jump in and start explaining all the things, I would like to introduce you to some of the technologies and terms which plays a crucial part when it comes to the internet, Later on, we will connect all the things we learned and try to make more sense of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1) Internet
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;The Internet is a vast network that connects computers all over the world. Through the Internet, people can share information and communicate from anywhere with an Internet connection.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In plain words, its nothing but a network of networks, Its capability is so powerful that it can be used for all the purposes which require you to transfer information on one or another form which accessible to anyone who is connected to a network&lt;/p&gt;

&lt;h2&gt;
  
  
  2) IP address
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;An Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fyldhbg6itqqlbl7c5wwf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fyldhbg6itqqlbl7c5wwf.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every device that is connected to the internet will have some kind of IP address  &lt;em&gt;172.16.254.1&lt;/em&gt; assigned by your internet service provider(ISP). IPs are the identifier that allows data to be transferred between 2 devices and helps us to differentiate between individual devices that are connected on the internet. They are not assigned randomly, they are mathematically products by &lt;strong&gt;Internet Assigned Numbers Authority (IANA),&lt;/strong&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  3)URL(Uniform Resource Locator)
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;A Uniform Resource Locator (URL), colloquially termed a web address, is a reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fr6ypyojxaojh06f2istj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fr6ypyojxaojh06f2istj.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To map the resource that present on the internet, URL is assigned to them, every Valid URL present on the internet will be pointing to the resource that is required to run the application. again do not get confused between &lt;em&gt;URL&lt;/em&gt; and a &lt;em&gt;Domain&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;URL is a complete address that would help you to find a resource online whereas a domain is what comes after @ in an email address or www in a website address&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  4)DNS(Domain Name System)
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;The Domain Name System (DNS) is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fm609v75l58vatygfh8md.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fm609v75l58vatygfh8md.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DNS is like a phonebook, which plays a very crucial role when it comes to the internet as we discussed earlier DNS is the one that helps us to match the IP address that is associated with the URL, to retrieve data from its database.&lt;br&gt;
Human interaction with the internet is through URL since it is difficult to remember the IP address of the URL, whereas the browser interacts through IP address.&lt;/p&gt;

&lt;h3&gt;
  
  
  4)Server
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;A server is a computer or system that provides resources, data, services, or programs to other computers, known as clients, over a network.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.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%2Ffiyh3bhp7tom2an3fifw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Ffiyh3bhp7tom2an3fifw.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A Server is just a computer that is connected to the internet 24/7, which constantly delivers all the resource from the database that is required to render the app on the browser, You can make your personal computer as a server to send all the necessary resources unless it is online 24/7 and will handle a lot of users, There are many types of servers, including web servers, mail servers, and virtual servers.&lt;/p&gt;

&lt;h3&gt;
  
  
  5)Browser
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;A computer program with a graphical user interface for displaying and navigating between web pages.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fyqb9trsygdszzw0a1vm5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fyqb9trsygdszzw0a1vm5.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am pretty sure you are this article on some browser :)&lt;br&gt;
 Brower plays a really important role when it comes to the web, It helps us to interact with the web more seemingly, and trust me when I say this, browsers are one of the best technology presents on that internet and it is much more powerful than what we think it is, we will learn browsers deep role in web on upcoming points.&lt;/p&gt;

&lt;h3&gt;
  
  
  Now that we have learned all the necessary technology, let us connect all the dots and try to make more sense of it.
&lt;/h3&gt;

&lt;p&gt;Let us imagine a scenario where you just type a valid URL, lets see what happens step by step by connecting all the stuff we learned now&lt;/p&gt;

&lt;p&gt;The moment you  hit an URL, the browser tries to get the IP address associated with the URL to establish a connection and get all the necessary resources, So before going to the DNS server to get the IP address, the browser will search in these places&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Browser cache&lt;/strong&gt;  : At the first browser checks its cache, the browser keeps a record of all the DNS records for a while so it would be easy for it to get the IP address,&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OS cache&lt;/strong&gt;  : Next it will try to search in your operating system cache for the IP address&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Router cache&lt;/strong&gt; :  if you are using a router then it will check in the router cache too to get the IP address&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resolver server&lt;/strong&gt; :  It is nothing but your internet service provider who keeps a record of your browsing history plus the IP address associated with it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the browser unable to locate the IP address then your Resolver server(ISP) will go to DNS to find one&lt;/p&gt;

&lt;h4&gt;
  
  
  2) Getting the IP address from Domain Name System
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media.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%2F72kwh34x4jocopwa5aoe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F72kwh34x4jocopwa5aoe.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It won't straight away try to search the IP address associated with the URL, first, the request will be sent to &lt;strong&gt;root level&lt;/strong&gt; to check if your website domain falls under top domains like .com, .in, .edu, etc:-, if it matches then it will tell our resolver to search in &lt;strong&gt;&lt;em&gt;Top level domain&lt;/em&gt;&lt;/strong&gt; &lt;br&gt;
Now this TLD server will give the IP address associated with it, and then ISP will try to store it in its cache so that it won't have to do it again and again&lt;/p&gt;

&lt;h4&gt;
  
  
  3) Connection is established between the browser and the server
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fsoqlkb0up0k1pdhxm3an.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fsoqlkb0up0k1pdhxm3an.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
To share data between two devices on the internet, a connection has to be established. To communicate over the internet, TCP/IP protocol is followed, later on, a connection will be built between the client and the server over &lt;strong&gt;&lt;em&gt;TCP 3-way handshake&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3) Sharing of information between server and client
&lt;/h4&gt;

&lt;p&gt;Once after successful establishment of a connection, instead of getting all the data related to the application at once, the browser only asks for the file associated with the particular route for ex:-/, /home, etc:-.&lt;br&gt;
Once the browser starts getting the files associated with it, it tries to parse the file from top to bottom and if it found any tag such as &lt;code&gt;&amp;lt;Link&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;Script&amp;gt;&lt;/code&gt; and if that tag is directing towards a file directory it will try to get it from there or if it is pointing towards some URL then same above procedure is followed.&lt;br&gt;
Again this sharing data is not one way, for example, if the user does some action then the browser will send a &lt;code&gt;Post&lt;/code&gt; or &lt;code&gt;Delete&lt;/code&gt; or &lt;code&gt;Update&lt;/code&gt; request to the server to store the users' action on its database, so this data transfer keep happening between client and server the moment he changes his route or does some kinda action that is programmed to store in database&lt;/p&gt;

&lt;p&gt;Now the important part &lt;/p&gt;

&lt;h4&gt;
  
  
  4)Status codes
&lt;/h4&gt;

&lt;p&gt;When you ask the server for data from the database, not only data but it will also return many things and one among them is status code,&lt;br&gt;
you can check this by going to the Network tab by holding &lt;code&gt;ctrl+shif+i&lt;/code&gt; or right-click and selecting inspect element,&lt;br&gt;
normally u will be able to see some status codes such as &lt;code&gt;200&lt;/code&gt; for success &lt;code&gt;404&lt;/code&gt; for not found and &lt;code&gt;500&lt;/code&gt; for error etc:-, along with the time taken for the API to get the data from the database, etc:- you might see this kinda images some or the other time on the internet when their server is down&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fkmu56jh216xvi6e7vldh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fkmu56jh216xvi6e7vldh.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are many reasons why this would happen, one of the few is when total traffic of your website increases drastically and your server could not handle that many requests or some error happened in your code then to you can see these kinda images &lt;/p&gt;

&lt;h6&gt;
  
  
  RandomFact
&lt;/h6&gt;

&lt;p&gt;In the field of high-frequency trading, every millisecond is worth millions of USD.&lt;br&gt;
The 4,600 km ultra-low latency submarine cable cost over 300 million dollars to build. Known as the Hibernian Express, it connects London and New York, and instead of carrying voice or general internet data, it beams financial data to money marketers and hedge fund traders.&lt;br&gt;
It is one of the fastest cables over the Atlantic, delivering data from New York to London in 59.6 milliseconds instead of the previous peak speed of 64.8 milliseconds.&lt;/p&gt;

&lt;p&gt;Those five milliseconds may not sound like much, but they will mean a lot to the few electronic trading firms that will have exclusive access to the connection.&lt;/p&gt;

&lt;p&gt;That's all folks for today's topic, hope you guys understood what goes behind the scenes and how things happen in seconds so that the user does not have to wait for anything.&lt;br&gt;
Thank you.&lt;/p&gt;

</description>
      <category>website</category>
      <category>internet</category>
      <category>browser</category>
    </item>
    <item>
      <title>What is bootstrap and why you Should and Should'nt be using it? </title>
      <dc:creator>Akshaay9</dc:creator>
      <pubDate>Wed, 25 Nov 2020 16:01:59 +0000</pubDate>
      <link>https://dev.to/akshaay9/what-is-bootstrap-and-why-you-should-and-should-nt-be-using-it-33n4</link>
      <guid>https://dev.to/akshaay9/what-is-bootstrap-and-why-you-should-and-should-nt-be-using-it-33n4</guid>
      <description>&lt;p&gt;Hello, my name is Akshay, i completed my Bachelors in mechanical engineering and currently self teaching myself Web development.&lt;br&gt;
In this article we are going to learn about What is bootstrap and why/when one should/should'nt be using it, Lets get started.&lt;/p&gt;

&lt;p&gt;So if you are reading this probably(on an average case )either you are begining/intermedite in CSS or you would have finished CSS tutorial, and i am going to cover all the above cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  So what is BootStrap?
&lt;/h2&gt;

&lt;p&gt;So bootstrap is a frontEnd framework(CSS and few Js to be precise) used to create beautiful websites,which is created by Twitter for their employees(Dev's) so they can re-use all the existing style,since majority of companie have very minimalistic style and colors and they dont want their employee grind through whole desigining process.&lt;/p&gt;

&lt;h2&gt;
  
  
  So How can we use Bootstrap in our Project?
&lt;/h2&gt;

&lt;p&gt;Well it is very simple, u can download BootStrap using Node,u can use various extensions  available in VS code to create a boiler plate or we can just copy paste CDN links in our HTML page.&lt;br&gt;
TO learn to add BootStrap design in our HTML then first go through Bootstrap documentation to undestand and to know what are the different styles/components offered by bootstrap &lt;a href="https://getbootstrap.com/docs/4.5/getting-started/introduction/"&gt;BootStrap Documentation&lt;/a&gt; IF you had gone through it then you would  known that its simple as adding a bootstrap class name to your Class tag to give that design.&lt;/p&gt;

&lt;h2&gt;
  
  
  So when and why one Should'nt be using Bootstrap?
&lt;/h2&gt;

&lt;p&gt;So if you are a beginner/intermediate CSS learner then i would highly suggest you to Complete the CSS course, then use bootstrap,&lt;br&gt;
i know that it must be feeling overwhelming to add beautiful Designs to your website but hear me out..&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;So Bootstrap is pretty much interesting, you would think  it is easy to add those custom design style, and moreover you would also end up thinking why one need to  learn all those CSS when you alredy have custom made style ready for you which is pretty demotivating and take away your design thinking and creativity
In fact i crated my first website called TinDOg(catchy :p-) using bootstrap and i was so proud of it,
take a look &lt;a href="https://github.com/Akshaay9/TinDog"&gt;TinDog COde&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://akshaay9.github.io/TinDog/"&gt;TinDog Live&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If the above thought occurs to you, then the chances of you learning new CSS stuff will be pretty low which intern would affect your CSS learning growth which directly affect you in interviw&lt;/li&gt;
&lt;li&gt;Last and final thing is you get used to it if you use it heavily, then you might also go through i went thorugh, i was also overwhelmed by it at begining but after some times i was getting bored of those Button styles, whenever i would see a website made of Bootstrap i would pretty much easily recognise it and it would pretty much decrease my interest in exploring the website further.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  So when and why one Should be using Bootstrap?
&lt;/h2&gt;

&lt;p&gt;If you are a guy who just completed CSS and planning to move on to Javascript or probably doing some projectcs/task to improve your Javascript DOM/React then i would highly suggest you to Use bootstrap, here is why &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you are doing/practising DOM/React then nobody wants you to spend hours just designing/perfecting a button, it doesnt really make sense inturn i want you to put your complete effort on Javascript DOM/Project, doing this you wont loose much time/energy and you would'nt feel the burnout.
When it comes to front end people spend majority of their time learning HTML/CSS becuase those were the first terminologies we hear when it comes to front end, by the time we reach Javascript, we would'nt be having that much of Energy/enthusiasm, and here is the major thing, people see few website/app think Web Dev is only about HTML/CSS, i did too,until i was introduced to the language of Gods(Jaavascript :-p) Then i learnt one thing  hard way that whatever companies present out there, they manjorly focuses on Building/designing new stuff rather than just giving new colors/ border, that is why we see FAANG and allmost all tech giant use same pattern in their parent as well as child products, so that is why even they create CSS component library and UX designers so their DEV's doesn't spend much time on choosing colors and borders,
if Dev's have OCD then thats a different topic,
by following my first point on why one should youse,one can easily get hold of using CSS custom made component/library and when they end up in Front End dev job in big tech companies they wouldn't feel difficulty in implementing CSS from companies CSS library in to their App.. 
SO yeah thats it, hope you liked my thought, All the best for your Future&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>bootstrap</category>
      <category>css</category>
      <category>framework</category>
    </item>
  </channel>
</rss>
