<?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 Ankur on Medium]]></title>
        <description><![CDATA[Stories by Ankur on Medium]]></description>
        <link>https://medium.com/@beingDev3?source=rss-5d08a5a58be7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DZCDw1cNTQbNptL9lY6YrA@2x.jpeg</url>
            <title>Stories by Ankur on Medium</title>
            <link>https://medium.com/@beingDev3?source=rss-5d08a5a58be7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:29:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@beingDev3/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[Why do we feel Lethargic?]]></title>
            <link>https://medium.com/@beingDev3/why-do-we-feel-lethargic-4674fb9cafd7?source=rss-5d08a5a58be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4674fb9cafd7</guid>
            <category><![CDATA[anxiety]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <dc:creator><![CDATA[Ankur]]></dc:creator>
            <pubDate>Fri, 05 Oct 2018 15:12:42 GMT</pubDate>
            <atom:updated>2018-10-05T15:12:42.904Z</atom:updated>
            <content:encoded><![CDATA[<p>Exactly what I am feeling right now.</p><p>What makes you feel lethargic?</p><blockquote>Lethargic — Doing same repeated work again and again — Just my definition :)</blockquote><p>Be it coding, household work, dancing, running, gymming, singing whatever you do in a sense that kind of repeats itself, will make you feel lethargic sooner or later.</p><blockquote>Creative tasks are <strong>not </strong>lethargic — WRONG!</blockquote><p>I started the 30 days(daily) writing challenge with one of my friends. On the fifth day itself, I am feeling lethargic of writing new articles every day. And believe me, it is one of the most creative things that I have done in my whole life. While typing every letter, I am getting a feeling why, why am I doing this.</p><p>At present, Just the thought of going back home and sitting relaxed in front of my laptop or doing some chit-chat with my friends is also not sounding like a good option. Because it is something I am doing repeatedly every day.</p><p><em>Take me somewhere new, somewhere different— aaaaah! anxiety</em></p><p>The more I am thinking about it. More it is getting on my nerves. Getting the feeling that I am hungry, homesick and what not. For no reason at all.</p><h4>If it is not challenging you, it is not worth it</h4><p>Maybe this is true with my writing challenge as well. But I should be thinking about my friend, how is he going to review this one. He might think I am an imbecile.</p><p>I think my lethargic feeling is showing in my writing as well. Because I am just hitting my heavy finger on the keyboard for like 30 minutes and it feels like I am doing it for the last 3 hours.<br>Still, on 287 words, We decided to write at least 300 words daily. So, the last line had 13 words and this one has 13 words. Here, I finish this article with a total of 324 words.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4674fb9cafd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can you be prosecuted after 10 years from now for what you did 10 years earlier?]]></title>
            <link>https://medium.com/@beingDev3/can-you-be-prosecuted-after-10-years-from-now-for-what-you-did-10-years-earlier-bcfe2f595907?source=rss-5d08a5a58be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcfe2f595907</guid>
            <category><![CDATA[molestation]]></category>
            <category><![CDATA[utsav-chakraborty]]></category>
            <category><![CDATA[justin-trudeau]]></category>
            <category><![CDATA[feminism]]></category>
            <category><![CDATA[politics]]></category>
            <dc:creator><![CDATA[Ankur]]></dc:creator>
            <pubDate>Thu, 04 Oct 2018 16:00:25 GMT</pubDate>
            <atom:updated>2018-10-04T16:00:25.460Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s look at what has happened in the past.</p><p><strong>Justin Trudeau</strong>, being called out for allegedly groping a journalist 18 years ago. As a response, He said I don’t remember, really dude?</p><p>And then Trump’s case with the pornstar.</p><p>And the case on the judge that Trump nominated.</p><p>And then today’s talk of the town, <strong>Utsav Chakraborty</strong>, an Indian comedian, who got banned from the famous comedy club(AIB) which he has been a part of for a very long time.</p><p>Alleged crime — Molesting multiple girls via phone messages. I am saying alleged because it has not been prosecuted as of now.</p><p>The girls who are alleging, have posted many of the real conversations. You can find these easily on the internet.</p><p>Here’s what the comedy club has to say about the comedian.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*FWCg5Y0mBdPJyd5IHVCXnQ.png" /></figure><p>Here you can have a look at his own twitter account</p><p><a href="https://twitter.com/Wootsaw">Utsav (@Wootsaw) | Twitter</a></p><h4>(Note: Not considering a particular case out of all the above. As I am not sure about the exact/legal facts about any of the above cases.)</h4><p>Let’s come back to the question</p><h4>Can you be prosecuted after 10 years from now for what you did before 10 years from today?</h4><p>If you are a public figure, yes.</p><p>If you are in politics, Definitely yes. Maybe even for some made up cases.</p><p>I am not taking the side of the people who are molesting but what is the scene with only taking the case up when that person(who molested someone) becomes a public figure. In the case of Utsav, I think he was molesting even after becoming a public figure. Please don’t consider this article about a specific case.</p><p>I am with every woman who has been a victim of such cases. We should be having stringent legal actions against the culprits.</p><p>The point that I want everybody to <strong>consider </strong>is when someone is getting prosecuted for a crime he did 20 years back. He(culprit) might not be the same person now. <strong>It might not make sense to prosecute someone for what he did 20 years back. Because that person might have evolved as an altogether different(in a positive sense) personality.</strong> Consider Justin Trudeau for instance. We all know he is doing a great job as a president. That is not easy. There might also be a reason why these cases just come up after someone becomes a public figure.</p><p>Give all of this a thought, I might be wrong with many points. Maybe right with some! Let me know where am I wrong and what do you think about such situations in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcfe2f595907" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To hell with Indian society]]></title>
            <link>https://medium.com/@beingDev3/to-hell-with-indian-society-500ca7c0df98?source=rss-5d08a5a58be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/500ca7c0df98</guid>
            <category><![CDATA[marriage]]></category>
            <category><![CDATA[indian-society]]></category>
            <category><![CDATA[parenting]]></category>
            <dc:creator><![CDATA[Ankur]]></dc:creator>
            <pubDate>Wed, 03 Oct 2018 15:25:41 GMT</pubDate>
            <atom:updated>2018-10-03T15:25:41.750Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s talk about what me, average Indian adults(19–29 years), have to suffer, just because of the fact that I am staying in with my parents. Which is how 60–70% of the population is living. Please don’t ask me questions like why am I living with my parents in the first place, just consider that is how it goes in India.</p><p>Here is what we are not allowed to do —</p><ul><li>not letting me choose who I want to marry.</li></ul><p>Doesn’t matter how mature or educated I am, I will never be mature enough to find a life partner for myself. Though I am not married as of today, still I am not even taking efforts to ask my crush out. Because I know her parents, And I am sure they will not agree. Her parents will not approve of me on the ground of cultural, religious or astrological differences. And her and mine opinions are considered afterwards. And I have not even considered my parents’ opinions yet. It is they, who ultimately get to decide on our lives.</p><ul><li>Don’t do this, and if I do it I become wrong just because I didn’t listen to what they said.</li></ul><p>They say stuff like Don’t go to gym, Don’t do too much running, Don’t eat non-veg etc. and never explain why or be open to discuss why? In my specific case, I insisted my sister to go to gym or do some exercise at least at home. Gym is never an option. Because our parents would not approve of it(never of girls). Then she started doing some exercise at home by watching youtube.com for an hour a day. Unfortunately, She developed some chronic pain in her arm. And now you get all the scolding and that too unreasonable scolding. Most of the time you will hear, “You never listen to elders.”</p><ul><li>Restrictions</li></ul><p>Today, I am staying away from my parents. I go back to meet them and my sister after around 5 months gap. And I case I make some plans to travel. I can’t take my sister with me. and the argument they though at me is, “Society will think bad if they see you both together. Most of them don’t know your are siblings.” And as a result I never get to spend a good time with my sister.</p><ul><li>Prejudice</li></ul><p>You are being judged even if you stay too long on phone by your own parents. If you have done some thing wrong in your life, believe me you are going to be reminded/judged on that through out rest of your life.</p><ul><li>Emotional blackmail</li></ul><p>One of my friends, 23 years old, who just completed MBBS from Russia, was asked to marry an Indian woman. When he refused, he was forced by giving reasons about his father’s ill health. So, He married that girl. It’s been 6 years after their marriage, When ever I meet him, he just explains why he don’t want to stay with her.</p><p>Letting you know</p><ul><li>you are making us feel like we are jailed in our own homes</li><li>We are not allowed to make very basic mistakes but still you want us to learn about the whole of the world just by listening to your words.</li><li>When we make mistakes, which is most likely the case when someone does something for the first time, we are looked upon as a lifetime failure. Even then you try to prove that we should have listened to you and you use that failure as an example to halt our efforts in future. Really?</li></ul><p>One of the problem is parents don’t have a strict age limit when they let us(their children) take our own decisions, when they just believe we have all the rights to make our own choices.</p><p>I might have exaggerated around 25% in all the above points, because that is the way I behave when I am only explaining one side of the opinions. Sorry for that.</p><p>I understand this is a very negative article, But I don’t want to make anybody feel bad about them selves. Just trying to express my feeling I a hope to find out some solution.<br>I love you MoM and DaD.</p><p>— — — Your son</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=500ca7c0df98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Frequently losing temper while talking]]></title>
            <link>https://medium.com/@beingDev3/frequently-losing-temper-while-talking-cb4b367642a2?source=rss-5d08a5a58be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb4b367642a2</guid>
            <category><![CDATA[anxiety]]></category>
            <category><![CDATA[anger]]></category>
            <category><![CDATA[conversations]]></category>
            <dc:creator><![CDATA[Ankur]]></dc:creator>
            <pubDate>Tue, 02 Oct 2018 13:08:29 GMT</pubDate>
            <atom:updated>2018-10-02T13:08:29.445Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey, this is me sitting outside a cycle service shop, getting my cycle repaired. While the servicing guy is working on my cycle, I thought of talking to my sister. So, this is how the conversation went.</p><p>Me(on phone): hey, how you doing?</p><p>Sis: fine, you tell.</p><p>Me: As everybody is looking for a groom for you, have you thought about what do you want. In terms, where you would like to settle after marriage, in a metro city or some low key city. Do you want to be a working woman or a house wife?</p><p>Sis: I will surely be a working woman. I haven’t given much thought about all other stuff.</p><p>Me: You should be giving some thought.</p><p>Sis: But how do you expect me to think on all that stuff for future.</p><p>Me: see if we are planning for next 6 months, looking for a man and getting married. I think we should plan for next two or four years also, if not plan then at least give it a thought like what and how we want things to happen after marriage.</p><p>Sis(growing irritated): but how do you expect me to tell you something that I haven’t been a part of in my whole life?</p><p>Me(getting more irritated): see it’s not about me expecting something from you. Though, I am expecting that you give it a thought for yourself. (if not come to a conclusion)</p><p>Sis: don’t ask me to think of something unrealistically.</p><p>Me(annoyed): see, please don’t make me feel like I have asked something ridiculous. It’s me who have called you to talk about something important for your life and you are telling me to not ask what I want to ask. Either you make me believe that it is wrong or you have something better to discuss about. It seems like you’re irritated already and you are getting that irritation out on me. I may be wrong but just don’t tell me to not ask something. Explain to me why you don’t want to answer it today or if I’m wrong, try to explain why. Ok, we will talk later.</p><h4>And then my mom calls me</h4><p>Mom: what did you tell her? She has been crying since she talked to you.</p><p>Me: OMG</p><p>This is not the first time I have been in such a situation. Sometimes, when I feel like the other person is talking to me under some prejudice(or may be some ), I get to loose my temper.</p><p>May be I am too bold at telling my thought to the person, I feel is weaker than me or who I think will listen to me.</p><p>What so ever, that Conversation was not a pleasing one for me as well as her.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb4b367642a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A bedtime story — async loves await]]></title>
            <link>https://medium.com/@beingDev3/async-loves-await-5efc9ff51408?source=rss-5d08a5a58be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5efc9ff51408</guid>
            <category><![CDATA[promises]]></category>
            <category><![CDATA[async]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[await]]></category>
            <dc:creator><![CDATA[Ankur]]></dc:creator>
            <pubDate>Fri, 17 Aug 2018 04:00:57 GMT</pubDate>
            <atom:updated>2018-08-18T01:02:08.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*JsxCf4_WgNTn8ZUscWOwdw.png" /><figcaption>Title image</figcaption></figure><blockquote><strong>Introduction</strong></blockquote><p>async — A boy from east coast of the US, was working in an MNC, getting enough money to enjoy a relaxing life. As it was an IT company, he got good at front end technologies and found out a new way of working with asynchronous code in JS. He created a new type of function. And made it mendatory to add ‘async’ keyword in front of that function.<br>Hence, A function will only be called async function, if it has async keyword attached in front of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*AZCyhzsRqXdpzLR6dlB5kg.png" /></figure><p>It could not get better than meeting the love of his life — ‘await’, there in the same company. One remarkable quality of await was her calmness and that displayed on her face. She would always finish the task in hand first and then move on to the next task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*wJASiBRqA0wtfeXKOVFOLg.png" /></figure><p>So, when ever you see a code like the above, you know that await will make sure that the (asynchronous)function next to it is finished first, before letting the next line to execute.</p><blockquote><strong>Early days of Affection</strong></blockquote><p>Coming back to the story,<br>Async started to like await, Just after attending a seminar that she was delivering. But he did not get a chance to talk to her yet. Being a shy person himself, He tried to find out some common connection, so that, it would not feel awkward to approach her. Finally, He decided to send her a friend request on facebook, (silly, right?). But what options did he have.</p><p>To his surprise, his request got accepted with in an hour. He started a casual conversation, about things happening around in office. Asking about each other’s interests, they found out they had read same novels. And then you know, the conversations on novels can go long.</p><p>Eventually, She told him that she also used to admire him, looking at him from a corner in the badminton court where he used to play. They started dating.</p><blockquote><strong>Togetherness</strong></blockquote><p>After dating for around a year, they decided to move in and get married.<br>The love was so deep that they became inseparable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*CoIHTpXcikpYt_HNiPGCRA.png" /></figure><p>For example, in above code. you see await being used inside an async function. If you try to use it outside an async function, she will cry and give an error. Both ‘async’ and ‘await’ keywords are equaly important in this code snippet.</p><blockquote><strong>Family pleasure</strong></blockquote><p>After being together for two years, they decided to adopt a child and named him ‘Promise’.<br>Their bond with Promise got so strong that, <strong>Every </strong>async function always return a promise and anything you await will generally be a promise. The ajaxPromise function you see in the following code, returns a promise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*zxdBX02exM1GsCy1ubdzNg.png" /></figure><p>Now, if you try to return a non-promise value from an async function, it will wrap a promise around that value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*8d8HLSwMq6RF9ebdVbimTA.png" /></figure><p>The above code will run as the following :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*RuCW51K6FflR2en0-BewWQ.png" /></figure><blockquote><strong>Childhood</strong></blockquote><p>But you know kids these days, they don’t always stick together. So, promise can also be used outside async/await but not the other way around.</p><blockquote><strong>Parenthood</strong></blockquote><p>async/await also help their son to get organized, see the difference in the way, (synchronous looking code) following code looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*gOX6Gyz6I5AxDzJzbJWNeg.png" /></figure><blockquote><strong>Son’s getting mature</strong></blockquote><p>As the newer generation has excess to new technology, they learn more than the older generation(async/await). And in this case as well, there is stuff that only Promise can handle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*50--DKRbRyZJ4JjZXZLjwg.png" /></figure><p>So, There are some things only Promise can do and parents(async/await) rely on him for getting those done. You will require to use some code similar to the below one :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*vJamSGrV-0b9iulS9ckGOw.png" /></figure><p>async/await and Promise are so closely related. That if you don’t understand Promise properly, you will not be able to get the most out of async/await.</p><p>Another interesting story about Promise.<br>Do you know why they named their son “promise”, because he always promises some value/some future value.</p><blockquote><strong>Decisions they took</strong></blockquote><p>Now, You know, Promise always promises some value. But similar to real life, all the promises can not be full filled.<br>So, when promise doesn’t return a value that is called rejecting a promise and when it does return a value, that’s called resolving a promise. For example in the below code, We are rejecting and resolving depending on some condition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*Q0RhgQGPtWcl7QfCvITTSA.png" /></figure><blockquote><strong>Friendship</strong></blockquote><p>Promise has made some good friends, namely <br>all, race, reject, resolve, catch(not try/catch), then, finally.<br>I am not going through the life of promise in this article. I can another bedtime story about that, If I get good response for this one.</p><p>Just to let you know Promise’s dad (async) is also in good terms with some of Promise’s friends. For example you can use ‘catch’ and ‘then’ even with the async function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*eHH5ppNvEliR3Ucvft4iIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*J6_yRnJ9ihxHfAbJulW3rg.png" /></figure><p>Believe me, this family can help you a lot while coding. If you understand to make good use of it.</p><blockquote><strong>Summary of the story :-</strong></blockquote><ul><li>Async/await are inseparable</li><li>Async/await depends on Promise</li><li>If you don’t understand Promise properly, you will not be able to make the most out of async/await.</li><li>Await differs from Promise.then. As await stops the execution of the async function. On the other hand, Promise.then does not and only run the code in the then after it is resolved.</li><li>Better Code readability(Synchronous looking, asynchronous code)</li><li>Better error handling (being able to use try/catch and better call stack in debugger/devtools)</li><li>Everything about promise is not covered in this article, make sure you understand it properly.</li></ul><p>Just to let you know, I have a youtube channel. If you are interested in videos on front technologies:- <a href="https://www.youtube.com/channel/UCRrfKtdJtder2JnRNG6b77A"><em>https://www.youtube.com/channel/UCRrfKtdJtder2JnRNG6b77A</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5efc9ff51408" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ES6 inheritance — Additional features]]></title>
            <link>https://medium.com/@beingDev3/es6-inheritance-additional-features-6dc90b1765c0?source=rss-5d08a5a58be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dc90b1765c0</guid>
            <category><![CDATA[mixin-prototype-chsin]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[inheritance]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[ecmascript]]></category>
            <dc:creator><![CDATA[Ankur]]></dc:creator>
            <pubDate>Wed, 01 Aug 2018 03:40:25 GMT</pubDate>
            <atom:updated>2018-08-01T03:40:25.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*7DIm5-92QOfq0xb3gGcwuw.png" /><figcaption>Inheritance in ES6</figcaption></figure><ol><li>constructor</li></ol><p>2. super</p><p>3. extends</p><p>4. prototype chain</p><p>5. Mixins</p><p><strong>Pre-requisite for this article</strong></p><p>1. — How to create a class in ES6</p><p>2. — inheritance in old js. — Knowing this is important.</p><p>ES6 might change the way we write code but everything else remains same from prototype chain to class being defined as a function. for example the class defined in ES6 is still a function.</p><p>That means there might be a lot of change visibly but behind the scenes it is still the old function implementation.</p><p>So, lets start with inheritance in ES6</p><h3><strong><em>constructor</em></strong></h3><ol><li>Default constructor will always be there. (In case you don’t define one)</li><li>In inheriting class,</li></ol><p>a. Constructor must call the super method in beginning, otherwise it will give an error.</p><p>b. Default constructor will automatically call super(that calls the parent constructor).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*b7uIxAQ60tZuh0AjnQgoXA.png" /></figure><h3><strong><em>super</em></strong></h3><p>It is only used in inheriting classes.</p><ol><li>Inside constructor — — — — — super()</li><li>Inside any method- — — — — super.parentMethod()</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*3UgkX9VF9Avfev3y-WbzWA.png" /></figure><blockquote>Simply said, You have to call super in the derived class constructor before using ‘this’ in the constructor.</blockquote><p>if you are not using this in the constructor even then super has to be called before the end of the constructor</p><h3><strong><em>Extends</em></strong></h3><p>Is used to establish inheritance between two classes</p><p>Here is a comparison of extending a class before and after extends</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jyfeB-6A7zJQ114s" /></figure><p>Now there is a problem with extends, i.e. you can only extend a single class. Because javascript doesn’t allow multiple inheritance,</p><p>To solve this issue, we have mixins</p><p>So, Let’s see what is a mixin.</p><h3><strong><em>mixin</em></strong></h3><p>Mixin is used to achieve a special kind of multiple inheritance, by making a particular list of functions available in multiple classes.</p><p>With a mixin you can introduce methods to a class without inheriting.</p><p>Let’s see how we do that</p><p>If you google for ‘mdn class’ and then scroll down to the end, you will get a basic implementation for mixins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*PqP_F87dxQ1QPvBuaKY8UQ.png" /></figure><p>What they have done here is</p><p>They have created an arrow function, which returns an un-named class i.e.Inheriting dynamically from the parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*nEMJs-5FqTmsykGC6znyeQ.png" /></figure><p>The prototype chain for an object of Bar class looks like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*UKyglUH8UM37y__TjpnjlQ.png" /></figure><p>The only class you see in the prototype chain is Foo, but still you have methods from other mixins.</p><p><strong>Another way to achieve mixins</strong> is by using objects and <strong>Object.assign </strong>to copy all the enumerable own property from one or more source object to the target object.</p><p>If take a close look at the following example, sayMixin is assigned as prototype to the sayHiMixin, which both are infact objects, and then sayHiMixin is assigned to the prototype of the User class using ‘Object.assign’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*VXWTVLk0chLXYFw_Kvva_g.png" /><figcaption>Mixin</figcaption></figure><p>See the difference in the prototype chain in both the cases and make your own decision which one you want to use. One more thing to note here, because of the difference in the prototype chain, use of “super” will vary. I would go for the second one, just because it looks clear to me and it is not adding unwanted chaining steps to the prototype. Still I don’t have a <strong>clear</strong> answer for which one is better.</p><p>Could I shamefully ask for claps, because</p><p>function yourAppreciation(){</p><p>return myMotivaiton;</p><p>}();</p><h4>video for the same article —</h4><p><a href="https://www.youtube.com/watch?v=pGesNVmwrKo&amp;feature=youtu.be">https://www.youtube.com/watch?v=pGesNVmwrKo&amp;feature=youtu.be</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dc90b1765c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just knowing how to code in a particular language is not enough to call yourself a software…]]></title>
            <link>https://medium.com/@beingDev3/just-knowing-how-to-code-in-a-particular-language-is-not-enough-to-call-yourself-a-software-2d3dca70ebaf?source=rss-5d08a5a58be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d3dca70ebaf</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[2017]]></category>
            <dc:creator><![CDATA[Ankur]]></dc:creator>
            <pubDate>Mon, 16 Oct 2017 12:55:03 GMT</pubDate>
            <atom:updated>2017-10-16T13:00:58.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*q1a1DBuQQLGsSY-Hze9k1w.png" /></figure><h3><strong>Just knowing how to code in a particular language is not enough to call yourself a software developer in 2017.</strong></h3><p>There are a lot of things that are expected from you when you call yourself a developer and having a computer science degree is no more important. A basic knowledge of all these tools is expected from you.</p><p><strong><em>Version control (git)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*IxvXR4T9zPpLIUPOEsxf5w.png" /></figure><p>Git is a free and open source distributed version control system. The purpose of Git is to manage a project, or a set of files, as they change over time. Git stores this information in a data structure called a repository.</p><p><strong><em>Unit tests (junit/Jasmine)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*aR8bg0WkingdhhJsF0F05Q.png" /><figcaption>junit and jasmine</figcaption></figure><p>With incredible increase in the code base, there is huge need for writing the unit test case for the same. junit and jasmine are used for writing test cases for java and javascript respectively. and similarly there are different tools for different languages. You need to have the knowledge of at least one of these tools that works for the language that you are working in.</p><p><strong><em>Database (sql/mongo db)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*P5WDqVWlUx0f-NvqhFcj6Q.png" /><figcaption>mongodb and sql</figcaption></figure><p>No matter what you do, create a website or some portal or anything. You will need a database for sure. SQL for that matter is relational database. Mongodb is a document oriented noSql database. You might not get a change on work on the db but you should have some info about basic queries.</p><p><strong><em>Command line</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*6ev4pyPSBi2H8ve7sJv5nA.jpeg" /><figcaption>command prompt</figcaption></figure><p>You will not be able to work on many things if you don’t have a basic knowledge of CLI (command line interface) commands. Because many tools are CLI based. After all, That black screen is not that scary.</p><p><strong><em>Build tools (grunt/ant)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*z3sMR1aYfN4uvPIrOvalLQ.png" /><figcaption>grunt</figcaption></figure><p>Concatination, Uglification, Pre-processing, transpilling etc are a part of build processes these days. Tools like grunt, gulp, ant lets you automate these tasks. Similarly, There are different tools available for different languages. And you are expected to know at least one of these tools for your language.</p><p><strong><em>Dev ops</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*Qj2eZKODP1OJ3sclh3FsDg.png" /></figure><p>DevOps (a clipped compound of “development” and “operations”) is a software engineering practice that aims at unifying software development (Dev) and software operation (Ops). It is also known as continuous integration process. Jenkins and other tools are used for the same purpose.</p><p>That’s my take on being a developer in 2017. I might be missing something, I guess that’s what the comment section is for.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d3dca70ebaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>