<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ibtesum Reza Aninda</title>
    <description>The latest articles on DEV Community by Ibtesum Reza Aninda (@ibtesum).</description>
    <link>https://dev.to/ibtesum</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F965267%2Fcbe6b4be-e9b9-4cbd-9a5e-84f5dd6c424f.jpeg</url>
      <title>DEV Community: Ibtesum Reza Aninda</title>
      <link>https://dev.to/ibtesum</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ibtesum"/>
    <language>en</language>
    <item>
      <title>Design Pattern Resources for the noobs</title>
      <dc:creator>Ibtesum Reza Aninda</dc:creator>
      <pubDate>Sat, 28 Oct 2023 11:08:40 +0000</pubDate>
      <link>https://dev.to/ibtesum/design-pattern-resources-for-the-noobs-2d49</link>
      <guid>https://dev.to/ibtesum/design-pattern-resources-for-the-noobs-2d49</guid>
      <description>&lt;p&gt;For the last couple of days, design patterns have occupied most of my free time. I did what I always do whenever I start learning new topics. I try to find all the possible resources for learning that topic. Especially the resources that suit my naive brain.&lt;/p&gt;

&lt;p&gt;So, I have gathered around some beginner-friendly resources for learning Design Patterns. Here are some of those:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website: &lt;a href="https://refactoring.guru/"&gt;Reafactoring Guru&lt;/a&gt; : This website is perfect. Their way of organizing the topics completely aligns with my thought process. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is also a book available by Alexander Shvets on the website. You can buy it for further deep diving. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Book:  &lt;strong&gt;&lt;em&gt;Head First Design Patterns: A Brain-Friendly Guide&lt;/em&gt;&lt;/strong&gt; by  Eric Freeman, Elisabeth Robson, Bert Bates, Kathy Sierra. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a very well-written book. By well-written I mean it's good for noobs like me. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Course: &lt;strong&gt;&lt;em&gt;The Ultimate Design Pattern Series by Mosh Hamedani&lt;/em&gt;&lt;/strong&gt;. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I think Mosh Hamedani doesn't need any introduction to the software developers. I have never been more grateful to anyone than this guy. I haven't started his course yet, but I can vouch for him. HE IS THE BEST INSTRUCTOR in the software field. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The OG one: You might be wondering why I haven't yet mentioned the book by the Gang of Four. &lt;strong&gt;&lt;em&gt;Design Patterns: Elements of Reusable Object-Oriented Software&lt;/em&gt;&lt;/strong&gt;. Honestly, I don't know C++. Yes, I know it doesn't matter. But as a noob developer, I like to grasp the stuff in an easy way that suits my brain. That's why I kept this book in number four. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's it for today. Please let me know if have any better suggestions. Let's help each other. Let's learn together.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>designpatterns</category>
      <category>resources</category>
    </item>
    <item>
      <title>"this" in JavaScript and "self" in Python; Any Difference?</title>
      <dc:creator>Ibtesum Reza Aninda</dc:creator>
      <pubDate>Sun, 21 May 2023 00:01:29 +0000</pubDate>
      <link>https://dev.to/ibtesum/this-in-javascript-and-self-in-python-any-difference-38fm</link>
      <guid>https://dev.to/ibtesum/this-in-javascript-and-self-in-python-any-difference-38fm</guid>
      <description>&lt;p&gt;We use &lt;code&gt;this&lt;/code&gt; in JavaScript and &lt;code&gt;self&lt;/code&gt; in Python. Are they same? This question was haunting me for some time. Finally after some digging I came up with a solution. Hope you will love it. &lt;/p&gt;

&lt;p&gt;Personally I love examples. So without further ado, let's jump into some examples. &lt;/p&gt;

