<?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 AYUSH KAUSHAL on Medium]]></title>
        <description><![CDATA[Stories by AYUSH KAUSHAL on Medium]]></description>
        <link>https://medium.com/@ayushk4?source=rss-7935660696bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Y8lwhhKurj9MIJ5B.</url>
            <title>Stories by AYUSH KAUSHAL on Medium</title>
            <link>https://medium.com/@ayushk4?source=rss-7935660696bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:14:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayushk4/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[My first open source project from scratch]]></title>
            <link>https://medium.com/@ayushk4/my-first-open-source-project-from-scratch-d81b1b4962da?source=rss-7935660696bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d81b1b4962da</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[AYUSH KAUSHAL]]></dc:creator>
            <pubDate>Sun, 05 Aug 2018 08:26:55 GMT</pubDate>
            <atom:updated>2018-08-05T08:33:43.432Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello there, I am newly introduced to open source and recently I finished working on my first (true) project — <a href="https://github.com/Ayushkaushal/Kronos">Kronos</a><br>Here I would like to share some obstacles and faced and what I learned from it.</p><h3>Kronos</h3><p>This is a web application that shows the past year records of grade distributions for courses at my college when requested for a course. Almost entirety was built in python. The web framework I used was flask. I took it up as one of the issues of a bot by <a href="https://github.com/metakgp">metakgp</a> —<a href="https://github.com/metakgp/blackjack"> Blackjack</a> and made it into a separate project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oTROkOf9fllfuLCP_Qecsg.png" /></figure><h3>Journey through the project and Obstacles faced</h3><p>Nothing beats the feeling of getting stuck somewhere and finding a way out of it.</p><ul><li>I picked a pen and paper and scribbled whatever I thought this app should be like, how should it work. This was simple yet an important part, I had basic idea what the frontend and backend would look like.</li><li>I wanted to learn as much as I could, working on it. I feared that if I did backend first then it might just end it being in a Command line interface. This would also restrict the number of people using it. I picked up frontend first, HTML was a cakewalk and CSS gave me a little trouble as I had no experience implementing it, expecially the grid layout part. <br>I decide on naming the app after something scary, which would act as a cherry topping on the daunting grade distribution. Therefore I named it as the Grim_Reaper and made the web pages tonally darker. But later I realised that it was much darker than grade distribution itself so I changed the name to “Kronos” the keeper, a lightened the tone.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnJgyjiaJyICblQR1e6JTg.png" /><figcaption>Grim Reaper</figcaption></figure><ul><li>I understood basic git but hadn’t used it from terminal commands much.Now after using git commands extensively, I can say that the basic git commands are a muscle memory.</li><li>Now was the crucial part where I had to get the request from the frontend for a data and then post back the data to the frontend after extracting from backend. I tried to explore for solutions to this, learnt basic javascript unneeded for this part of project but was later used. Upon being recommended ‘flask’ by some friends, I came to know about web-frameworks. I jumped straight into exploring it, not going through any tutorials or videos_lectures, just the documentation. Looking back I regret this action as it would have saved up my time and effort, but again watching video lecture is not my thing. I googled stuff like requests, HTTP method and URL assigining. Here I faced issues with static files like CSS and images not being uploaded, which was solved by assigning a dynamic runtime Url for it.</li><li>Next I worked upon collecting past year’s data, merging these individual grades containing files into a single file seemed to be easier than expected as .json were like dictionary in python. Only the extracting previous records seemed impossible until the idea struck to extract it from the version control history of a bot blackjack (<a href="https://github.com/metakgp/blackjack">https://github.com/metakgp/blackjack</a>).</li><li>Searching from the requested course and generating graphs:<br>Searching records for the requested code was simple. However I wanted the grade distributions in the form of charts. This was the most difficult part of entire project. Firstly the no of graphs was variable as number of records for each data would differ. Secondly I was confused between using chart.js to generate the graphs or to upload a stitched graphs into one image. I went with the second one as I already had majority of code running in python. Graphs were created by matplotlib, and for stitching the Graphs into a single image I used Pillow, a fork of Python Imaging Library (pil). Next was how to pass the image to html page. This seemed another obstacle as the image wasn’t static and did update for consequent request for different courses (i.e. displayed the same image as the first one, for all requests). This was solved by creating a dynamic url for the requested code and deleting the previous existing images for previously requested courses.</li></ul><h3>Post completion</h3><p>Just like it is with any software that once you are done with it, you start working on giving it minor tweaks making it better. After finishing it, I worked on the issues and that helped me brush up most of the concepts I learned and learned new ones. Some of the issues were implementing Javascript, deploying on Heroku, virtual environment apart from it.</p><h3>Outro</h3><p>Overall I learned much more stuff by applying while learning than I would have by just reading the concepts.</p><p>Often when I got stuck my mind went wandering and one such thought that crossed my mind was regarding the <a href="http://money.cnn.com/2018/06/04/technology/culture/octocat-github-microsoft/index.html">mascot of github </a>.</p><p><em>Thank you for reading this, if you liked the article then click the clap button — Thanks and hope you have a great day ahead.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d81b1b4962da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>