<?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: Victor Elizondo</title>
    <description>The latest articles on DEV Community by Victor Elizondo (@victor_elizondo_788328940).</description>
    <link>https://dev.to/victor_elizondo_788328940</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%2F3403857%2F8c2bcdb3-9de1-459d-b004-c340984d1a47.png</url>
      <title>DEV Community: Victor Elizondo</title>
      <link>https://dev.to/victor_elizondo_788328940</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/victor_elizondo_788328940"/>
    <language>en</language>
    <item>
      <title>Writing Modern C++ with Ranges</title>
      <dc:creator>Victor Elizondo</dc:creator>
      <pubDate>Thu, 12 Feb 2026 17:28:50 +0000</pubDate>
      <link>https://dev.to/victor_elizondo_788328940/writing-modern-c-with-ranges-51n4</link>
      <guid>https://dev.to/victor_elizondo_788328940/writing-modern-c-with-ranges-51n4</guid>
      <description>&lt;p&gt;Recently, I came across a post advocating the use of std::vector and standard algorithms.&lt;br&gt;
The core message was simple: basic C++ should reflect modern C++, not "C with classes".&lt;/p&gt;

&lt;p&gt;I welcome posts about modernizing C++ code.&lt;br&gt;
However, the proposed modernization stopped at C++11.&lt;br&gt;
Considering that before C++11 we effectively had one real standard dating back to 1998, I would not call this "modernization" in any meaningful sense. It is more a request to use C++ instead of C or to stop calling C code compiled with a C++ compiler "real C++".&lt;/p&gt;

&lt;p&gt;This would sound more precise, IMO, but this is still not a modernization.&lt;/p&gt;

&lt;p&gt;The example itself was a didactic problem: summing two arrays of different sizes, solved via explicit loops and iteration over collections.&lt;br&gt;
Suggested solution: index loop over collections.&lt;br&gt;
Modern C++ ranges offer a much cleaner approach. They allow expressing the transformation directly, without introducing extra functions.&lt;/p&gt;

&lt;p&gt;The beauty of ranges is their non-owning nature &amp;amp; lazy evaluation: results are generated on demand, saving resources, and can be easily materialized back into owning containers when needed.&lt;/p&gt;

&lt;p&gt;Modernization means moving forward.&lt;br&gt;
Ranges are one of the biggest milestones in the algorithmic evolution of C++.&lt;br&gt;
I encourage learning &amp;amp; using them.&lt;/p&gt;

&lt;p&gt;Keep code concise, express intent clearly, and avoid extra algorithm scaffolding just because you are used to C++11/14.&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%2Firgs4yvzlg626nn9cc8o.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%2Firgs4yvzlg626nn9cc8o.png" alt=" " width="696" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cpp</category>
    </item>
  </channel>
</rss>
