<?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: Mohamed Anis MANI</title>
    <description>The latest articles on DEV Community by Mohamed Anis MANI (@manimanis).</description>
    <link>https://dev.to/manimanis</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%2F210758%2F3e4d442b-fe1b-45b5-95f7-2a2429f0c278.jpeg</url>
      <title>DEV Community: Mohamed Anis MANI</title>
      <link>https://dev.to/manimanis</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manimanis"/>
    <language>en</language>
    <item>
      <title>Python vs C++</title>
      <dc:creator>Mohamed Anis MANI</dc:creator>
      <pubDate>Mon, 19 Aug 2019 22:11:04 +0000</pubDate>
      <link>https://dev.to/manimanis/python-vs-c-3999</link>
      <guid>https://dev.to/manimanis/python-vs-c-3999</guid>
      <description>&lt;p&gt;As I used both Python and C/C++ and felt their strengths and weaknesses, I am annoyed when I encounter the unfair comparison between them in the social networks. The people blaming C/C++ are either persons that ignores C/C++ or that have lower marks in this module in the college.&lt;/p&gt;

&lt;p&gt;Python is really a nice language powered by tons of libraries that offers limitless possibilities and solutions to whatever problem. However, saying that it is better than C/C++ is not always true. &lt;/p&gt;

&lt;p&gt;This article will try to prove that the comparison between two languages should be made based on many criteria that indicate which language is better for which job.&lt;/p&gt;

&lt;p&gt;First, Python is an interpreted language while C/C++ is a compiled language meaning that the deliverables for both languages will not be same: when writing for Python the customer expects the source code for their project, while C/C++ compiler will produces a working binary that does not require that the source code on the customer's machine. Someone will claim that Python have tools to convert source code into binary, that's true and till now I have not encountered a single tool that perform the task as it should be done, and if it exists it will needs many tweaks.&lt;/p&gt;

&lt;p&gt;Second, Python is delivered with libraries that plays in its favour. C/C++ has its own libraries too, but in this fields it's Python the winner. In fact, with Python a simple import for a library or some features of that library suffices to resolve a problem that will needs tens of includes and their dependencies. &lt;/p&gt;

&lt;p&gt;Talking about dependencies the Python packaging modules will ensure all the dependencies are fulfilled for one module when installing it. In the time I was using C/C++ that's feature was missing.&lt;/p&gt;

&lt;p&gt;Third, performance side Python gives worst results because it's not designed in essence to enhance performance but to increase developer productivity, this down side is the cost of the excellent productivity of the language.&lt;/p&gt;

&lt;p&gt;Fourth, C/C++ is meant to be as close as possible to Assembly in order to control low memory, low power, resources-limited devices. Python needs higher memory footprint and more CPU. &lt;/p&gt;

&lt;p&gt;We shall not forget about multithreaded tasks, Python without external libraries written in C is unable to use the full multiprogramming capacities of the CPU because of its global locking.&lt;/p&gt;

&lt;p&gt;Finally, as my article became very long I have to summarize in one sentence: choose the language that fulfils your needs by comparing each language features and capabilities and don't rely to your feeling in this matter, they won't help you.&lt;/p&gt;

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