<?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 Varsha Prasanna on Medium]]></title>
        <description><![CDATA[Stories by Varsha Prasanna on Medium]]></description>
        <link>https://medium.com/@varshaprasanna?source=rss-12da385c5127------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U6FZlbY54A8jl003bMOQ5A.jpeg</url>
            <title>Stories by Varsha Prasanna on Medium</title>
            <link>https://medium.com/@varshaprasanna?source=rss-12da385c5127------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 06:26:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varshaprasanna/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[Promise in JS: Made Easy]]></title>
            <link>https://varshaprasanna.medium.com/promise-in-js-made-easy-131ff8cbdba3?source=rss-12da385c5127------2</link>
            <guid isPermaLink="false">https://medium.com/p/131ff8cbdba3</guid>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[promises]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Varsha Prasanna]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 20:23:10 GMT</pubDate>
            <atom:updated>2023-07-05T20:23:10.921Z</atom:updated>
            <content:encoded><![CDATA[<p>Promise is one of the most popularly used terms in Javascript, they play a crucial role in handling <strong>asynchronous</strong> operations. But what exactly are promises, and how do they work? In this article, I will explain promises with an easy to understand real-life example in the most easiest way possible(I promise).</p><p>Imagine you are craving a sandwich and realize that you’re missing all the main ingredients! You can go to the store, but you’re too lazy. So you decide to place a quick order online . By placing the order you created a Promise. You communicated your request to the Grocery store, and now you wait.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JC-THBGK7M-EkV2q3ig-Yg.png" /><figcaption>Promise states</figcaption></figure><p>Now let’s see the Promise States</p><ol><li><strong>Pending</strong> [Initial state when the promise is instantiated]: At this stage, you have placed your order, the store acknowledges it and you wait for the order</li><li><strong>Fulfilled</strong>: ✅ The promise action is succeeded</li><li><strong>Rejected</strong>: ❌The Promise action is rejected</li></ol><p>Now let’s see Handling Promise Results</p><ol><li>.then(): When the promise is fulfilled, you can use the .then() method to handle the successful outcome. In our case when the promise is resolved Your doorbell rings, your order arrives and you make your sandwich with all the right ingredients</li><li>.catch(): If the promise is rejected, the .catch() method comes to the rescue. It allows you to handle any errors or exceptions gracefully, just as you would handle disappointment by ordering from a different place or eating your veggies</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LX9N6roUptB9oI1nnQv5wA.png" /><figcaption>Handling promise states</figcaption></figure><blockquote><em>Creating a Promise</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8-fpiBYrHjqzsB2LEgoRcw.png" /></figure><p>Let’s create a Promise for our Sandwich example(Sandwich delivery ? Nvm)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lu2K73b60h91xwONic2nnQ.png" /></figure><p>In the above code, makeSandwich()function creates a new Promise that takes a resolve and reject callback. Depending on the weather conditions the promise is resolved or rejected</p><blockquote>Handling the Promise</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*YV1jxGXmPQaNuZLFo4BmNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8YOng3y9RQA-w02q72emg.png" /></figure><p>then() method is used to handle the resolved state which displays a success message catch() method is used to handle the rejected state of the promise which displays an error message</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FVarsha-Prasanna%2Fembed%2Fpreview%2FyLQoBXB%3Fdefault-tabs%3Djs%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DyLQoBXB&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2FVarsha-Prasanna%2Fpen%2FyLQoBXB&amp;image=https%3A%2F%2Fshots.codepen.io%2Fusername%2Fpen%2FyLQoBXB-512.jpg%3Fversion%3D1688582983&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/f26bcbc1eca3b2a4346d06d9c2bdd8c7/href">https://medium.com/media/f26bcbc1eca3b2a4346d06d9c2bdd8c7/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=131ff8cbdba3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HERE’S HOW GOOGLE EARTH:3D IMAGERY WORKS]]></title>
            <link>https://varshaprasanna.medium.com/heres-how-google-earth-3d-imagery-works-f03804a5b56c?source=rss-12da385c5127------2</link>
            <guid isPermaLink="false">https://medium.com/p/f03804a5b56c</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[photogrammetry]]></category>
            <category><![CDATA[earth]]></category>
            <category><![CDATA[3d-imagery]]></category>
            <category><![CDATA[google-earth]]></category>
            <dc:creator><![CDATA[Varsha Prasanna]]></dc:creator>
            <pubDate>Fri, 13 Aug 2021 18:48:28 GMT</pubDate>
            <atom:updated>2021-08-13T18:48:28.822Z</atom:updated>
            <content:encoded><![CDATA[<p>Find out how Google Earth shows 3D building models in some cities, including photorealistic 3D imagery</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zl32w5leLdXRy-ZLt4VtXQ.png" /></figure><p><strong>WHAT IS GOOGLE EARTH?</strong></p><p>Google Earth is a Geobrowser, formerly known as Keyhole EarthViewer, that accesses satellite and aerial imagery, topography, ocean bathymetry, and other geographic data over the internet to represent the Earth as a three-dimensional globe.</p><p>Google Earth is an incredible tool that allows us to take a virtual tour around the world. Google earth is the biggest repository of geo-imagery, the most photorealistic digital version of our planet. Google earth has been around for about the last 15 years.</p><p><strong>3D IMAGERY</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*ve-4uNJZlpvg9P7Mbb-Cbw.gif" /><figcaption>3D View of Empire State Building, New York</figcaption></figure><p><em>Have you ever wondered How many images comprise all of Google Earth? And where do they come from?</em></p><p><em>Google estimates that it has about 3 petabytes of imagery data for Google Earth. And these data are collected from 2 sources, satellites and planes.</em></p><p><em>Satellites give the global view, that is 2D imagery of the globe. Getting closer to the ground, creating 3D imagery becomes complicated hence it requires special conditions. So Google flies planes to collect 3D data.</em></p><p><em>The planes make a little zigzag over the same area, This pattern helps the photos overlap. And multiple cameras help capture a place from a different angle</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*8NzwysmiJcsjGRn38UYZMw.gif" /><figcaption>The imagery is prepped. That would be removing clouds, removing haze, color correcting.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*5J1kpTn3XhFgFhItwd7qxQ.gif" /><figcaption>Google Earth digitally stitches together billions of images taken by satellite and aerial photography, using the highest quality pixels from each photograph to create the clearest view of any portion of the Earth.</figcaption></figure><p><strong>WHAT IS PHOTOGRAMMETRY?</strong></p><p>Photogrammetry is <em>the technology of obtaining reliable information about physical objects and the environment through processes of recording, measuring, and interpreting photographic images </em>Photogrammetry is primarily concerned with making precise measurements of three-dimensional objects and terrain features from two-dimensional photographs.</p><p><strong>Aerial Photogrammetry</strong></p><p>The camera is mounted in an aircraft and is usually pointed vertically towards the ground. Multiple overlapping photos of the ground are taken as the aircraft flies along a flight path. The aircraft traditionally have been fixed-wing manned craft but many projects now are done with drones and UAVs. Traditionally these photos were processed in a stereo-plotter but now are often processed by automated desktop systems.</p><blockquote>A collab with <a href="https://medium.com/u/20953ba01365">Parvathi Choudhary</a></blockquote><blockquote>Also, don’t forget to explore Google Earth Timelapse to see change happening to our planet’s surface over 30 years</blockquote><blockquote>Sources:<a href="https://www.youtube.com/channel/UCf4AIjSwE-E2TggCPdm-z-A"> Nat &amp; Friends</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f03804a5b56c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>