<?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: Sajad DP</title>
    <description>The latest articles on DEV Community by Sajad DP (@sajaddp).</description>
    <link>https://dev.to/sajaddp</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%2F531935%2F9990e86c-2847-4bfd-8e88-b82291c7d920.jpeg</url>
      <title>DEV Community: Sajad DP</title>
      <link>https://dev.to/sajaddp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sajaddp"/>
    <language>en</language>
    <item>
      <title>How to Learn TypeScript in One Day?</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Wed, 06 Nov 2024 16:25:42 +0000</pubDate>
      <link>https://dev.to/sajaddp/how-to-learn-typescript-in-one-day-414f</link>
      <guid>https://dev.to/sajaddp/how-to-learn-typescript-in-one-day-414f</guid>
      <description>&lt;p&gt;TypeScript is a game-changer for JavaScript developers who want safer, cleaner code. If you're up for the challenge of learning TypeScript in a day, you're in the right place. Let's break down this ambitious task step by step so you can start using TypeScript effectively in no time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s TypeScript and Why Should You Care?
&lt;/h2&gt;

&lt;p&gt;TypeScript is basically JavaScript with superpowers—think of it as JS with a safety net. By adding static typing, TypeScript helps you catch bugs early and makes your code easier to read and maintain. If you’re familiar with JavaScript, you’re already halfway there.&lt;/p&gt;

&lt;h2&gt;
  
  
  The One-Day TypeScript Learning Plan
&lt;/h2&gt;

&lt;p&gt;Here’s how to spread your learning throughout the day:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hour 1-2: The Basics&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Setup: Install TypeScript by running npm install -g typescript.&lt;/p&gt;

&lt;p&gt;First Program: Write a simple hello.ts file and compile it with tsc hello.ts.&lt;/p&gt;

&lt;p&gt;Types 101: Get comfy with basic types like string, number, boolean, and arrays.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hour 3-4&lt;/strong&gt;: Working with Functions and Interfaces&lt;/p&gt;

&lt;p&gt;Function Typing: Define parameters and return types for functions.&lt;/p&gt;

&lt;p&gt;Interfaces: Learn how to create contracts for your objects.&lt;/p&gt;

&lt;p&gt;Optional Parameters: Understand how to use ? to make parameters optional.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hour 5-6&lt;/strong&gt;: Dive into Classes&lt;/p&gt;

&lt;p&gt;Classes and Constructors: Learn TypeScript’s class syntax and create simple classes.&lt;/p&gt;

&lt;p&gt;Modifiers: Explore public, private, and protected to control access.&lt;/p&gt;

&lt;p&gt;Inheritance: See how extends works and why super is important.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hour 7-8&lt;/strong&gt;: Advanced Types and Generics&lt;/p&gt;

&lt;p&gt;Union &amp;amp; Intersection Types: Get flexible with | and &amp;amp;.&lt;/p&gt;

&lt;p&gt;Generics: Make your code reusable with  and other generics.&lt;/p&gt;

&lt;p&gt;Type Aliases: Simplify complex types using type.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hour 9-10&lt;/strong&gt;: Real-World Application and Best Practices&lt;/p&gt;

&lt;p&gt;Debugging: Use TypeScript’s error messages to catch issues early.&lt;/p&gt;

&lt;p&gt;Strict Mode: Turn on strict mode for better error-checking.&lt;/p&gt;

&lt;p&gt;Best Practices: Learn to use Readonly, Partial, and other utility types.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQs About TypeScript
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is it hard to learn TypeScript in one day?&lt;/strong&gt; Not really! If you already know JavaScript, TypeScript just adds a new layer of security.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why should I switch from JavaScript to TypeScript?&lt;/strong&gt; For fewer bugs and more predictable code—plus, it's great for team projects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use TypeScript with React or Node.js?&lt;/strong&gt; Absolutely! TypeScript works well with popular frameworks like React, Angular, and Node.js.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips and Tricks for Learning TypeScript Fast
&lt;/h2&gt;

&lt;p&gt;Start Small: Write small programs and gradually add TypeScript features.&lt;/p&gt;

&lt;p&gt;Play with Code: Use playgrounds like the TypeScript Playground for quick experiments.&lt;/p&gt;

&lt;p&gt;Ask for Help: Check out TypeScript communities or forums if you get stuck.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wrapping Up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Learning TypeScript in one day is totally possible if you focus on understanding the basics, practice with code examples, and familiarize yourself with its powerful features. Dive in, experiment, and see how TypeScript can make your coding life easier.&lt;/p&gt;

