<?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: Muhamamd Yasir</title>
    <description>The latest articles on DEV Community by Muhamamd Yasir (@myasirgujjar).</description>
    <link>https://dev.to/myasirgujjar</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%2F2585216%2Fb83f8e12-7c12-41cf-83ba-30aa1d91c988.jpeg</url>
      <title>DEV Community: Muhamamd Yasir</title>
      <link>https://dev.to/myasirgujjar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/myasirgujjar"/>
    <language>en</language>
    <item>
      <title>Elixir optimizations for cost cutting $</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Thu, 02 Oct 2025 09:49:06 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/elixir-optimizations-for-cost-cutting--4l05</link>
      <guid>https://dev.to/myasirgujjar/elixir-optimizations-for-cost-cutting--4l05</guid>
      <description>&lt;p&gt;Everyone talks about Elixir being scalable, fault-tolerant, functional, actor-based, and distributed. But let’s get real: the only thing your boss cares about is cutting costs.&lt;/p&gt;

&lt;p&gt;So here’s how I optimized our Elixir system to save real money — not just theoretical “efficiency points” in some Hacker News thread.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. OTP: Outsourcing To Processes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each Elixir process costs only a few KB of memory. Compare that to Java threads (they eat memory like your uncle at a buffet).&lt;br&gt;
Result? Instead of renting a small AWS island, I’m now surviving happily on a free-tier canoe.&lt;/p&gt;

&lt;p&gt;💰 Cost saved: “Goodbye, t3.2xlarge. Hello, t3.micro.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. BEAM Garbage Collector: Marie Kondo for Memory&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The BEAM VM has per-process garbage collection. Translation: instead of a global stop-the-world meltdown, each process tidies up its own mess like a polite roommate.&lt;/p&gt;

&lt;p&gt;This cut down our RAM bill so hard, I felt guilty. But not guilty enough to tell AWS.&lt;/p&gt;

&lt;p&gt;💰 Cost saved: “We don’t need 64 GB RAM, Karen. We need therapy.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Phoenix Channels: Slack for Servers&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We replaced our “real-time API” (read: a Kafka cluster with the personality of a tax auditor) with Phoenix Channels. Suddenly, we had millions of live connections on one box without needing a fleet of Kubernetes nodes.&lt;/p&gt;

&lt;p&gt;💰 Cost saved: “From 30 Kafka brokers → 1 Elixir app + vibes.”&lt;/p&gt;

&lt;p&gt;4*&lt;em&gt;. Hot Code Reloading: The Netflix Trick&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
Deploying without downtime means no rolling restarts, no duplicate environments, no “who left this Kubernetes pod running for six months?” incidents.&lt;/p&gt;

&lt;p&gt;💰 Cost saved: “Our CI/CD bill shrank faster than my hairline.”&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;5. Pattern Matching: Firing If-Else Statements&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
In other languages, you write 200 lines of if-else spaghetti. In Elixir, you just let pattern matching do the work.&lt;br&gt;
Result: fewer bugs → fewer on-call emergencies → fewer DevOps engineers rage-quitting.&lt;/p&gt;

&lt;p&gt;💰 Cost saved: “Recruiter fees for replacing burned-out devs.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. ETS: Free Redis (But With Vibes)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Elixir’s ETS tables are basically in-memory key-value stores baked into the VM. That’s right: you don’t need Redis for half your caching problems.&lt;/p&gt;

&lt;p&gt;💰 Cost saved: “Bye-bye, managed Redis cluster bill.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Supervision Trees: Netflix for Crashes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When processes crash, they get back up faster than your cousin after chugging an energy drink. Automatic restarts mean fewer PagerDuty alerts and fewer “why is prod down?” all-nighters.&lt;/p&gt;

&lt;p&gt;💰 Cost saved: “Time → money. And sleep → priceless.”&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;📉 Final Tally&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
With all these, our infra bill dropped so much that the finance team thought it was a bug. No bug — just Elixir being Elixir.&lt;/p&gt;

