<?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: KILLjoy</title>
    <description>The latest articles on DEV Community by KILLjoy (@killjoy__02).</description>
    <link>https://dev.to/killjoy__02</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%2F763670%2Fdc330c96-7066-4b9d-8d42-5372509a608b.png</url>
      <title>DEV Community: KILLjoy</title>
      <link>https://dev.to/killjoy__02</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/killjoy__02"/>
    <language>en</language>
    <item>
      <title>OSI Model</title>
      <dc:creator>KILLjoy</dc:creator>
      <pubDate>Mon, 17 Mar 2025 05:18:15 +0000</pubDate>
      <link>https://dev.to/killjoy__02/osi-model-18d9</link>
      <guid>https://dev.to/killjoy__02/osi-model-18d9</guid>
      <description>&lt;p&gt;&lt;strong&gt;WHAT IS OSI MODEL&lt;/strong&gt; - OSI model is just a 7 layers framework that standardizes a network communication.  i meant to establish a common format or set of rules that ensures consistency and compatibility. so OSI model  set a standard for network communication so ensuring the data travels sender to receiver efficiently or we can say he OSI model has 7 layers that help computers talk to each other in a structured way. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if we do not follow network standards-&lt;/strong&gt;&lt;br&gt;
The communication between devices and network would be chaotic like-&lt;br&gt;
Different companies will create their own networking protocols so it makes impossible to communicate other companies manufactured devices. Ex-A Dell laptop might not be able to connect to an HP printer or a Cisco router.&lt;/p&gt;

&lt;p&gt;Without standardization, different regions or companies might use separate protocols, making global internet communication difficult or impossible.Ex-Websites hosted in one country might not be accessible in another due to differing network structures.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1️⃣ Physical Layer (Wires &amp;amp; Signals) – "How to send data?"&lt;/strong&gt;&lt;br&gt;
Transmits raw bits (0s &amp;amp; 1s) through cables, fiber, or radio signals.(because computer networks data travels two main transmission mediums- &lt;strong&gt;(1).&lt;/strong&gt;Data travels through a physical medium (cables). &lt;strong&gt;(2).&lt;/strong&gt;Data travels through the air using electromagnetic waves.).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Devices:&lt;/strong&gt; Hubs, Repeaters, Cables (Ethernet, Fiber).&lt;br&gt;
 &lt;strong&gt;Protocols:&lt;/strong&gt; Ethernet (Physical part), Bluetooth, Wi-Fi (Radio signals).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functions:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bit Transmission&lt;/strong&gt; – Converts data into electrical, optical, or radio signals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modulation &amp;amp; Encoding&lt;/strong&gt; – Converts digital signals for transmission.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transmission Medium&lt;/strong&gt; – Uses copper, fiber optics, or wireless.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Synchronization&lt;/strong&gt; – Ensures sender and receiver are in sync.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2️⃣ Data Link Layer (Direct Connection) – "Who am I connected to?"&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ensures error-free data transfer between two directly connected devices using MAC addresses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;** Devices:** Switches, Bridges, Network Interface Cards (NICs).&lt;br&gt;
 &lt;strong&gt;Protocols:&lt;/strong&gt; MAC, ARP, PPP, Ethernet (Frame handling).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functions:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;strong&gt;MAC Addressing –&lt;/strong&gt; Identifies devices in a local network.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Error Detection &amp;amp; Correction –&lt;/strong&gt; Uses CRC (Cyclic Redundancy Check).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frame Synchronization –&lt;/strong&gt; Divides data into frames. Flow Control – Prevents overwhelming slower devices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3️⃣ Network Layer (Routing &amp;amp; IP Address) – "Where is it going?"&lt;/strong&gt;&lt;br&gt;
Finds the best path for data using IP addresses and handles packet forwarding.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Devices:&lt;/strong&gt; Routers, Layer 3 Switches.&lt;br&gt;
&lt;strong&gt;Protocols:&lt;/strong&gt; IP (IPv4/IPv6), ICMP (Ping), OSPF, RIP.&lt;/p&gt;

&lt;p&gt;Functions:&lt;br&gt;
&lt;strong&gt;Logical Addressing (IP)&lt;/strong&gt; – Assigns unique IPs to devices.&lt;br&gt;
&lt;strong&gt;Routing –&lt;/strong&gt; Finds the best path for data.&lt;br&gt;
&lt;strong&gt;Fragmentation &amp;amp; Reassembly&lt;/strong&gt; – Splits large packets for transmission.&lt;br&gt;
&lt;strong&gt;Error Handling&lt;/strong&gt; – Uses ICMP for troubleshooting (Ping).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4️⃣ Transport Layer (Delivery Control) – "How to send it?"&lt;/strong&gt;&lt;br&gt;
Ensures data is fully delivered using TCP (reliable) or UDP (fast).&lt;/p&gt;