&lt;p&gt;Ready to level up your JavaScript skills? TypeScript is calling!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>typescript</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Developer questions about Laravel</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Thu, 24 Nov 2022 13:31:21 +0000</pubDate>
      <link>https://dev.to/sajaddp/developer-questions-about-laravel-1em7</link>
      <guid>https://dev.to/sajaddp/developer-questions-about-laravel-1em7</guid>
      <description>&lt;p&gt;Hi&lt;br&gt;
I've always wanted to know what Laravel developers have the most questions about.&lt;br&gt;
This questionnaire, which has only one question, is designed for this purpose, and I will share its results with anyone who is interested.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://forms.gle/gMTvo8Gp1mB1AYSH8" rel="noopener noreferrer"&gt;https://forms.gle/gMTvo8Gp1mB1AYSH8&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>Laravel: How to have custom “groupBy”?</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Wed, 26 Oct 2022 12:33:00 +0000</pubDate>
      <link>https://dev.to/sajaddp/laravel-how-to-have-custom-groupby-524k</link>
      <guid>https://dev.to/sajaddp/laravel-how-to-have-custom-groupby-524k</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/U8jVflN-eUY"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>Laravel: Create full access for“super admin”</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Sat, 22 Oct 2022 12:20:08 +0000</pubDate>
      <link>https://dev.to/sajaddp/laravel-create-full-access-forsuper-admin-3nel</link>
      <guid>https://dev.to/sajaddp/laravel-create-full-access-forsuper-admin-3nel</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/nY9VUBpyMdo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>Laravel: How to hide a "Command" in the "Artisan" list?</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Fri, 21 Oct 2022 12:30:14 +0000</pubDate>
      <link>https://dev.to/sajaddp/laravel-how-to-hide-a-command-in-the-artisan-list-jml</link>
      <guid>https://dev.to/sajaddp/laravel-how-to-hide-a-command-in-the-artisan-list-jml</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/2HT-zP61P5k"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel: use Artisan command everywhere</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Thu, 20 Oct 2022 14:40:54 +0000</pubDate>
      <link>https://dev.to/sajaddp/laravel-use-artisan-command-everywhere-5hae</link>
      <guid>https://dev.to/sajaddp/laravel-use-artisan-command-everywhere-5hae</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/81d0DJk2NjI"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>Introduction of "artisan about" command</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Wed, 19 Oct 2022 14:01:26 +0000</pubDate>
      <link>https://dev.to/sajaddp/introduction-of-artisan-about-command-31jp</link>
      <guid>https://dev.to/sajaddp/introduction-of-artisan-about-command-31jp</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Rb7xoUW5Dp4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel: How to return "status" 200 in maintenance mode?</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Tue, 18 Oct 2022 17:09:18 +0000</pubDate>
      <link>https://dev.to/sajaddp/laravel-how-to-return-status-200-in-maintenance-mode-48</link>
      <guid>https://dev.to/sajaddp/laravel-how-to-return-status-200-in-maintenance-mode-48</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/aV46AMCxnis"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>laravel</category>
    </item>
    <item>
      <title>Laravel | How to remove `data` from API Resources</title>
      <dc:creator>Sajad DP</dc:creator>
      <pubDate>Tue, 11 Jan 2022 19:32:53 +0000</pubDate>
      <link>https://dev.to/sajaddp/laravel-how-to-remove-data-from-api-resources-3o2i</link>
      <guid>https://dev.to/sajaddp/laravel-how-to-remove-data-from-api-resources-3o2i</guid>
      <description>&lt;p&gt;Usually, Eloquent API Resources return content on the "data" section.&lt;/p&gt;

&lt;p&gt;We can remove the &lt;code&gt;data&lt;/code&gt; section just with add &lt;code&gt;JsonResource::withoutWrapping();&lt;/code&gt; in &lt;code&gt;app/Providers/AppServiceProvider.php&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        JsonResource::withoutWrapping();
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you know a better way, please teach me in the comments :)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.buymeacoffee.com/sajaddp" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.buymeacoffee.com%2Fbutton-api%2F%3Ftext%3DCan%2520you%2520plz%2520buy%2520me%2520a%2520book%3F%26emoji%3D%25F0%259F%2593%2596%26slug%3Dsajaddp%26button_colour%3D5F7FFF%26font_colour%3Dffffff%26font_family%3DLato%26outline_colour%3D000000%26coffee_colour%3DFFDD00" alt="Can you plz buy me a book?" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
