<?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 Faris Ansari on Medium]]></title>
        <description><![CDATA[Stories by Faris Ansari on Medium]]></description>
        <link>https://medium.com/@netchamp.faris?source=rss-6a2a3fce817d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wbweSIrqqsXgfodB.</url>
            <title>Stories by Faris Ansari on Medium</title>
            <link>https://medium.com/@netchamp.faris?source=rss-6a2a3fce817d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:28:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@netchamp.faris/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[A Software Developer at the Gym]]></title>
            <link>https://medium.com/@netchamp.faris/a-software-developer-at-the-gym-4311a55cd5c4?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4311a55cd5c4</guid>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[dice]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Wed, 26 Sep 2018 04:50:35 GMT</pubDate>
            <atom:updated>2018-09-26T04:50:35.450Z</atom:updated>
            <content:encoded><![CDATA[<p>Before joining the gym I was 55 kg. I am 68.5 kg today. This is a story about how going to the gym helped me gain weight and be more disciplined. As a software developer, I never thought I’d be going to the gym regularly.</p><p>I just graduated college and joined my first company. My daily routine was to write code, eat and sleep. My friends kept nagging me to join the gym everyday. I was not particularly interested, I thought you go to the gym to lose weight and build muscle and abs.</p><p>I was not happy with my weight. I wanted to do something about it. One of my friend suggested me to join the gym. He even took upon himself to train me. I had nothing to lose apart from the gym membership. I joined the gym.</p><h4>1st Day</h4><p>The first day I set foot inside the large room, it was a completely different atmosphere. It was intense. Loud music, people working out, running on treadmills, shouting and screaming to complete that last rep. I was pumped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTUuiQYRA-jYVMJ1eMHRSA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/SQNTgNFP-Ho?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Victor Freitas</a> on <a href="https://unsplash.com/search/photos/men-in-gym?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Workouts are divided into a group of sets. A set is a consecutive number of repetitions. A repetition is a complete motion of exercise. So, you can say you did 2 sets of 10 reps on the chest press. Tweaking these numbers make a workout easy or difficult.</p><p>I was below average in terms of strength and weight. I started with the lightest dumbbells and weights.</p><h4><strong>1st Week</strong></h4><p>Usually, you would focus on one body part per day. I had to do a combination of exercises that involved all the body parts everyday. This is to make the body get accustomed to wear and tear of muscles. The real pain came when I was out of gym at home relaxing. My body was now reacting to this unusual activity that it did not see coming. Eventually, I got in the habit of the pain. I started to focus on a single body part per day.</p><h4>Waking up early</h4><p>I am a lazy person. I wake up at 10 am everyday. This had to change when I joined the gym. Because now I had to accommodate another activity with no extra time to spare. Now, I wake up at 7 am to go to the gym. This was the most difficult part I had to adopt. It consumes most of my willpower.</p><h4>Diet</h4><p>Diet is an important part of gaining muscle. I used to have 2 good meals per day with a light breakfast. I had to change my eating habits drastically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1id53_HUNIecYVg1kzCA8Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/4KrROxtfh6s?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Dan Gold</a> on <a href="https://unsplash.com/search/photos/boiled-eggs?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I started eating 8 eggs, boiled chicken and lots of bananas throughout the day. Making it a habit was difficult as I almost tripled my food intake. I also added Protein shake to my diet as they were easy source of protein and carbs.</p><h4>Pushing your limits</h4><p>Limits of the human body is set up by the mind. Pushing it is all about making up your mind. At the gym, everyone is trying to push their limits.</p><p>I had to do it too. Whatever goal I set, I tried to break it. Many times my mind would give up before my body actually gave up. But, when I actually did, it felt great. It meant I was improving.</p><p>Competition also helps. I happened to break the longest running distance on treadmill in a set time just because my friend challenged me.</p><h4>Results</h4><p>I think I am less lazy now. I put 2 hours of my day to good use. There were noticeable differences in how I looked. There were more muscles on my arms and legs for the first time. And most of all, I gained more than 10 kg of weight.</p><p><em>A big thanks to my friend Ammar, for motivating me and helping me, without whom I would not be able to achieve whatever I did.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4311a55cd5c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making a new datatable for the web]]></title>
            <link>https://medium.com/frapp%C3%A9-thoughts/things-i-learned-building-a-library-for-the-web-6846a588bf53?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6846a588bf53</guid>
            <category><![CDATA[datatables]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Thu, 23 Aug 2018 07:09:25 GMT</pubDate>
            <atom:updated>2018-08-23T15:41:09.726Z</atom:updated>
            <content:encoded><![CDATA[<p>I was on a mission to remove all the jQuery UI components we used in our application and replace them with lightweight solutions. The only component left to replace was our table component — <a href="https://github.com/mleibman/SlickGrid">SlickGrid</a>.</p><p>I thought I’d share my experience of building an alternative solution.</p><p>SlickGrid was great and fast. But it was no longer maintained and also the UI was dated. We searched for many data table libraries. But either some were not up to our taste or were restricting in terms of license. So I started building one from scratch.</p><p>Initially, it was a part of the application itself. I used jQuery to build it, since we were already using it in our application. Everything was great until I decided to move it into it’s own separate library.</p><h3>You dont need jQuery</h3><p>The first thing was to remove jQuery. After going through the codebase, it was surprising how little of jQuery I was using. Mostly it was for querying elements and setting innerHTML of an element. It was not very difficult to replace those with the native counterparts the DOM API already has: querySelector and querySelectorAll.</p><p>As I kept removing parts which used jQuery, I realised not everything is provided as a convenience in the native API. I had to create elements dynamically, bind/unbind events on them, access data attributes, set styles and much more. Then I came across <a href="https://plainjs.com/javascript">PlainJS</a> which listed plain JS alternatives to methods provided by jQuery. I started building a “small” subset of utilities as I required them. It was a great exercise for me to learn how the internals work.</p><p>The following is an implementation of jQuery’s closest method which finds the first parent up the DOM Tree.</p><pre>function closest(selector, element) {<br>    if (!element) return null;</pre><pre>    if (element.matches(selector)) {<br>        return element;<br>    }</pre><pre>    return closest(selector, element.parentNode);<br>};</pre><p>Another useful utility is to add delegated DOM events. It is a great pattern when you have lots of DOM Elements sharing the same event handler. Here is the native implementation:</p><pre>function delegate(element, event, selector, callback) {<br>    element.addEventListener(event, function (e) {<br>        const delegatedTarget = closest(selector, e.target);<br>        if (delegatedTarget) {<br>            e.delegatedTarget = delegatedTarget;<br>            callback.call(this, e, delegatedTarget);<br>        }<br>    });<br>}</pre><pre>// Usage<br>delegate(parentElement, &#39;click&#39;, &#39;.dt-cell&#39;, focusCell);</pre><h3>What the heck is the Event Loop?</h3><p>I was working on a feature where when you drag the column header width, the corresponding cells in the same column should also adapt. In my first naive implementation, I just updated the width directly on each cell on EVERY drag event. It was pretty bad.</p><p>My datatable started looking weird whenever I tried to change the column width. This is the time I learned about updating DOM at 60 FPS and how rendering is handled by the browser. A great talk that helped me wrap my head around: <a href="https://www.youtube.com/watch?v=8aGhZQkoFbQ&amp;vl=en">What the heck is the event loop</a></p><p>So now I knew I shouldn’t update it on every fired event, so when do I update it? To maintain 60 FPS, you must update 60 times a second which is every 16.67 ms. I didn’t knew how to do this. I saw examples that used setTimeout which kinda worked but it isn’t the best way if you care about timing.</p><p>Then I came across, requestAnimationFrame which was the browsers way of handling DOM updates in an efficient way. MDN docs are great to learn about these APIs: <a href="https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame">window.requestAnimationFrame</a></p><pre>function updateColumnWidth() {<br>  // some code<br>}</pre><pre>// not guaranteed to work every 16ms<br>setTimeout(updateColumnWidth, 16.67)</pre><pre>// browser knows best when to update, ensuring 60fps<br>requestAnimationFrame(updateColumnWidth)</pre><h3>Styling tables</h3><p>Did you know tables are hard to style? MDN has a whole <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_boxes/Styling_tables">page</a> dedicated to it. I had to sift through many articles related to styling tables on the web to achieve what I wanted.</p><p>Also, if you are not careful about when to update styles, it may lead to layout thrashing and unnecessary reflow which is a bad experience for users. The folks at Google have explained this in good detail: <a href="https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing">Avoid Large, Complex Layouts and Layout Thrashing</a>. The solution to this was to update styles only when required and also only at the start of a new frame. Again, requestAnimationFrame came in handy here.</p><p>Another thing that I learned was to avoid complex CSS selectors to style elements. CSSWizardry has an excellent article on <a href="https://csswizardry.com/2011/09/writing-efficient-css-selectors/">Writing Efficient CSS Selectors</a>. TL;DR use class selectors. I replaced every querySelector to query elements using a class selector wherever required. I also adopted the <a href="http://getbem.com/">BEM methodology</a> to avoid nested selectors. This helped me keep styles mostly on a single level hierarchy. Querying these elements in JS also became easy, as it was just a single class.</p><pre>// css classes</pre><pre>// before<br>.dt .dt-cell .cell-content</pre><pre>// after<br>.dt-cell__content</pre><p>I had a lot of cases where I had to update the styles for a class of elements dynamically. I didn’t want to use inline styles because then I had to make sure the element was in the DOM. I avoided this problem by creating a stylesheet dynamically and then generating styles rules on the fly using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule">CSSStyleSheet.insertRule</a> API. This worked out pretty great. It looked something like this:</p><pre>setStyle(&#39;.dt-cell-col-3&#39;, {<br> width: &#39;80px&#39;<br>})</pre><pre>// generated styles<br>.dt-instance-1 .dt-cell-col-3 {<br> width: 80px;<br>}</pre><h3>Cleanup your events</h3><p>I have known for very long that you should clean up your events. I never bothered to do it. Until it hit me.</p><p>I was using my library in another application which would display or hide the datatable based on some condition. The problem was, after the datatable was destroyed, there where events that would fire and break. This is the time I realised the importance of cleaning up.</p><p>Cleaning up events is not very hard to do. If you only have events attached inside a single element, removing that element is enough, all the events inside that container will also be removed. You only need to care about events that you might have attached outside the element, for e.g on body or window . You have to keep track of all the event handlers by reference, otherwise you wont be able to remove them.</p><p>Here is an example of attaching event to the body and removing it after the instance is destroyed.</p><pre>const clickHandler = (e) =&gt; {<br>  // some code<br>}</pre><pre>$.on(document.body, &#39;click&#39;, clickHandler);</pre><pre>this.instance.on(&#39;onDestroy&#39;, () =&gt; {<br>  $.off(document.body, &#39;click&#39;, clickHandler);<br>});</pre><h3>Browser Inconsistencies</h3><p>The world wide web would be an ideal place if everybody used a single web browser. Unfortunately, there are a <a href="https://en.wikipedia.org/wiki/List_of_web_browsers">lot</a>. Fortunately, we have to support only the major ones.</p><p>It is frustrating to find out, that some features that work perfectly well in some browser is behaving differently in other browsers. I also had my share of fun dealing with them. One such example is, Firefox and Edge paint a cell’s background over it’s border. It was an easy fix, but this behaviour is not obvious.</p><h3>The Result</h3><p>After, almost a year of learning, what we have is something I am a little proud of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56vAVKZzHdGo10pwp72Kuw.png" /><figcaption><a href="https://frappe.io/datatable">Frappe DataTable</a> — Homepage</figcaption></figure><p>Learn more about Frappe DataTable on its <a href="https://frappe.io/datatable">homepage</a> and <a href="https://github.com/frappe/datatable">GitHub</a>. I encourage you to give it a try and leave any feedback.</p><p>I am glad that I get to build things for the web, the single most accessible platform to share your work with people around the world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6846a588bf53" width="1" height="1" alt=""><hr><p><a href="https://medium.com/frapp%C3%A9-thoughts/things-i-learned-building-a-library-for-the-web-6846a588bf53">Making a new datatable for the web</a> was originally published in <a href="https://medium.com/frapp%C3%A9-thoughts">Frappe Thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2 Years at Frappe]]></title>
            <link>https://medium.com/frapp%C3%A9-thoughts/2-years-at-frappe-f2172181129f?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2172181129f</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[trip]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Tue, 26 Jun 2018 07:05:23 GMT</pubDate>
            <atom:updated>2018-07-03T12:19:24.079Z</atom:updated>
            <content:encoded><![CDATA[<p>I joined Frappe Technologies on 20th June 2016. I joined as a fresher knowing nothing about real software development. Today I am a part of arguably the best open source ERP software in the world. To say that I have learned a lot will be an understatement.</p><p>I have spent a lot of time writing code and doing activities around it. This includes discussions, code review and pair programming, attending meet-ups, mentoring students. This is an attempt to list down all of my activities in Frappe.</p><h3>Code</h3><h4>Code Quality</h4><p>I have spent a good amount of time setting up code quality enforcements throughout our projects. Basically, adding linting to our JS and PY files. Setting it up was easier, but it was fixing all the linting issues that took most of the time. Needless to say, this is the first and obvious step towards better code quality.</p><h4>Discussions</h4><p>Discussions are a great way to tackle the complexity of a project. Earlier, I used to jump right into building the said feature which often lead to me being stuck. Now, I try to spec out a rough design of how I would go about building the feature without writing any code.</p><h4>Code Review</h4><p>Since all our projects are Open Source, we get a lot of contributions from the community. Earlier I used to review small Pull Requests, but since I have blanketed a lot of the codebase I started reviewing bigger PRs.</p><p>There were times when I had to decide whether to make changes in Pull Requests and merge it or request for changes and close it. Choosing the former meant new features would be merged faster but more overhead for us, choosing the latter would mean longer feedback cycles which may demotivate contributors in the long run.</p><h4><strong>Pair Programming</strong></h4><p>My experience of pair programming has been great. Often, I have been able to achieve more with a fellow developer than I would have alone. Having someone on your shoulder to point out silly mistakes you overlook, discuss the design of the software and provide a 3rd-person perspective is a great way to boost your productivity.</p><h4>Javascript</h4><p>This is too important a topic not to have it’s on own section. I have spent a major portion of my programmer life in JS files. And I am far from mastering it. I started writing JS when frameworks like Angular and Ember were becoming popular. Like most others, I learnt a JS framework (Angular) before knowing anything about JS.</p><p>Some of my projects forced me to learn Vanilla JS. It is surprising how easy it is to achieve most of the things provided by 3rd party libraries in Vanilla JS. I have started to consider performance for the every code I write. I am also learning JS Profiling to find out bottlenecks and fix them. Chrome DevTools is a great tool for anyone who wants to improve JS performance.</p><h3>Not Code</h3><h4>Team Communication</h4><p>Communicating with the team is what I struggled with last year. Not clearing my doubts with the team lead to many frustrations whenever I got stuck. This has improved greatly this year as I have bonded with the team better.</p><h4>Meetups</h4><p>I am not very social when it comes to meeting people face to face. Most developers are not. But they build great software together. I have attended a few meetups but I cannot say I am fond of them. I plan to attend more in the coming future.</p><h4>Office Trip</h4><p>We went for our first office trip to Goa. We spent two days playing beach volleyball, table tennis, cue sports, cards and also went trekking. We also did a sprint where each one of us sat down on the beach and replied to Support Issues from our customers. We had our bitter moments too. All in all, it was a great experience and we will definitely be doing this more often.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7KIjKdxfh27zUwF8tiPag.jpeg" /><figcaption>Frappe Team</figcaption></figure><h4>Writing</h4><p>Not everything went well for me this year. Last year, I wrote blogs every other month, it all came downhill this year. The last blog I wrote was about a year ago. However, I plan to make it a habit to write regularly as I have learned the importance of it.</p><h4>ESOC</h4><p>This year we came up with a Student Developer Program called ESOC (similar to GSOC), where students work with software developers and build real consumers products. An important part of it is mentoring students and I was responsible for on-boarding the students with our technology stack. I was a student 2 years ago, so I could relate to most of the problems they face. ESOC is still ongoing and you can check out it’s progress here: <a href="https://github.com/frappe/esoc-18">https://github.com/frappe/esoc-18</a></p><h4>Bhutan Trip</h4><p>Scrolling through my Quora feed I read an answer where the author described his experience of visiting the great kingdom of Bhutan on a budget. I was intrigued. I also decided to visit but my plan didn’t come to fruition until 6 months later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p14VOKNDPw4ggZf5DiCgHQ.jpeg" /><figcaption>Gateway to Bhutan</figcaption></figure><p>We were a group of four. We didn’t consult any Tourism service, so we had to plan and research a lot. It was a great experience in itself. Although not everything went as planned, it is still better to have some kind of planning. Since we were Indian citizens, it was a lot cheaper for us than anyone who was not. The 7-days we spent in Bhutan were amazing.</p><p><em>That was all of my experiences in 2nd year with Frappe. I have come a long way and have a long way to go. Looking forward to another year of awesomeness.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2172181129f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/frapp%C3%A9-thoughts/2-years-at-frappe-f2172181129f">2 Years at Frappe</a> was originally published in <a href="https://medium.com/frapp%C3%A9-thoughts">Frappe Thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A year at Frappé]]></title>
            <link>https://medium.com/frapp%C3%A9-thoughts/a-year-at-frapp%C3%A9-f8221c246a93?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8221c246a93</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[life-experience]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Sun, 25 Jun 2017 18:53:52 GMT</pubDate>
            <atom:updated>2017-06-25T18:53:52.656Z</atom:updated>
            <content:encoded><![CDATA[<p>I joined Frappé Technologies on 20th June 2016. I was a fresher just out of college with a Computer Science degree. Finally being able to write code fulltime, I wanted to dive into development, build awesome things and make people’s life better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mg-mMTaTufOiv1dRTvrZ5Q.png" /><figcaption>Frappé brand logo</figcaption></figure><h3>Initial Phase</h3><p>The initial days at Frappe were quite daunting. Unlike traditional companies, there was no “training program” as such. Our product was built on our own homegrown framework. Good for me, as I get to learn the in-and-out of a framework.</p><p>I had to learn by myself and ask for help when needed. 10 days in, and I was not sure whether I was cut out to be a programmer. I struggled finding the right files. Even after writing some code, I was not sure of the quality.</p><p>I don’t talk too much, so I rarely asked anyone for help. I was left with a problem and a large codebase. Most of my time was spent with the search feature of my editor. Writing code is one thing, collaborating with 10 other people on the same was another. I spent quite sometime learning git too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4NojzFjpzBM4vGMiAoYPw.jpeg" /><figcaption>Photo by <a href="http://unsplash.com/@emilep?utm_medium=referral&amp;amp;utm_campaign=photographer-credit&amp;amp;utm_content=creditBadge">Émile Perron</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I was given a Macbook Pro as my work laptop. Being a Windows user, working with Unix systems like Mac was new to me. It took a while to get used to. But after that, I was more productive than ever before. Mostly because my workflow was based around the terminal.</p><h3>Up and running</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9-4OGUGUZNb_isX-4mcLw.jpeg" /><figcaption>Photo by <a href="http://unsplash.com/photos/aJWwvXbMM8E?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jenny Hill</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In about 3 months, I was up and running with acceptable speed of development. I am glad I didn’t give up. Slowly and steadily I started to have enough understanding of our framework so that I know where to start fixing a problem. This phase was very exciting, since there were a lot of things to explore, and I knew where to look!</p><p>This was also the time, I started doing projects. My first project was Gantt which ended up <a href="https://frappe.github.io/gantt/">pretty well</a>. With each project, I learnt more of the framework and was impressed by it. I mean how many people write their own framework nowadays? (<em>I hear Javascript’s laughing</em>)</p><h3>Not just coding</h3><p>All of our products were Open Source. I never knew that you can make money while also publishing everything you make for anyone to use for free. Like any other Open Source project, there was a community built around it. Engaging with the community was another activity we were frequently involved in. I was also engaged in other activities like writing blogs, attending meetups and speaking at a conference! Being an introvert, I certainly have pushed my comfort zone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6aFjX3RzQdoRULHCUG4owQ.png" /><figcaption><a href="https://erpnext.org/">ERPNext Community</a></figcaption></figure><p>We don’t always talk about code. There are often discussions on topics ranging from religion, politics, culture and history.</p><h3><strong>Great people</strong></h3><p>The people here are great to work with. They are hard working and passionate about the work they do. Making people’s life easier by providing them with good software. This is enough inspiration for me to join and support the cause. Making the best ERP software in the world is surely an ambitious goal, but anything less than that is not worth it.</p><p>During my time here, many people have had to leave and new people joined. This always reminded me that the value you create is the only thing that matters and nothing else. I feel like I have really grown as a person and a programmer during my time here. I am glad that my journey started with Frappé.</p><p><em>Looking forward to another year of learning and building awesome things!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8221c246a93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/frapp%C3%A9-thoughts/a-year-at-frapp%C3%A9-f8221c246a93">A year at Frappé</a> was originally published in <a href="https://medium.com/frapp%C3%A9-thoughts">Frappe Thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The time when I flew]]></title>
            <link>https://medium.com/@netchamp.faris/the-time-when-i-flew-2f3cb4fbceee?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f3cb4fbceee</guid>
            <category><![CDATA[travel]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Tue, 09 May 2017 16:25:04 GMT</pubDate>
            <atom:updated>2017-05-09T16:25:04.449Z</atom:updated>
            <content:encoded><![CDATA[<p>I had never been on a plane, until last Wednesday. Our company was organising a code sprint at Kozhikode. I was lucky enough to be invited and was excited to say the least.</p><p>So, I packed my bags and left for the airport. I think airports are designed generally to intimidate and awe people. The Mumbai International Airport (T2) did the same to me. I was blown away by the architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lLtB7ApMpcJXgPaZDuLSQA.jpeg" /></figure><p>I tried to act cool the whole time. Met my colleagues who were also invited, and went ahead to check-in using a kiosk. No seats were available. So, uhm, we used the good ol’ queue to check-in. And, we were upgraded to Business Class. Yay, I guess.</p><p>After the security check, we were supposed to board the plane. We were allowed to skip the queue, since we had a “Business Class” boarding pass. We entered the flying vehicle and occupied our seats. Seats, which had lots of buttons. Things emerged out of its armrests. And yes, each person got his own pair of armrests. I made sure to press each button and see what it does.</p><p>The pilot kept us informed about the timings and stuff. It was time for takeoff. The plane started picking up speed on the runway. Shit got real. I was a little scared. The feeling can be compared to sitting on a roller coaster.</p><p>Did I mention, we got window seats? I looked through the window as we went higher and higher. And my mind couldn’t stop thinking about things which could go wrong. In a few minutes, we were flying above the clouds. How cool is that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ciAS4V_PqE2pWzRBFeH84Q.png" /></figure><p>The parallax effect of the clouds combined with the view of the horizon looked surreal.</p><p>It so happened, that the plane we boarded also offered complimentary breakfast. If there was a bottle filled with all of my luck, I think this would be the last drop.</p><p>In an hour, we were in a different state. The captain announced the landing. The scenery was rural and hilly. I saw lots of coconut trees and crop plantations. We landed Calicut after 1.5 hours of leaving Mumbai. That is some fast transport.</p><p><em>These are my thoughts of my first flying experience. Thanks Rushabh for inviting me for the trip. It was a great experience.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f3cb4fbceee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things I learned in 6 months of UI Design]]></title>
            <link>https://medium.com/frapp%C3%A9-thoughts/things-i-learned-in-6-months-of-ui-design-296853a6ef3e?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/296853a6ef3e</guid>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Wed, 15 Feb 2017 17:58:01 GMT</pubDate>
            <atom:updated>2017-02-15T17:58:01.644Z</atom:updated>
            <content:encoded><![CDATA[<p>For the past 6 months, I have been working mostly on UI. And it is real fun to see your code reflect beautiful elements on a web page. Fixing paddings and margins (almost) everyday have taught me basic principles of design and why they are important. So if you are starting out in web design, maybe this blog can clear some things out.</p><h4>Introduction</h4><p>I joined my company 6 months ago, and I was introduced to our flagship product <a href="https://erpnext.com/">ERPNext</a>. For a fresher like me, UI seemed easier to get started with the codebase. So, I started <a href="https://frappe.io/blog/development/improving-mobile-ui-ux">fixing UI issues</a>.</p><p>While fixing these issues, I made sure the elements look like a part of the product. The font-size, margin, padding, etc must be similar to what neighbouring elements used. In other words, <strong>consistency</strong> in design.</p><h4>Stealing design</h4><p>As months passed by, I started working on larger projects. One of them was <a href="https://frappe.github.io/gantt">Gantt</a>. I had to make a gantt chart based on a number of tasks given with start and end date. Also, I had to make them look good to complement our product’s theme.</p><p>Honestly, I was not good at UI. I take inspiration (steal shamelessly) from other apps/websites with good design. I am not even kidding, I literally copy their html/css and modify it accordingly.</p><p>So, I started searching for gantt charts on the web. Google Gantt Chart looked good. So I started marking up html (and svg), keeping Google Gantt Chart in another tab for reference. In a couple of days I had something similar to Google’s design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*41rC0f4WFVpj_sHO4IvQ_A.jpeg" /><figcaption><a href="https://developers.google.com/chart/interactive/docs/gallery/ganttchart">Google Gantt Chart</a> (Left), <a href="https://frappe.github.io/gantt">Frappé Gantt</a> (Right)</figcaption></figure><p>Another project of mine was Kanban Boards. You guessed it right, this time my inspiration were Trello and Wekan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0g3BhSELEdsOugArW5QcVg.jpeg" /><figcaption><a href="https://wekan.io/">Wekan</a> (Left), <a href="https://frappe.io/blog/erpnext-features/kanban-board-for-erpnext">Kanban in ERPNext</a> (Right)</figcaption></figure><p>When I steal good design, I get to know the thought process of the original designer (somewhat), like why were certain things laid out in a certain way.</p><h4>Bad design</h4><p>There are times when you know something has a bad design, but you can’t really identify the problem. This happened to me a lot. I read <a href="https://www.amazon.com/Non-Designers-Design-Book-3rd/dp/0321534042">this book</a>, which teaches just that while also explaining basic principles of design with lots of examples.</p><p>I also think that good design is something you develop a taste for. So, when you spend more time with good design, you start identifying the bad ones.</p><p>Let’s go through some concepts I learned about design.</p><p><strong>1. Keep it consistent</strong></p><p>Code reuse and consistency go hand-in-hand, when you build small components, you can reuse them across your product. Simple way to achieve consistency.</p><p>Let’s take a look at the List view and Image view in ERPNext.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f79otj63znwamyfdqkdkiA.jpeg" /><figcaption>List view (left), Image view (Right)</figcaption></figure><p>The <strong>title area</strong> comprised of checkbox, heart icon and name is common, and makes the UI consistent.</p><p><strong>2. Use more whitespace</strong></p><p>When you start laying out your app, you start with 100% whitespace. As you start adding elements, you take out the whitespace. But whitespace is important, it gives breathing room to your elements. When you look at some website, and cannot figure out why does it look so good, it’s probably whitespace.</p><p><strong>3. Use colors sparingly</strong></p><p>Colors (especially warm ones) pop out and take your users attention. So when they do, make sure they are looking at something important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSVHUbvIt0FNWnxef5XWKg.png" /><figcaption>Use of colors and whitespace in ERPNext</figcaption></figure><p><strong>4. Put content first</strong></p><p>Content is the first reason why your users use your app. Your design should build around your content. Not the other way round. You should mute away trivial information and put emphasis on important ones.</p><p>Take a look at the previous example, and find out for yourself which information is important and which one is muted away.</p><p><strong>5. Make actions clear</strong></p><p>Try to express the action and it’s outcome clearly. Label buttons according to the actions they perform.</p><p>For e.g, when you ask them ‘Are you sure you want to delete this item?’, your buttons should say ‘Delete’ and ‘Cancel’ instead of ‘Yes’ and ‘No’</p><p>I have tried to convert most of my thoughts related to design in words. I wish to learn more about design by designing great experiences for users. This is only the beginning. Happy designing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=296853a6ef3e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/frapp%C3%A9-thoughts/things-i-learned-in-6-months-of-ui-design-296853a6ef3e">Things I learned in 6 months of UI Design</a> was originally published in <a href="https://medium.com/frapp%C3%A9-thoughts">Frappe Thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first JavaScript library]]></title>
            <link>https://medium.com/frapp%C3%A9-thoughts/my-first-javascript-library-1cd4127344ac?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cd4127344ac</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[first-library]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Fri, 13 Jan 2017 17:58:54 GMT</pubDate>
            <atom:updated>2017-01-13T18:21:20.430Z</atom:updated>
            <content:encoded><![CDATA[<p>JavaScript is the first language using which I actually started making projects. Since, I had coded in C, Java and C#, it really felt weird as a language.</p><p>But as I wrote more javascript, I kept liking it more. Even though it is a terrible language, it is a vital part of the web.</p><p>You can hate it, but not ignore it!</p><p>Anyone who has been coding in JavaScript for a while, knows that there are lots of javascript libraries churning out everyday.</p><h3>Motivation</h3><p>One of the projects I was working on required a Gantt View to be shown based on a number of tasks given. I looked for JavaScript libraries that could do the job but couldn’t find one which was free and good looking. So in all excitement, I started writing my own library for it.</p><p>Initially, I was skeptical about how I should write code in the <em>library</em> way. So, I wrote it my way and later refactored it, which is a part of software development anyway.</p><p>After the library got stable with a few basic features, I scooped it out of the main project.</p><p>It took a while to get the build system right. I used <a href="https://github.com/krasimir/webpack-library-starter">this</a> awesome library starter template, modified it a bit and it was ready to go.</p><p>Also, each feature in the Gantt View was shamelessly stolen from other libraries like <a href="https://developers.google.com/chart/interactive/docs/gallery/ganttchart">Google Gantt</a> and <a href="https://dhtmlx.com/docs/products/dhtmlxGantt/">DHTMLX</a>.</p><p>So, let’s have a formal introduction with the library.</p><h3>Frappé Gantt</h3><blockquote>A simple, interactive, modern gantt chart library for the web with drag, resize, dependencies and time scales.</blockquote><h4>Basic demo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*t2599eCWNsLMXpOGrsEYNg.png" /></figure><h4>Multiple time scales</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*8wwDaQ03SVh-6lIOPmCGOQ.png" /></figure><h4>Task information</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*6Si2Ouyi-ySWVx-x11DT6A.png" /></figure><p>Also, check out the <strong>drag</strong> and <strong>move</strong> gestures in action <a href="https://frappe.github.io/gantt">here</a>.</p><p>You can view the code on <a href="https://github.com/frappe/gantt">GitHub</a>.</p><p><em>I know it still need lots of improvement, but I am happy about how it turned out. Do check it out!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cd4127344ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/frapp%C3%A9-thoughts/my-first-javascript-library-1cd4127344ac">My first JavaScript library</a> was originally published in <a href="https://medium.com/frapp%C3%A9-thoughts">Frappe Thoughts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey as a Programmer]]></title>
            <link>https://medium.com/@netchamp.faris/my-journey-as-a-programmer-b1b8dd24abfc?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b8dd24abfc</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Fri, 25 Nov 2016 13:36:25 GMT</pubDate>
            <atom:updated>2016-11-25T16:56:24.950Z</atom:updated>
            <content:encoded><![CDATA[<p>I was fascinated by computers ever since my friend introduced me to his computer.</p><p>He would show cool tricks like</p><ul><li>setting your picture as the boot image in windows (<em>yeah</em>)</li><li>changing the folder icon</li><li>applying themes and what not.</li></ul><p>I was so impressed. I started pestering my parents to get me one.<br>Finally they got me a computer and I started tinkering from the first day.</p><p>I think my curiosity of computers lead me decide my career.<br>I wanted to be a software engineer, even though i knew nothing about being one.</p><p>In the first year of my Computer Science course, I was introduced to the C programming language. This was my interface to the world of programming.</p><p>The fact that you can write a bunch of text and the machine would execute them struck something in me. I could create a calculator that would give me 5 + 6 = 10. I felt in control.</p><p>From there on, I created all sorts of programs. Some programs from the textbook and some programs for fun.</p><p>“Why doesn’t everybody learn programming?”, I thought to myself. It was too awesome to be ignored.</p><p>Apparently, there was no one to share my excitement with. Maybe because I was an introvert or maybe I was in wrong place.</p><p>The following year, I learned high level concepts such as data structures and programming methodologies.</p><p>It was fun implementing these concepts in code.</p><p>I also learned how to use the internet to ask questions about programming. Got to know about the awesome stackoverflow community.</p><p>I started reading articles and watching videos about programming more often.</p><p>At the start of the next semester, I got a chance to participate in an annual hackathon called as Semicolons. It was my first experience of real world programming.</p><p>It was when I understood how the program, the database and user interface work together to create a something meaningful to the user. It was an eye opener.</p><p>In my final year, I got an opportunity to make our college’s attendance system online, which was still on papers.</p><p>I still remember the discussion, where our Dean expressed this problem where every professor had to manually enter the attendance and generate a report.</p><p>I immediately volunteered, even though I had little knowledge of how I’ll do it. I had never developed anything like that, but I was a little confident (internet ftw!).</p><p>After that, followed 3 months of learning Javascript and building web apps. The end product came out to be good at the very least.</p><p>Professors could now enter attendance on the <a href="https://play.google.com/store/apps/details?id=com.attendance.hazri">mobile app</a>, and automatic reports were generated. Students could also check their attendance online. I was pretty happy with it.</p><p>I had acquired a decent knowledge of making mobile and web apps. So, did a few freelancing projects and made some money.</p><p>My classmates would ask me very often, “Hey, where did you learn to make apps?”, and that got me thinking that everybody wanted to learn programming, but nobody wanted to solve problems.</p><p>My primary motivation was the problem, and I started learning anything that will help me solve it.</p><p>The hiring season started, and a number of employers conducted placement drives. I didn’t appear in any of them. I was still unsure of what kind of job I wanted to do.</p><p>I didn’t find any company where work would be interesting, until I found Frappé which is a <a href="https://medium.com/@netchamp.faris/how-i-landed-at-frapp%C3%A9-76d905e72f08#.d8yc5k54i">story</a> for another day.</p><p>Currently, I am working as a Software Developer at Frappé. It feels the right place to grow and learn.</p><p>My journey as a programmer has only begun!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b8dd24abfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I landed at Frappé]]></title>
            <link>https://medium.com/@netchamp.faris/how-i-landed-at-frapp%C3%A9-76d905e72f08?source=rss-6a2a3fce817d------2</link>
            <guid isPermaLink="false">https://medium.com/p/76d905e72f08</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Faris Ansari]]></dc:creator>
            <pubDate>Sun, 28 Aug 2016 15:05:34 GMT</pubDate>
            <atom:updated>2016-08-28T15:06:10.786Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*aM1KkhdoJH503iWID_WJ8A.png" /></figure><p>“Hey, there’s this Hackathon being organized at DBIT tomorrow. Let’s go.” I said to my friend. Next day, we were at <a href="https://mumbaihackathon.in/">Mumbai Hackathon</a>, trying to make an app.</p><p>A bit of background. We were students pursuing Computer Engineering from Mumbai. The coding culture here is not very good for enthusiastic coders like us. But maybe that’s just an excuse. So naturally, we got excited hearing about the Hackathon and immediately registered.</p><p>Back to the Hackathon. The place was quiet and the ambience was perfect for coding. We had a rough idea of what we were going to build. We took out our laptops and started setting up the proxy which bugged us all day.</p><p>So here we were, competing with professionals and 6 member teams. While roaming around, I got intimidated by a guy in the adjacent group. He was using Vim. So hardcore!</p><p>The next day, we got a few hours to wrap up. I got an idea. I immediately deployed our app on a free server.</p><p>The presentations started. We got to see what other people built. Amazing stuff. During our presentation, we engaged everybody to use our app. Now that was not done by any team. So, it may leave an impression.</p><p>The Hackathon ended. Those where 24 hours of pure fun!</p><p>A couple of days later, we were discussing about our app adding more features (and removing some!). I got a notification. It was a mail from MH. The first line goes “Congratulations, …” and I didn’t read the rest. We celebrated the moment for a few minutes. We had won Mumbai Hackathon. Yay!</p><p>I went to the organizers’ office to collect our prize. I asked if I could get an internship there. I got interviewed (sort of). They gave me an offer letter which I didn’t expect.</p><p>So, here I am, working at Frappé.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76d905e72f08" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>