<?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 Praveen Pradhan on Medium]]></title>
        <description><![CDATA[Stories by Praveen Pradhan on Medium]]></description>
        <link>https://medium.com/@iampraveen287?source=rss-95ad6ddb7fd1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mul_Wddryxpbeb4EF4ImrQ.jpeg</url>
            <title>Stories by Praveen Pradhan on Medium</title>
            <link>https://medium.com/@iampraveen287?source=rss-95ad6ddb7fd1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:55:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iampraveen287/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[How is go written in go itself?]]></title>
            <link>https://medium.com/@iampraveen287/how-is-go-written-in-go-itself-d987957bb796?source=rss-95ad6ddb7fd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d987957bb796</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[open-source-software]]></category>
            <category><![CDATA[self-hosting]]></category>
            <dc:creator><![CDATA[Praveen Pradhan]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 17:07:38 GMT</pubDate>
            <atom:updated>2026-07-10T17:34:46.200Z</atom:updated>
            <content:encoded><![CDATA[<p>Exploring the self-hosting magic behind the Go programming language.</p><p>I was learning Go recently, and on the GitHub page of the Go source code, I noticed one thing: how is Go written in Go itself? That got me curious to learn more about it — which is the reason I’m writing this blog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fDI9Q29_43ocsVGM9s956A.png" /></figure><p>So apparently, in earlier versions of Go, the go compiler (basically a program that converts any language to machine-readable code) was written in C, and it compiled Go code to machine code (which was expected to me as normal), because I thought that in order to make a new language, an existing language (C in this case) is required(which is true, but we can change that once we get our language complex enough to write a compiler in it).</p><p>But at the release of Go 1.5, the sixth major stable release of Go, the compiler was now written in Go, which can now compile Go code into machine code — but it is now written in Go itself! No need for the C compiler to “translate it,” and no need to depend on the whole C toolchain now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OO_BuPYpQZheVoZWZl6CFQ.png" /></figure><h4>TLDR:</h4><ul><li>the first compiler(written in C) compiles the language to machine code.</li><li>after the 1.5 release, the compiler is now written in go and compiled using the previously existing go compiler(written in C)</li><li>now it does the same thing(convert go to machine code) without depending any other language</li></ul><p>This is actually called self-hosting. Many other languages, such as Rust (OCaml → Rust), C (assembly → C), and Zig (originally bootstrapped from C++, now self-hosted in Zig), had done this in the past.</p><p>But why even bother, when the switch was super expensive and time-consuming at that time?</p><p>The actual “why” behind changing(as per there articles) the Go compiler from C to Go itself was mostly because Rob Pike and team wanted the compiler to be hackable by the Go community itself, not gatekept by the handful of people fluent in the C codebase.</p><p>Thanks for stopping by on this rant.<br>Stay curious, will catch you on the next one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d987957bb796" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your MongoDB Queries Are Slow (And How Aggregation Pipelines Fix That)]]></title>
            <link>https://medium.com/@iampraveen287/why-your-mongodb-queries-are-slow-and-how-aggregation-pipelines-fix-that-43c11f86d7f4?source=rss-95ad6ddb7fd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/43c11f86d7f4</guid>
            <category><![CDATA[data-aggregation]]></category>
            <category><![CDATA[mongoose]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Praveen Pradhan]]></dc:creator>
            <pubDate>Sat, 30 May 2026 16:48:29 GMT</pubDate>
            <atom:updated>2026-05-30T16:48:29.070Z</atom:updated>
            <content:encoded><![CDATA[<p>If you had used MongoDB as your database, you might have used queries like find() and findone() or findById() if you are using mongoose to perform read operation through server.</p><p>though these queries work well in most cases(small operations). but the moment you start performing read queries with larger data and perform complex logic or if your application is used by many users, it can cause performance issues.</p><p>that’s where MongoDB Aggregation pipelines(or MongoDB aggregation framework) comes in. MongoDB aggregation pipelines helps creating complex relations and performing complex operations and data manipulation through different stages(basically step-by-step operations).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7TwPi4T9PHNjChyGOaz9g.png" /></figure><p>MongoDB Aggregation uses a map-reduce api architecture.A <a href="https://en.wikipedia.org/wiki/MapReduce">Map-Reduce</a> workload essentially does two things. Firstly it scans the data set, looking for the matching subset of records required for the given scenario. This phase may also transform or exclude the fields of each record. This is the “map” action. Secondly, it condenses the subset of matched data into grouped, totaled, and averaged result summaries. This is the “reduce” action. which helps in manipulating data efficiently.</p><h3><strong>Core stages in aggregation pipelines</strong></h3><ol><li>$match: Filters documents based on a specified condition. mostly used as the first stage like a gatekeeper to filter out document which satisfies the condition(or matches some field basically) which helps in performance as it narrows down the search area.</li><li>$lookup: Performs a left outer join to a collection in the <em>same</em> database to filter in documents from the foreign collection for processing.(similar to sql join)</li><li>$project: Passes along the documents with the requested fields to the next stage in the pipeline.</li><li>$addFields: Add extra field the documents.</li><li>$group: Groups data based on specified condition, adds extra fields to the docs and passes documents to the next stage.</li></ol><h3>Best practices</h3><p>Making complex aggregation pipelines is really hard at first. that’s the whole point of these “best practices” to convert business logic to aggregation pipeline with ease(at least hours instead days T-T).</p><ol><li>always split the whole solution in small steps(stages).</li><li>always keep an empty line at the start of any stage, so you can add a comment if needed for the current stage.</li><li>putting a comma after every curly brace(}) is mandatory to avoid syntax errors in pipeline.</li><li>Encourage using $match and $project earlier in the pipeline to increase performance as smaller the search area faster the operation.</li></ol><h3>Conclusion</h3><p>MongoDB aggregation pipeline is powerful tool for manipulating data. which will be more performant than normal mongoose and mongodb queries for complex data manipulation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43c11f86d7f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[No Laptop? So What.]]></title>
            <link>https://medium.com/@iampraveen287/no-laptop-so-what-fbad990ebc6e?source=rss-95ad6ddb7fd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbad990ebc6e</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[api-testing]]></category>
            <dc:creator><![CDATA[Praveen Pradhan]]></dc:creator>
            <pubDate>Sat, 02 May 2026 15:16:31 GMT</pubDate>
            <atom:updated>2026-05-02T15:16:31.592Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Intro</strong></p><p>Hey, I’m Praveen. I started coding on my phone because i didn’t have a laptop. Most people wait for the “right time” or the “right resources.” I didn’t have that option. I had curiosity, frustration, and a decision to figure things out anyway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dFuRYsAJTOZmXrdS" /></figure><p><strong>How i Got into Coding</strong></p><p>In my first year of college, I got introduced to C language for the first time. At first I really sucked at that (f you syntax error). It was Interesting for me so I decided to explore this, and i started loving this. But till now I didn’t have a machine to practice — I just had my phone and stupid amount of determination. That’s the main reason i found out about these tools below. These apps and tools can help you to code in a phone, if you are short on resources like me. Hope this helps.</p><p><strong>First App— Replit(Available on play store)</strong></p><p>After searching on yt ,I got to know about <strong>Replit </strong>which have templates of programming languages. So I finally found a way to start. if you want to just practice programming basics and make small programs you can use replit,<strong> but do not use it for medium-big size projects.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RcE6CR1gkwe5Pp4r8k8Uw.png" /></figure><p><strong>Second App— Termux(the best tool out there)</strong></p><p>Second App i got to know about from reddit and X is<strong> Termux, </strong>which is a terminal emulator which provides a Linux like environment for Android. Its purpose is to run Linux command line executables. which means you can do almost all the stuff you can do in linux. this is enough for decent development.</p><p>you can download &amp; Install Termux from F-Droid by downloading the APK from the <a href="https://f-droid.org/packages/com.termux/">official F-Droid Termux page</a> or via the F-Droid app. don’t download the one from playstore which is outdated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U690e11s6lm-KqWvYgqH-A.png" /></figure><p>Inside termux there are vairous tools which can help you. here’s the<em> tools</em> which helped me in web dev:</p><p>1.<a href="https://neovim.io/"> <strong>Neovim </strong></a>with <a href="https://lazyvim.github.io/">Lazy vim</a>— Terminal based Code Editor. Best setup once you get comfortable with vim keybindings.</p><p>2.<strong> </strong><a href="https://github.com/tmux/tmux/wiki"><strong>Tmux </strong></a>— Terminal multiplexer. best for multitasking.</p><p>3. <a href="https://github.com/ajeetdsouza/zoxide"><strong>Zoxide </strong></a>— A smarter cd command</p><p>You can use neovim with lazyvim/nvchad distro + tmux for maximum efficiency.</p><p><strong>Third App — Teste: API, Scripts &amp; Terminal</strong>(<strong>Available in playstore)</strong></p><p>After learning frontend, I started backend. While learning, I hit a wall: how do I test endpoints? After searching for days, I finally found an app called Teste: API, Scripts &amp; Terminal on the Play Store.</p><p>if you want to test your api endpoints in phone you can easily do that with this app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDJyV1i5qrDjXEDNxwONRw.png" /></figure><p>it has all the feature you want in an api testing software.</p><p><strong>Fourth App — Acode(Available in playstore)</strong></p><p>while learn html,css and js i wanted an app to see the live preview of the html page, that’s where i got to know about Acode.</p><p>if you want vscode like coding environment in mobile, you can go with Acode. it has a file tree, basic linting, code suggestion(basic),plugins and a live preview as well.</p><p>it is available in android only on play store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KDkdXQml3UzvU4I4b869rQ.png" /></figure><p><strong>Learnings</strong></p><p>it is hard to code in phone and it is not for everyone. if you can’t afford a laptop don’t just waste your time, try to learn things and push through even if the things aren’t in your favor (most people will give up here).</p><p>the only thing i kept doing is learning and building new things, failing and learning from them. i pushed through it, which gave me so much confidence and self belief.</p><p>thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbad990ebc6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>