C++ as an ideal programming language to begin with
Reasons why C++ may be better:
1) C++ is relatively faster than python:
I agree that python codes are really short and python is really easy to learn but C++ codes are usually faster than its python counterpart and its memory management is far better which is another point.
2)Memory management :
The memory management in c++ is really a class apart and it enables us to use pointers which helps to access data and memory on the memory stack or heap. Dynamic programming makes programming way easier and organized.
3)C++ gives you insights to programming :
Programming in c++ is not easy, it's a hard language. But coding in c++, we understand about function call, memory heap, stack, pointers, and a lot of stuff which makes one appreciate the beauty of the language and gives you insights to programming.
4) Popularity :
C++ is still popular even after so many years. The current rank of C++ in programming language index is 4th which for an old language is a great feat
Link:https://www.tiobe.com/tiobe-index/
5) C++ is Procedural and object-oriented programming language :
It enables us to use the concept of classes and objects to our code and also adding to the benefits, inheritance, polymorphism, and other OOPs concepts.
I agree that python codes are really short and python is really easy to learn but C++ codes are usually faster than its python counterpart and its memory management is far better which is another point.
2)Memory management :
The memory management in c++ is really a class apart and it enables us to use pointers which helps to access data and memory on the memory stack or heap. Dynamic programming makes programming way easier and organized.
3)C++ gives you insights to programming :
Programming in c++ is not easy, it's a hard language. But coding in c++, we understand about function call, memory heap, stack, pointers, and a lot of stuff which makes one appreciate the beauty of the language and gives you insights to programming.
4) Popularity :
C++ is still popular even after so many years. The current rank of C++ in programming language index is 4th which for an old language is a great feat
Link:https://www.tiobe.com/tiobe-index/
5) C++ is Procedural and object-oriented programming language :
It enables us to use the concept of classes and objects to our code and also adding to the benefits, inheritance, polymorphism, and other OOPs concepts.
6)Learning C++ Makes learning other languages like java easier
7)C++ is still used in Microsoft Windows, Internet Explorer, Game Engines, Software, Linux, and much more
8)Algorithms and Data Structures:
Many Algorithms and Data Structures have been implemented in C++ so learning C++ is highly helpful to learn Algorithms and Data Structures and C++ is better for Competitive programming.
At last, it all boils down to personal preference. Python is a great language overall but as a starting language, C++ is better.
Image courtesy: Google
This comment has been removed by a blog administrator.
ReplyDeleteGood Job
ReplyDelete