<?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 Nikhil Sridhar on Medium]]></title>
        <description><![CDATA[Stories by Nikhil Sridhar on Medium]]></description>
        <link>https://medium.com/@nik.sridhar?source=rss-43185500f2d0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xbL6sz0A8rfcbqL2r5b4mQ.jpeg</url>
            <title>Stories by Nikhil Sridhar on Medium</title>
            <link>https://medium.com/@nik.sridhar?source=rss-43185500f2d0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:20:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nik.sridhar/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[Here’s what I wish I knew before I started using Firebase]]></title>
            <link>https://medium.com/free-code-camp/heres-what-i-wish-i-knew-before-i-started-using-firebase-9110d393e193?source=rss-43185500f2d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9110d393e193</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Nikhil Sridhar]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 21:45:18 GMT</pubDate>
            <atom:updated>2018-11-19T21:45:18.957Z</atom:updated>
            <content:encoded><![CDATA[<h4>A list of advantages and drawbacks you should consider before choosing Cloud Firestore as your database</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*fXiKiz-wuXiCUboQDAG5Cw.png" /></figure><p>Over the last few years, Firebase has grown as an increasingly popular backend solution. Especially after the release of Cloud Firestore. Firestore is a flexible cloud database with expressive queries and real-time updates. After developing my first application with Cloud Firestore, I organized a list of advantages and drawbacks. This list will help you choose if Firestore is the database for you.</p><p>Before I begin, it is imperative that you understand Cloud Firestore’s data model. Firestore stores data in documents, organized into collections. <em>Each</em> <strong><em>document</em></strong> <em>contains a set of key-value pairs</em>. Cloud Firestore is optimized for storing large collections of small documents. <em>All documents must be stored in</em> <strong><em>collections</em></strong>. Documents can contain sub-collections and nested objects. B<em>oth of which can include primitive fields like strings or complex objects like lists</em>.</p><p>Now that you understand the basics, here is a list of items in Cloud Firestore which can make or break your application.</p><h3>Advantage #1: Transactions and Batched Writes</h3><p>Error handling can be one of the most tedious tasks when it comes to reading from and writing to a database. In some situations, if an error occurs while reading from or writing to one location in the database, you might want to cancel the entire operation. This is where batched writes and transactions come in.</p><p><strong>Batched writes are a set of write operations performed atomically. In a set of atomic operations, either all the operations succeed, or none of them.</strong> If your application succeeds in writing data to one document but fails in writing data to another document, none of the writes are performed. An error is thrown.</p><p><strong>Transactions work similarly. They are more powerful, for they allow you to both read and write to documents in an atomic fashion.</strong></p><p>Batched writes and transactions can be best explained through an example. The easiest being adding friends on a social media platform. When User A adds User B as a friend, you want to write data to both User A’s document and User B’s document to signify that they are friends. However, if either the write to User A’s document or User B’s document fails, you want to undo any changes and throw an error. Batched writes and transactions simplify this process with only a few lines of code.</p><h3>Advantage #2: Invites</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*G-gm-JAnpp5zsyJkyf7x6A.png" /></figure><p>Firebase Invites is perhaps the <strong>most powerful on-boarding technique</strong><em>, </em>especially if your app runs on multiple platforms (iOS, Android, etc.). It allows you to <strong>prompt the current user if he would like to invite his friends to your app.</strong> However, what’s more is that Firebase actually allows you to create a temporary user for the invited user to provide the current user with the best customer experience.</p><p>For instance, let us say that you are building an app similar to Venmo. This app allows users to track expenses and eventually settle up. User A wants to pay User B, who currently does not have an account. Using Firebase Invites, you could allow User A to invite User B. Then set up a temporary account for User A to track expenses with until User B accepts the invitation and creates his own account. Invites provide app referrals through both <strong>email and SMS. </strong>It is a great way to acquire new users and keep current users happier than ever before.</p><h3>Advantage #3: Dynamic Links</h3><p>Firebase Dynamic Links allows for the best possible user-onboarding experience. <strong>These links work cross-platform. They allow you to provide a custom experience within an application once a user opens a certain link</strong><em>.</em> Dynamic Links is best utilized when integrated with Firebase Invites.</p><p>Let us take the example in the previous advantage. User B, who has been invited to your app by User A, now decides he wants to create an account to view any debts he owes to User A. When User B receives the invite via email and clicks on the dynamic link, he will be directed to the AppStore where he will download your app. Then, when he opens the app and begins to register, his email will already be filled in thanks to the <strong>information passed by the dynamic link</strong>.</p><h3>Drawback #1: Querying by Sub-collection</h3><p>One of the biggest disappointments in Cloud Firestore is the <strong>inability to query documents by their sub-collections</strong>. For example, let us say you have the following data structure:</p><p><strong>collection</strong> of users -&gt; user <strong>document</strong> -&gt; <strong>collection</strong> of friends -&gt; friend <strong>document</strong> -&gt; <strong>data</strong> regarding that friend (name, email, etc.)</p><p>In this structure, it would be impossible to fetch all users who have a friend with a specific name and email. Firebase does eventually plan to offer a solution. For the time being, it seems like the <strong>only solution is to replace sub-collections with arrays</strong> in which documents can be queried by.</p><p>Although this fix might seem sufficient, it isn’t. As your application grows, so can the arrays, <strong>significantly affecting the read and write document performance</strong>.</p><h3>Drawback #2: Querying by Location</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*SArjAjUq2Jl2vX4WbAhQVA.png" /></figure><p>Depending on your application’s functionality, this could be the biggest flaw of all. Although Cloud Firestore does provide a location data type, <strong>it does not allow you to query all documents within a radius of a given location</strong>.</p><p>Let us consider that you are building an app identical to Uber. When a user logs into the app, you want to fetch all cars within a certain radius of the current user’s location to alert the user if there are any drivers nearby. This task is impossible without the help of third party libraries.</p><p>Luckily, if you are using the real-time database, Firebase now recommends you use the <a href="https://github.com/googlearchive/geofire">GeoFire</a> library to query documents by location. However, if you plan to use Cloud Firestore, there is no recommended solution.</p><p>Although there are a few libraries which have attempted to solve this problem like <a href="https://github.com/imperiumlabs/GeoFirestore">GeoFirestore</a>, Firebase has yet to verify them as a reliable source.</p><h3>Drawback #3: Full-text Search</h3><p>This problem is sure to affect anybody who uses Cloud Firestore, for <strong>it does not allow you to query documents by “incomplete text”</strong>. This problem can be best illustrated through an example.</p><p>Let us say your application allows users to friend each other. One user types in “Al” in an attempt to search for his friend “Alex”. <strong>You want to fetch all users in the database whose name contains the text “Al” to help the user narrow down his search. This task is not possible</strong> through Cloud Firestore alone. <strong>Algolia, a third party service, is required to implement full-text search</strong>. All documents must be uploaded to Algolia as records. These records can then be queried by incomplete text.</p><p>For more tips, please stay tuned and follow me. If you enjoyed this article, feel free to hold down that clap button.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9110d393e193" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/heres-what-i-wish-i-knew-before-i-started-using-firebase-9110d393e193">Here’s what I wish I knew before I started using Firebase</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seven deadly sins in UI and UX design]]></title>
            <link>https://uxdesign.cc/seven-deadly-sins-in-ui-and-ux-design-95eed1b3105b?source=rss-43185500f2d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/95eed1b3105b</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[apps]]></category>
            <dc:creator><![CDATA[Nikhil Sridhar]]></dc:creator>
            <pubDate>Thu, 11 Oct 2018 00:49:00 GMT</pubDate>
            <atom:updated>2018-10-11T01:59:10.306Z</atom:updated>
            <content:encoded><![CDATA[<h4>An extensive guide on how NOT to design your application</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7RrFQdTum3NvvmeVGrffpQ.jpeg" /></figure><p>Most articles regarding UI and UX design offer best practices and advocate design strategies; this article will not. Instead, it will highlight common design flaws and propose practical solutions.</p><h3>Sin #1: Misuse of Color</h3><p>New designers neglect the importance of color in their applications when, in fact, color contributes significantly to a first impression. These same designers often jump to bright primary colors which require too much attention, hurt the eye, and inaccurately reflect their applications. The following tips will help you avoid any abuse of color and pick the right color scheme for your application.</p><ol><li><strong>Use white backgrounds — </strong>White backgrounds keep applications clean and simple. They allow for better use of other colors and do not detract from a application’s primary functionality by drawing constant attention.</li><li><strong>When in doubt, go blue — </strong>Take a moment to consider every company which uses blue in their color scheme: Facebook, Twitter, PayPal, Chase, etc. There is a reason for this. Blue is a gender neutral color loved by both males and females. It is a great pick for almost any application.</li><li><a href="http://coolors.co/"><strong>Coolors.co</strong></a><strong> —</strong>This is an especially useful website designed to generate color schemes for applications. If you are really stuck and cannot determine colors which reflect your application, head over to <a href="http://coolors.co/">Coolors.co</a> and let it do the work for you.</li></ol><h3>Sin #2: Random Review Prompts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*suH_RxymtbZ0ODpoXwEDqw.png" /></figure><p>Randomly displayed review prompts, which ask the user to rate an application if she or he has enjoyed it, are seriously ineffective. Not only can they annoy users, but they also provide little to no value if displayed at random intervals. <strong>Platforms like the App Store and Google Play Store rank their applications based on their reviews and downloads.</strong> Therefore, it is most productive <strong>to prompt the user to review an application right after he or she does something which results in great satisfaction</strong>. For example, let us consider an application which involves users splitting bills and settling up with PayPal and Venmo. Rather than periodically presenting a prompt to review the app, it would be more productive to prompt the user to review it after receiving money from another user.</p><h3>Sin #3: Design Inconsistencies</h3><p>Though what I am about to say may seem trivial, trust me when I say it is not. When I first started as a developer, I too believed that small UI inconsistencies would go undetected. They did not, and I am here to tell you how to avoid the mistakes I made. The following are some of the UI inconsistencies which were widely noticed in my first application.</p><ol><li><strong>The use of both sharp and rounded corners</strong></li><li><strong>Different fonts (especially in headers)</strong></li><li><strong>Different color schemes</strong></li><li><strong>Different popup styles</strong></li></ol><h3>Sin #4: Vague Error Messages</h3><p>The first priority in UX design is to make your application easy to use. In other words, it is critical that the user does minimal work in order to accomplish his or her goals. Displaying vague error messages contradicts this very principle. Messages like “Your request could not be performed at this time. Please try again later” and “An error occurred. Please try again.” force the user to both identify the problem and the solution; <strong>they should rather provide an explanation to why the error occurred and explain how the user might fix it.</strong> I once remember using an app in which I encountered this very problem. I typed in a password, and it gave an error: “This password is invalid”. I typed in a different password and again: “This password is invalid”. Three passwords later, and the same message appeared. Well, if the password was invalid, why didn’t the application tell me why?</p><h3>Sin #5: Unattractive Advertisements</h3><p>Ads objectively ruin applications. <strong>Thus, it is critical to not make them stand out.</strong> I recognize that they are often essential to monetizing applications, but that does not mean that they have to draw attention. Ads need to blend with an application. For a better understanding, go ahead and open Facebook and Instagram; they properly integrate ads. Their ads are not the first thing users see, and they certainly do blend in with the application’s environment. As a side note, if you really do need to display ads, make the content related to the user. For example, it would be approriate to show an ad for a shirt when a user is searching for clothes, but not a chainsaw (and yes I know I am exaggerating).</p><h3>Sin #6: No Animations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hcdNFGRLLxRRG3FsNRxsZQ.jpeg" /></figure><p>As a developer, I know from first hand experience that animations are a hassle. They seem to add no functionality and so we leave them out. But animations play a substantial role in a positive user experience. Perhaps the most important animation is the <strong>swipe left / swipe right gesture</strong>, allowing the user to navigate back and forth between screens with just the swipe of a finger. This simple gesture has been shown to incease user satisfaction by 5%, and it does not take much time to implement with the availability of preexisting libraries. If you are developing for any iOS device, it is also in your best interest to consider implementing <strong>force touch</strong> in your application. Force touch is a simple way of sharing data with friends and linking other apps.</p><h3>Sin #7: Infinite Loading Screens</h3><p>Infinite loading screens, or those which seem to never end, can be the most frustrating parts of applications for users. Some websites estimate that 10 seconds after an activity indicator is displayed, a typical user will quit the application, probably ruin the process, and never open the app again. This situation, however, can be easily prevented through the use of a progress indicator.<em> </em><strong>Progress indicators allow the user to gauge how much longer he or she needs to wait.</strong> What is more is that progress indicators require almost no time to implemenmt. <strong>Simply displaying a percentage of the task done (even if it is fake) has been proven to significantly increase user satification.</strong></p><p>These are just some of the few things to avoid when designing an application. For more tips, please stay tuned and follow me. Claps are greatly appreciated.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff%2F50d69a%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F50d69a%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/05d5fd32eda31cbd1b83287606744532/href">https://medium.com/media/05d5fd32eda31cbd1b83287606744532/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95eed1b3105b" width="1" height="1" alt=""><hr><p><a href="https://uxdesign.cc/seven-deadly-sins-in-ui-and-ux-design-95eed1b3105b">Seven deadly sins in UI and UX design</a> was originally published in <a href="https://uxdesign.cc/">UX Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Order Types: Fundamentals of Trading Stocks]]></title>
            <link>https://medium.com/swlh/basic-order-types-fundamentals-of-trading-stocks-2078b80d8e95?source=rss-43185500f2d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2078b80d8e95</guid>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[stocks]]></category>
            <category><![CDATA[investment]]></category>
            <category><![CDATA[stock-market]]></category>
            <dc:creator><![CDATA[Nikhil Sridhar]]></dc:creator>
            <pubDate>Wed, 26 Sep 2018 00:41:40 GMT</pubDate>
            <atom:updated>2018-11-27T08:14:35.173Z</atom:updated>
            <content:encoded><![CDATA[<h4>The market, limit, and stop orders</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NZPSj4C6fEn-JPfMqdsceg.jpeg" /></figure><p>At first, glance, learning about stocks can seem quite intimidating. Words like assessment bond, amortization, and ask price can often be overwhelming. But do not be discouraged. This article will help you learn the very basics of trading stocks and show you how to get started.</p><h3><strong>Stock Quote</strong></h3><p>Before buying or selling shares of a company, you must acquire a <strong>stock quote</strong> (also called a ticker). A stock quote contains three essential pieces of information:</p><ol><li><strong>Current Bid (Bid Price)</strong> — The highest price somebody else is willing to offer for shares of a given company</li><li><strong>Current Offer (Ask Price)</strong> — The lowest price at which somebody else is willing to sell shares of a given company</li><li><strong>Last</strong> <strong>Transaction</strong> — The last transaction made involving shares of a given company</li></ol><p>In each of the above pieces of information, both the number of shares and the price is provided. These terminologies will have become clearer as I go through some examples.</p><h3>Types of Orders</h3><p>After a stock quote is obtained, you must specify the type of order, or the type of trade to be performed. Several types of orders exist. Market orders, limit orders and stop orders constitute some of the more basic ones. In this article, I will briefly go over each of these, but I want to make it clear that these are not the only type of orders which exist.</p><h4>Market Order</h4><p>A market order is the most basic type of order. It instructs a stockbroker to buy or sell a finite number of shares at the best price possible. It is important to remember that <em>a market order guarantees quantity, but not price</em>. This can be best illustrated through an example. Let’s say the following stock quote is obtained: Bid Price — $100 (50 shares), Ask Price — $150 (60 shares), Last Transaction — $25 (10 shares). First, it is important to properly interpret this stock quote. Somebody is willing to buy 50 of your shares for $100 at most. Somebody is also willing to sell 60 of his shares for a minimum of $150. And the last transaction to occur was a sale of 10 shares for $25. Now, with the stock quote obtained, let’s say you issue a market order to buy 70 shares. The broker will first buy 60 shares for $150 and then the remaining 10 shares for the next best available price.</p><h4>Limit Order</h4><p>A limit order works in a manner opposite to that of a market order. It instructs a stockbroker to sell or buy stocks within a certain budget. In other words, <em>it gaurentees the price, but not quantity</em>. Let us consider the stock quote from above and a limit order to buy stocks with a budget of $200. First, the broker will purchase 60 shares at $150. Then the broker will wait for the next best available purchase for $50. Once again, it is crucial to recognize the difference between market orders and limit orders. Market orders guarantee quantity while limit orders guarantee price.</p><h4>Stop Order</h4><p>The last type of order I will cover is a stop order. A stop order behaves like a market order. In fact, a stop order is essentially a market order dependent on a certain “stop price”. <em>Stop orders are executed as market orders once the price of a stock meets a certain threshold</em>. Stop orders can be both used to secure profits are to minimize loss. At first thought, this might seem confusing so let’s take a closer look at what I am saying. Let’s put a stop order to sell $120 worth of stocks of a company whose stock currently trades at $100. Once the stock of the company rises to $120, our stop order will be executed, securing a gain of $20. This same logic can also be applied to minimize losses. Instead, let’s put a stop order to sell $80 worth of stocks of a company whose stock currently trades at $100. This time, the stop order will be executed when the stock of the company drops to $80, minimizing any further losses.</p><p>That concludes this article, but there is so much more to learn. Follow me to read more insightful articles.</p><figure><a href="https://medium.com/swlh"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YqDjlKFwScoQYQ62DWEdig.png" /></a></figure><h4>This story is published in <a href="https://medium.com/swlh">The Startup</a>, Medium’s largest entrepreneurship publication followed by +393,714 people.</h4><h4>Subscribe to receive <a href="http://growthsupply.com/the-startup-newsletter/">our top stories here</a>.</h4><figure><a href="https://medium.com/swlh"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouK9XR4xuNWtCes-TIUNAw.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2078b80d8e95" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/basic-order-types-fundamentals-of-trading-stocks-2078b80d8e95">Basic Order Types: Fundamentals of Trading Stocks</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>