<?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: David</title>
    <description>The latest articles on DEV Community by David (@sucuturdean).</description>
    <link>https://dev.to/sucuturdean</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%2F691827%2Ff7ac6e56-5f81-4998-8160-ee25879f83b1.png</url>
      <title>DEV Community: David</title>
      <link>https://dev.to/sucuturdean</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sucuturdean"/>
    <language>en</language>
    <item>
      <title>Is modern C better then Rust?</title>
      <dc:creator>David</dc:creator>
      <pubDate>Sun, 12 Sep 2021 23:51:35 +0000</pubDate>
      <link>https://dev.to/sucuturdean/is-modern-c-better-then-rust-3odf</link>
      <guid>https://dev.to/sucuturdean/is-modern-c-better-then-rust-3odf</guid>
      <description>&lt;p&gt;In the past years we have witnessed probably the fastest adoption of a new language, Rust. This article explores the question "Are we moving too fast?".&lt;/p&gt;

&lt;p&gt;A little background about me, I started programming in Java, then I learned c++, got bored so I learned Rust and at the end, I learned C. Rust was the first programming language that I really felt like I like it, but one of my friends told me that I should also give C a chance. In less than a month after starting out, I've started rewritten the project I was working on from Rust to C.&lt;/p&gt;

&lt;p&gt;This project showed me that there is more to this story than it seems. For example, today, I was searching reasons why use Rust over C, and what I found shocked me. There was an article that said that you have to explicitly destroy every object(I mean even the integers allocated on the stack) in C, no wonder everyone thinks C is unsafe.&lt;/p&gt;

&lt;p&gt;And there is the whole thing with using Rust in the Linux kernel which seems questionable if you ask me. The reasons for my thinking:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The build time would turn into hours.&lt;/li&gt;
&lt;li&gt;Rust has too many abstractions by default.&lt;/li&gt;
&lt;li&gt;It depends too much on the standard library.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The main argument to using Rust over C is safety, but if you want there are some very useful macros and libraries out there that can your code much more reliable.&lt;/p&gt;

&lt;p&gt;Many say that C is obsolete because it doesn't have templates/generics, private member variables or namespaces. I disagree because with a bit of creativity, you can actually achieve all of these, more or less in C. Speaking of creativity, when I'm coding in C, because of the limited features, I am forced to write much more creative code that in C++ or Rust.&lt;/p&gt;

&lt;p&gt;And as a last note, I recently explored newer programming languages like zig, and that made me realise that one of the best thing about Rust is that is has amazing docs. If you want to learn something about C and use the web for info, you'll find like 4 different sites that explain the same thing with different formatting, which might be confusing for a person who is just starting out.&lt;/p&gt;

&lt;p&gt;P.S. I've edited this post to rewrite some sentences.&lt;br&gt;
P.P.S. I am very sad that dynamic arrays didn't catch on.&lt;/p&gt;

&lt;p&gt;Opinions are welcome in the comments.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>c</category>
    </item>
  </channel>
</rss>