&lt;p&gt;Here is some JS code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;partnerName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;myName&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;partnerName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;partnerName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;myName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;myName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;get_married&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
     &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;partnerName&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; and &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;myName&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; got married.`&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;couple1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Ross&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Rachel&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;couple2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Chandler&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Monica&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;couple1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;couple2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the same code &lt;em&gt;translated&lt;/em&gt; to Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;partnerName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;myName&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;partnerName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;partnerName&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;myName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;myName&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;partnerName&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; and &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;myName&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; got married."&lt;/span&gt;

&lt;span class="n"&gt;couple1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Ross"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Rachel"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;couple2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Chandler"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Monica"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;couple1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;couple2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, what do you think their output would be? Would there be any difference? Think about it for at least one minute. &lt;/p&gt;

&lt;p&gt;So the output for both the JS code and Python code would be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Ross and Rachel got married.
Chandler and Monica got married.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we see that both &lt;code&gt;this&lt;/code&gt; and &lt;code&gt;self&lt;/code&gt; acts similarly. Yes! There is no difference. &lt;/p&gt;

&lt;p&gt;But...&lt;/p&gt;

&lt;p&gt;I &lt;strong&gt;lied, partially&lt;/strong&gt;. Though their output is the same, &lt;code&gt;this&lt;/code&gt; and &lt;code&gt;self&lt;/code&gt; are not quite same. &lt;/p&gt;

&lt;h2&gt;
  
  
  Value of &lt;code&gt;this&lt;/code&gt;:
&lt;/h2&gt;

&lt;p&gt;The value of &lt;code&gt;this&lt;/code&gt; depends on the context in which it appears. This context can be a  &lt;code&gt;function&lt;/code&gt; , &lt;code&gt;class&lt;/code&gt; or global(&lt;code&gt;Window&lt;/code&gt; for browser, &lt;code&gt;global&lt;/code&gt; for Node.js).&lt;/p&gt;

&lt;p&gt;For easier understanding, the value of &lt;code&gt;this&lt;/code&gt; depends on how the function is called. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; JavaScript functions can be called in four ways!&lt;br&gt;
Such as: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calling a function as a function.&lt;/li&gt;
&lt;li&gt;Calling a function as method.&lt;/li&gt;
&lt;li&gt;Calling a function as constructor.&lt;/li&gt;
&lt;li&gt;Calling a function by &lt;code&gt;call&lt;/code&gt; and &lt;code&gt;apply&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Value of &lt;code&gt;self&lt;/code&gt;:
&lt;/h2&gt;

&lt;p&gt;On the other hand, in Python, the value of  &lt;code&gt;self&lt;/code&gt; depends on the instance created from the class. In this case, the object created from the &lt;code&gt;couple1&lt;/code&gt; instance, is the value of &lt;code&gt;self&lt;/code&gt;. And &lt;code&gt;couple2&lt;/code&gt; is the value of &lt;code&gt;self&lt;/code&gt; for the second object. &lt;/p&gt;

&lt;p&gt;We can prove it by the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;partnerName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;myName&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;partnerName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;partnerName&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;myName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;myName&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"id of self: "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="c1"&gt;# Notice this line. It prints the id of "self".
&lt;/span&gt;        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;partnerName&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; and &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;myName&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; got married."&lt;/span&gt;

&lt;span class="n"&gt;couple1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Ross"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Rachel"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;couple2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Love&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Chandler"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Monica"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"id of couple1: "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;couple1&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="c1"&gt;# Notice this line. It prints the id of "couple1".
&lt;/span&gt;&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;couple1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"id of couple2: "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;couple2&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="c1"&gt;# Notice this line. It prints the id of "couple2".
&lt;/span&gt;&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;couple2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_married&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output would be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;id &lt;/span&gt;of couple1:  140337639399376 
&lt;span class="nb"&gt;id &lt;/span&gt;of self:  140337639399376 &lt;span class="c"&gt;# This number is the same as the above number.&lt;/span&gt;
Ross and Rachel got married.
&lt;span class="nb"&gt;id &lt;/span&gt;of couple1:  140337640683984
&lt;span class="nb"&gt;id &lt;/span&gt;of self:  140337640683984 &lt;span class="c"&gt;# This number is the same as the above number.&lt;/span&gt;
Chandler and Monica got married.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you look closely to the ids, you will notice its the same for &lt;code&gt;self&lt;/code&gt; and the object instances. This proves that &lt;code&gt;self&lt;/code&gt; is actually denoting the instances(couple1 and couple2)&lt;/p&gt;

&lt;h2&gt;
  
  
  Differences:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;First of all, &lt;code&gt;this&lt;/code&gt; is a &lt;strong&gt;reserved&lt;/strong&gt; keyword. &lt;code&gt;self&lt;/code&gt; is not. You can use anything in lieu of &lt;code&gt;self&lt;/code&gt;. But it has to be the first parameter.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;this&lt;/code&gt; is dynamically bound(runtime bound), meaning it changes its behavior based on how the function is called. There are many ways to call a function in JavaScript. On the other hand, &lt;code&gt;self&lt;/code&gt; in Python is statically bound. It means the value of &lt;code&gt;self&lt;/code&gt; is determined by the instance of the &lt;code&gt;class&lt;/code&gt; from where the method is called from. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These are the fundamental differences between them. If you have any further query, feel free to comment. &lt;/p&gt;

&lt;p&gt;Happy Coding! &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>python</category>
      <category>programming</category>
    </item>
    <item>
      <title>Expectation vs Reality of a Beginner in Programming</title>
      <dc:creator>Ibtesum Reza Aninda</dc:creator>
      <pubDate>Sun, 14 May 2023 17:52:34 +0000</pubDate>
      <link>https://dev.to/ibtesum/expectation-vs-reality-of-a-beginner-in-programming-31ob</link>
      <guid>https://dev.to/ibtesum/expectation-vs-reality-of-a-beginner-in-programming-31ob</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--r0by1yI9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9y35ibzt8ve0vccm3xh7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r0by1yI9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9y35ibzt8ve0vccm3xh7.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this article, I discussed what a self-taught programmer expects and how reality hits him/her with, um, "reality".&lt;br&gt;
(&lt;em&gt;Based on true story&lt;/em&gt;)&lt;/p&gt;

&lt;h2&gt;
  
  
  At the dawn of time:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Expectation
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Oh I just need to learn HTML, CSS, and JavaScript. Many people got job offers because of these skills.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Reality
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Where is the end of JavaScript? Why does this language keep introducing new concepts? Why every new concept is better than the previous one? &lt;strong&gt;No problem, I will learn it all!&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A few months later:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Expectation
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Oh! Now I can apply for jobs!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Reality
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;All the job circulars are expecting a candidate who knows React, Vue or Angular.&lt;/p&gt;

&lt;p&gt;Realization: JS is not enough. I also need to learn React. Let's start learning it. &lt;strong&gt;I will learn it within one month.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  One month later:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Expectation
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Oh! I know everything about React.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Reality
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Wait! What? So many new features are introduced! But the YouTube tutorial said it covered everything about React! What the hell is happening? What? This tutorial was uploaded 2 years ago. &lt;strong&gt;Why does the tech world change so faaaaast?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A few months later:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Expectation
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Now I know everything about React. Nobody can beat me on skills.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Reality
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;I need to know some backend skills too. Okay! I will learn some Node and Express!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A few months later:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Expectation
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;There! This is it. Now I am a complete person! I am an ocean of knowledge!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Reality
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Why are people talking about &lt;strong&gt;TypeScript&lt;/strong&gt;? It's a superset of JS?? Seriously? JavaScript again?? What kind of infinite loop is this JS? Where does it end?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  After a few days:
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Expectation
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Yeah! I am a genius! I know TypeScript! Maybe this is the end!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Reality
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Enters Next.js! Enters Redux! Enters Redux-toolkit! Enters SQL! Enters Prisma! Enters…&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  After a few months:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Wisdom&lt;/strong&gt; : Okay. I understand it now. This is a career of eternal learning. I will never be a complete know-it-all! I will keep learning, and most importantly, I will help others learn.&lt;/p&gt;

&lt;p&gt;Legendary programmer &lt;code&gt;John Carmack&lt;/code&gt; once said, &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can't learn everything. But you have to convince yourself that you can learn anything.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>beginners</category>
      <category>career</category>
      <category>learning</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
