<?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 Aman Gupta on Medium]]></title>
        <description><![CDATA[Stories by Aman Gupta on Medium]]></description>
        <link>https://medium.com/@amangupta494?source=rss-4ef23c98ace9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*rQSO7y1UTMoZTchkBfjSag.jpeg</url>
            <title>Stories by Aman Gupta on Medium</title>
            <link>https://medium.com/@amangupta494?source=rss-4ef23c98ace9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 00:31:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amangupta494/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[Getting started with Shared Shopping Experience!]]></title>
            <link>https://medium.com/life-at-tokopedia/getting-started-with-shared-shopping-experience-4e9bb5784552?source=rss-4ef23c98ace9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e9bb5784552</guid>
            <category><![CDATA[group-activities]]></category>
            <category><![CDATA[shared-shopping]]></category>
            <category><![CDATA[share-play]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[tokopedia]]></category>
            <dc:creator><![CDATA[Aman Gupta]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 11:25:48 GMT</pubDate>
            <atom:updated>2022-08-11T11:25:48.475Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Tk7XMTeaFjPYYeFv" /></figure><p>In times of crisis like the recent pandemic, people are unable to meet in person and prefer video calls as a way to communicate. As a result, they miss the many activities they used to do with friends, family, and coworkers, like watching movies, listening to music, and more. To fill that gap, Apple introduced <a href="https://developer.apple.com/documentation/GroupActivities"><em>Group Activities Framework</em></a> to make people feel closer to one another despite the distance between them.</p><p>Similarly, Tokopedia discovered that people were missing moments spent together while shopping. To solve this, <strong>Tokopedia developed a shared shopping experience using the Group Activities Framework, enabling users to shop together and feel connected</strong>.</p><p>Users connected over FaceTime can experience the shared shopping feature using their <a href="https://tokopedia.link/mai-ios_blog">Tokopedia app</a>. In the shared shopping experience, users can share multiple products and other participants of the FaceTime call will receive their suggestions in real-time. Meanwhile, they are also able to browse the <a href="https://tokopedia.link/mai-ios_blog">Tokopedia app</a> independently.</p><h4>Here are the prerequisites:</h4><ol><li>iOS 15.0 or iPadOS 15.0.1 above.</li><li>Active FaceTime call with more than one participant with iOS 15.0 or iPadOS 15.0.1 and above on their device.</li><li>At least one of the users should have Shared Shopping enabled on their Tokopedia application. It is recommended that all participants have the latest version of the Tokopedia app.</li></ol><h4>How does it work?</h4><p>Follow these two steps to get the shared shopping experience:</p><ol><li>Start a shared shopping session. Users who are connected over FaceTime can participate in the shared shopping session. Any one of the FaceTime participants can start the shared shopping session from the Tokopedia app’s home page; the others can accept and join the session via FaceTime.</li><li>Once more than one user has joined the shared session, they can share different products with each other.</li></ol><p>Let’s take a look at this demonstration between two friends, whom we’ll refer to as A &amp; B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8Ikq1YFN8187Fau6" /><figcaption>Step 1: Establishing the connection between users A &amp; B.</figcaption></figure><p>In the diagram above, two users named A &amp; B are communicating over FaceTime. Let’s say that user A decides to move to the Tokopedia application. User A will see the “start shared shopping” floating button on the home screen. Remember that the users must be on a FaceTime call to see the “start shared shopping” button.</p><p>From there, user A can start the shared shopping session, and as soon as the session starts, user B will see the popup on FaceTime to join the session. Once user B accepts the request, both users A &amp; B will be connected in the shared shopping session and can now seamlessly share products with each other. How cool is that?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yC7xne_0PSIs6HaJ" /><figcaption>Step 2.1: User A shares a product with user B.</figcaption></figure><p>In the Step 2.1 diagram, user A is sharing product X with other users in the session. Here, user B is connected in the same shared shopping session with user A, and hence, user B will see the shared product notification in the floating view. User B can choose to view the shared product from the bottom sheet, which is open from the floating view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/0*xHDIP0mTz6-BsFWS" /><figcaption>Step 2.2: User B shares a product with user A.</figcaption></figure><p>In the Step 2.2 diagram, user B is sharing products Y &amp; Z with other users in the session, and so, user A will see the shared product notification in the floating view, while user A, again, can choose to view the shared product.</p><h3>Summarised Steps</h3><ul><li>Make sure you have an active FaceTime call with participants with iOS 15.0 or iPadOS 15.0.1 and above on their devices.</li><li>Then, go to the home page of your updated Tokopedia app and you will see a floating button called <strong><em>Mulai SharePlay</em></strong> click on the button to start a shared shopping session.</li><li>Now, other participants of the FaceTime call can join the shared shopping session and share product suggestions with each other seamlessly.</li></ul><p>This is really exciting, isn’t it? Get the latest version of the <a href="https://tokopedia.link/mai-ios_blog">Tokopedia App</a> and try out the Shared Shopping Experience with your friends and family 🎉</p><p>We at Tokopedia are always trying to improve our customers’ experience. We hope the Shared Shopping Experience will add a new dimension to your time with Tokopedia because you no longer have to shop alone — and obviously, shopping with friends and family is always a lot more fun and exciting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e9bb5784552" width="1" height="1" alt=""><hr><p><a href="https://medium.com/life-at-tokopedia/getting-started-with-shared-shopping-experience-4e9bb5784552">Getting started with Shared Shopping Experience!</a> was originally published in <a href="https://medium.com/life-at-tokopedia">Life at Tokopedia</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server-side Swift with Vapor4 — Part 1]]></title>
            <link>https://medium.com/@amangupta494/server-side-swift-with-vapor4-part-1-8a2e99a48e3b?source=rss-4ef23c98ace9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a2e99a48e3b</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swift-for-app-development]]></category>
            <category><![CDATA[vaporswift]]></category>
            <category><![CDATA[vapor]]></category>
            <category><![CDATA[server-side-swift]]></category>
            <dc:creator><![CDATA[Aman Gupta]]></dc:creator>
            <pubDate>Sun, 17 May 2020 15:44:15 GMT</pubDate>
            <atom:updated>2020-05-25T14:49:33.320Z</atom:updated>
            <content:encoded><![CDATA[<h3>Server-side Swift with Vapor4 — Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOqD_NHM7gQY9Ax9TF4wZg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tvick?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Taylor Vick</a> on <a href="https://unsplash.com/s/photos/servers?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Been 4 years of iOS app development, writing the network layer, consuming the APIs. Server-side code always fascinated me, I kept bugging my backend buddies to learn what&#39;s there on their side. One day, I came across server-side Swift and being a Swift developer, I was sold the very moment 😄</p><p>It’s been a long time since people are using swift for writing server-side code and there are many frameworks you can use to achieve the same like <a href="https://docs.vapor.codes/4.0/"><em>Vapor</em></a>, <a href="https://www.kitura.io/learn/"><em>Kitura</em></a>, etc.</p><p>This is gonna take a while to understand Vapor deeply. So I will write it in a series of blogs to cover it completely.</p><p><em>Vapor 4</em> is currently in <em>beta</em> so a word of caution, some things may not work in new releases. We can also expect a few improvements, major or minor, proposals can tell better. Though I have a strong feeling, it is mature enough to be released soon 🤞</p><blockquote><em>Want to read this story later? Save it in </em><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=noteworthy&amp;utm_content=eid7"><em>Journal</em></a><em>.</em></blockquote><h3>Vapor</h3><h4>What?</h4><p>Open-source web framework created by <a href="https://twitter.com/tanner0101"><strong>Tanner Nelson</strong></a> and <a href="https://twitter.com/logmaestro"><strong>Logan Wright</strong></a><strong>.</strong></p><p>Vapor is built on top of <a href="https://github.com/apple/swift-nio"><strong>SwiftNIO</strong></a><strong> </strong>(a cross-platform asynchronous event-driven network application framework).</p><p>You know what&#39;s awesome, it makes use of the latest Swift features and APIs</p><h4>Why?</h4><p>As Vapor uses Swift, you get all the type-safety features for free which help us resolve many issues at compile time.</p><p>Did someone hear compile-time, Yes you heard it right. We get a compiler which is uncommon in other pioneering languages like JS, Python, Ruby on the server-side. This is pretty cool 🍪</p><p>And yes, of course, we can run our Vapor project in our own Xcode, makes the debugging much easier and cleaner.</p><h4>Setting up the environment:</h4><p>These steps would guide you to set up the Vapor environment on macOS devices if you want to set up for Ubuntu you can follow the steps <a href="https://docs.vapor.codes/4.0/install/ubuntu/"><em>here</em></a><em>.</em></p><ul><li>Install Xcode 11.4 or above. This will solve two things for us, first, you get an awesome IDE and second, Swift 5.2 comes bundled with it that you get for free 💸</li><li>You must open Xcode to complete the installation. It might take a while 🕐 for Xcode to install the required components.</li><li>Install Vapor Tools using the following command.</li></ul><pre>$ brew install vapor/tap/vapor-beta<br>$ brew install vapor</pre><p>Hurray 🙌, we have set up the environment for vapor-beta.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*e_-hAakjh0Q0E0q4shXXfw.jpeg" /><figcaption>HelloWorld completes us 😎</figcaption></figure><p>Let’s begin with our first Project which will serve an endpoint and emit “Hello World” on the browser.</p><pre>$ vapor-beta new hello -n </pre><p>After creating a new project if you want to ditch Terminal, you can open <strong>Package.swift</strong> present in <strong>/hello</strong> in Xcode.</p><p>It might take some time when you open it for the first time as SPM (Swift Package Manager) will resolve the dependencies required by the app.</p><p>Otherwise, if you are a Terminal guy follow the commands to open the app in Xcode.</p><pre>$ cd hello<br>$ vapor xcode</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YreBhK9KI09f0X_0XBtsUQ.png" /><figcaption>generating and opening the Xcode project.</figcaption></figure><h4>Steps to run the app using Xcode.</h4><ul><li>Select the <strong>Run</strong> scheme and <strong>My Mac</strong> as the device.</li><li>Now press the play button or <strong>command + R.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QLhfA02i7f41MdTayfOv7A.png" /><figcaption>Select the Run scheme and My Mac as the device</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*JakbmcMnY_9QzbxgAROGnQ.png" /><figcaption>Should look like this after selection</figcaption></figure><ul><li>Look out for the logs in the console, it will guide you to the glory 🙏. If you face any issue comment it down will debug it together 🕵</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51RggGMkuLBetnV7Av_t3w.png" /><figcaption>Server started on https://127.0.0.1:8080</figcaption></figure><ul><li>Now open your browser and try to access <a href="http://localhost:8080/hello"><em>localhost:8080/hello</em></a><em> or </em><a href="http://127.0.0.1:8080/hello."><em>http://127.0.0.1:8080/hello.</em></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzbJoc9rKcQO2PThuVA8lA.png" /><figcaption>Yeah. Hello, World!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQJ9eBYxccIWREVhWJ-ggg.jpeg" /><figcaption>Let’s take a minute to feel like one 😄</figcaption></figure><p>So till now what all you have accomplished are:</p><ul><li>Setup the vapor environment.</li><li>Create a new project using vapor tools</li><li>Start a server on vapor app i.e. running the app using Xcode 😄</li><li>At last accessing route to show <strong>Hello, world! </strong>on the screen.</li></ul><h4>Officially, Welcome to the other side of swift development 🎉</h4><h3>Where to go from here</h3><p>I hereby free you to go for a hot cup of coffee 😆.</p><p>Later you can go through these links to explore more about Vapor. Stay tuned for Vapor - Part 2 coming soon 📢</p><p><a href="https://docs.vapor.codes/4.0/">Vapor Docs</a></p><p>📝 Save this story in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_read_later_text">Journal</a>.</p><p>👩‍💻 Wake up every Sunday morning to the week’s most noteworthy stories in Tech waiting in your inbox. <a href="https://usejournal.com/newsletter/noteworthy-in-tech/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_text">Read the Noteworthy in Tech newsletter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a2e99a48e3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GO DRY!]]></title>
            <link>https://medium.com/@amangupta494/go-dry-c932df554da3?source=rss-4ef23c98ace9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c932df554da3</guid>
            <category><![CDATA[pragmatic-programmer]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[dont-repeat-yourself]]></category>
            <category><![CDATA[dry-principle]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aman Gupta]]></dc:creator>
            <pubDate>Thu, 09 May 2019 08:07:22 GMT</pubDate>
            <atom:updated>2019-05-09T08:08:59.182Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZXixptvL4rzkx3EDuj38xw.jpeg" /></figure><h3><strong>What is the DRY Principle?</strong></h3><p><strong>DRY (Don’t Repeat Yourself)</strong>, The principle was formulated by Andy Hunt and Dave Thomas in The Pragmatic Programmer. DRY requires that “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system”. In simple words, it aims at reducing the repetition of information of all kinds.</p><h3>Why DRY?</h3><ul><li>Every duplicate line into application needs to be maintained. If a potential source of bugs appears, it would have to be fixed in all of those duplicates. It bloats the codebase making it much more difficult for developers to fully understand the entire system.</li><li>DRY is the one of the most fundamental Principle, For instance, the Open/Closed Principle, which states that “software entities should be open for extension, but closed for modification,” only works in practice when DRY is followed. Likewise, the well known Single Responsibility Principle requires that a class have “only one reason to change,” relies on DRY.</li><li>When followed with regard to structure, logic, process, and function, the DRY principle provides fundamental guidance to software developers and aids the creation of simpler, more maintainable, higher-quality applications.</li></ul><h3>Points to ponder:</h3><ul><li>Repetition in logic calls for abstraction</li><li>Repetition in the processes calls for automation.</li></ul><h3>References:</h3><p><a href="https://legacy.gitbook.com/book/97-things-every-x-should-know/97-things-every-programmer-should-know/details">97 Things Every Programmer Should Know</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c932df554da3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>