<?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: Nur Nafish Ahmed Nobel</title>
    <description>The latest articles on DEV Community by Nur Nafish Ahmed Nobel (@nafishnobel).</description>
    <link>https://dev.to/nafishnobel</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%2F794078%2F8aa4855a-5f3a-446f-83be-1bac8ac6334f.jpeg</url>
      <title>DEV Community: Nur Nafish Ahmed Nobel</title>
      <link>https://dev.to/nafishnobel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nafishnobel"/>
    <language>en</language>
    <item>
      <title>TypeScript Blog</title>
      <dc:creator>Nur Nafish Ahmed Nobel</dc:creator>
      <pubDate>Sat, 05 Jul 2025 18:52:13 +0000</pubDate>
      <link>https://dev.to/nafishnobel/typescript-blog-m4c</link>
      <guid>https://dev.to/nafishnobel/typescript-blog-m4c</guid>
      <description>&lt;h2&gt;
  
  
  TypeScript
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Nafish-Nobel/TypeScript-Blogs" rel="noopener noreferrer"&gt;Click Here✅&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>typescript</category>
      <category>cse</category>
    </item>
    <item>
      <title>TypeScript With React</title>
      <dc:creator>Nur Nafish Ahmed Nobel</dc:creator>
      <pubDate>Fri, 25 Feb 2022 13:41:01 +0000</pubDate>
      <link>https://dev.to/nafishnobel/typescript-with-react-589l</link>
      <guid>https://dev.to/nafishnobel/typescript-with-react-589l</guid>
      <description>&lt;p&gt;&lt;strong&gt;Why we use TypeScript!&lt;/strong&gt;&lt;br&gt;
TypeScript is a programming language developed and maintained by Microsoft. It introduces additional features like strict type binding (variables are bound to specific data types) to JavaScript and can also be compiled down to JavaScript as well.&lt;br&gt;
&lt;strong&gt;If we want a large-scale project that time TypeScript is helping us to reduce code error.&lt;/strong&gt;&lt;br&gt;
And &lt;br&gt;
&lt;strong&gt;Secondly, TypeScript means the defined type before declaring.&lt;/strong&gt;&lt;br&gt;
*&lt;em&gt;Without defining Type *&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function addTwo(num)  
{  
  return num + 2;  
}  

addTwo(2); // Returns 4;  

addTwo("Two"); // Returns "Two2"  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;** Typing**&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function addTwo(num : number)    
{    
  return num + 2;    
}    

addTwo(2); // Returns 4;    

addTwo("Two"); // Compile Error
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Implementation of Interface in ts file&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;interface Vehicle{    
  wheels: Number;    
}    

class Car implements Vehicle {    
   public wheels: Number;  
   public hasTrunk: Boolean;  
}   

class MotorCycle implements Vehicle{  
   public wheels : Number;  
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;TypeScript Explained Further&lt;/p&gt;

&lt;p&gt;TypeScript has two different roles depending on its configuration and usage.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;TypeScript as a linting layer on top of JavaScript
TypeScript supports a more robust interaction with the editor by adding additional syntaxes to JavaScript with type checking and code completion. Also, it helps catch errors easier in the early development phase.&lt;/li&gt;
&lt;li&gt;TypeScript as a Transpiler
Transpiler is a tool that converts a code written in one programming language into another language with a more similar abstraction level.
TypeScript has its own transpiler, which can convert .ts files into .js, making it possible for browsers to execute your code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh94sjpfrkotncv163e9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh94sjpfrkotncv163e9r.png" alt="Image description" width="697" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>react</category>
    </item>
    <item>
      <title>But when should I use the bind() method ?</title>
      <dc:creator>Nur Nafish Ahmed Nobel</dc:creator>
      <pubDate>Sun, 16 Jan 2022 14:38:53 +0000</pubDate>
      <link>https://dev.to/nafishnobel/but-when-should-i-use-the-bind-method--10pp</link>
      <guid>https://dev.to/nafishnobel/but-when-should-i-use-the-bind-method--10pp</guid>
      <description>&lt;p&gt;var obj = {&lt;br&gt;
  x: 81,&lt;br&gt;
  getX: function() {&lt;br&gt;
    return this.x;&lt;br&gt;
  }&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;alert(obj.getX.bind(obj)());&lt;br&gt;
alert(obj.getX.call(obj));&lt;br&gt;
alert(obj.getX.apply(obj));&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Emulating private methods with closures</title>
      <dc:creator>Nur Nafish Ahmed Nobel</dc:creator>
      <pubDate>Sun, 16 Jan 2022 14:35:09 +0000</pubDate>
      <link>https://dev.to/nafishnobel/emulating-private-methods-with-closures-29ga</link>
      <guid>https://dev.to/nafishnobel/emulating-private-methods-with-closures-29ga</guid>
      <description>&lt;p&gt;var counter = (function() {&lt;br&gt;
  var privateCounter = 0;&lt;br&gt;
  function changeBy(val) {&lt;br&gt;
    privateCounter += val;&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;return {&lt;br&gt;
    increment: function() {&lt;br&gt;
      changeBy(1);&lt;br&gt;
    },&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;decrement: function() {
  changeBy(-1);
},

value: function() {
  return privateCounter;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;};&lt;br&gt;
})();&lt;/p&gt;

&lt;p&gt;console.log(counter.value());  // 0.&lt;/p&gt;

&lt;p&gt;counter.increment();&lt;br&gt;
counter.increment();&lt;br&gt;
console.log(counter.value());  // 2.&lt;/p&gt;

&lt;p&gt;counter.decrement();&lt;br&gt;
console.log(counter.value());  // 1.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>private</category>
    </item>
  </channel>
</rss>
