<?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: Hesham mohamed</title>
    <description>The latest articles on DEV Community by Hesham mohamed (@heshamkaka75).</description>
    <link>https://dev.to/heshamkaka75</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%2F619598%2Fefe31dc2-af1f-46f7-8f94-20752fc89424.jpg</url>
      <title>DEV Community: Hesham mohamed</title>
      <link>https://dev.to/heshamkaka75</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/heshamkaka75"/>
    <language>en</language>
    <item>
      <title>Why Wait for System Failure Before Taking Action? Use Watchdog Software!</title>
      <dc:creator>Hesham mohamed</dc:creator>
      <pubDate>Sun, 23 Feb 2025 11:04:56 +0000</pubDate>
      <link>https://dev.to/heshamkaka75/why-wait-for-system-failure-before-taking-action-use-watchdog-software-3jdd</link>
      <guid>https://dev.to/heshamkaka75/why-wait-for-system-failure-before-taking-action-use-watchdog-software-3jdd</guid>
      <description>&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%2Fvkaxd57k4ea6aiu2hzp9.jpeg" 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%2Fvkaxd57k4ea6aiu2hzp9.jpeg" alt="Image description" width="800" height="800"&gt;&lt;/a&gt;💻 First Things First – Why Do Systems Fail?&lt;br&gt;
In the tech world, many systems and applications run 24/7—whether it’s servers, surveillance cameras, industrial systems, or even ATMs. The problem? Sometimes these systems freeze, crash, or start malfunctioning, leading to huge losses in time, data, or even money!&lt;/p&gt;

&lt;p&gt;The question is: Why should we wait until something goes wrong before we start fixing it? Why not have a system that monitors itself and takes action automatically? 🤔&lt;/p&gt;

&lt;p&gt;🛡️ The Solution: Watchdog Software&lt;br&gt;
Watchdog Software is designed to monitor a system and take action if it detects an issue before things get worse. Think of it as a "guard" for your system, constantly watching over it and stepping in when something goes wrong—whether by restarting the program, alerting administrators, or even attempting to fix the problem itself!&lt;/p&gt;

&lt;p&gt;🧐 How Does a Watchdog Work?&lt;br&gt;
Monitors performance – Ensures the system or application is running smoothly.&lt;br&gt;
Detects failures – If it notices the system isn’t responding within a set time, it raises an alarm.&lt;br&gt;
Takes immediate action – It can restart the program or even reboot the entire system if needed.&lt;br&gt;
Sends alerts – In some cases, it notifies admins so they can take further action.&lt;br&gt;
📌 Where Is It Used?&lt;br&gt;
Servers &amp;amp; websites – To prevent long downtimes.&lt;br&gt;
Industrial systems – To ensure production doesn’t stop.&lt;br&gt;
Security &amp;amp; surveillance systems – For cameras and alarm systems.&lt;br&gt;
Even in small devices – Like embedded systems in cars and airplanes.&lt;br&gt;
🏆 Why Is It Important?&lt;br&gt;
✅ Reduces downtime.&lt;br&gt;
✅ Improves system responsiveness.&lt;br&gt;
✅ Ensures continuous operation.&lt;br&gt;
✅ Eases the burden on tech teams.&lt;/p&gt;

&lt;p&gt;🔥 The Bottom Line&lt;br&gt;
Instead of waiting for a system failure and scrambling to fix it, why not have Watchdog Software that automatically monitors and resolves issues before they escalate? This technology keeps everything running smoothly and ensures quick recovery when problems arise.&lt;/p&gt;

&lt;p&gt;So, does your company use Watchdog Software, or are you still waiting for failures to happen before taking action? 😏&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Cleaning Up The Program.cs File In ASP.NET 6 (API,MVC)</title>
      <dc:creator>Hesham mohamed</dc:creator>
      <pubDate>Wed, 23 Nov 2022 13:00:31 +0000</pubDate>
      <link>https://dev.to/heshamkaka75/cleaning-up-the-programcs-file-in-aspnet-6-apimvc-36lb</link>
      <guid>https://dev.to/heshamkaka75/cleaning-up-the-programcs-file-in-aspnet-6-apimvc-36lb</guid>
      <description>&lt;p&gt;We know that there are differences in ASP.NET 6 from the previous ones, and among these differences is that they merged the two files (Startup.cs - Program.cs) and put them in the Program.cs file. In this article, I will talk about how to improve the Program.cs file in a nice way and clear for programmers. &lt;br&gt;
First, here is an example of the program.cs file in ASP.NET 6:&lt;/p&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%2Fxaeqc68h6hnywbj8x40m.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%2Fxaeqc68h6hnywbj8x40m.png" alt="Image description" width="800" height="938"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The (WebApplicationBuilder) class is used for register/configure the services or dependencies. As Extension methods are static methods, All we need to do is create a folder and we call for example (Installer), and create two files in it The first file we call it for example (RegisterDependentServices) And move the dependency registration code from Program.cs and bring it here. as follows:&lt;/p&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%2Fbnxwukrfbf618s8joygz.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%2Fbnxwukrfbf618s8joygz.png" alt="Image description" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The second file we call it for example (SetupMiddlewarePipeline) And move the middleware registration code from Program.cs as follows:&lt;/p&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%2F156bh8y1ve44vr7kb24r.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%2F156bh8y1ve44vr7kb24r.png" alt="Image description" width="800" height="651"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that update the Program.cs and use these extension methods (RegisterServices and SetupMiddleware) So the Program.cs file becomes as follows: &lt;/p&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%2Fupxu0q3ey1rx5tmom2nd.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%2Fupxu0q3ey1rx5tmom2nd.png" alt="Image description" width="800" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now the code look readable, manageable and nice.&lt;br&gt;
Thank you for reading the article and I’m waiting for your comments&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