&lt;p&gt;Devices: Firewalls (manage traffic flow).&lt;br&gt;
Protocols: TCP (WhatsApp messages), UDP (Live streaming, gaming).&lt;/p&gt;

&lt;p&gt;Functions:&lt;br&gt;
Segmentation &amp;amp; Reassembly – Splits data into segments and reassembles it.&lt;br&gt;
Flow Control – Ensures the receiver isn’t overwhelmed.&lt;br&gt;
Error Control – Ensures complete and correct data delivery.&lt;br&gt;
Multiplexing – Handles multiple connections at once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5️⃣ Session Layer (Connections &amp;amp; Communication) – "How long do we talk?"&lt;/strong&gt;&lt;br&gt;
Manages sessions (start, maintain, and end) between applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Devices:&lt;/strong&gt; Application servers, Proxy servers.&lt;br&gt;
&lt;strong&gt;Protocols:&lt;/strong&gt; NetBIOS, RPC, PPTP (VPNs).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functions:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Session Establishment –&lt;/strong&gt; Starts and maintains sessions.&lt;br&gt;
&lt;strong&gt;Synchronization –&lt;/strong&gt; Saves session data in case of disconnection.&lt;br&gt;
&lt;strong&gt;Session Termination –&lt;/strong&gt; Ends communication properly.&lt;br&gt;
&lt;strong&gt;Token Management –&lt;/strong&gt; Prevents multiple applications from interfering.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6️⃣ Presentation Layer (Data Formatting &amp;amp; Encryption) – "How to present it?"&lt;/strong&gt;&lt;br&gt;
Converts, encrypts, and compresses data for the application layer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Devices:&lt;/strong&gt; Encryption devices (SSL/TLS terminators).&lt;br&gt;
&lt;strong&gt;Protocols:&lt;/strong&gt; SSL/TLS (HTTPS security), JPEG, MP3, GIF.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functions:&lt;/strong&gt;&lt;br&gt;
Data Formatting – Converts data for different systems (ASCII, Unicode).&lt;br&gt;
&lt;strong&gt;Compression –&lt;/strong&gt; Reduces file sizes for faster transmission.&lt;br&gt;
&lt;strong&gt;Encryption &amp;amp; Decryption –&lt;/strong&gt; Protects data from hackers (SSL/TLS).&lt;br&gt;
&lt;strong&gt;Character Encoding –&lt;/strong&gt; Ensures different languages are correctly displayed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7️⃣ Application Layer (User Interaction) – "What does the user see?"&lt;/strong&gt;&lt;br&gt;
Provides the interface for users to interact with network services.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Devices:&lt;/strong&gt; Web servers, Email servers, DNS servers.&lt;br&gt;
&lt;strong&gt;Protocols:&lt;/strong&gt; HTTP/HTTPS (Web), FTP (File transfer), SMTP (Email), DNS (Domain names).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functions:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;User Interaction –&lt;/strong&gt; Provides web browsing, email, file sharing, etc.&lt;br&gt;
&lt;strong&gt;Data Representation – **Ensures proper formatting for applications.&lt;br&gt;
**Authentication –&lt;/strong&gt; Verifies users before accessing services.&lt;br&gt;
&lt;strong&gt;Error Handling –&lt;/strong&gt; Displays proper messages for failed requests.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>JS Eventloop and Nodejs event loop different or not?</title>
      <dc:creator>KILLjoy</dc:creator>
      <pubDate>Sun, 12 May 2024 05:59:42 +0000</pubDate>
      <link>https://dev.to/killjoy__02/js-eventloop-and-nodejs-event-loop-different-or-not-4hbi</link>
      <guid>https://dev.to/killjoy__02/js-eventloop-and-nodejs-event-loop-different-or-not-4hbi</guid>
      <description>&lt;p&gt;They are not the same. It's a similar concept. Both have their own eventloop. Node js event loop is somewhat advanced version customized for server environment.&lt;/p&gt;

