<?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 Mohd Omama on Medium]]></title>
        <description><![CDATA[Stories by Mohd Omama on Medium]]></description>
        <link>https://medium.com/@mohdomama?source=rss-ba42e41a5098------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YhSGK7K-Z2EFcVAh.</url>
            <title>Stories by Mohd Omama on Medium</title>
            <link>https://medium.com/@mohdomama?source=rss-ba42e41a5098------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 17:54:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohdomama/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[The Foundations Of Morality And The Rationalist Delusion]]></title>
            <link>https://medium.com/@mohdomama/the-foundations-of-morality-and-the-rationalist-delusion-a45369838e74?source=rss-ba42e41a5098------2</link>
            <guid isPermaLink="false">https://medium.com/p/a45369838e74</guid>
            <category><![CDATA[morality]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[Mohd Omama]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 15:43:07 GMT</pubDate>
            <atom:updated>2020-04-19T14:57:02.497Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*-l0Le8c2ErPWxuiggNc9-g.jpeg" /></figure><blockquote>Based on the works of Jonathan Haidt</blockquote><p>A lot of strife and tussle that we see amongst people of different political and religious ideologies emerge from the fact that we are, in most cases, unaware of the basic building blocks of morality. This chapter aims to help you understand more about your mind, to give you an idea of what drives your emotions/arguments and give you a clear understanding of moral psychology. I will use the works and experiments of various psychologists from the past and build upon the works of contemporary moral psychologists like Jonathan Haidt to expose you to a new perspective of morality. I hope this will help you better understand those who disagree with you and more importantly your own inner thinking, intuitions and reasoning.</p><p>To understand what something is, we should first eliminate what it isn’t. This is called the process of elimination. I will start by chronologically going through the works of past psychologists and eliminate the things that are experimentally disproven by works of recent psychologists. During the 1900s morality was considered a subfield of developmental psychology. Jean Piaget, the greatest developmental psychologist of all time, studied the mental development of children. In his experiment, he used two glasses of the same shape, filled with water and asked kids if they had an equal volume of water. He then poured the contents of one glass into another, which was thin and long, but had the same volume, and asked the same question again. Kids under the age of six usually said that the tall glass had more water in it. He inferred that the minds of kids are incapable of understanding the principle of conservation of volume and it’s only with time and experience that they develop enough cognitive skills to understand it. He used the same cognitive-development approach in moral psychology by playing a game of marbles with kids and deliberately breaking rules. The children then responded to his mistakes, and in doing so, they revealed their growing ability to respect rules, resolve disputes, etc. These cognitive abilities improved as the knowledge and experience of kids improved with age. This is the essence of psychological rationalism: we use reason to figure out what is right and what is wrong. With enough knowledge and experience, we evolve into our rational selves. Just like a caterpillar evolves into a butterfly. These opinions about morality resonated amongst other psychologists like Lawrence Kohlberg and his student Elliot Tauriel in the late 1960s. Both Kohlberg and Tauriel were rationalists and they conducted experiments and looked at results in a way that verified their beliefs. This is an example of confirmation bias, a term we will discuss later. Kohlberg and Tauriel pretty much defined the field of moral psychology since there was hardly any other work done in this field to counter their opinions.</p><p>Western society has been worshipping reason for many years. There is a direct line connecting Plato to Kohlberg and Tauriel. This worshipful attitude towards reason is often referred to as the rationalist delusion. It’s called delusion because, in many ways, it considers logical reasoning as sacred and prevents the educated to appreciate counter arguments and limits of these sacred beliefs. Anyways, the 20th century was a time when top educational institutions became the advocates of logic and reason as the means to study morality. People began to think that reason was the way forward and religion was often considered as barbaric or outdated. It’s important to note here that these institutions represented a very small minority of people from western, individualistic societies and hence, often turned a blind eye towards other parts of the world where morality was more society/community driven. It was only with the recent works on psychology that we were able to point out the shortcomings of the rationalist approach. These works helped us appreciate the wide spectrum of morality and understand how we decide right or wrong in a more accurate way.</p><p>Robert Zajonc, a social psychologist in the 1980s, was fed up with the common view among psychologists of that time that people are emotionless, rational information processors who first perceive and categorize objects and then react to them. He did a number of ingenious experiments and asked people to rate how much they like foreign words, arbitrary geometric shapes, etc. It may seem odd to ask people to rate meaningless squiggles but people can do it because almost everything we look at triggers a tiny flash of emotion. More importantly, Zajonc was able to make people like any word or image more just by showing it to them several times. The brain tags familiar things as good. In a landmark article, Zajonc asked psychologists to use a dual process model for moral psychology and not base it entirely on reason. The first process is the “feeling” or “intuition” while the second is “strategic reasoning”. The former is more important because it happens first and is more powerful. We humans are innately emotional. It is unnatural to consider ourselves as cold, rational information processors. Strategic reasoning is a tool that we humans have developed to justify what we intuitively feel is right or wrong. The metaphor of “rider and elephant” used by Jonathan Haidt best describes this concept. Our intuitions/feelings are the elephant while our reasoning is the rider. Whenever we face a moral question, the elephant bends in a particular direction. The rider takes the heed from the elephant and prepares for the imminent journey in that direction. Contrary to the popular belief, it’s not the other way around in the vast majority of cases. I request the reader to ponder on this metaphor for a moment since it will be used many times in the coming discussions.</p><p>Let’s now look at another test that verifies Zajonc’s results. Consider the following pair of words:</p><p>1. Flower-Happiness 2. Hate-Sunshine 3. Love-Cancer 4. Cockroach-Lonely</p><p>If I show you the first word in each pair for a split second followed by the second word, and then ask you to consider the second words only and categorise them as good or bad. What results do you expect? We will find that for pairs 2 and 3 we take a slightly longer time to make a decision as compared to 1 and 4. Jonathan Haidt calls this effect “affecting priming”. This is because the first word triggers a flash of effect that primes the mind to go one way or the other. For e.g.- when you look at the words “Hate”, your elephant bends towards the direction of “bad” and when you see the words “sunshine” thereafter, your elephant has to change its direction, which takes time. This is not the case when both words are of the same category. This is a very simple experiment but it is effective in explaining how much we are dependent on our intuitions or gut-feeling while making moral judgements.</p><p>So far, we have seen how our feelings, emotions and intuitions play a key role in our moral decisions. We have also mentioned that reasoning is a tool we use to justify the decisions that we have intuitively taken.</p><p>Let’s now look at a few experiments that prove that reasoning, in most cases, is a post hoc justification of something that we have already made up our mind about.</p><p>Peter Wason, a cognitive psychologist, published his report on the “2–4–6” problem in the 1960s. He showed people three numbers and told them that the triplet conforms to a rule. They had to guess the rule by generating other triplets and asking the experimenter whether the new triplet conformed to the rule. When they were confident that they had guessed the rule, they were supposed to tell the experimenter their guess.</p><p>Suppose a subject first sees 2–4–6.</p><p>The subject then generates a triplet in response: “4–6–8?”</p><p>“Yes,” says the experimenter.</p><p>“How about 120–122–124?”</p><p>“Yes.”</p><p>It seemed obvious to most people that the rule was consecutive even numbers. But the experimenter told them this was wrong, so they tested out other rules:</p><p>“3–5–7?”</p><p>“Yes.”</p><p>“What about 35–37–39?”</p><p>“Yes.”</p><p>“OK, so the rule must be any series of numbers that rises by two?”</p><p>“No.”</p><p>People had little trouble generating new hypotheses about the rule, sometimes quite complex ones. But what they hardly ever did was to test their hypotheses by offering triplets that did not conform to their hypothesis. For example, proposing 2–4–5 (yes) and 2–4–3 (no) would have helped people zero in on the actual rule: any series of ascending numbers. Wason called this phenomenon the confirmation bias, the tendency to seek out and interpret new evidence in ways that confirm what you already think. People are quite good at challenging statements made by other people, but if it’s your own belief, then it’s your possession — your child, almost — and you want to protect it, not challenge it and risk losing it.</p><p>Deanna Kuhn, a leading researcher of everyday reasoning, found evidence of the confirmation bias even when people solve a problem that is important for survival: knowing what foods make us sick. To bring this question into the lab she created sets of eight index cards, each of which showed a cartoon image of a child eating something — chocolate cake versus carrot cake, for example — and then showed what happened to the child afterward: the child is smiling, or else is frowning and looking sick. She showed the cards one at a time, to children and to adults, and asked them to say whether the “evidence” (the 8 cards) suggested that either kind of food makes kids sick.</p><p>The kids, as well as the adults, usually started off with a hunch — in this case, that chocolate cake is the more likely culprit. They usually concluded that the evidence proved them right. Even when the cards showed a stronger association between carrot cake and sickness, people still pointed to the one or two cards with sick chocolate cake eaters as evidence for their theory, and they ignored the larger number of cards that incriminated carrot cake. As Kuhn puts it, people seemed to say to themselves: “Here is some evidence I can point to as supporting my theory, and therefore the theory is right.”</p><p>This is the sort of bad thinking that a good education should correct, right? Well, consider the findings of another eminent researcher of reasoning, David Perkins. Perkins brought people of various ages and education levels into the lab and asked them to think about social issues, such as whether giving schools more money would improve the quality of teaching and learning. He first asked his subjects to write down their initial judgment. Then he asked them to think about the issue and write down all the reasons they could think of — on either side — that were relevant to reach a final answer. After they were done, Perkins scored each reason the subjects wrote as either a “my-side” argument or an “other-side” argument.</p><p>Not surprisingly, people came up with many more “my-side” arguments than “other-side” arguments. Also, not surprisingly, the more education subjects had, the more reasons they came up with. But when Perkins compared fourth-year students in high school, college, or graduate school to first-year students in those same schools, he found barely any improvement within each school. Rather, the high school students who generate a lot of arguments are the ones who are more likely to go on to college, and the college students who generate a lot of arguments are the ones who are more likely to go on to graduate school. Schools don’t teach people to reason thoroughly; they select the applicants with higher IQs, and people with higher IQs are able to generate more reasons.</p><p>The findings get more disturbing. Perkins found that IQ was by far the biggest predictor of how well people argued, but it predicted only the number of my-side arguments. Smart people make really good lawyers and press secretaries, but they are no better than others at finding reasons on the other side. Perkins concluded that “people invest their IQ in buttressing their own case rather than exploring the entire issue more fully and evenhandedly.”</p><p>I hope, by this time, you have begun to appreciate the “rider and the elephant” metaphor and have realized how the flow of moral decision making works: intuitive decision followed by post hoc justification based on reasoning. Now, I want you to use this knowledge to analyze some of the very common debates, like “veg vs non-veg”. There is no denying that there are strong logical arguments available on both sides of this debate. This debate, in my experience, can go on endlessly. But if you look at it from the lens of the “rider and elephant” metaphor, you will realize that people don’t use these logical arguments to reach a conclusion. They have decided something beforehand and use whatever logical resources they have to defend their case. Your elephant has already leaned towards one side in this debate and your rider is trying to find reasons for it. Even if you face 10 arguments that are against you and 1 that is in your favor, your rider will stick to that one argument and give you internal satisfaction that you are not wrong. A classic case of confirmation bias. But this opens another question, shouldn’t there be an absolute definition of right and wrong? If there is, then clearly we cannot reach it with the worship of reason. And if there is such a definition, we should focus our resources on finding it rather than logically defending arguments that we have already made up our mind about.</p><blockquote>Note: The above article is the compilation of excerpts and experiments from the book The Righteous Mind by Jonathan Haidt. I request readers to read the book for a better understanding of the subject.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a45369838e74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python And Its Domains]]></title>
            <link>https://medium.com/@mohdomama/domains-of-python-d68c2ffa0b9e?source=rss-ba42e41a5098------2</link>
            <guid isPermaLink="false">https://medium.com/p/d68c2ffa0b9e</guid>
            <category><![CDATA[quora]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Mohd Omama]]></dc:creator>
            <pubDate>Fri, 15 Dec 2017 06:27:13 GMT</pubDate>
            <atom:updated>2020-05-03T05:44:36.819Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Python is a multipurpose programming language!</em></blockquote><p>Its areas of application are many. Following is a “not-so-comprehensive” list of domains where python leaves its mark :</p><ul><li><strong>Web Development :</strong> With powerful back-end frameworks like <em>Django </em>and light weight micro frameworks like <em>Flask</em>, python has made it extremely easy to make small, easily deployable web apps. Its not an ideal choice for front-end. Consider the following answer : <a href="https://www.quora.com/Can-I-write-the-frontend-of-a-website-using-Python/answer/Sanket-Saurav">Sanket Saurav’s answer to Can I write the frontend of a website using Python?</a></li><li><strong>Networking and Internet Development : </strong>Python provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both connection-oriented and connection-less protocols. Python also has libraries that provide higher-level access to specific application-level network protocols, such as FTP, HTTP, and so on.<br>Modules like <em>urllib , socket, </em>and the infamous <em>requests </em>(HTTP for humans) make it an ideal choice for networking. Also, <em>beautifulsoup, selenium </em>are very effective for stuff like automation, scrapping, etc.</li><li><strong>Machine Learning : </strong>When it comes to machine learning, python has a clear dominance. It has en extensive API support and an amazing community in this domain. It is the prefered language for the machine learning API “<em>tensorflow”. </em>Consider the following answer : <a href="https://www.quora.com/Why-is-Python-so-popular-in-machine-learning/answer/Thia-Kai-Xin">Thia Kai Xin’s answer to Why is Python so popular in machine learning?</a></li><li><strong>Scientific Computation : </strong>Packages like <em>pandas</em> (for data analysis) and S<em>ciPy </em>are used for this purpose.</li></ul><p>As far as OOP is concerned, python is an object-oriented-programming language. Python doesn’t support strong <em>encapsulation. </em>But that’s related to how the language was designed. You can do most of the OOP related stuff in python anyway.</p><p>For beginners, the most intriguing and practical field would probably be web development. Since you can easily create small “up and running” apps with comparatively less amount of code. Also with <em>beautifulsoup </em>, <em>requests, </em>etc. you can do a lot of fun stuff like automating tedious tasks, etc. Have a look at some of my projects i created as a beginner in Python :</p><ul><li><a href="https://github.com/mohdomama/HararaSpam">A primitive DOS attack script on a friend’s website.</a></li><li><a href="https://github.com/mohdomama/insta-liker">An auto-liker script for Instagram.</a></li><li><a href="https://github.com/mohdomama/Zhcet_Bot">A Facebook chat-bot that can fetch college results.</a></li></ul><p>Further reading :</p><p><a href="https://www.python.org/about/apps/">Applications for Python</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d68c2ffa0b9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>