&lt;p&gt;AWS, GCP, and Azure all hate me now. My boss doesn’t. That’s ROI.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;⚡ Conclusion: If you want real-world cost-cutting optimizations, don’t chase shiny frameworks. Just unleash the BEAM, sit back, and let Erlang’s 30 years of “telecom austerity mode” pay your bills.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
    </item>
    <item>
      <title>PHP worst programming language of 2025</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Wed, 25 Jun 2025 06:07:38 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/php-worst-programming-language-of-2025-398l</link>
      <guid>https://dev.to/myasirgujjar/php-worst-programming-language-of-2025-398l</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/myasirgujjar" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&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%2Fuser%2Fprofile_image%2F2585216%2Fb83f8e12-7c12-41cf-83ba-30aa1d91c988.jpeg" alt="myasirgujjar"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🧨 Why PHP Is the Worst Programming Language on the Planet (And Somehow Still Alive)&lt;/h2&gt;
      &lt;h3&gt;Muhamamd Yasir ・ Jun 25&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>php will kill your soul</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Wed, 25 Jun 2025 06:07:12 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/php-will-kill-your-soul-2moi</link>
      <guid>https://dev.to/myasirgujjar/php-will-kill-your-soul-2moi</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/myasirgujjar" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&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%2Fuser%2Fprofile_image%2F2585216%2Fb83f8e12-7c12-41cf-83ba-30aa1d91c988.jpeg" alt="myasirgujjar"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🧨 Why PHP Is the Worst Programming Language on the Planet (And Somehow Still Alive)&lt;/h2&gt;
      &lt;h3&gt;Muhamamd Yasir ・ Jun 25&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>php will make you miserable developer</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Wed, 25 Jun 2025 06:06:47 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/php-will-make-you-miserable-developer-46ag</link>
      <guid>https://dev.to/myasirgujjar/php-will-make-you-miserable-developer-46ag</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/myasirgujjar" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&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%2Fuser%2Fprofile_image%2F2585216%2Fb83f8e12-7c12-41cf-83ba-30aa1d91c988.jpeg" alt="myasirgujjar"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🧨 Why PHP Is the Worst Programming Language on the Planet (And Somehow Still Alive)&lt;/h2&gt;
      &lt;h3&gt;Muhamamd Yasir ・ Jun 25&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>php erected my career</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Wed, 25 Jun 2025 06:06:06 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/php-erected-my-career-5h3f</link>
      <guid>https://dev.to/myasirgujjar/php-erected-my-career-5h3f</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/myasirgujjar" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&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%2Fuser%2Fprofile_image%2F2585216%2Fb83f8e12-7c12-41cf-83ba-30aa1d91c988.jpeg" alt="myasirgujjar"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🧨 Why PHP Is the Worst Programming Language on the Planet (And Somehow Still Alive)&lt;/h2&gt;
      &lt;h3&gt;Muhamamd Yasir ・ Jun 25&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>don't use php</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Wed, 25 Jun 2025 06:05:43 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/dont-use-php-3gm4</link>
      <guid>https://dev.to/myasirgujjar/dont-use-php-3gm4</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/myasirgujjar" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&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%2Fuser%2Fprofile_image%2F2585216%2Fb83f8e12-7c12-41cf-83ba-30aa1d91c988.jpeg" alt="myasirgujjar"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🧨 Why PHP Is the Worst Programming Language on the Planet (And Somehow Still Alive)&lt;/h2&gt;
      &lt;h3&gt;Muhamamd Yasir ・ Jun 25&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>dont use php</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Wed, 25 Jun 2025 06:05:23 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/dont-use-php-2n73</link>
      <guid>https://dev.to/myasirgujjar/dont-use-php-2n73</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/myasirgujjar" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&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%2Fuser%2Fprofile_image%2F2585216%2Fb83f8e12-7c12-41cf-83ba-30aa1d91c988.jpeg" alt="myasirgujjar"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;🧨 Why PHP Is the Worst Programming Language on the Planet (And Somehow Still Alive)&lt;/h2&gt;
      &lt;h3&gt;Muhamamd Yasir ・ Jun 25&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>php</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
    <item>
      <title>🧨 Why PHP Is the Worst Programming Language on the Planet (And Somehow Still Alive)</title>
      <dc:creator>Muhamamd Yasir</dc:creator>
      <pubDate>Wed, 25 Jun 2025 05:48:29 +0000</pubDate>
      <link>https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2</link>
      <guid>https://dev.to/myasirgujjar/why-php-is-the-worst-programming-language-on-the-planet-and-somehow-still-alive-53k2</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;"If code is poetry, PHP is a ransom note made from magazine clippings."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Once hailed as the duct tape of the web, PHP has powered millions of websites. Yet, in the year 2025, we must ask: how is this language still allowed near a server, let alone running half the internet?&lt;/p&gt;

&lt;p&gt;Let’s explore why PHP continues to earn its reputation as the most cursed survivor of the programming apocalypse.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤯 1. The Syntax That Time Forgot
&lt;/h2&gt;

&lt;p&gt;PHP's syntax is the software equivalent of a junk drawer. It has:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
&lt;/code&gt;$thisIsAVariable,`&lt;/p&gt;

&lt;p&gt;echo for printing,&lt;/p&gt;

&lt;p&gt;&amp;lt;?php embedded in HTML,`&lt;/p&gt;

