<?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 Saurabh Maurya on Medium]]></title>
        <description><![CDATA[Stories by Saurabh Maurya on Medium]]></description>
        <link>https://medium.com/@saurabhmaurya?source=rss-de57bcba4ab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f4aUatFoIQUFBxZTBEyTkA.jpeg</url>
            <title>Stories by Saurabh Maurya on Medium</title>
            <link>https://medium.com/@saurabhmaurya?source=rss-de57bcba4ab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 05:48:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saurabhmaurya/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[Growing pains —  Becoming an Intermediate developer]]></title>
            <link>https://medium.com/javarevisited/growing-pains-becoming-an-intermediate-developer-6108a00211d5?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/6108a00211d5</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Wed, 17 Jul 2019 18:22:08 GMT</pubDate>
            <atom:updated>2019-07-24T07:11:13.821Z</atom:updated>
            <content:encoded><![CDATA[<h3>Growing pains — Becoming an Intermediate developer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*x4UrmCiA52YGF89Ia5vEYQ.png" /></figure><p>So you’ve gotten a little comfortable at work. The deployment lifecycle is no longer black magic. Code reviews are shorter than your code. And you’ve shipped some stuff.</p><p>Hopefully, you’re motivated to branch out and learn more. But the sheer volume of resources is mind-boggling!</p><blockquote><strong><em>One pragmatic approach is to stick to things that will also help you interview better.</em></strong></blockquote><p>That way, you will have a sense of progression and a goal to stay focused on.</p><p>Focus on these 5 areas — <br>1. Low-level/Library Design<br>2. System Design<br>3. Concurrency<br>4. Design Patterns<br>5. General Coding Practices</p><p>The resources I’ve listed will be Java-heavy but you should be able to find equivalents for other languages. Most design concepts are language-agnostic anyway.</p><h3>Low-level/Library Design</h3><p>If you look at past interview questions for SDE2/3 at Uber, Amazon et al., you’ll see at least one round tends to ask such low-level design. Two commons ones I’ve heard of are — <br>1. <strong>Design a Logger Library</strong><br>2. Implement the Streams Framework in Java</p><p>I especially like the Logger question; you can expect a range of answers based on how skilled the interviewee is.</p><p>Stop for a minute and try it. Once you’re done, ask yourself the following questions —</p><ul><li>Did you decompose your implementation into different interfaces? Or is it one super-class with everything?</li><li>Are you cognizant of the thread-safety of your classes?</li><li>Is your Logger a singleton? Lazy loaded or eager loaded? Why?</li><li>Is it pluggable? Can a third-party extend your library with alternative implementations?</li><li>What about garbage collection? Are you creating too many objects?</li></ul><p><strong><em>Log4j2</em></strong> does an amazing job of documenting it’s own design. Go take a <a href="https://logging.apache.org/log4j/2.0/manual/architecture.html"><strong><em>peek</em></strong></a> when you’re done trying the problem.</p><p>I haven’t been able to find any other good resources for low-design. Holler below in the comments if you find anything useful.</p><h3>System Design</h3><p>This is more in line with what developers tend to think of when someone says “design questions”. Two commons one here are — <br>1. Design a URL shortening system<br>2. Design Twitter’s Newsfeed system</p><p>A solid way to get started is <a href="https://github.com/donnemartin/system-design-primer"><strong><em>Donne Martin’s Design Primer</em></strong></a>. It’s long but it’s an excellent breadth-first approach to getting comfortable with system design.</p><p>At the least, you should be comfortable with — <br>1. Async v/s Sync writes; Messaging Queues<br>2. Consistency patterns — especially eventual consistency<br>3. Database types (SQL v/s NoSQL) and scaling patterns<br>4. Caching at different levels<br>5. Breaking a problem statement down into different independent services</p><p>A great follow-up resource is <a href="https://www.educative.io/collection/5668639101419520/5649050225344512"><strong><em>Grokking the System Design Interview</em></strong></a>. It has detailed discussions on specific system design questions such as the two I mentioned above. It’s a paid resource but an excellent one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kb83ZA2zXSeUuDwORToa_Q.png" /><figcaption>[Source: <a href="https://github.com/donnemartin/system-design-primer">https://github.com/donnemartin/system-design-primer</a>]</figcaption></figure><h3>Concurrency</h3><p>Concurrency is another topic that distinguishes junior engineers from more senior ones. It’s surprisingly hard to get right.</p><p><strong><em>“Java Concurrency in Practice”</em></strong> should be required reading. You’ll walk away with a much better understanding of — <br>1. Java’s Memory Model<br>2. Happens-before relationships<br>3.Spurious wakeup calls<br>4. Volatile v/s Synchronized<br>5. Thread safety, wait and notify and many others</p><p>If you code in a different language, find an equivalent book. Debugging race-conditions without a thorough grasp of the concepts will be <strong><em>very</em></strong> painful.</p><p><a href="https://www.educative.io/collection/5307417243942912/5707702298738688"><strong><em>Java Multithreading and Concurrency</em></strong></a> by Educative is a great follow-up resource. Read through the concepts; then stare at a couple of solved interview questions. This will be much easier than attempting them cold-turkey.</p><h3>Design Patterns</h3><p>You aren’t likely to be pop-quizzed on these. But you will see them emerge as you plow through different design problems.</p><p>Once you read up on them, you’ll start seeing them everywhere. A few examples — <br>1. Adapter — Arrays.asList()<br>2. Decorator — Collections.synchronizedCollection(new ArrayList&lt;&gt;())<br>3. Prototype — Immutables.copyOf()<br>4. Command — Runnable interface<br>5. Strategy — <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html#compare-T-T-">java.util.Comparator#compare()</a></p><p>StackOver has a huge list of patterns found in Java’s core libraries <a href="https://stackoverflow.com/a/2707195">here</a>.</p><p>I tried reading the legendary GoF book — Design Patterns: Elements of Reusable Object-Oriented Software, but I confess I couldn’t make my way through it.</p><p>Instead, I tried <strong><em>Head First Design Patterns</em></strong>. It doesn’t look like a technical book at all but it’s actually a great read.</p><p>The different oddball stories stick and do a great job of teasing out the subtleties of similar patterns. I finished this over a weekend and laughed through a lot of the book.</p><p>I’ll give the GoF another try a couple of months later. The discussions in it are probably more relatable with experience.</p><h3>General Coding</h3><h4>Books, Books, Books</h4><p><strong><em>“Effective Java”</em></strong>. This is an excellent way to get used to Java’s idioms and best practices. It’s chunked up into 90 independent topics — each a couple of pages long. So you can read the sections relevant to what you’re working on.</p><p><strong><em>“Clean Code” </em></strong>— Last one I promise! — is another excellent read and very handy when you start reviewing other people’s code. It’ll help you pick out code smells in a heartbeat. Like “Effective Java”, only thumb through the sections you think are relevant right now.</p><h4>Getting Comfortable with your IDE</h4><p>Fine, this doesn’t pass the “makes you better at interviewing” test. But really, becoming fluent with your IDE makes coding a helluva lot more fun!</p><p>I use IntelliJ and it has a nifty <strong><em>“Key Promoter X”</em></strong> plugin. Each time you use your mouse instead of a keyboard shortcut, it screams at you. You should feel like a pro (and very harassed) in a couple of weeks. If you’re using another IDE, try finding the equivalent there. Or use IntelliJ, it’s awesome.</p><p><a href="https://www.youtube.com/watch?v=eq3KiAH4IBI"><strong><em>42 IntelliJ Idea Tips and Tricks</em></strong></a> is a conference talk on Youtube. It’s an entertaining way to get acquainted with the most used power features in there.</p><p>This is a big list — And it has books! Instead of being in a rush to finish things, think of improving a little every day by going through some of these. Good luck!</p><p>Oh and by the way, I’m assuming most readers have 0–4 years of experience. If you haven’t started working yet, stick to LeetCoding. Come back to this later.</p><p>Design concepts don’t tend to sink in until you’ve worked with a couple of systems in the real world.</p><h4>Appendix</h4><ul><li><a href="https://logging.apache.org/log4j/2.0/manual/architecture.html">Log4j - Log4j 2 Architecture - Apache Log4j 2</a></li><li><a href="https://github.com/donnemartin/system-design-primer">GitHub - donnemartin/system-design-primer: Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.</a></li><li><a href="https://www.educative.io/collection/5668639101419520/5649050225344512">Grokking the System Design Interview</a></li><li><a href="https://www.educative.io/collection/5307417243942912/5707702298738688">Java Multithreading for Senior Engineering Interviews</a></li><li><a href="https://stackoverflow.com/a/2707195">Examples of GoF Design Patterns in Java&#39;s core libraries</a></li></ul><p><a href="https://www.youtube.com/watch?v=eq3KiAH4IBI">https://www.youtube.com/watch?v=eq3KiAH4IB</a> — An entertaining talk on tips and tricks using the IntelliJ IDE.</p><blockquote><strong>Books</strong><br>I like picking one good book in each foundation area and making sure each book is orthogonal to the rest.</blockquote><ol><li><a href="https://www.goodreads.com/book/show/105099.Effective_Java_Programming_Language_Guide"><strong>Effective Java</strong></a> — Primer on Java best practices. Very easy read.</li><li><a href="https://www.goodreads.com/book/show/3735293-clean-code"><strong>Clean Code</strong></a> — Good rules of thumb for coding</li><li><a href="https://www.goodreads.com/book/show/127932.Java_Concurrency_in_Practice"><strong>Java Concurrency In Practice</strong></a> — Foundational book for grasping concurrency</li><li><a href="https://www.goodreads.com/book/show/58128.Head_First_Design_Patterns"><strong>Head First Design Patterns</strong></a><strong> </strong>— Fun, effective way of thinking about Object-Oriented Design</li><li><a href="https://www.goodreads.com/book/show/23463279-designing-data-intensive-applications"><strong>Designing Data Intensive Applications</strong></a> — Highest rated technical book I’ve ever seen. Great for System Design but huuuuge. Best to read a little at a time.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6108a00211d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/growing-pains-becoming-an-intermediate-developer-6108a00211d5">Growing pains —  Becoming an Intermediate developer</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An (Opinionated) Beginners Guide to Start-up Web Architecture]]></title>
            <link>https://medium.com/hackernoon/an-opinionated-beginners-guide-to-start-up-architecture-9cda2a3ba581?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cda2a3ba581</guid>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Wed, 01 Aug 2018 20:48:01 GMT</pubDate>
            <atom:updated>2018-08-10T18:29:45.639Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Get started fast!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*3cqpNFnamWcdOFdT9jGmTQ.png" /></figure><p>The vast array of choices when sketching out your backend architecture can be bewildering. <strong>The decision fatigue is real.</strong></p><p>With every tool you pick, you have to wonder about community support, edge cases it doesn’t take care of, whether there are established best practices for it and more.</p><p><strong>Most early-stage, web-based startups can get away with a fairly similar architecture for the first year or two.</strong> You will have an application layer, an asynchronous tasks layer, caching, a database service (start with Relational DBMSes unless you really know what you’re doing), a text-search service and S3 as an object store.</p><p>At <a href="https://www.tapchief.com/">TapChief</a>, we’ve spent a lot of thought into getting these right. We tried Solr for search and realised it didn’t work out well for us. An earlier Redis service provider was finicky and expensive.</p><p>I’m listing out a <strong>set of tools that we use in-house at TapChief that have stood the test of time for us.</strong> Hopefully, it can be a good way for someone to jump-start their backend architecture.</p><h3>Heroku</h3><p>Heroku takes away a lot of the headache of deployment. Deploying to it is as simple as writing “git push heroku”, irrespective of how many instances (dynos) you have running for a given service.</p><p>It also has great add-ons for services like Redis, Postgres, and AMQP. There is hardly any lock-in to the platform and you should be able to move out easily as your codebase is not aware of Heroku at all.</p><blockquote>Heroku is built on top of AWS so if you really need to, you could always keep some of your more expensive services running on AWS and have Heroku running other services in the same AWS region.</blockquote><p>We deploy our services via Nginx and gunicorn with gevent enabled for extra-concurrency.</p><pre>web: bin/start-nginx gunicorn -c config/gunicorn.py tapchief.wsgi --worker-class gevent --log-file -</pre><h3>Django</h3><p>A boring stable framework with a ridiculously useful admin panel feature. If you are working at a start-up with back-office operations, you’ll really appreciate this.</p><blockquote>Django operates as a shared-nothing framework which means scaling it is as simple as running more instances of it in parallel. And it’s old and popular enough that it has an ample number of well-tested libraries. StackOverflow is teeming with answers to help you out in case you get stuck.</blockquote><p>You could use Rails or the Play Framework for your application too. Both follow a similar shared-nothing MVC type of structure. But the Django Admin panel seems to be a unique and useful feature.</p><h3>Types</h3><p>I miss Java here, I’ll admit. We’re a start-up, we don’t really have too much test coverage. Seeing runtime exceptions because we thought an object was a string when it was actually a list is painful.</p><p>What we have done is write types for all arguments in the docstring of most functions we use. We let PyCharm yell at us whenever it thinks we’re doing something wonky.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18b7f67bd92aa204172d72a091aebfe8/href">https://medium.com/media/18b7f67bd92aa204172d72a091aebfe8/href</a></iframe><h3>PyCharm</h3><p>Use a real IDE. Something which lets you refactor effortlessly, tells you when you aren’t using coding conventions appropriately and highlights potential bugs. I’ve heard Visual Studio has gotten quite good and is much less of a memory hog than PyCharm/IntelliJ.</p><h3>Celery</h3><p>You’re going to need asynchronicity. Your application service should not be doing long-running tasks. Instead, it should offload it on to a queue and worker processes should pick up and work on these tasks in the background.</p><blockquote>This is a critical part of how to achieve scale with your app.</blockquote><p>Celery is also a great way to set periodic tasks. Want to send automated daily analytics reports on how many users have signed up? Celery has you covered.</p><p>CloudAMQP is a reliable provider on Heroku for the message broker (queue) part of this system.</p><h3>Redis</h3><p>Caching is another key part of the strategy to build a scalable and low-latency solution. Common read queries which do not change frequently can be cached to prevent them from causing database hits.</p><blockquote>Keep in mind that your database is usually going to be the hardest thing to scale. Especially if you go for a relational store. So use your cache to “protect” your database from heavy reads.</blockquote><p>RedisGreen. There are loads of add-on providers for Redis on Heroku. But this is probably the cheapest and with the most comprehensive metrics dashboard.</p><h3>Postgres</h3><p>Heroku Postgres. This is an add-on officially supported by Heroku. And it’s excellent. For $50 a month, you get daily automated back-ups, excellent metrics, roll-back ability, and a quick way to snapshot and download your database at any time.</p><p>Django plays particularly well with Postgres.</p><h3>Django Rest Framework</h3><p>Abstracting out your UI layer as Rest APIs is a better idea than using Django’s templating system. You can support multiple different clients this way. Django’s Rest Framework is a great choice here.</p><h3>S3</h3><p>Don’t serve static content from your backend. Application servers like Django are especially not designed for that. Nginx is still a reasonable option for this.</p><h3>CloudFlare</h3><p>Use a CDN like CloudFlare to cache and deliver your static files.</p><h3>Angular? React? Vue?</h3><p>We’ve used Angular here at TapChief. And we absolutely love it!</p><p>We like structured opinionated frameworks taking away the cognitive load of choosing which packages to use together. That batteries-included approach is why we like Django over Flask. And we’ve found exceptional success with Angular, Universal and NativeScript.</p><p>But somehow, the rest of the community seems to be rallying around React and more recently, VueJS. *shrug*</p><p>I’m really not sure what to pick here. (Pick Angular!)</p><h3>LogEntries</h3><p>This is a one-click easy and free solution to get logs of the past 7 days. Very easy to install and comes as a Heroku add-on for any service you host there. There should be paid plans with more extensive logging options but we haven’t needed to explore them all that much.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdjhSm7gEtYsAFSJUbl1oQ.png" /></figure><h4>ElasticSearch</h4><p>Search is one of the first things you should offload from your application server and primary database. And ElasticSearch provides a really good DSL for Python.</p><p>Bonsai ElasticSearch on Heroku has been an easy way to scale and reliable option for us.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbe78a228d4a806f4c24d99924a3dc4c/href">https://medium.com/media/bbe78a228d4a806f4c24d99924a3dc4c/href</a></iframe><h3>Scalability</h3><p>This is often conflated with concurrency. A (horizontally) scalable system is one in which adding more machines should lead to a linear increase in the workload the system can handle.</p><blockquote>Django is excellent here since it is stateless. One Django instance is not enough for all your requests? Well, just add a couple more behind your load balancer. (Pssst.. this is super easy with Heroku).</blockquote><p>In terms of concurrency (requests per system), a Go-based REST API Service will probably do better. But you can get pretty far with Nginx buffering your requests and using gunicorn with gevents enabled.</p><p>Of course, the real bottleneck here ends up becoming the relational datastore you use. These don’t scale out as well as their NoSQL counterparts can do. It is entirely possible to use Django with NoSQL stores to tackle this.</p><p>But make sure your system load is heavy enough to warrant the additional complexity that NoSQL systems can add.</p><h3>Abstractions</h3><p>Have you heard of the <a href="https://en.wikipedia.org/wiki/Fundamental_theorem_of_software_engineering">fundamental theorem of software engineering</a>?</p><p><strong><em>Indirection</em></strong>. Most issues in software occur since one layer makes certain assumptions about another layer.</p><p>Okay, fine, it’s not a real theorem, but it is remarkable how many problems in Computer Science can be solved with an additional layer of indirection.</p><blockquote><em>Your goal as an architect is to keep the system flexible.</em></blockquote><p>The classic Django MTV architecture assumes a relational store accessed via an ORM. Fat models, i.e. business logic coupled with objects generated via the ORM are commonplace.</p><p>What if you need to use NoSQL for some of your heavy transactional objects later? It would be a pain to move away all that business logic.</p><p>Instead, we can keep a Service Layer between the Views and the ORM. And our business entities could be plain Python objects. (POJOs as they are called in the Java world).</p><p>You access them via an interface and it doesn’t matter if they are originally from the ORM or another adapter you built out to work with NoSQL stores.</p><p>Is this overdoing it? It really depends on your use-case. This works if you’re sure you’ll need to handle that sort of work-load extremely quickly.</p><blockquote>If you can keep going with Postgres and Redis for a year or two, you probably shouldn’t bother with this. You can just slowly abstract out the entities you want to move over to a NoSQL store. It’s unlikely that you will want to move your entire database to NoSQL anyways.</blockquote><p>You’ll notice that this has been a very monolithic architecture. A service-oriented architecture is probably where you’ll eventually be headed but starting with that up-front usually slows down development at a time where you should be aggressively trying to find product-market fit.</p><p>Be mindful of the fact that you may have to migrate to an SOA, and keep different concepts as separate as possible. This way, you’ll be able to peel out different entities into their own services later on.</p><h3>Read Hackernews</h3><p>Google <em>“hackernews golang vs java”</em>. You’ll see quality discussions between folks who’ve used different technologies in the wild.</p><p>Hackernews has built a great community of people who build things. People share their experiences with new languages, frameworks, and technology. Think of it as a better behaved Reddit for technology.</p><p>An interesting <a href="https://news.ycombinator.com/item?id=16332091">discussion</a> on Hackernews about picking the “right” framework.</p><blockquote>I know this isn’t really a part of the architecture, but the discussions help shape your understanding of the trade-off of various tools.</blockquote><p>It can be mind-boggling trying to fit all the pieces together to build a scalable architecture. But that’s the really fun part of backend engineering. The tradeoffs of shipping quickly v/s the “right” architecture. What and where to cache. When to move over to NoSQL stores. How much technical debt to accumulate in order to get product clarity.</p><p>Running your own start-up? Tell us what stack/tools/architecture you use. It’s always comforting hearing that someone else is using the same tools as us!</p><p>Want a less tool-oriented guide on designing your technical architecture? You should check out <a href="https://www.goodreads.com/book/show/18043011-clean-architecture">Clean Architecture</a> by Robert C. Martin.</p><p>Or for a quicker overview of backend architecture in general: <a href="https://github.com/donnemartin/system-design-primer">https://github.com/donnemartin/system-design-primer</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cda2a3ba581" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/an-opinionated-beginners-guide-to-start-up-architecture-9cda2a3ba581">An (Opinionated) Beginners Guide to Start-up Web Architecture</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building with NativeScript]]></title>
            <link>https://medium.com/hackernoon/building-with-nativescript-9e8e9d0e2fe5?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e8e9d0e2fe5</guid>
            <category><![CDATA[build-with-nativescript]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[nativescript]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Wed, 27 Jun 2018 21:05:50 GMT</pubDate>
            <atom:updated>2018-10-05T06:43:55.901Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reports from a Start-up attempting it in production</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTBcnfIoY14bApp3NJs0fQ.jpeg" /></figure><p>Here at TapChief, we have been using Angular for the past 6 months. We’ve gotten quite comfortable with it.</p><p>As a team of 5 engineers, we’ve set up a REST backend in Django, an ElasticSearch server, and two different Angular products.</p><p>Building native applications became a critical business need for us but we didn’t have the resources to build out separate teams for them.</p><p>About 3 weeks ago, we decided to jump ahead and use NativeScript so that we could re-use our Angular knowledge and have a shared codebase for iOS and Android. We’ll be sharing our experiences and learning as we continue to build the apps.</p><h4>Calling Native Android/iOS Code</h4><p>This is considered NativeScript’s biggest differentiator from Ionic or ReactNative. Think of it as NativeScript having built a language translator which converts your TypeScript code directly into Java/Objective-C code.</p><p>We were immediately skeptical that this would be as easy as advertised. So one of the first things we tried was integrating the QuickBlox android and iOS SDKs into our application.</p><p>We had to wrap the iOS SDK as a nativescript plugin and create something called a Podfile. This was intimidating since none of us had a clue about iOS development but there was ample documentation for the same. Finally, installing the SDK involved making a folder like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*QPPCv034927FHIieaTCFtQ.png" /></figure><p>The Podfile was just a single line.</p><pre># Podfile<br>pod &#39;QuickBlox&#39;</pre><p>And the package.json was similarly simple.</p><pre># package.json<br>{<br>  &quot;name&quot;: &quot;qb-ios-plugin&quot;,<br>  &quot;version&quot;: &quot;0.0.1&quot;,<br>  &quot;nativescript&quot;: {<br>    &quot;platforms&quot;: {<br>      &quot;ios&quot;: &quot;1.3.0&quot;<br>    }<br>  }<br>}</pre><p>And then running <strong><em>tns build ios.</em></strong></p><p>And then optionally running <strong><em>TNS_TYPESCRIPT_DECLARATIONS_PATH=”$(pwd)/typings” tns build ios<br></em></strong>to build d.ts files for all typescript code that invokes iOS code.</p><p>This is really useful when digging into a new library since it shows you precisely how the TypeScript version of all the methods and classes are referenced — Look at “declare class QMServicesManager” in the code sample below</p><blockquote>An example of Typescript code calling native 3rd party iOS SDK code</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c5d994318ef5a6097b47c0b161e5640/href">https://medium.com/media/6c5d994318ef5a6097b47c0b161e5640/href</a></iframe><p>And here’s a snippet from the auto-generated typings file created for the SDK.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/46de7af1dcb205712035bd7bec1f4304/href">https://medium.com/media/46de7af1dcb205712035bd7bec1f4304/href</a></iframe><p>As you can see, it’s very similar to the corresponding native code. You can usually just guess the function names.</p><p>NativeScript uses reflection to understand the iOS/Android code and builds typescript bindings for the same. Quickblox.d.ts above is an example of such a binding. What this means is that you don’t have to wait for someone to build out the bridge to obscure third-party packages you want to use. That bridge is automatically created at build-time!</p><p>This was much easier than we expected, and it’s incredibly satisfying to hack together a functional chat service integration in a day. Especially when you have never coded Android or iOS before!</p><h4>TypeScript</h4><p>Personally, I’m a big fan of static typing. It makes diving into other people’s code much easier. Our own Angular codebase is a lot more maintainable for the same.</p><p>And if I couldn’t generate the typings for the iOS library I used above, methods would have been much harder to discover.</p><p>TypeScript code ends up looking very similar to the Java code it is actually calling for native bridge calls. Language constructs frequently map together in similar ways and it feels natural to be using TypeScript here.</p><h4>Build time</h4><p>I use a MacBook 2016 (16GB Ram, SSD) at work. The first cycle to build the APK from scratch and load it on the phone takes about a minute.</p><p>Subsequent incremental builds are a breeze. They only take a few seconds only. Somehow LiveSync for NativeScript is faster than the incremental compilation Angular provides for the web!</p><p>Some of my colleagues were using 4-year-old personal laptops with 8GB of RAM and a hard disk. That made builds excruciatingly slow. Each android build would take about 15 minutes from scratch, although the LiveSync (incremental builds) was still only a few seconds long. Those went out the door and everyone has shiny new 16 GB machines with SSDs now :)</p><h4>Templatization</h4><p>Deepak, our front-end lead, has written most of our UI components. I’ll have push and prod him to write his own piece later. From my vantage point, it took him about 3–4 days to grok the documentation on UI and a full week of painfully and slowly writing templates. But beyond this, he was nearly as productive as with HTML in Angular.</p><p>While the XML code is the same in most places, there are small bits and pieces of Android or iOS-only logic which sneak into the template files.</p><p>SCSS has been instrumental in structuring our styling in our Angular code-base and being able to use SCSS and all the conventions we picked up there has made our job a lot easier here.</p><h4>Learning curve</h4><p>It took a while to learn the XML based template language. And as someone who’s never made an iOS app, I had to learn about delegates, installing libraries and other minor quirks. With android too, writing a plugin the first time took some work.</p><p>But otherwise, virtually everything else is the same as it is for Angular. We just skimmed through the tutorials and dived right into coding. If you’ve had prior experience with Angular, it should be a very easy transition — a week or two before you feel productive.</p><p>Service logic written in Angular was copy-pasted nearly as is for the NativeScript code base. UI Components are being written pretty much from scratch though. Deepak has been focussed on writing UI components while Abhijith and I have been figuring out how to integrate chat, google-places, native plugins, writing a rich-text editor and more. Only 3 of the 5 of us are working on the NativeScript application and we’re seeing good progress.</p><p>Documentation has been decent. And between that and some googling, we haven’t had to reach out to the community directly (yet) to sort out our issues.</p><p>We’re having a good time with NativeScript. It feels borderline magical at times. There’s the question that has a lot of the community abuzz. Would Airbnb have had the same issues with NativeScript? — <a href="https://medium.com/airbnb-engineering/react-native-at-airbnb-the-technology-dafd0b43838">Airbnb sunsets ReactNative</a></p><p>Two of their biggest issues were<br><em>1. Lack of typing in Javascript<br>2. Native bridges to the underlying platforms were excruciating to build</em></p><p>These are both inherent strengths of NativeScript. My own experiences have been limited but I’d wager they’d have had a better experience with NativeScript.</p><p><strong>Update:</strong></p><p>We’ve made a sample rich text editor for NativeScript on Github. Check it out!</p><p><a href="https://github.com/aukris/nativescript-rich-text-example">https://github.com/aukris/nativescript-rich-text-example</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e8e9d0e2fe5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/building-with-nativescript-9e8e9d0e2fe5">Building with NativeScript</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Depression? Here’s how to help.]]></title>
            <link>https://medium.com/@saurabhmaurya/depression-heres-how-to-help-a80e81f38f60?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/a80e81f38f60</guid>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[depression]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Thu, 16 Mar 2017 14:41:58 GMT</pubDate>
            <atom:updated>2017-03-16T16:53:18.467Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve probably all seen someone struggling with anxiety or depression. College, especially can be a brutal and lonely place for some. We try to help for a while and then give up. Frustrated, that they aren’t getting over it.</p><p>How do you know someone is depressed? Maybe you aren’t sure whether the person is just sad for a while, that it’s just a phase or that someone really needs to intervene. <br><em>In either case, they probably do need a friend.<br></em> As you stick along, you’ll eventually be able to make the call whether they need outside medical intervention too.</p><p>My mom has dealt with depression for a long time. About a decade or so. I didn’t really understand it at first. I was in the 5th grade. Wondering why my mom was super quiet on most days. Or why she’d go back to live with her parents every so often.</p><p>What followed was a decade of experimenting. Different treatments, different doctors, different advice. It’s overwhelming. My dad spent a lot of time reading and discussing depression. Over time, he developed a strong opinion on what works. Getting the right medical treatment is absolutely essential. But he believes that along with it — not without antidepressants — rebuilding a sense of community and self-esteem is the path to a more permanent solution.</p><p>I’ll be writing mostly about my experiences with my mom. But I think they’d apply reasonably well to others as well. There are hereditary factors to mental health but the sociological factors do play their part.</p><h3>Not keeping it a secret</h3><p>Most people’s natural reaction is to hide that they are depressed. It grows to become a form of shame. It’s bad enough to be depressed without worrying about hiding it from others. Gradually, tease the topic of depression out from your friend. It’s something they should be able to discuss at least with a few people.</p><blockquote>Most of our friends know that my mom is taking medication for depression. And it’s something we freely talk about in the group. Dosage changes, forgetting to take meds, mood swings are all things that can be discussed instead of stigmatizing it and keeping it a secret.</blockquote><h3>Don’t help too forcefully</h3><p>Here’s what not to do. Say cheer up and then look expectantly at them. As if well, that was the magic word and they are all better now. It takes time. And if you are constantly badgering and visibly helping them out, they’re just going to get pressurized and frustrated that they aren’t getting better. They will find your company exhausting and stressful.</p><p>Be quietly supportive. Call them out and go for a walk, or a cup of coffee or a movie. Don’t directly engage in a conversation on what their root cause for depression is and what they should do. Talk about anything else! Ask them to join you in the gym because it’s fun, not because of it’s great benefits to their mental health.</p><blockquote>Sure, sometimes we go out for a movie and ice-cream with the express purpose of cheering up my mom. But we don’t declare that this is an activity to cheer her up and then stare at her every 5 minutes to see if she’s having a good time. We just go there, enjoy the movie and come back.</blockquote><h3>Building a community of friends</h3><p>Loneliness seems to go hand-in-hand with depression. A steady group of friends who meet up regularly helps. It doesn’t have to be a big group. Just 3–4 people is good enough. But you do have to be very selective. These are people who should be aware that their friend is going through a rough patch and sensitive enough not to trigger him.</p><blockquote>Back home, we have this group of close family friends. We catch up at least once every week. Have a potluck. Dinner maybe. Play some cards. Meet for each others birthdays. <br>I think this group has been the single biggest factor in my mom getting better.</blockquote><h3>Groups can help</h3><p>One-on-ones can be brutal. There’s this expectation that you have to respond to and pay attention to what the other person is saying. Not good if you just feel like curling up in a ball and staying in your room. But long periods of isolation don’t help much either. Just listening in while other people go on with their banter can be better.</p><p>Here’s where you can form a group of 3–4 people and work on an assignment in college. Well, start an assignment, and devolve into LAN gaming and music. We’ve done this with a friend in college, who was too nervous to talk one-on-one with someone, but with all us screaming and swearing while LAN gaming, he was comfortable joining in on the fun.</p><h3>Self-esteem and being occupied.</h3><p>Maybe your friend is brilliant at music or art. Ask him for help in that area. Don’t treat him as someone who needs help, go ahead and actively look for help from him too. If nothing else, ask them for company while you go about with whatever activity you are doing.</p><blockquote>We could order out whenever we have a get-together with family and friends. But we usually all cook together or at least cook something in our own homes and then meet up at one house. My mom’s a good cook. Whenever we’re cooking together, she guides us through the whole thing. It just ends up becoming a great bonding activity for everyone.</blockquote><h3>Medication helps. Don’t necessarily have to completely quit.</h3><p><em>“So when can I stop with the medicine?”</em></p><p>There’s this huge stigma around taking medication. That it somehow makes it “official”. But along with other meaningful activities to keep one engaged, it is really effective. Think of it as an aid to get-by while one rebuilds other healthy habits into their routine.</p><p>It’s natural to think of an end-date. Of when it’s over. But the thing with depression is that you may end up taking a low-dose over several years. Instead of thinking of targeting a date by when you are done with the medicine, try to reinforce healthy fun habits over time.</p><blockquote>My mom started off with a strong dose. She made more friends and started taking part in potlucks, get-together and trips. With time, the doctor kept reducing the dose. She took that as progress and worked harder at her hobbies. She’s been on a minimal dosage for years now.</blockquote><h3>Exercise</h3><p>Exercise in any form does wonders for your mood. There’s plenty of research to show that it’s effective in combating depression and anxiety. Basketball, Zumba, running, gyming, hiking, all of it works. Especially if done regularly enough. So do whatever it takes to drag your friend along.</p><p>Diagnosed depression is much like diabetes or heart disease from the perspective that it is a chronic illness that requires special attention and considerable patience.</p><p>There will definitely be days where it’ll seem hopeless. That nothing you or they do seems to work. I’ve seen it work in my mom’s case. It took several years though. If you’ve never gone through depression yourself, you won’t get why someone can be ‘sad’ for so long for no good reason. But you can still help out by being around.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80e81f38f60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Right Answer]]></title>
            <link>https://medium.com/slippery-slope/the-right-answer-1aa01ea828c?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/1aa01ea828c</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[thinking]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Tue, 02 Aug 2016 18:05:13 GMT</pubDate>
            <atom:updated>2016-08-02T18:11:40.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*dNR5oWHPxV3AIMQhD4Onsg.jpeg" /></figure><p>Admit it. You read movie reviews after a movie. Just to know how others felt about it, of course. You thought Inside Out was childish and boring. But all those rave reviews! Hmm.. maybe it wasn&#39;t so bad after all.</p><blockquote>Collective wisdom. At a scale unimaginable because of the Internet! Or wait, did I mean groupthink?</blockquote><p>We crave simplification. To be certain. And other people’s opinions are often a shortcut to feeling more certain in your own thinking. That and “science”.</p><p>Want to convince people about something? Write a well-formatted pseudo scientific article on it and cite random scientific studies to it. No one ever reads the citations. There’s so much faith in “science” these days, that it’s a new religion. I digress.</p><p>As kids we&#39;re conditioned to get immediate feedback on whether our answer is ‘right’ or not. Marks are awarded to each answer and most schools don&#39;t have the motivation/resources to try something more holistic.</p><p>Mathematics in particular, involves plenty of exercise questions. The first thing you do on solving one, is to turn back to the appendix and check your answer. Solve a few in a row without checking, and you aren&#39;t as sure of yourself. This translates reasonably well into the physical sciences as well. The answer to which molecule binds with another is rather unambiguous. You have plenty of one word answers and fill in the blanks since these questions have objective answers.</p><blockquote>“Do you think South Africa played a pivotal role in shaping Gandhi’s tactics in India?”</blockquote><p>— The social sciences is where we learn that things don&#39;t always have a single straight answer. Or well…where we should have. Except that during Board Exams, teachers correct several thousand papers each. Expecting each teacher to evaluate multiple different ‘right’ answers in a standard way is near impossible.</p><p>Why does it matter? It pays to know if your ideas are simply a regurgitation of what you hear, and when you&#39;ve thought through something yourself and can trust it. If you&#39;re a teacher, take extra effort to show your students that there can be multiple answers, not necessarily one correct one.</p><p>If you want to be an entrepreneur, then being comfortable with incomplete information is essential. Your own conviction in Uberizing refrigeration use needs to survive several months/years of others doubting you. Hell, if you could use Google to validate it, I&#39;ll bet there’s plenty of startups already trying.</p><p><strong>Have a little more faith in your own analysis</strong> and decision making facility. Find restaurants you like by tasting the food, not by the reviews you hear. Bet some money on stocks based off trends you see directly. Decide that data science is cool because you understand what it is and can make a first principles argument on why it has a future. Dislike coffee, despite everyone always drinking it. If you&#39;re used to offloading these decisions to Google, taking a personal risk on an off-beat startup idea (which people aren&#39;t talking about yet or have dismissed) just doesn&#39;t sound like your cup of tea.</p><p>Let’s go down a slippery slope with this. Deciding which restaurant to go to is a pain. So you have food review apps to help you with this. But reviewing restaurants on an app is a pain too. Fortunately, apps monitor everything you do, so they find the “best” restaurant for you. Life decisions in general are a chore too, but with all that data on you, you can ask google what to do now! Meanwhile, science has gotten so complicated, that you trust everything “scientific” you read on the net. People will be sure that that “Data Science” is their passion even if they can&#39;t describe what it is (or isn’t). Yup. In the future there will be no “free will” since we&#39;ll just do the “optimal” and “recommended” thing anyway. Cheers!</p><p>All this while, that kid in the basement, who wrote the troll article on how twerking is good for health? He’s still scratching his head wondering why people took it so seriously.</p><p>The age of the Internet and quick answers is affecting how comfortable we are with taking truly independent decisions. Not quite convinced? Why don&#39;t you google it? ;)</p><p>** If you&#39;ve done some original first-principle analysis on any topic, say, “Why we won’t have work by 2030&quot;, we&#39;d love to add it to Slippery Slope.</p><p>Some links to make all this sound more convincing:</p><ul><li><a href="http://www.nytimes.com/2012/01/15/opinion/sunday/the-rise-of-the-new-groupthink.html?_r=0">The Rise of the New Groupthink</a></li><li><a href="http://www.wired.com/2009/12/st_clive_thompson/">Clive Thompson on How Group Think Rules What We Like</a></li><li><a href="http://www.cracked.com/blog/schrodingers-cat-was-joke-and-more-science-we-misuse/">5 Scientific Explanations That Get Misused Constantly</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1aa01ea828c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/slippery-slope/the-right-answer-1aa01ea828c">The Right Answer</a> was originally published in <a href="https://medium.com/slippery-slope">Slippery Slope</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Opinionated Guide to Preparing for Coding Interviews]]></title>
            <link>https://medium.com/hackernoon/an-opinionated-guide-to-preparing-for-coding-interviews-406f5275939e?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/406f5275939e</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[preparation]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Fri, 20 May 2016 08:52:18 GMT</pubDate>
            <atom:updated>2018-07-02T21:49:39.123Z</atom:updated>
            <content:encoded><![CDATA[<h4>Musings of a former SDE at Amazon</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6BYFV-CYYQdRZnn8JrsaQ.jpeg" /></figure><p>The same recycled algorithm questions, some puzzles peppered in and a disproportionate amount of emphasis on your performance in the interview.</p><blockquote>Many argue that tech hiring is broken</blockquote><p>But that’s not really what you&#39;re worried about right now, is it? With about 2 months before campus placements, a standardized, stale hiring process is the EASIEST TO GAME. Your questionable CGPA, your lack of internships, meagre projects — all have very little bearing on your selection. Let&#39;s get down it.</p><h4>Competitive coding.</h4><p>This is going to play a very large factor in most product company interviews. Amazon, Microsoft, Directi, Flipkart et al are guilty of asking the same questions over and over again. Two months is just enough time to cover the important topics.</p><p><a href="https://www.interviewbit.com/">InterviewBit</a> is your bible here. It’s split into categories and guides you on what topics to do when. The average time per question feature is a good indicator of how good you currently are. You will find more specific guidance on the InterviewBit platform directly. It’s the only coding platform I used for my entire preparation.</p><ul><li>Solve one question per topic box and move on initially. If you have more time, do some more trees, graphs and linked list based questions.</li><li>Unless you have prior experience in C++, prefer Java. Most companies are Java shops and you will get a few brownie points here.</li><li>Code every question yourself. Don&#39;t just look at the answers and move on. This will take A LOT OF TIME. Being panicky and tense is going to make you worse. Initially, don&#39;t set yourself mental deadlines to finish a question.</li><li>It’s normal for some questions to take 2 hours or more.</li><li>Don’t use multiple competitive coding platforms. Stick to one so that you are more likely to cover all kinds of questions.</li></ul><p>Assuming you are a rank novice to competitive coding, expect at least <strong>45 of your 60 days</strong> to be fully devoted to this. Get most of these days in early as it’s harder to spend quality time on coding when you are nervous.</p><h4>Theory</h4><p>Data structures, Algorithms, Operating Systems, Databases, Networking. Very little math related theory. Find college lecture slides and revise from there; that will be enough. You can skim through these topics at your own pace. Do not spend more than a few hours on each topic. Take about <strong>3–4 full days</strong> in total for this.</p><blockquote>Step 1: Skim lecture slides.<br>Step 2: Google ‘indiabix *topic* questions’ and quickly solve some MCQs.<br>Step 3: Don&#39;t worry about memory-based questions. Focus on concepts.</blockquote><h4>Projects</h4><p>When recruiters ask you this, they are trying to see if you really enjoy programming. Make sure your face lights up when you talk about that app you built and what you were trying to solve using it. Expect to field some questions on why you chose a particular technology stack and why you designed it in a particular way.</p><p>If you have a CS degree you would have done college assignments (PPL, Compilers, Computer Graphics) you can pass them off as projects. PS-1 projects can be added here too.</p><p>If you don&#39;t have a CS degree and have minimal projects, emphasize that you are self-driven and can learn new things on your own. That you have cleared the preliminary rounds without a teacher. A friend of mine said exactly this at a PayPal personal interview (and it worked!).</p><h4>Resume</h4><p>That’s a whole article in itself. For now, just keep it as something to do in the last few days. You will probably be too jumpy to spend hours on coding questions that late anyway.</p><h4>Last few days</h4><p>Practice mock interviews with friends or in front of a mirror. Rehearse out loud your introduction, two pet projects and common questions. And always do a quick (~10 minute) review of a company before you sit for its personal interviews!</p><h4>Word of advice</h4><p>Drop absolutely everything and work your hardest for placements. There is a lot of variance in the quality of companies. A job offer in the domain of your choice is well worth the effort put into it. You should be able to put in at least 6 hours each day.</p><blockquote>I made the mistake of not taking placements seriously enough. When you miss being a part of a data engineering team because of a standard DP question, you&#39;re going to get pretty mad at yourself. Try not to let that happen.</blockquote><p>Most people say they got lucky on their interview day. No matter how good you are, cracking 4–5 interviews straight is pretty damn hard. Just hang in there and don&#39;t let your confidence drop just because you messed up a few interviews.</p><h4>Some FAQs</h4><ol><li><strong><em>What language should I use?</em><br></strong>Java and C++ are both solid choices. Most companies use a lot of Java so they might be a little happier with someone proficient in it. Also, you are quite likely to be using Java at work so you might as well get good at it now. Competitive coders prefer C++ so you will find most algorithm solutions in C++. It is a little less verbose too. <br>Pick either C++ or Java depending on what you are already comfortable with.<br>C does not have an STL, making it a pretty bad choice.<br>Some companies do not allow Ruby or Python.</li><li><strong><em>What is STL?</em><br></strong>The Standard Template Library (STL) in C++ has pre-built implementations of stacks, queues, hash maps and iterators etc. You will need these to code quickly during the process. Collections is the rough equivalent in Java. You&#39;ll learn these quickly enough once you start coding.</li><li><strong><em>What’s the usual interview process?</em><br>First round </strong><br>(a) Aptitude and Theory MCQs or<br>(b) Online coding round (on Hackerrank or equivalent)<br> Usually, 3 questions to solve in two hours. You don&#39;t necessarily need to solve all three to go to the next round. Two is usually enough. One if it’s really hard. Questions tend to be standard.<br><strong>Second round</strong><br>3 Personal Interviews. Puzzles and coding questions on paper here. Some trivia theory may be also asked. Your PI may ask you variations of the question once you solve it.<br>Very few companies hold a formal HR round. Your technical interviewers may ask you to introduce yourself, your projects, extracurriculars etc.</li><li><strong><em>How tough are the questions?</em><br></strong>The questions are of the same level as on InterviewBit. Rarely would there be a question with a truly novel approach to it. DP questions are rare (Directi does ask these) and when asked, they tend to the simpler ones.</li><li><strong><em>Should I practice aptitude questions?</em><br></strong>If you haven&#39;t done a lot of competitive coding before, it’s a better idea to work on that first. Keep aptitude questions very low on your priority. Maybe spend a few hours on one day just to get into the groove.</li><li><strong><em>What do I work on first?</em></strong><em><br></em>Order the things you are working on in decreasing order of priority. It’s quite likely that you won’t finish everything, so get everything important done first.<br><strong>1. Competitive coding</strong> — Every company is going to test you on this. Its also the most time consuming of everything you need to do. Finish all the topics on InterviewBit once before doing anything else.<br><strong>[Day 1 to Day 45]</strong><br><strong>2. Theory </strong>— Inability to answer conceptual CS questions won&#39;t look too good. If you are from a non-CS branch, they tend to go a little easier on the theory for you. <br><strong>[Day 45 to Day 50]</strong><br><strong>3. Resume</strong> — Companies usually shortlist based on MCQs or the preliminary coding rounds. Your resume plays less of a factor there. It’s more important in personal interviews where they will use it as a conversation starter. If you&#39;ve listed a project and can&#39;t explain it well, that’s a red flag. List fewer projects and know them well. Leave resume writing for the end and get plenty of feedback. <br><strong>[Day 50 to Day 55]</strong><br>4. <strong>Interview preparation</strong> — Do this after writing a basic resume. Your answers should reflect what you say in the resume. <br>Say you have a low GPA but you have added a lot of projects in your resume. You should then introduce yourself as someone who loves building things. <br>What if you are someone from a non-CS background with few projects? Emphasize that you are self-driven and can teach yourself. That you have reached this far on your own. Practice your ‘pitch’ with other people and get feedback. <br><strong>[Day 50 to Day 55]</strong><br>5.<strong> Cover your gaps </strong>— If there are coding topics you aren&#39;t too happy with, go over them again. The same with theory. Fill whatever gaps you think you may have.<br><strong>[Day 55 to Day 60]</strong></li><li><strong><em>How does the interview start?</em></strong><em><br></em>You sit at a table across your interviewer with a pen and paper. It will branch out into either<br>(a) your interviewer asking you a question (puzzles or code) without much introduction. You clarify all aspects of the question. Talk him through the approach, and then start writing code on paper. Make sure the code is perfect before giving it to him for final review. He may ask another question with a similar process before sending you for the next interview.<br>(b) your interviewer asking you to introduce yourself. This is to gauge your communication skills, your interests and anything you might not have put on your resume. <br>You can try a “Hi, I’m X and I study Y here. I really like [building tools people use]/networking/automation/[niche the company is in]. I&#39;ve worked on a few projects in *above area* and I really like X about it. I’m hoping to learn more about Y at my job.” <br>Always give the interviewer space to interrupt you with a question. Take a pause and judge whether he wants you to continue. This is where you have the opportunity to weave a story around your strengths and explain away your weaknesses. Use it well. It will proceed largely like (a) from here.</li></ol><p>There are other tools/platforms you can use to learn. I&#39;ve deliberately mentioned just one for each purpose. Most people spend too much time worrying what the “best” way is. I believe there’s no one better than someone who has cracked the process before to guide you for it.</p><blockquote>This is an opinionated piece for people who have received too little or too much advice. So that you spend time preparing instead of overthinking these things.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*f4aUatFoIQUFBxZTBEyTkA.jpeg" /></figure><h4><strong>About the Author</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=406f5275939e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/an-opinionated-guide-to-preparing-for-coding-interviews-406f5275939e">An Opinionated Guide to Preparing for Coding Interviews</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Graduate’s Last Days]]></title>
            <link>https://medium.com/@saurabhmaurya/a-graduates-last-day-df2d56627a47?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/df2d56627a47</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[college]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Mon, 16 May 2016 14:39:27 GMT</pubDate>
            <atom:updated>2016-05-16T15:21:03.512Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*Shg6EGL1B1alXMZP75lnmA.jpeg" /><figcaption>Picture by <a href="https://www.quora.com/profile/Keshav-Lakshman"><strong>Keshav Lakshman</strong></a></figcaption></figure><p>It’s slow… You&#39;ve expected it for a while.<br>Friends have asked if it’s arrived.</p><p>And you search, you probe and find,<br>Naught but rut, routine and Sunshine.</p><p>The end of Exams!<br>Of curfews and deadlines!</p><p>Why then would I want<br>To stay back inside?</p><p>But it strikes you on sudden.<br>Quietly rushing at you.</p><p>A conversation with a friend,<br>Some song and solitude it’s triggers.</p><p>The dreary helplessness first.<br>“No! It can’t end! Not here! Not now!”</p><p>A vague sense of loss.<br>This numbness, this ache.</p><p>There’s noise all around, alcohol and gaiety.<br>Why then am I filled, with sadness and melancholy?</p><p>That moment we shared,<br>A cigarette, a laugh; some deep dark tale.<br>Or some ‘meaningless’ banter,<br>Just a few of us there.</p><p>A single tear steals downwards,<br>I smile, I cry.<br>I dance with false abandon,<br>One final time.</p><p>To those reading this, you&#39;ve mattered,<br>Through rain and Sunshine.<br>You&#39;ve sparked what it means,<br>to be quite truly alive.</p><p>I’d say we&#39;ll meet on forever,<br>But such happy lies soothe me no more.<br>Instead, to your memory,<br>I raise a quiet, lonely toast.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df2d56627a47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Should Be Worried About the State of our Government Schools]]></title>
            <link>https://medium.com/@saurabhmaurya/why-you-should-be-worried-about-the-state-of-our-government-schools-268488b8d6b?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/268488b8d6b</guid>
            <category><![CDATA[india]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[policy]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Sun, 27 Dec 2015 10:41:54 GMT</pubDate>
            <atom:updated>2015-12-27T10:42:23.603Z</atom:updated>
            <content:encoded><![CDATA[<p>India’s GDP has risen faster than most countries in the world, but on most human development indicators, we show <a href="http://indianexpress.com/article/india/india-others/social-indicators-india-moves-forward-but-crawls-compared-to-neighbours/">little progress and even regression</a>.</p><p>One of the failures of us a nation has been in providing quality education and health-care.</p><p>If you are an Indian reading this, you&#39;ve probably had <a href="http://www.livemint.com/Politics/Dk8ry9VQkyRXcsJVHp9aNJ/Private-tuition-outside-schools-colleges-thrives-in-India.html">years of private education</a>, and visits to private hospitals.</p><p>Private players will always look to charge as much as people are willing to pay, and indeed, the cost of private tuition has sharply increased in the past 5 years.</p><p>Media coverage is <a href="http://scroll.in/article/701003/all-media-has-biases-but-for-indian-media-middle-classes-and-advertisers-are-all-that-matter">biased towards the Indian middle class</a>. Since the middle-class seeks refuge in private schools, the state of government schools receives far less attention than it deserves.</p><p>We can’t expect a free market to solve education and health-care for the poor. It’s just not lucrative enough. Instead, it is the job of the government to provide strong public services in these domains. Indeed, one the most important roles of the government is to ensure <strong>equal opportunity despite economic, social, and caste differences</strong><em>.</em></p><h4>And<em> it is the job of us as citizens to discuss government schools, to advocate for their better functioning, and ultimately to provide the political incentive to the government to enact effective policy change.</em></h4><blockquote>Ask yourself if a kid educated in a government school in most states in India has a shot of landing the same job as you. And think about how growing up with so much stacked against you could lead to resentment in big cities like Delhi, Mumbai or Kolkata.</blockquote><p>Improving government schools and better access to primary health-care is not on the minds of most today.</p><p>But it should be. Else the country will look <strong>more and more like islands of California in a sea of sub-Saharan Africa.</strong></p><p>*Influenced heavily by the preface of An Uncertain Glory, by Jean Dreze and Amartya Sen*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=268488b8d6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We don’t rise to the level of our expectations, we fall to the level of our training.]]></title>
            <link>https://medium.com/@saurabhmaurya/you-have-moments-of-raw-inspiration-where-you-think-you-can-do-anything-e8b3064c89de?source=rss-de57bcba4ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8b3064c89de</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[love]]></category>
            <dc:creator><![CDATA[Saurabh Maurya]]></dc:creator>
            <pubDate>Sat, 28 Nov 2015 10:53:52 GMT</pubDate>
            <atom:updated>2015-12-02T13:09:16.940Z</atom:updated>
            <content:encoded><![CDATA[<p>You have moments of raw inspiration, where you think you can do anything. You are an idealist, you dream, you imagine yourself in powerful, useful roles. Busy, with purpose, with friends around you. Happy. Passionate. Raw.</p><p>Then you have more mundane days. Where you are just going through with the motions. The same old routine. Less day dreaming and more weariness with no idea where you are headed.</p><p>And the worst thing? The older you get, the less you dream and the more you drift towards mediocrity. The older you get, the more distant those possibilities of being that charming teacher, of being an astronaut, of being all-round brilliant at everything you pick up. Older people just see fewer possibilities. A lot of things you dreamt as a kid have become impossible. You underestimate just how much your peer group is affecting your daily input. Until one day, you meet others who have done the things you dreamt of.</p><p>There’s no golden rule which says you should have a productive, driven life. You could be someone who just wants to go to the mountains, take in the surroundings and absorb yourself into the slow meandering life there.</p><p>But you aren’t. You feel that fire in your belly. That somewhere it isn&#39;t about other people. That you believe something and are willing to put in the effort to not be a spectator about it.</p><p>How many of us truly believe we can be among the elite business leaders, athletes, artists, scientists? Or do we just day-dream about it and drift vaguely in that direction.</p><p>Ask yourself this honestly. If you don&#39;t truly believe you can, you just won’t put in that beyond all expectation effort into it.</p><p><em>We don&#39;t rise to the level of our expectations, we fall to the level of our training.</em></p><p>Believe in something? Work on it like you mean it. Clock’s ticking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8b3064c89de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>