<?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 Bhawna Patnaik on Medium]]></title>
        <description><![CDATA[Stories by Bhawna Patnaik on Medium]]></description>
        <link>https://medium.com/@bhawnapatnaik?source=rss-f4b207f8ef8a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fskK1K23FI_NB-9btEc-Ig.jpeg</url>
            <title>Stories by Bhawna Patnaik on Medium</title>
            <link>https://medium.com/@bhawnapatnaik?source=rss-f4b207f8ef8a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:47:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhawnapatnaik/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[6 movies every thriller fan or movie-buff needs to watch]]></title>
            <link>https://medium.com/@bhawnapatnaik/6-movies-every-thriller-fan-or-movie-buff-needs-to-watch-bc38eeb3c421?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc38eeb3c421</guid>
            <category><![CDATA[thriller]]></category>
            <category><![CDATA[movie-review]]></category>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[english]]></category>
            <category><![CDATA[movies-to-watch]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Sat, 03 Oct 2020 16:26:50 GMT</pubDate>
            <atom:updated>2020-10-03T18:40:09.258Z</atom:updated>
            <content:encoded><![CDATA[<h3>6 movies every thriller fan needs to watch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZnVkN-ShOHsYUMbafHPLHw.jpeg" /></figure><p>I always ask Google for movie recommendations and since, I love thrillers, I have been constantly exhausting the supplies. This is a curated list of all the thrillers that messed with my head. If you are also looking for something to watch, pick any one of these and I guarantee you won’t be disappointed.</p><h3><strong>MULHOLLAND DRIVE</strong></h3><p>I couldn’t tear my eyes away even for a second while I was watching the movie, even though it is a long one and all of it did not make much sense to me. To tell the truth, it still doesn’t. I might piece the puzzle together or I might not but one thing is certain, the movie has twists that even the most seasoned wild-thinkers will not be able to predict. A gem from Lynch’s universe. If you make sense of it all, do let me know because I would like to pick your brains and have a crazy conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*-wEGyr0iwj1Gals0F_UXDA.gif" /></figure><p>The main storyline is far from a straight path. It’s rather an ellipse that emerges from and disappears into a black hole. The central theme revolves around the dark and dangerous way Hollywood is run. The decay in the film industry, it’s nepotism and politics are brought to the forefront.</p><p>Clue: Who is the actual actress in the movie?</p><p><a href="https://www.youtube.com/watch?v=jbZJ487oJlY"><em>Click to watch the trailer</em></a></p><h3><strong>DONNIE DARKO</strong></h3><p>This movie starts off slow. There’s just a rebellious teenager on screen who doesn’t seem to have a reason because, hey! He’s pretty privileged and his parents are paying fat stacks of money to a shrink for him. He, though, doesn’t give a damn. As the movie progresses, you’ll see yourself siding with Gyllenhaal’s adorable character. The strange part is, he isn’t even a loner. He has got issues but he has got friends too and in the meantime, gets a girl for himself. Now, that’s not a petty feat, is it? He is also brilliant in his English class (like all the psychopaths out there) and has very supportive English and science teachers who alternately tell him about time travel and intellect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*3tdAJI3I4HAhnGs7XVfBVA.gif" /></figure><p>Look for the clues and you will know what he did after finding out the source of the bunny. He makes sacrifices to fight his inner demon — the 6 ft tall man in a bunny suit that haunts his daylight hallucinations. The plot twist and the possibilities it presents are a bit difficult to grasp at the first go and that’s why I had to put this here, on this list.</p><p>Clue: The song that plays at the end of it is an absolute masterpiece. Firstly, for it’s soulful, sad tune and secondly, because it fits so perfectly with the story of the movie.</p><p><a href="https://www.youtube.com/watch?v=ZZyBaFYFySk"><em>Click to watch the trailer</em></a></p><h3><strong>MEMENTO</strong></h3><p>I would pause this movie intermittently to make my own conclusions and see whether they were right. You can’t be the correct judge of what is going on because you’re watching the proceedings through Lennie/Leonard’s eyes. Is he the bad guy or the good guy? This was one of the most mind-boggling questions that I have ever had while watching a movie. A thriller is really brilliant when you don’t know what or who to believe while you’re watching it and I was pitted into this condition several times in Memento.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Q1cuCZd7oJXM6K89c_aYrg.gif" /></figure><p>Leonard suffers from a mental condition which does not allow him to make any new memories. He goes around looking for his wife’s killer but the information that he has about him, are they correct? You wouldn’t find out till the very end. The catch is, you will have to come up with your own conclusion and make up your own story because what are memories other than people’s workings of their mind and this movie is based on memories?</p><p>Clue: The story is told backwards.</p><p><a href="https://www.youtube.com/watch?v=HDWylEQSwFo"><em>Click here to watch the trailer</em></a></p><h3><strong>BLACK MIRROR: BANDERSNATCH</strong></h3><p>The opening of the movie gave me tingles. You know the feeling when things are too simple to be true? You’re waiting for the catch and it gives you one. Since it had been adopted from the twisted TV series, Black Mirror, I had high hopes of it and boy does it deliver! There are so many sci-fi concepts at play here that you need to have a very open mind to grasp all of it. A lot of time travel, resurrection, gory games, tripping later, the ultimate truth is revealed, but that’s my conjecture at best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*_4Go8DUGWA0C7kemWeEgRQ.gif" /></figure><p>An everyday programmer in the 80s is trying to make his big breakthrough with a game that was an exciting concept. It lets the player decide what course of action the character will take. Stefan is on a quest of making the most perfect game given to humankind but, who is making the choices?</p><p><a href="https://www.youtube.com/watch?v=7wnRi3Sclm8"><em>Click here to watch the trailer</em></a></p><h3><strong>THE DEPARTED</strong></h3><p>There is such a huge range of characters that it first took me a while to figure out what was happening but once I did, there were tones of nail-biting moments. If you’re looking for the unexpected, this is the perfect stop. You will always be left wanting for more and also have a sense of satisfaction with what happens in the outcome. DiCaprio is his usual gem of an actor, so much so that the whole thing reminded me of Inception a couple of times (I watched this later).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*QWlzRwqD3WuKj8L_VYpSnA.gif" /></figure><p>One police officer is put in charge of finding the rat in his own division and another is pushed undercover into a mafia ring to find out their secrets and give his constant feedback to the police. The officer in charge (Matt Damon) is actually helping the criminals and no one is aware of Bill’s (DiCaprio) position as an officer. He loses his identity if his bosses die but would he get out of the ring alive? Apart from this, the movie is hilarious. It is based on racial slurs and sexual insults but most of them turn out to be funny.</p><p><a href="https://www.youtube.com/watch?v=iojhqm0JTW4"><em>Click here to watch the trailer</em></a></p><h3><strong>SHUTTER ISLAND</strong></h3><p>This is my favourite movie for a reason. US Marshall Teddy Daniels comes to a facility for the criminally insane to find a patient who’s missing. The patients are afraid because of the alleged mind experiments and lobotomy taking place at the Ashecliffe Hospital or the lighthouse. Daniels (DiCaprio) has to find out the criminal who escaped, where and what happens at the facility and also get out of Shutter Island alive. He first has to figure out whether the information given to him is true or not, including about himself. This movie keeps you guessing about who the actual villain is till the last moment. Even when the truth is explained, you would realize that there are alternate realizations and multiple interpretations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*UwtthJxw8uQyKvByK0sfqg.gif" /></figure><p>Hint:</p><ol><li>Who is Andrew Laeddis?</li><li>How did Teddy Daniels’ wife die?</li><li>Where is the patient who is missing?</li></ol><p><a href="https://www.youtube.com/watch?v=5iaYLCiq5RM"><em>Click here to watch the trailer</em></a></p><p>There are a lots of other movies which I would love to recommend, <strong><em>Inception </em></strong>being the first. I didn’t put them in because they’re some of the common ones and they need another article. This one might have stretched a bit but I was so passionate about these movies that I HAD to pen down all my feelings. Have fun watching them and hit me up if you find one or more of them interesting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc38eeb3c421" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 Things You Should Catch Up on in this Lockdown!]]></title>
            <link>https://medium.com/@bhawnapatnaik/8-things-you-should-catch-up-on-in-this-lockdown-12a789fe4662?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/12a789fe4662</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[lockdown]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[quarantine]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Sat, 15 Aug 2020 18:24:25 GMT</pubDate>
            <atom:updated>2020-08-15T18:24:25.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iS9h1JzovhCHAXu2gJn0vw.jpeg" /></figure><p>Am I late with my ocean of knowledge? Yes. Are all these points still valid? Probably yes, again. The first few days of the lockdown were pretty exciting and laid-back for me. I realized that I hadn’t had this much free time on my hands for a long while and I was overjoyed. As the days progressed, I ran out of things to do, and eventually, listlessness set in. I lost count of the days when I stayed up all night doing nothing and spent the mornings sleeping. Most of us have started with our online classes and hence, have comparatively less time to lose now, but please ponder a little on the points I’m mentioning here.</p><h3>1. Talking to your parents/family</h3><p>Most of us left our home just after the 10th or 12th exams. Hence, this lockdown is nothing short of “Ghar Wapsi” for us. I have never been home for such a long time after my 10th boards. The delicious food does take some getting used to so does staying with your family and sharing your personal space, again. (Damn! When they leave the door open)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*R0YB4hy83EVxph1M0nbZAQ.gif" /></figure><p>Nonetheless, talk to your parents and siblings! Isn’t it weird that the ones who care about us selflessly are the ones we end up ignoring? We would tell hundreds of problems to a friend whom we met yesterday but not to our family. I know it’s tough and most probably, you will end up disagreeing on some points but it’s important. You aren’t going to have a chance like this to interact with people who will always care. The truth is, you never know when you’ll lose them. So, make the most trivial conversation. Go talk about the weather but do it. Maybe it’s as tough for them as it is for you.</p><h3>2. Movies/Anime/Series that you’ve always wanted to watch</h3><p>We’re always so caught up in the rat race of earning money or getting better than others, that we never realize what we are missing out on. There must be a list of things that you’ve always wanted to watch and never found the time. This lockdown is a gift! Binge-watch everything that has been on your bucket list.</p><p><strong>Recommendations:</strong></p><p><strong>Movies: </strong>Shutter Island, Lady Bird, Mulholland Drive, Dead Poets’ Society</p><p><strong>Anime:</strong> Erased, Death Parade, Another, Fullmetal Alchemist, Death Note</p><p><strong>Series:</strong> (Look for yourself! Come on! No, I am not saying it. {I know the most famous one.})</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8AcTsanJIbfHekzkKaI29w.jpeg" /></figure><h3>3. Skills that you’ve wanted to develop</h3><p>I wanted to learn oil painting real bad but I never found the time. There must be some hope that you’ve had in your heart too. There has to be something you’ve all wanted to do. I am seeing people exploring new domains every day and it makes me so happy. It might be something that you’ve wanted to add to your CV too and never got the opportunity. Go work on it!</p><p>Some things you can do include <em>painting, dancing, cooking, writing, making videos, photography, improving your public speaking skills,</em> and <em>coding</em>!</p><h3>4. Reading</h3><p>We never find the time and patience to do this. I know it sucks in the beginning but once you get into it, it’s a pleasure no less than watching a movie, if not more. Fiction isn’t the only thing that could interest you. You might want to read biographies, books on self-help, or books on science and commerce. (Something I can’t help with)</p><p><strong>Recommendations</strong>: Murakami’s books (<em>Kafka on the Shore</em>, <em>Norwegian Wood</em>, and<em> Sputnik Sweetheart</em>), <em>Of Mice and Men</em> by John Steinbeck, and <em>Harry Potter</em>(if you didn’t, due to some calamity)!</p><h3>5. A hobby that you left behind</h3><p>I am sure there was something in your childhood you loved doing and with time, you forgot all about it. Bring the enthusiasm back! Oil those rusty hinges and try to do whatever you loved doing so much. This time, make the effort count. It could be PC gaming, stamp collection, a scrapbook, or the more generic ones like dancing or painting. Whatever it might be, you can nurture and enjoy it now!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*7gPPpLOaIaoZNOyWoOfDzg.gif" /></figure><h3>6. Crying</h3><p>A good cry cleanses your heart and also your eyes(not making this up.) We start thinking that it’s immature and somewhere along the way, we stop giving in to our emotions. I know you keep all of it bottled up. Don’t lie to me. Not only does this make you feel light but also makes you happier, not immediately, but eventually. So, curl up into a ball and let it all out.</p><h3>7. Loving yourself</h3><p>When was the last time you did something only to make yourself happy? Even if the answer is yesterday or today, it hardly matters. Cover yourself up in a blanket, dunk your chips into hot soup and enjoy your favorite movie/book. Go for a run, cook for yourself, paint your nails, or give yourself a makeover. Do anything that brings a smile to your face. Come at peace with your heart.</p><h3>8. Sleeping</h3><p>I saved the best for the last. Oh, how I love passing into the state of obliviousness! It’s an added benefit if spectacular dreams accompany it. I am sure you didn’t find the time to be knocked cold for more than 12 hours. Utilize this time and retire to the subconscious state. I guarantee you won’t regret it. Your mind, body, and heart are weary. All of you need rest. So, have a good night and a half of the day!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Un-nBWCZV44QhO_8lQEUQ.jpeg" /></figure><p>Make sure you do at least five of the things I mentioned above and you’ll be on your path to perpetual happiness. Just kidding, none of us know the formula till now. (The answer is 42, btw! {find the reference. J}) I just hope that when you get yourself to do some of the things above, you experience a little bit of the satisfaction that I have come to associate with these activities. Once you get in, it will be a fun ride.<strong> Enjoy this time!</strong></p><p>P. S. Hit me up if you’ve done any or some of the above. Would love to discuss this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12a789fe4662" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why it’s Okay to have a Few or No Friends in College]]></title>
            <link>https://medium.com/@bhawnapatnaik/why-its-okay-to-have-a-few-or-no-friends-in-college-b4aa77e148e6?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4aa77e148e6</guid>
            <category><![CDATA[friendship]]></category>
            <category><![CDATA[truth]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[college]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Tue, 04 Aug 2020 18:46:09 GMT</pubDate>
            <atom:updated>2020-08-05T13:44:04.221Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*49BJgqn3eN8MX2pLWoZ94A.jpeg" /></figure><p>I am not a hermit who has spent some millions of years on the Himalayas, here to impart her knowledge but I feel that I have seen a lot of college life for saying the things that I am going to. I was also a sparkly-eyed kid who had joined college in the hope of creating and sustaining a huge group of friends at the beginning of the first year. Although most people were not actually friendly, I was blind to all the shortcomings of these frivolous individuals and I set out on my quest for friends. Now that I think about it, I can come up with so many other ways I could have utilized my time rather than trying to make friends. I won’t say I regret trying to be nice but honestly, don’t bother. Think for yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*FojxppZ7GEYZ0abx-iGdZw.gif" /></figure><p>This shall not be an ambiguous rant on philosophy (which is generally useless) but a life lesson that everyone learns eventually. Friends might seem to be an important commodity in one’s college life but what starry-eyed first-year kids fail to understand (through no fault of theirs), is that they don’t come in handy and most of the times, just cause heartache.</p><h3>1. The lesser your friends, the safer your secrets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*DcKJFjCNdfexcdKPrTJkSw.jpeg" /></figure><p>This would either seem obvious to you or you would not believe me. If you share things with people, you always take the risk of it getting out in the open. The fewer friends you have, the less the chances of your dirt going out. If your circle consists of three people who are close only with each other, there is no chance they would go and tell your secrets to someone else. People also give you away when they’re trying to get back at you and that is when they change(hiss hiss), which is more likely to happen in a large group of people because you can never figure out who is harboring a grudge against you. If you don’t have any friends, you don’t even have to bother telling someone some of your secrets and hence, no one will ever find out. This is the most relieving thing to think about when you go to sleep. Trust me.</p><h3>2. You will have more time for yourself</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*LxgNMSukp7iDKrAIv4wF8A.jpeg" /></figure><p>Making new friends and maintaining a friendship takes investments and efforts. The most valuable purchase of friendship you make is with your time. You have to spend YOUR valuable time with them in order for them to stand by your side. This might seem like a worthy investment but it would turn out to be a very expensive and useless maneuver if your friends don’t help you in the future.</p><p>If you choose to have a few or no friends, you will not have to give your precious time to anyone. Close-knit circles consist of very understanding individuals where each person spends the most time on themselves in order to develop skills and become a better person. If you’re alone, you are free to use YOUR time the way YOU see fit. These students in college generally become more successful than most. They are also much more knowledgeable because they have a surplus of time on their hands which they utilize in fruitful pursuits like watching good movies, reading books and developing necessary skills for the market.</p><h3>3. You won’t be subjected to any heartbreaks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*FBpuwoQgWm3gX_BP0hGOOQ.gif" /></figure><p>Love isn’t the only feeling that ends up hurting you. If a friendship ends, it hurts just as much, if not more. If you are part of a big group of people who are friends, you are bound to lose some along the way. Regardless of how much you people have in common, there will always be some misunderstanding that splits you apart. This also happens when there is a conflict of interest. Everyone thinks only about themselves at the end of the day and if you don’t meet their expectations, you are bound to be discarded. That’s the harsh truth. Your best friends won’t think twice before ostracizing you if they find someone who is more benefitting to their needs. You wouldn’t like sitting alone in class all of a sudden, would you? Why not get one or two people, from the beginning who would always stick with you?</p><h3>4. You won’t meet judgmental people</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*75dUUkocJ6V_al8PMQDpzA.jpeg" /></figure><p>Not everyone will believe in your ideologies. This is bound to happen more so if there are a large number of people in a group. We all have quirks and weird traits that we would rather not tell anyone and if we do, we would rather not be judged for them. This will definitely happen if you encounter people who do not see eye to eye with you and also if those people do not have a mentality as broad as you do.</p><p>People will judge you even if you don’t do anything. It’s just more useful if they do it behind your back. Pointing out your faults(which is done by genuinely caring friends) and looking down upon you with condescension, just because they don’t have the mental prowess to wrap their minds around the fact that you can be involved in certain very normal things are different. The latter just takes a lot of energy out of you. You don’t deserve this any day. If you have few people whom you know inside out or you’re alone, you are spared this lashing at your self-esteem on a constant basis.</p><h3>5. Bifurcation of a large group into smaller groups.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*wegkMYl4zDQucidl-myVgQ.jpeg" /></figure><p>If you’ve been part of a large group, you would know that it actually consists of many smaller groups. I agree that there are big groups where everyone is great friends but it’s just natural that you would be closer to some people than the others. This is actually healthy. It’s better to be close to a smaller number of people. It turns ugly when all the smaller groups are secretly against each other and are just civil on the face. This leads to a lot of bad blood, which would just hurt you in the long run, if you happen to find out. This happens when people don’t actually like each other but choose to stay friends, for the sake of maintaining a big group of friends. All this will never happen if you choose to focus on yourself and stay alone or have very few friends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*HOGrN7K5YNR6thfpckj6rQ.jpeg" /></figure><p>In conclusion, I would say that I have nothing against boisterous extroverts who have the whole college as their friends. In fact, I envy them but it’s just more convenient and heartwarming to have a few friends who have your back rather than too many people who would never stand up for you. It is also okay to be completely alone because you enjoy your company so much.</p><p>This lockdown made me realize that it’s not so bad to be left alone. Whatever I had been searching for in people is already available in so many forms. There’s so much to do in the world. There are thousands of domains to explore, uncountable movies, anime to watch, myriads of books to read and so many career options to reflect on. It’s actually pretty nice to be without friends. You can focus on your dreams and goals and have all the time in the world to yourself. Hence, it’s just more <em>productive</em> to stay alone. If you’re one of the people who are going through college without friends, you’re doing yourself a favor. You’re living a truly <em>peaceful</em> life and that’s more than most of us have. <strong>Congratulations on that!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*R6eu0VrB230jZJaA3HBjjQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4aa77e148e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create your own app with node and Express in under 15 minutes!]]></title>
            <link>https://medium.com/@bhawnapatnaik/create-your-own-app-with-node-and-express-in-under-15-minutes-6f757b6af8d6?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f757b6af8d6</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Sun, 12 Jul 2020 07:07:48 GMT</pubDate>
            <atom:updated>2020-07-12T16:28:56.426Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHw6ENUfu71KHiyTm0BtUA.png" /></figure><p>It is a perpetual dream for developers to create something for users. Are you among the herd who want to use the MEAN stack? You’re in luck! I’m one myself. Let’s put our heads together and start with the basics of creating a web app using node and express. I’ll tell you all the steps with which you can create your own application with multiple web pages and a myriad of functionalities. This is a very basic tutorial and hence, our app won’t do much. It will just display some messages for the user but hey! That’s good enough in the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*4o2vWER2X-r2P9jedqAv9w.jpeg" /></figure><p>Node is a backend framework written in JavaScript. In fact, it’s the only JavaScript framework which is used in the backend. The rest of the frameworks available out there which are built on JavaScript are exclusively frontend. This is where node sweeps in like a pirate and takes all the gold. It is a framework which builds the foundation and is very useful for beginners, being pretty robust. We will use the E and N of the MEAN stack now. E stands for Express JavaScript which is used to get dynamic data on web pages. It has a queer syntax. All the ExpressJS statements are actually JavaScript statements enclosed with brackets like &lt;% %&gt; individually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*OlVHDGgjRDf1hTNe8UIB4w.jpeg" /></figure><p>We will first create a directory where the app will reside. Lets name it wizard.</p><pre>mkdir wizard</pre><pre>cd wizard</pre><p>If you don’t have node and npm installed on your computer, I would suggest that you do that first. After its done. The following command is used to make a package.json file which keeps track of the packages being installed in the application.</p><pre>npm init</pre><p>We will now go ahead and install the packages that will be required in our application. At this point, I sound like a 50-year-old instructor who doesn’t care about the depression his student is going through :)</p><pre>npm install express body-parser ejs nodemon mongoose — save</pre><p>The mongoose being installed is actually used to create MongoDB databases. It’s a part of the backend and even though I will not be using it in this app now, you might as well have it installed because it’s the M in MEAN and its bound to be used sometime later.</p><p>Create a file named app.js in the folder wizard. It’s a personal preference. You can name it index.ejs/server.js or anything you want to.</p><pre>touch app.js</pre><p>Open the above file in any code editor and add the following code to it.</p><pre>var express      = require(“express”),<br>    app          = express(),<br>    bodyParser   = require(“body-parser”),<br>    path         = require(&#39;path&#39;);<br>    mongoose     = require(“mongoose”);</pre><pre>app.use(bodyParser.urlencoded({extended: true}));<br>app.set(“view engine”, “ejs”);<br>app.use(express.static(path.join(__dirname, &#39;public&#39;)));</pre><p>Cool it, guys. I am explaining the code. You are creating a variable named express and requiring the package express in it. You are then creating another variable named app and making use of express with it. App is the variable that we are going to use extensively. It is used for routing us to the pages that we wish to show on our application. We do the same with all the packages installed, requiring them in our application.</p><p>The<strong> body-parser </strong>package extract s the entire <strong>body</strong> portion of an incoming request stream and exposes it on req. <strong>body</strong> .This <strong>body</strong>-<strong>parser</strong> module parses the JSON, buffer, string and URL encoded data submitted using HTTP POST request.(Don’t think too much about this.)</p><p>We will now create another directory called views and add an .ejs file to it.</p><pre>mkdir views</pre><pre>cd views</pre><pre>touch index.ejs</pre><p>Open the file above and write the simple code below. (I promise I’ll make it fancy later.) These files have all the HTML data which can be made dynamic when the need arises.</p><pre>&lt;!DOCTYPE html&gt; <br>&lt;html&gt;<br> &lt;head&gt;<br>  &lt;title&gt;Wizard app&lt;/title&gt;<br>  &lt;link rel=&#39;stylesheet&#39; type=&#39;text/css&#39;  href=&#39;/stylesheet/index.css&#39; /&gt;<br>&lt;/head&gt;<br> &lt;body&gt;<br>  &lt;div class=”wizard”&gt;<br>   &lt;h1&gt;Hello there! Ready to be a wizard?&lt;/h1&gt;<br>  &lt;/div&gt;<br> &lt;/body&gt;<br>&lt;/html&gt;</pre><p>We will now check if things are working properly. The code tells your app to listen on port 3000.</p><pre>app.listen(3000, process.env.IP, function(){</pre><pre> console.log(“Server has started”);</pre><pre>});</pre><p>We will now add the message that has to be displayed on the page when we start the app.</p><pre>app.get(“/”, function(req, res){</pre><pre> res.send(“Hello there! Ready to be a wizard?”);</pre><pre>});</pre><p>The get request is used to show something on the page. It is generally used to display information from the database on to the page in your app but more of that, later. Here, the slash you see inside the double quotes is actually the URL. A simple slash is conventionally used for the homepage. The URL gets more complicated as we proceed.</p><p>Go to your terminal, navigate to the wizard directory and type the following command:</p><pre>node app.js</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwkmaeqrbOo9DzErmsbpIA.png" /></figure><p>Open a browser and type the following URL if you’re on Windows.</p><pre>Localhost:3000</pre><p>The URL below will be for everyone using Linux:</p><pre>127.0.0.1:3000</pre><p>If you see the message for the wizard above, congratulations! You have successfully created your very first simple app. Let’s make it fancy now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i428F9F7lOgZgx7ch1suRg.png" /></figure><p>Create another directory called public where we will keep out stylesheets. Create another folder called stylesheets and a file called app.css there. We will style our page there. So, your final directory structure should look like this:</p><pre>app.js<br>views<br> index.ejs<br>public<br> stylesheets<br>  style.css</pre><p>Now, go to the index.ejs and make changes to the code. When we need to send some text, we use res.send. This is generally not the case with large web apps. We need to display whole pages and this is where the view engine called ejs comes into use. We write HTML with JavaScript in .ejs files and show them with res.render. Therefore, the code takes the following form</p><pre>app.get(“/”, function(req, res){</pre><pre>  res.render(“index”);</pre><pre>});</pre><p>If you see the following page, then your app is working properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSJMlKlC6IivZNBNEnluFg.png" /></figure><p>Notice that the app.get now displays the content that is there in the index.ejs file. We shall add in a few styles so that our page looks a little fancy. This will be added to style.css.</p><pre>body {<br> <em>background-image</em>:  url(https://medium.com/%3Cem%3Ehttps://cdn.pixabay.com/photo/2019/01/05/01/49/classic-3914475_1280.jpg%3C/em%3E);<br> <em>text-align</em>: center;<br>}</pre><pre>#wizard {<br> <em>color</em>: white;<br> <em>padding-right</em>: 290px;<br> <em>padding-top</em>: 50px;<br> <em>font-family</em>: &#39;Courier New&#39;, Courier, monospace;<br> <em>animation-name</em>: example;<br> <em>animation-duration</em>: 4s;<br> <em>animation-delay</em>: 2s;<br> <em>animation-iteration-count</em>: 100;<br>}</pre><pre>@keyframes <em>example</em> {<br> from {<em>color</em>: cornflowerblue;}<br> to {<em>color</em>: white;}<br>}</pre><p>If you followed all the steps properly, you’ll see the following screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YpMqXfIeZ8IS-8LF5d3EfA.png" /></figure><p>Your simple app is ready. You can now get the horses or your imagination up and running. Add a few pages and navigate among them. Add buttons and their functionality. Whatever you do, don’t forget to have fun and don’t fail to notice the animation on your page!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*r0Ucy-MboikqqspPhS0OYg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f757b6af8d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Classical Dance changed my life!]]></title>
            <link>https://medium.com/@bhawnapatnaik/how-classical-dance-changed-my-life-8e687bf1aca4?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e687bf1aca4</guid>
            <category><![CDATA[dance]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[classical]]></category>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Sat, 04 Jul 2020 11:58:44 GMT</pubDate>
            <atom:updated>2021-07-12T13:22:31.848Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGKNIq4HhcbsqRpOds_VLw.jpeg" /></figure><p>As the title suggests, I have been dancing for quite a few years now. In spite of that, it would be a shot in the dark to say that I am a good dancer. I just scraped through the exams and got reasonable grades ( yeah, you gotta study to major in classical dancing ). It wasn’t an easy journey and there are really no short cuts. I learnt a lot along the way but sometimes, I do contemplate about whether it was worth it to break my back over something like this.</p><p>I’ll just tell you the highs and lows of learning a classical dance, called Odissi. It originates from the coastal state of Odisha in eastern India. In the beginning, it was performed by devadasis or the dancers who lived in the temples in the medieval times. Did I start writing this as a lesson in history? I think not. Does a little bit of backdrop make it more enticing and posh than it is? Probably what the intention behind this was.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vT5SHQSFOQxYClc_aSIxMw.jpeg" /></figure><p>All the classical dance forms that I have come across are not easy to master. There are tonnes of things to learn and yes, a finite number of dances. Any sidestepping of the rules is regarded as blasphemy. I got to learn quite a few of the total.</p><p>I was first enrolled into a dance class that had a lacquered floor in the old-fashioned way where around 100 students danced together. There were kids right from the ages of 4–5 to girls in their twenties. What saddened me was the fact that among all these children, there was just one boy and one man. It’s sad that Indian parents still consider classical dancing to be feminine pursuits. I was one of the small kids aged around five when I went there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*dL_NitotlmPDLxaojvHNig.jpeg" /></figure><p>We first learned steps, exercises, names of hand movements, head movements and the ways you can use your fingers to depict shapes. It can be a peacock, deer, sea-shell and around 60 other things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*8coW5PTbsJMyAOYrXCPsqw.jpeg" /></figure><p>All of the names were in Sanskrit and pushing that down a kid’s throat who’s in kindergarten is more like preparing for war than a fun activity. Most of what I’ve had with classical dancing was never fun. Hear me out. I don’t have anything against old culture but the rigorous sessions just led to performing to the rhythms of slow Sanskrit music which doesn’t really appeal to much people. The intricacies are not understood or appreciated and I ended up feeling it’s a lot of effort for nothing.</p><p>I got into it only for my parents who have always had this huge fascination for Odissi and felt that that was the only form of dancing that was acceptable for girls of “respectable” families. I did this relentlessly for two years. I would go to my classes twice a week and practice all the new things that were taught. This was mind-numbing. The same things done on a drum roll. I hadn’t even reached my first song and that was when my parents decided that the progress was too slow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*w3eJgcsnJAlA0K5FgcXWmA.jpeg" /></figure><p>There’s this custom of touching your teacher’s feet every time you see them and every time you leave. The same applies to Mother Earth beneath because we pray to her before dancing. This is a sort of thank you for taking the blows of feet upon her.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*sGTWIOgz875VDoBVp5crYA.jpeg" /></figure><p>I got really good at dancing when I was going to her. I was almost a model student back then, learning everything she asked me to, practicing when required and performing well. I did give some exams as well and got decent scores. There was a portion for every “year” exam and I covered it till 3rd year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*-mVUPTnUGwHSUBuhYN5pQA.jpeg" /></figure><p>My parents got me a personal tutor, who was a student of my previous teacher’s. she was great as well but pretty lenient. She was young and did not have it in her to be strict with me. Under her tutelage, I started slacking. I never learnt what was necessary and stopped remembering things. The skills I had acquired ago soon started slipping from me and even my parents realized that. I was again sent to my previous teacher.</p><p>This lackluster, unenthusiastic learning process continued for a few more years till my parents discontinued my dance lessons for more pressing academic reasons. I wouldn’t have been able to cope with dancing, painting and the ICSE curriculum at the same time but that’s for another article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qn23D-ZOopGSn5UA-Ckctg.jpeg" /></figure><p>There were millions of life lessons in the nine years of dancing that I overtook. The mindless determination teaches you that mastery over even trivial things take dedication. My body became more resilient and I had a very lean frame. I could also reconcile myself to harder physical strain over longer periods of time. The few times I went up on the stage to perform and the way my muscles would light up after every five minutes of dancing isn’t comparable to anything I have experienced since.</p><p>My teacher always taught us the importance of the quality of knowledge that you imbibed. She has multitudes of students who are brilliant dancers.</p><p>It has been around 6 years and I haven’t performed or practiced classical dancing. I don’t even feel regret while typing this. It’s a skill that’s been put into me and I can harness it whenever I want to. It’s almost like having a horse and learning how to ride it. You can do that whenever you want but you generally don’t. The truth is, without an immediate result, the monotonous muscle crunching does not appeal much to me. I might take it up once I have more time.</p><p>I am glad that I went through all that I did for Odissi. I am sure it contributed towards my character development. I would put it as eating green vegetables; not very good for the tongue but they give you amazing eyes and a healthy body. If I had to do it again, I might do it differently. This might not even have been as traumatizing for other girls, or even for me as I describe it to be. Problem is, as you grow up, the memories get distorted and the bad kind of stands out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*IO_cWrLNwF4xUwLPz1lwvg.jpeg" /><figcaption>11-year-old me with my tiny brother just before an Odissi performance</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e687bf1aca4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Props and functions in React made easy!]]></title>
            <link>https://blog.devgenius.io/props-and-functions-in-react-made-easy-2ccbf69b135?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ccbf69b135</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 19:42:23 GMT</pubDate>
            <atom:updated>2020-08-04T22:27:07.253Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6C4nSvy2Woe0m7bWEn4BA.png" /></figure><p>Props are like the parameters passed to a function in ReactJS. Every component in React is treated like a function. Therefore, props are immutable. That must have been the most rude way anyone can start writing an article but really, the people who would come here looking for information about props won’t care.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*nRKrRK-HL8GW6ENk0eOjcw.jpeg" /></figure><p>Components can be configured upon instantiation by passing properties to the constructor — these properties are called props. props may be accessed from within the component’s methods as this.props, in order to alter how the component is rendered and/or how it behaves. However, props must <strong>not be altered</strong> from within the component’s methods.</p><pre>function Hello_to_you(props) {</pre><pre> return &lt;h1&gt;Hey there, {props.name} !&lt;/h1&gt;;</pre><pre>}</pre><p>If props is passed to a class instead of a function, then it becomes this.props.whatever instead of just props.whatever. This is how props which stands for properties are accessed in different situations.</p><pre>class Hello_to_you extends React.Component {</pre><pre>  render() {</pre><pre>   return &lt;h1&gt;Hey there, {this.props.name} !&lt;/h1&gt;;</pre><pre>  }</pre><pre>}</pre><p>Constuctor methods are used in classes to initialize states and before that, a super global variable is announced.</p><pre>class App extends React.Component{</pre><pre> constructor() {</pre><pre>  <strong>super()</strong></pre><pre><strong>  this.state = {</strong></pre><pre><strong>   answer: “Yes”</strong></pre><pre>  }</pre><pre> }</pre><pre> render() {</pre><pre>  return (</pre><pre>   &lt;div&gt;</pre><pre>    &lt;p&gt;Is the state important to know? {this.state.answer}&lt;/p&gt;</pre><pre>   &lt;/div&gt;</pre><pre>  )</pre><pre> }</pre><pre>}</pre><p><strong>JavaScript FUNCTIONS for HTML Elements</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*MTPXkFkJHMS4hz3YBS934g.jpeg" /></figure><p>If you need to create something on the React page, that constantly changes it’s value, with the click of a button or triggered by some other means, then you have come to the right place.</p><p>React gives you the privilege to write functions exactly where your HTML is and bind it with it’s elements. This will appeal to my fellow laze-addicts. I will show the working of two very simple functions and it’s actually similar to the functions we write with DOM manipulation, just without the intricacies. The function below increments the value of a variable on the click of a button.</p><p>We first need to initialize it in the constructor.</p><pre>constructor() {</pre><pre> super()</pre><pre>  this.state = {</pre><pre>  count: 0</pre><pre>}</pre><p>1. Next, we’ll write the function the way it’s normally written, <strong>inside the class</strong>:</p><pre>handleClick(condition) {</pre><pre> this.setState(prevState =&gt; {</pre><pre>  if(condition == 1){</pre><pre>  return {</pre><pre>   count: prevState.count + 1</pre><pre>  }</pre><pre> }</pre><pre>  else if(condition == 2) {</pre><pre>  return {</pre><pre>   count: prevState.count + 2</pre><pre>  }</pre><pre> }</pre><pre>});</pre><pre>}</pre><p>· Condition is being passed to the function handleClick();. It checks which button is being clicked and accordingly, changes the values. Since it’s state had been declared previously, we can manipulate it now. The prevstate checks the previous state of the variable condition and this.setstate is used to change the state of a variable in React.</p><p>2. Add this functionality to the button that you want.</p><pre> &lt;button onClick={() =&gt; this.handleClick(1)}&gt;Increment by 1!&lt;/button&gt;&lt;br /&gt;</pre><pre>&lt;button onClick={() =&gt; this.handleClick(2)}&gt;Increment by 2!&lt;/button&gt;&lt;br /&gt; </pre><p>3. The above function will not work because it has not been bound to the constructor. To do this, we need to write the statement below <strong>inside the constructor</strong>.</p><pre> this.handleClick = this.handleClick.bind(this)</pre><p>4. You need to print the value of count and hence, inside the return statement, you need to have the statement below somewhere.</p><pre>render() {</pre><pre>return (</pre><pre> &lt;div className=”main-content”&gt;</pre><pre>  &lt;h1&gt;{this.state.count}&lt;/h1&gt;</pre><pre>  &lt;button onClick={() =&gt; this.handleClick(1)}&gt;Increment by 1! &lt;/button&gt;&lt;br /&gt;&lt;br /&gt;</pre><pre>  &lt;button onClick={() =&gt; this.handleClick(2)}&gt;Increment by 2!&lt;/button&gt;&lt;br /&gt;&lt;br /&gt;</pre><pre> &lt;/div&gt;</pre><p>Now, go and click on your buttons and sure enough, you will see the number being incremented on the screen. Go have more fun with this creating buttons that increment, decrement, multiply and divide count. Don’t forget props.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*kTdQwIfVpxNqwao0TiH-mg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ccbf69b135" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/props-and-functions-in-react-made-easy-2ccbf69b135">Props and functions in React made easy!</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recipe for Every Indian Curry]]></title>
            <link>https://medium.com/@bhawnapatnaik/recipe-for-every-indian-curry-3eb27196ca68?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3eb27196ca68</guid>
            <category><![CDATA[food]]></category>
            <category><![CDATA[recipe]]></category>
            <category><![CDATA[indian-food]]></category>
            <category><![CDATA[curry]]></category>
            <category><![CDATA[cooking]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Wed, 24 Jun 2020 09:54:07 GMT</pubDate>
            <atom:updated>2020-06-24T17:43:51.907Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*85MqAEm2tITGzs7kuokXyg.jpeg" /></figure><p>Are you tired of having scrumptious meals that you haven’t prepared? Feeling crushing impotency every time you can’t cook for yourself? Maggi( any sort of instant noodles ) seems to be your first resort instead of your last and this lockdown has been exceptionally hard on your stomach because all you’ve come up with are distasteful concoctions of water and spices. Worry not! This is when I come to the rescue. I am not only giving you a basic recipe for cooking anything Indian, this is the secret formula for all the Indian dishes. Keep this in mind, use all the permutations and combinations and voila! You have a full-blown meal at your disposal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWHusxmC1t9W1Wigwj2fLg.jpeg" /></figure><p><strong>STEP 1: Ingredients</strong></p><p>You are damn right. You need the stuff to cook stuff. If you do not have most of this in your kitchen, I don’t think I will be able to help you here. Nevertheless, these are pretty common ingredients which you are bound to have at your disposal.</p><p>1. Onions ( this is the star of the show, honestly. It adds lots of flavor to any curry )</p><p>2. Tomatoes ( the spunk. There’s a slight sourness to every curry and this gives you that )</p><p>3. Ginger-Garlic paste ( You won’t taste or feel this but it will make a difference )</p><p>4. Oil ( sunflower, rice bran, peanut, mustard )</p><p>5. Capsicum ( might use it, maybe not )</p><p>6. The main vegetable or meat ( potato, cauliflower, pointed gourd, chicken, fish, etc. )</p><p>7. Some specific spices like Chicken Powder, Meat Masala, Curry Powder or masala-e-magic from maggi(this is an angel). These are generally available at grocery stores and you can go for some brand like Everest.</p><p>8. Cumin, Coriander, Chilli Powder and salt.</p><p><strong>STEP 2: Cutting up the vegetables</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*4dFLQOlUEmZB-X8Ulzc1jQ.jpeg" /></figure><p>Get a sharp knife and don’t be a moron and cut yourself up. Just try to cut the onions and tomatoes into square pieces. You can have the onions in long, thin shapes as well if you like that. Once it goes into the curry, you wouldn’t see much of it. An alternative to this is that you can cut them roughly into big pieces and run them in a mixer. The paste can be used alternatively to frying the onions and tomatoes.</p><p>You can use the already made ginger-garlic paste from the market or make your own. If you are making your own, first you gotta peel the garlic into individual teardrops (life is misery. You can find it anywhere and everywhere) and peel the muddy wrapping off of the ginger (which is actually not a wrapping). You can then run equal amounts of both of them by weight in a mixer. We’ll need one or two tablespoons of it at a go, so, you can save this for later in the fridge.</p><p><strong>STEP 3: Frying the spices</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*W1n_mDzB3uxqVb3j-OZ3RQ.jpeg" /></figure><p>Take a pan or any sort of utensil that won’t burn. It really doesn’t matter as long as it doesn’t overflow. Put in oil. Does it seem like it’s enough? You’re probably wrong. Now, don’t be miserly and put in more (NO. not the whole packet). Once it starts to sizzle, (given your ignorance, you wouldn’t know when that happens so just wait for 3–4 minutes). Put in a small piece of the cut onion and if it makes a slight crackling noise, add in all of the onions. Now, you have to make sure that the onion fries well. So, keep moving it around and spreading it in the pan with the spatula. Once it turns light brown, add in the cut tomatoes or the paste and the ginger-garlic paste as well. Put in a little salt and mix all that stuff together. The salt helps the tomatoes cook. Cover it with a lid and let it cook for around 10–15 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*OVWuDNycezyOGijVJv7dVg.jpeg" /></figure><p>Make sure that this is at low flame or the spices will burn up. Take the lid off and add all the spices that you want to like turmeric powder, cumin powder, coriander powder and chilli powder. Mix all the spices together and let it cook for another ten minutes. If it looks too dry to you, add a little bit of water before closing the lid. When you take the lid off, you must see that the oil has separated from the sides and the spices and oil are separate entities.</p><p>The above needs a lot of skill and practice but you must know the smell of burnt spices and under-cooked ones. (I don’t either, relax) just don’t proceed to the next step without giving this at least twenty minutes.</p><p><strong>STEP 4: The Hero of the Show</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*sAcYq_cPCNJCO6BIhk_hTg.jpeg" /></figure><p>Add in the ingredient that is the main star of your curry. If its potatoes or chicken or both of them, then go right ahead. Apologies for not mentioning the other vegetables but really, they’re not that popular. Mix it well with all the spices and add in a little water. If it’s potatoes, you need to boil them in a cooker first; peel and cut them before using them in the curry. If it’s chicken, it gets softer if you marinate it with lemon juice/curd and ginger-garlic paste and salt and chilli powder for a few hours. If its anything else, try to achieve any shape close to a square. Make sure that all of it is properly covered with the spices-water (I don’t know what else to call it) but don’t drown it either. Cover it with a lid again and you’re free for another 15–20 minutes for your meaningless scrolling on social media.</p><p><strong>STEP 5: Checking</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*bql3RvS6TLL811woSoCDzg.jpeg" /></figure><p>If you’re done with all the steps above and have just opened the lid to a beautiful reddish-brown curry, I would urge you to take a spoon and try it out. Noone became a chef who was too afraid to taste their own creation. Go ahead and do this, you would know what else needs to be added like salt or chilli powder. You can also cut green chillies in the beginning and use them in the curry (handle this with caution). Once this is done, take out the dish, serve it in the beautiful crockery that you never use and pat yourself on the back.</p><p><strong>SIDE DISHES</strong></p><p>We generally have some sort of pulses like dal or rajma to go with the above curry. You just need to boil the dal in a cooker first and add it in after STEP 3. Don’t go gaga as it tastes best when it’s bland. Don’t add in all the spices you have. Just the onions, tomatoes, turmeric and salt add in enough flavor.</p><p><strong>BONUS: Every Indian Chinese Dish</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*fwp5QuSJ_tDhh0bR-0CEeA.jpeg" /></figure><p>Add cut ginger and garlic to the oil. Fry them and add a little bit of their paste. You can now go ahead and fry the onions and when they’re slightly done, add in cut capsicum. Cook them for a while. Make a paste of cornflour, tomato, chilli and soya sauce in a bowl with water. When the onions and capsicum are done, add in this paste and mix them well. When it’s cooked, we can add in anything into it like chicken, paneer, cauliflower or Manchurian balls and add in water. Keep stirring with the spatula to avoid lumps and this is how you make any Indian Chinese dish!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*a0z1q6BUEKV92tyn6ZHw_g.jpeg" /></figure><p>In conclusion, make a few mistakes, create a few disasters and let me know how your experience went. Whatever your curry turns out to be, your experience is bound to be so much fun, because mine was! Regardless of how it tastes the first time or the first hundred times, don’t forget to keep going. One of these days, you might make something that you like as much as you liked the butter chicken masala at your local restaurant cooking!</p><pre>Happy cooking!</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3eb27196ca68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get started with React in 10 mins!]]></title>
            <link>https://medium.com/@bhawnapatnaik/get-started-with-react-in-10-mins-9839c882bb1f?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9839c882bb1f</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript-frameworks]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Tue, 26 May 2020 19:22:59 GMT</pubDate>
            <atom:updated>2020-06-03T17:27:36.972Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6C4nSvy2Woe0m7bWEn4BA.png" /></figure><p>React is a front-end framework built with JavaScript that gives you a platform to write JS and HTML together. It’s basically a bunch of code written by other people that makes your life easy. You don’t need a separate JS file to work with React. These things like the click event of a button can be written right where the JavaScript is being typed. That also makes it more declarative and efficient. I’ll try to keep the language as colloquial as possible though so that there isn’t any difficulty in understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ToPFHEssEZOHW7--Xz3mfg.jpeg" /></figure><blockquote><em>Want to read this story later? Save it in </em><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=noteworthy&amp;utm_content=eid7"><em>Journal</em></a><em>.</em></blockquote><p>This is like those generic blogs that you come across that tell you a bunch things and then, you can start coding. If normalcy bores you, this will sadly be a boring read. So, are you ready to dive in and worship the React god in yourself? Doesn’t matter if you’re not. It’s better if you accept your fate already. So, let’s get started. I’ll assume you have basic knowledge in HTML and JavaScript to make things convenient.</p><p><strong>INSTALLATION</strong></p><p>I was just kidding in the part above. If you came here, congratulations! It will be fun. The most daunting part of learning many technologies is the installation. Thankfully, the React developers at Facebook have created a very easy way of installing react and getting it up and running as fast as possible. There are just a few instructions and you’re ready! Before starting to use react, make sure that you have node and npm installed on your system or you can download it from <a href="https://nodejs.org/en/">https://nodejs.org/en/.</a> After that is done, open a terminal or command prompt and type the following commands.</p><p>The first will take a while. It’s a big one.</p><pre>npx create-react-app my-app</pre><p>Move into the project my-app directory:</p><pre>cd my-app</pre><p>The command below starts a server at localhost:3000 or 127.0.0.1:3000 for you.</p><pre>npm start</pre><p>An alternative to this is using yarn. You could install that and use it as well:</p><pre>yarn start</pre><p>You will see a rotating React logo and a prompt to make changes to App.js to see them reflected on the page. I would suggest you go fiddle with it as much as you like and when you’re ready, come back here for the basics. I’ll just cover the nitty-gritty here.</p><p><strong>LINKING THINGS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Q0RzPdDcSgwBIxpSpLxGTw.png" /></figure><p>Web development is about linking things together; frontend more so. Linking the front-end and back-end is more complex but I’ll leave that for another blog. Since we can’t make any social connections, better start making them somewhere(*sad noises*).</p><p>A React application is specified by declaring which components to show on the webpage, and in what order. It allows you to link things together and write JavaScript code inside HTML without a script tag. You first create an App.js and an index.js. The HTML code in App.js is rendered on the index.js which in turn is connected to index.html. The index.html file has an element called root which holds the things rendered in index.js and &lt;App /&gt; tag in index.js holds things coming from App.js. Components are nested inside other components, forming a tree data structure. The top level component, or the root of the tree, is known as the root component. Nested components are called children components.</p><p>To make the javascript and the html work together in react you need to import react and react-dom in your file. Therefore, every file in react will have the following line before anything else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*rGe03CSUZq44DxmxL3-AnQ.jpeg" /></figure><pre>import React from “react”</pre><pre>import ReactDOM from “react-dom”</pre><p>The working of React can be shown with the following diagram:</p><pre>Component.js -&gt; App.js [ shows &lt;Component /&gt; ] -&gt; index.js [ shows &lt;App /&gt; ] -&gt; HTML [ shows index.js code inside &lt;root&gt;]</pre><p>An element in React is called a Component. You can make the above Components as nested as possible, which is achieved by creating multiple files in the src folder of the app. That is actually preferred to keep the code clean and readable. The Components that are shown are always put inside a render method in a .js file and returned from an element that connects to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*7pS46SZqLjBvAaOqaImAWQ.png" /></figure><p>There is an exact structure in coding in React that is followed:</p><p>1. Import react and react-dom</p><p>2. Make the function or class with the name (eg.) Cringe that returns cringe-worthy data.</p><p>3. Export default Cringe at the end of the file.</p><p>4. Import cringe from ‘Cringe.js’ in App.js</p><p>5. Return ( &lt;Cringe /&gt; ) from App.js</p><p>6. Export default App from App.js</p><p>7. Import App from ‘App.js’ in index.js.</p><p>8. Place &lt;App /&gt; inside the root element from the .html file.</p><p>Now, you have all the possible cringe in your React app!</p><p>The root element is selected from the HTML file using vanilla JS like:</p><pre>ReactDOM.render(<br>    &lt;<em>App</em> /&gt;<br>    document.getElementById(‘root’)<br>);</pre><p>The above things are already done for you in my-app. You just need to go and make the required changes to the code.</p><p><strong>FUNCTIONS &amp; CLASSES</strong></p><p>If you don’t need to change the value/state in any of your React variables, you might consider using a function but if they use a state or change their value between the execution of the program, a class is preferred. It’s described below and both of them are equally valid.</p><pre>function App() {<br>    return( <br>        &lt;div&gt;<br>            &lt;h1&gt;It’s a happy day!&lt;/h1&gt;<br>        &lt;/div&gt;<br>    )<br>}</pre><p>The above functionality using a class:</p><pre>class App extends React.Component {<br>    render() {<br>        return( <br>            &lt;div&gt;<br>                &lt;h2&gt;Or is it?&lt;/h2&gt;<br>            &lt;/div&gt; <br>        )<br>}</pre><p>The return statement returns just one component. Thus, if you plan on writing extended HTML inside return, make sure to put all of it inside a &lt;div&gt; tag. An export statement is added at the end of each file of component or App like so that it is carried to the file where it is imported:</p><pre>export default App</pre><pre>export default App_Component</pre><p>Every app component is generally put into its own file and it’s imported in App and used inside return like:</p><pre>import Header from ‘header.js’</pre><pre>import Footer from ‘footer.js’</pre><pre>import MainContent from ‘mainContent.js’</pre><pre>class App extends React.Component {<br>    render() {<br>        return(<br>            &lt;div&gt;<br>                &lt;Header /&gt;<br>                &lt;MainContent /&gt;<br>                &lt;Footer /&gt;<br>            &lt;/div&gt;<br>        )<br>    }<br>}</pre><p><strong>RENDERING JavaScript</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*f-dKZBylX_qzaloi2AC0dg.jpeg" /></figure><p>The most difficult part of using JavaScript was the DOM manipulation and you had to select the HTML elements manually in the JS file and link them. The beauty of React is that it’s actually JavaScript and whatever dynamic you want to render on the page can be done by just placing it inside curly braces in the HTML code. ExpressJS requires you to wrap every line inside &lt;% %&gt; or &lt;%= %&gt; brackets, but React allows you to do it right there with just curly braces. Cool, right?</p><p>The code snippet below is an example of how JavaScript is rendered in the HTML:</p><pre><em>function</em> App() {<br>    <em>const</em> name = “Bhawna”<br>    return (<br>        &lt;div&gt;<br>            &lt;h1&gt;Hello {name}&lt;/h1&gt;<br>        &lt;/div&gt;<br>    )<br>}</pre><p>The spaces in the above code snippet will be rendered as they are in the code like the string content inside any HTML tag. + signs are not required for it “ ”. See, it’s less work. We get more time to have an existential crisis!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3V8MGfE8Rrkz4MS1w0GVw.png" /></figure><p>The above covered all the basics of React and the reasons why you should use it. According to stats, it’s the most loved frameworks and will be in use for a few years. It’s easy to grasp, understand and work with. Just a little bit of enthusiasm gets you up and running. I hope you take that time off and give it a shot! There will a second part to it with the functions for adding events to elements and the state of JavaScript variables. I hate dragging things out and hence, making it longer would have been against character. So, that’s all for now.</p><pre>Happy coding!</pre><p>📝 Save this story in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_read_later_text">Journal</a>.</p><p>👩‍💻 Wake up every Sunday morning to the week’s most noteworthy stories in Tech waiting in your inbox. <a href="https://usejournal.com/newsletter/noteworthy-in-tech/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=tech&amp;utm_content=guest_post_text">Read the Noteworthy in Tech newsletter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9839c882bb1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Baby Steps for a Web Developer]]></title>
            <link>https://blog.devgenius.io/baby-steps-for-a-web-developer-bf549dedbce0?source=rss-f4b207f8ef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf549dedbce0</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-technology]]></category>
            <category><![CDATA[back-end-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Bhawna Patnaik]]></dc:creator>
            <pubDate>Fri, 22 May 2020 07:41:05 GMT</pubDate>
            <atom:updated>2020-06-24T19:00:37.841Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you a noob in all the fields of CS and want fast results with less studying? I was the same a few months ago and honestly, the beginning results in web development were astounding. I have painfully come to the realization that development is not confined to just showing beautiful things on a browser. It also involves the painstaking process of writing code that links innumerable pages and styles and most of the times, none of it works together. This is where the part about the frustration begins and this blog is about countering this so that your learning process is not hindered. We will see you through to the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*KUC4i8MW7ZVMkZK9Tb1Zpw.jpeg" /></figure><p>First things first, web development is basically about linking things together. If you get how to link pages to each other, styles to pages and the database to your code, you have a fair knowledge of things. Therefore, try to understand things like how HTML pages are linked to the code in JavaScript or Python or PHP. Then, you have to understand the linking of CSS or bootstrap styles to the HTML pages. Finally, try to make out how all this ends up being connected to the database. It goes something like what we have below:</p><p><strong>Front-end (HTML/CSS) -&gt; Client Side code (cool stuff with React/Angular/jQuery) -&gt; Server side code(PHP/Node/Django/Ruby) -&gt; Database(MySQL/MongoDB/PostgreSQL)</strong></p><p>The above gives you a full stack for making a web application. The glitch is that there are millions of companies who use varied stacks and generally, the developer has to get used to the tech being used. An example of a stack is the <strong>MEAN Stack: MongoDB, Express, Angular and Node.js.</strong></p><p>P.S. The tech in brackets are in no way all that is available.</p><p>Everyone starts with <strong>front-end entailing HTML, CSS</strong> and ventures into <strong>back-end where we have PHP, MySQL</strong> and other forms of scripting languages. This must sound like a cakewalk but the problem is, no one knows which technology to learn first. JavaScript is a language that is generally used in web development to create dynamic web pages with cool functionality. There’s a catch! The cool stuff begins only when you’re done with getting a fair knowledge of the language. Once that’s done, you can start into learning the innumerable frameworks out there which are built with that particular language, in this case, JavaScript. Angular and React are some of the front-end frameworks worth learning. I would suggest React because it has crossed all the other front-end frameworks in popularity in the recent years. Trends show that it will be more market-savvy and the number companies using it are increasing every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*evc01YDXb5RHRzGTyhkdiA.jpeg" /></figure><p>When it comes to back-end, that also gives the developer a myriad of options. There are many new technologies like <strong>ruby on rails, written in Ruby; django which is written with python and node which is written in JavaScript. Some people still prefer the age-old PHP to write server side code and MySQL</strong> for a database. I made my first application with MEN(MongoDB, Express, Node) and understanding the error, callback syntax of JavaScript was first an impossibility and then a pleasure. You only need to read so much. It’s like difficult English words that don’t make sense in the beginning. Once you have opened the dictionary a couple of times or googled it up, you would get it on the tenth, twentieth or hundredth go. There hasn’t been invented anything in human knowledge that cannot be understood by humans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-BtxiH8TNMQg3YboU02CDg.jpeg" /></figure><p><strong>Don’t read the documentation</strong>! Every functionality, framework or language has it’s 1000 page documentation that helps developers develop properly. Although it’s good practice, it felt like wasted effort to a noobie like me. I gathered all the knowledge and motivation I needed from YouTube and dived into it. You might try doing the same but if you wanna read the documentation, go ahead. (That makes you so uncool in my eyes. Sorry not sorry. :))</p><p>When you have decided which technologies you are going to use, I would suggest searching for a suitable free course or project that uses all of them and trying hands down to copy their code with every semi-colon and bracket. Sounds uninspired? That’s how all learning begins. Someone once told me, “<strong>Cheating in the beginning of learning something isn’t cheating</strong>”. Once you’re done creating a project, go on and think up something that YOU want to make. It might be a portfolio site (again, everyone makes that), some app with generic functionality or a cute game. Go ahead and make it. Don’t quit just yet! You gotta make something that you’ve wanted to make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*PPy-piTuopx_d6h4xkBwEw.jpeg" /></figure><p>I believe you’ve got all the beginner information you need now. Go ahead and make your first ugly website or application NOW(give it a try!). When you have written and implemented code that you understand and can fix bugs by googling stuff up, you can call yourself a web developer. Woohoo! That wasn’t so tough now, was it?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf549dedbce0" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/baby-steps-for-a-web-developer-bf549dedbce0">Baby Steps for a Web Developer</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>