&lt;p&gt;AND a function called create_function() that literally takes a string of PHP code and evals it.&lt;/p&gt;

&lt;p&gt;Want consistency? Keep dreaming.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;strpos($haystack, $needle);     // Makes sense&lt;br&gt;
array_search($needle, $haystack); // WHY THOUGH&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🪦 2. It Was Designed as a Template Engine, Not a Language
&lt;/h2&gt;

&lt;p&gt;PHP was never meant to be a full programming language. It started as "Personal Home Page Tools" — a bunch of macros wrapped around C functions. Then it mutated.&lt;/p&gt;

&lt;p&gt;It's like giving Microsoft Paint the ability to run nuclear simulations.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔓 3. Security Nightmares Are Built-In
&lt;/h2&gt;

&lt;p&gt;Writing insecure code in PHP is easier than writing secure code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$pass = $_GET['password'];&lt;br&gt;
$result = mysqli_query("SELECT * FROM users WHERE pass = '$pass'");&lt;/code&gt;&lt;br&gt;
Boom. You’ve just invited SQL Injection, XSS, and a lawsuit.&lt;/p&gt;

&lt;p&gt;Unless you know what you're doing (and most beginners don’t), PHP is a landmine field wrapped in duct tape.&lt;/p&gt;

&lt;h2&gt;
  
  
  🪡 4. Global Scope Soup
&lt;/h2&gt;

&lt;p&gt;Everything is global. There’s no isolation by default. You could call a variable from halfway across the codebase, and PHP would go, “Sure, buddy.”&lt;/p&gt;

&lt;p&gt;It’s like leaving your house unlocked, hoping no one steals your fridge.&lt;/p&gt;

&lt;h2&gt;
  
  
  😵 5. A Standard Library That Fails All Standards
&lt;/h2&gt;

&lt;p&gt;strlen() for string length&lt;/p&gt;

&lt;p&gt;`count() for array length&lt;/p&gt;

&lt;p&gt;sizeof() which is the same as count()&lt;/p&gt;

&lt;p&gt;empty(), isset(), and is_null() — good luck remembering which one checks what`&lt;/p&gt;

&lt;p&gt;Everything kind of works, sometimes. Error handling? You're lucky if it doesn't just spit out Warning: Cannot modify header information 20 lines after the real bug.&lt;/p&gt;

&lt;p&gt;🧟 6. It Refuses to Die&lt;br&gt;
Why is PHP still here? Two reasons:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WordPress&lt;/strong&gt; — responsible for 40% of websites (🤮)&lt;br&gt;
**&lt;br&gt;
Cheap hosting** — PHP still runs on dusty old shared servers at $1/month&lt;/p&gt;

&lt;p&gt;It’s like that horror movie villain who keeps coming back no matter how many times you throw it into the fire.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔄 7. Every PHP Project Becomes Spaghetti Eventually
&lt;/h2&gt;

&lt;p&gt;You start clean:&lt;/p&gt;

&lt;p&gt;`class User { ... }&lt;br&gt;
Two months in:&lt;/p&gt;

&lt;p&gt;&amp;lt;?php include('some-script-from-2004.php'); ?&amp;gt;&lt;br&gt;
`&lt;br&gt;
Even with Laravel, the average PHP project begins as MVC and ends up as MVP: Most Volatile Pile.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤡 8. Its Error Messages Read Like Comedy
&lt;/h2&gt;

&lt;p&gt;Cannot use a scalar value as an array&lt;/p&gt;

&lt;p&gt;Object of class stdClass could not be converted to string&lt;/p&gt;

&lt;p&gt;Call to a member function on null&lt;/p&gt;

&lt;p&gt;Half your time in PHP is Googling why an object is "not an object."&lt;/p&gt;

&lt;h2&gt;
  
  
  🧼 Bonus: PHP 8 Tried to Clean Up… But It’s Still PHP
&lt;/h2&gt;

&lt;p&gt;Yes, PHP 8 added:&lt;/p&gt;

&lt;p&gt;`Proper types&lt;/p&gt;

&lt;p&gt;JIT&lt;/p&gt;

&lt;p&gt;Nullsafe operators`&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;But you can't polish a potato and call it a diamond. At the end of the day, PHP is still the weird uncle of web dev. Kinda lovable. Mostly embarrassing.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;🧾 Final Verdict&lt;br&gt;
PHP is not a language. It’s a lesson.&lt;br&gt;
A lesson in humility. A lesson in legacy tech.&lt;br&gt;
A reminder that just because something works doesn’t mean it should.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;If you want to suffer creatively, write poetry.&lt;br&gt;
If you want to suffer programmatically, write PHP.&lt;/code&gt;&lt;/p&gt;

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