&lt;p&gt;Now you must be wondering how these two event loops work together?I was stuck for a long time and  how these both work together. Then I asked someone.His youtube channel-&lt;a href="https://www.youtube.com/@codingscenes/videos" rel="noopener noreferrer"&gt;https://www.youtube.com/@codingscenes/videos&lt;/a&gt;. He provides me some pics helped me lot!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's suppose you have clicked a button that will bring users result on UI&lt;br&gt;
How does this go from front-end to back-end&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FRONTED&lt;/strong&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%2Fqdwf7g0ckkyrll3zznrl.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%2Fqdwf7g0ckkyrll3zznrl.png" alt="Image description" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BACKEND&lt;/strong&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%2F95ju2v7no72fu73qffw6.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%2F95ju2v7no72fu73qffw6.png" alt="Image description" width="800" height="536"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FRONTED&lt;/strong&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%2Fhb83b0vcca9qsovuw67e.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%2Fhb83b0vcca9qsovuw67e.png" alt="Image description" width="800" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope you have understood a little🙃.&lt;br&gt;
Special Thanks ♥️-&lt;a href="https://www.codingscenes.com/" rel="noopener noreferrer"&gt;https://www.codingscenes.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>jseventloop</category>
      <category>nodejseventloop</category>
      <category>javascript</category>
      <category>javascriptengine</category>
    </item>
    <item>
      <title>Position-relative and absolute</title>
      <dc:creator>KILLjoy</dc:creator>
      <pubDate>Thu, 22 Dec 2022 04:50:14 +0000</pubDate>
      <link>https://dev.to/killjoy__02/position-relative-and-absolute-16gf</link>
      <guid>https://dev.to/killjoy__02/position-relative-and-absolute-16gf</guid>
      <description>&lt;p&gt;&lt;strong&gt;1.Relative&lt;/strong&gt;&lt;br&gt;
  When your are using position relative it relative to itself means relative will try to position itself according to it's current position.&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%2Fw43aaie5k5mo56ldau9f.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%2Fw43aaie5k5mo56ldau9f.png" alt="Image description" width="130" height="128"&gt;&lt;/a&gt;&lt;br&gt;
So above image shows that suppose you have given a green box container &lt;strong&gt;position:relative top:20px&lt;/strong&gt; this green box will moves it's current position.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Absolute&lt;/strong&gt;&lt;br&gt;
  When you are using position absolute it will try to look first it's ancestor(parent) if we have defined the &lt;strong&gt;position relative&lt;/strong&gt; over there(parent),so it position according to its ancestor.otherwise it will position according your browser or other dimensions.&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%2Fuv3meaf8sinlrdafukat.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%2Fuv3meaf8sinlrdafukat.png" alt="Image description" width="129" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Above images when u do green box &lt;strong&gt;position:absolute left:20px&lt;/strong&gt; and in black container you have defined a &lt;strong&gt;position:relative&lt;/strong&gt; so the green box will move its parent position or we can say its ancestor if parent doesn't defined position relative . then it will look browser dimensions.&lt;/p&gt;

&lt;p&gt;ThankYou!😃&lt;br&gt;
Keep learning new things.&lt;/p&gt;

</description>
      <category>position</category>
      <category>relative</category>
      <category>absolute</category>
      <category>static</category>
    </item>
    <item>
      <title>Git Graph Extension In Vs Code</title>
      <dc:creator>KILLjoy</dc:creator>
      <pubDate>Sun, 30 Jan 2022 06:18:24 +0000</pubDate>
      <link>https://dev.to/killjoy__02/git-graph-extension-in-vs-code-431a</link>
      <guid>https://dev.to/killjoy__02/git-graph-extension-in-vs-code-431a</guid>
      <description>&lt;p&gt;Recently, I watched a github tutorial. and i found out a fascinating git tool extension in vs code called "Git Graph".&lt;br&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%2Fsqi8ztlbx4q1796lxhb8.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%2Fsqi8ztlbx4q1796lxhb8.png" alt="Image description" width="800" height="392"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;If you working a bigger projects.Lots of people commit there code and merge in other branches so sometimes it pretty much confusing to see their commit and merging.&lt;/p&gt;

&lt;p&gt;This extension help pretty  good visualization of the my branch in relation to other branches.something this-&lt;br&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%2F8sde5sk6okhidc802dir.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%2F8sde5sk6okhidc802dir.png" alt="Image description" width="650" height="413"&gt;&lt;/a&gt;&lt;br&gt;
You can also see who made commit full details about it.&lt;br&gt;
thanks!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
