<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by EJR Bishoj on Medium]]></title>
        <description><![CDATA[Stories by EJR Bishoj on Medium]]></description>
        <link>https://medium.com/@bishojbk?source=rss-5ebff58e8dae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2oG-q21U_zLmFwaI</url>
            <title>Stories by EJR Bishoj on Medium</title>
            <link>https://medium.com/@bishojbk?source=rss-5ebff58e8dae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 07:10:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bishojbk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Tale of 2 Kingdoms: Primitive and Objects in JavaScript]]></title>
            <link>https://medium.com/@bishojbk/a-tale-of-2-kingdoms-primitive-and-objects-in-javascript-1c38cee2dbcd?source=rss-5ebff58e8dae------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c38cee2dbcd</guid>
            <category><![CDATA[datatypes-in-javascript]]></category>
            <category><![CDATA[objects]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[computer-architecture]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[EJR Bishoj]]></dc:creator>
            <pubDate>Sat, 24 Feb 2024 07:24:26 GMT</pubDate>
            <atom:updated>2024-02-24T07:28:27.458Z</atom:updated>
            <content:encoded><![CDATA[<p>Venturing within the realm of JavaScript world, Bisoj, a young adventurer came across two different data type kingdoms — the Primitive Data Type Kingdom and the Non-primitive Data Type Kingdom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MiP2HjZSQ9zY6q7-pbHhxw.png" /></figure><p><strong>Mutability</strong></p><p>In the Primitive Kingdom, Bisoj finds a structured society with Number, String, Boolean, NULL, Undefined, and Symbol as its residents. Here, data types are like knights, unchangeable and holding their ground once declared. The memory acts as a secure vault, assigning distinct spaces for each type. Bisoj marvels at the simplicity of this realm where changing a type means assigning a new memory space, ensuring the original stays intact.</p><p>Delving into the Non-primitive Kingdom, Bisoj encounters Objects and Arrays, forming the collective known as Objects. Here, the new concept of mutability emerges. Objects can evolve, but their essence remains intact. Bisoj observes how memory holds evolving values like a dynamic ledger, allowing changes to properties without altering the overall structure.</p><p><strong>Copying</strong></p><p>In the Primitive Kingdom, Bisoj finds a straightforward approach to copying values. When he declares a primitive data type, like a number or a string, making a copy is simple. The copy is entirely independent, having its own dedicated memory space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*IiFHutntgRbr9jH7ES-3Xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*RbtnPcXXbgNKjrnYEW8DgQ.png" /><figcaption>Two memory locations being created.</figcaption></figure><p>As Bisoj ventures into the Non-primitive Kingdom, he encounters a different scenario. Objects, which include arrays and other complex data structures, behave uniquely when copied. Instead of creating an entirely new copy, a new reference to the original memory location is made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*OusG4Q6R-iGML2655FdflQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*6fzr-oL-O6cG_EkR9hFTZg.png" /><figcaption>Two variables points to the same object.</figcaption></figure><p>Here, admin is not an independent copy; it&#39;s a reference to the same memory location as user.</p><p><em>Any changes made to one will directly affect the other.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*Iyp35-M61HF-sfbqAOg-iQ.png" /></figure><p>To address the challenges of copying in the Non-primitive Kingdom, the young adventurer, discovers the utility of Object.assign. This method allows him to create a simpler copy of an object by copying its properties to a new object.</p><p>The syntax of this method is : Object.assign(destination, ...sources)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*M-aAGribHcan2I-Wsfp9WQ.png" /></figure><p><em>However, it comes with limitations, especially when dealing with nested objects.</em></p><p>In the quest for a comprehensive solution, for nested objects, Bisoj stumbles upon structuredClone. This method goes beyond the capabilities of Object.assign by creating a deep copy of an object. It ensures independence not only in the outer structure but also in all nested objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*wq7Lqf0r__2XnWG0ULITYQ.png" /></figure><p>With structuredClone, Bisoj can confidently manipulate the clone without worrying about unintended effects on the original.</p><p>Armed with the wisdom of Primitives and Objects, Bisoj’s journey had only just begun, and the realm of JavaScript awaited more tales of exploration, innovation, and triumph.</p><p><strong>SUMMARY:</strong></p><ul><li>Primitives remain steadfast in their own memory spaces, unchangeable once their values are declared.</li><li>Non-primitives are mutable, allowing changes to their properties without altering the overall structure.</li><li>Copies of primitives are independent, while copies of non-primitives share references, affecting the same object.</li><li>Object.assign helps in creating simpler copies, but limitations arise when dealing with nested objects. For full independence, structuredClone is employed, ensuring deep cloning even for nested structures.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c38cee2dbcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YoungInnovations Weekly #401 : Christmas Week, New Faces and A Thrilling Adventure Story]]></title>
            <link>https://medium.com/younginnovations-blog/younginnovations-weekly-401-christmas-week-new-faces-and-a-thrilling-adventure-story-4ee38867b253?source=rss-5ebff58e8dae------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ee38867b253</guid>
            <category><![CDATA[christmas]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[new-year]]></category>
            <category><![CDATA[traveling]]></category>
            <category><![CDATA[christmas-gifts]]></category>
            <dc:creator><![CDATA[EJR Bishoj]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 12:11:19 GMT</pubDate>
            <atom:updated>2023-12-22T12:11:19.855Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>YoungInnovations Weekly #401 : Christmas Week, New Faces and A Thrilling Adventure Story</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5iKra5x_JO3CrpR9skwqrA.png" /></figure><blockquote>“Greetings, everyone</blockquote><blockquote>Enjoy the cozy warmth and comfort as we begin our journey this week. Savor a perfect cup of fine coffee along the way.”</blockquote><p>Embrace the joy of the season! Christmas week is upon us, and I hope everyone shares in the excitement for this festive season as much as I do. 🎄✨</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hx2OeHnRBjkGcxGQRiQr0w.png" /><figcaption>’Tis the season! Merry Christmas and Happy New Year 2024!</figcaption></figure><h3><strong>Ama Yangri Peak : A Thrilling Two-Day Adventure</strong></h3><p>This week, our adventurous friends — <a href="https://medium.com/u/8ae25634d7a7">Bigyan Gautam</a>, <a href="https://medium.com/u/62fd3be1fd5c">Raj Kumar Pariyar</a>, Shreedhar, Sailesh, <a href="https://medium.com/u/c7547f5a9b62">Punya Ruchal</a>, <a href="https://medium.com/u/77e328fd6190">Sushan Ghimire</a>, <a href="https://medium.com/u/47c4c93e96cd">Santosh Shrestha</a>, <a href="https://medium.com/u/eaa152687c20">Pravin Banjade</a> — embarked on a thrilling journey to Ama Yangri Peak, nestled at an altitude of 3771m. The Ama Yangri Trek, a recently opened trail in the Helambu region of Sindhupalchowk district, proved to be a hidden gem and among the best treks near Kathmandu.</p><p>Situated in the immediate vicinity of the Kathmandu Valley, Ama Yangri is one of the highest peaks around, offering a breathtaking panorama of the Langtang Range, Annapurna, Manaslu, and even Everest from its lofty height. The trek provides an experience reminiscent of the famous Poon Hill trek in the Annapurna region.</p><p>Legend surrounds Ama Yangri, considering it a deity safeguarding the entire Hyolmo valley region. The trekking route itself is spectacular, adorned with a diverse landscape, lush forests, and charming villages. This expedition is perfect for those seeking a short and easy trek in the scenic proximity of Kathmandu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wphp2wMSBRhKrqHFHjWy5A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76kR9LnFiXdoqdkL2utZcw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*luriNXS_OYvQHkrZkG4V_w.jpeg" /></figure><p>Hear from our group as they share the richness of their experiences on the incredible Ama Yangri Peak expedition.</p><blockquote>“In search of a quick getaway from Kathmandu, we embarked on a two-day journey to Ama Yangri Peak which turned out to be nothing short of extraordinary.<br>Day one was a mix of exhilarating motorcycle rides and unexpected challenges. Navigating steep off-road sections proved tricky for some, resulting in a minor accident and slips during a river crossing. Despite the hiccups, we reached the cozy village of Tarke Ghyang, where warm hospitality and a tranquil setting made for a pleasant overnight stay.<br>Day two began at 4 am as we rode our bikes to the Ama Yangri basecamp, launching into a breathtaking hike towards the peak. The sunrise trek unfolded against a mystical backdrop, culminating in an awe-inspiring view from the summit. Clouds played around towering mountains, and vibrant prayer flags added a touch of spirituality to the scene.<br>Summing up our adventure, Ama Yangri Peak stood out as one of the best two-day getaways near Kathmandu. The thrill of motorcycling, coupled with challenging river crossings and off-road trails, made for an unforgettable journey. Just be ready for a few bumps along the way — the rewards at the top make it all worthwhile. Ama Yangri Peak offers a slice of heaven, leaving you with memories etched against the majestic Himalayan landscape.”</blockquote><p>Hmm, I regret not going to the trip now. Seems, like they had a lot of fun in Ama Yangri Peak and the view seems so magical.</p><h3><strong>Welcoming new Interns</strong></h3><p>Welcome to the family! <br>Let’s extend a warm welcome to our new members with open arms!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsHgJVhiOTAQy3lPFCXzqQ.jpeg" /><figcaption>Binamra Acharya</figcaption></figure><blockquote>Hello, I’m Binamra Acharya, a recent graduate in Software Engineering from NCIT College. I am thrilled to introduce myself as the new QA intern at YoungInnovations. With a passion for ensuring Software quality and an eye for precision, my journey into the world of quality assurance is fueled by curiosity and a love for problem-solving. Outside the world of testing scripts and identifying bugs, you’ll find me exploring various hobbies. Whether it’s diving into a good book, experimenting with new recipes in the kitchen, or embarking on a new trekking adventure, I believe that a well-rounded life enhances our professional journey.</blockquote><p>Indeed, Binamra, I agree that a well-rounded life does enhance our professional journey. Also, it seems I’ll be seeking some good book recommendations from you. And we look forward to the honor of enjoying some of your amazing cooking someday.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y033rdND17xJIC9QBUzbhQ.jpeg" /><figcaption>Raj Kumar Maharjan</figcaption></figure><blockquote>Hello everyone, I’m Raj Kumar Maharjan, and I come from a management background. Recently, I completed a frontend course at Broadway Infosys, and I’m thrilled to kickstart my journey as a Frontend Intern at YoungInnovations. My passion lies in web development, and I’m particularly enthusiastic about technologies like Tailwind CSS, Bootstrap, and React framework. I believe in creating attractive and user-friendly cross-platform experiences. During my internship, I’m focused on honing my skills in HTML, CSS and JavaScript to design clean and efficient web interfaces. I’m excited about the opportunity to contribute and learn in this dynamic field. Beyond coding I joy in listening to music.</blockquote><p>Welcome to the team, our new frontend member! Wishing you a rewarding internship journey filled with valuable insights. Looking forward to the day you share your music playlist with us!</p><h3>Christmas Celebration!!! Ready to jingle?🎅🎅</h3><p>As Christmas Day approaches, YoungInnovations is getting ready for a festive celebration, and we would love for you to join us! Be a generous secret Santa and ensure your gifts are delivered before the 25th of December.</p><p>Looking forward to celebrating the joyous season together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcZ5yUu95eQLQP_2xUGxnQ.jpeg" /><figcaption>Secret Santa’s gifts.</figcaption></figure><p>And, with that this week’s blog comes to an end.<br>Thank you, everyone, for sticking through to the end. Wishing you all a Merry Christmas and a Happy New Year!<br>You Are Amazing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ee38867b253" width="1" height="1" alt=""><hr><p><a href="https://medium.com/younginnovations-blog/younginnovations-weekly-401-christmas-week-new-faces-and-a-thrilling-adventure-story-4ee38867b253">YoungInnovations Weekly #401 : Christmas Week, New Faces and A Thrilling Adventure Story</a> was originally published in <a href="https://medium.com/younginnovations-blog">YoungInnovations&#39; Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>