Posts

Some Interesting Facts about C++

Image
  Interesting Facts about C++ : C++ is a basic-purpose, OOP language. It can support generic programming and low-level memory manipulation. Bjarne Stroustrup (Bell Labs) in 1978, introduced  the C-With-Classes, and in 1986 with the C++.  Here are some interesting facts about C++ that may interest you:  1. The name of C++ specifies the evolution nature of the development from C. “++” is the C increment operator.  2. C++ is one of the predominanting languages for the development of all kinds of technical as well commercial software.  3. C++ introduced Object-Oriented Programming,which is not present in C. Like other things, C++ support the four primary features of OOP: encapsulation, polymorphism, abstraction, as well as inheritance.  4. C++ got the OOP features from Simula67 which is also a Programming language.  5. A function is the minimum requirement for a C++ program for run.  6. Both C and C++ invented at same place i.e. at AT&T (Amer...

Reasons for truths and some myths on C++

Image
  Old C++ compilers The knowledge is based on old C++ compilers of the last millennium. They implement the C++98 standard but they have a large potential for optimization. Training deficit On one hand, many embedded programmers learned only C, on the other hand, there is no time to experiment with new technologies. Loss of expert state You have to be brave to leave your area as a C expert and continue the next day as a C++ novice. Legacy codebase in C The existing code base is in C therefore is the obvious decision to fix a bug or implement a feature in the first place in C. Many C experts There are many C experts. They are training the novices and becoming the leaders. Curse of the monoculture I perceive the embedded world often as a monoculture. I worked 15 years as a consultant in the automobile area and used about 10 languages. On the contrary, I used only 3 languages in the embedded area.  The pressure of the standard There are a lot of standards that you have to fulfil. ...

Introduction

Image
C++ is a broadly useful, object-oriented programming language that supports generic programming and low-level memory control. The language was planned with an accentuation on framework programming and installed huge frameworks. Today we will uncover some pleasant realities about C++, some of which may astonish you. 1.“In order to understand C++, you must first understand C.” 2.“C++ is an Object-Oriented Language,” 3.“You must write low-level code for efficiency.” 4.“Only big, complicated program should be written in C++.” If you believe in any of these theories, or if you work with people who do, this article is for you. Several of these myths have been shown to be valid for anyone, at some point in time, for some mission. They are, however, mere myths with today's C++, which uses widely available up-to-date ISO C++ 2011 compilers and software. These myths are considered "common" by us because we hear them frequently. They are sometimes accompanied by justifications, but ...

Truths on C++

Image
  Starting a simple project can be daunting to a beginner if you are new to programming. Even compiling a Hello World can be difficult for a beginner. And if you want to use some libraries, then prepare to learn a new tool CMake. Some upcoming package managers are making this now easier. Eg. vcpkg, conan etc. There are countless ways to do the same thing. Compiler messages can be confusing and if you are using templates, they will be incredible long and difficult to understand. Language and standard library have so many special cases which can be confusing. Way too big to remember all the details. C++ was Originally Called ‘The New C’Computer programmer Rick Mascitti is credited with giving C++ its name, with the ++ indicating an improvement from C programming. But before it was given this name, C++ was actually referred to as “the new C.” This is because C++ draws inspiration from C, building upon its framework while adding new features and functions to the language. C++ Introduce...

Myths on C++

Image
 Templates inflate the code. Objects must live on the heap Exceptions are expensive. C++ is too slow and needs too much memory. C++ is too dangerous in safety-critical systems. You have to program object-oriented in C++. C++ can only be used for applications. The iostream library is too big; The Standard Template Library to slow. Objects must live on the heap. Objects can be created on the stack or at an arbitrary position with the help of  placement new. C++ is too dangerous in safety-critical systems. Of course, it depends on the experience of the developer. But whoever uses C strings instead of C++ strings; uses C arrays instead of C++ arrays; uses macros instead of constant expressions or templates, can not argue that C++ is not well suited for safety-critical systems. Honestly, the contrary holds. C++ has a lot to offer in safety-critical systems.  You have to program object-oriented in C++. C++  is a  multi-paradigm language . Therefore, you can solve...

Importance of learning C++

Image
1.C++ is known to be an amazing language.  2.C++ permits you to have a great deal of control with respect to how you use system resources, so in the correct hands its speed and capacity to economically utilize assets ought to have the option to outperform different languages. 3.   C++ Popularity and High Salary.  4. C++ has Abundant Library Support.  5. C++ has a Large Community.  6. C++ is Portable: Programs developed in C++ can be moved from one platform to another. This is one of the main reasons that applications requiring multi-platform or multi-device development often use C++. 7. C++ In Embedded Systems:C++ is closer to the hardware level and so it is quite useful in embedded systems as the software and hardware in these are closely coupled. There are many embedded systems that use C++ such as smart watches, MP3 players, GPS systems, etc. 8.C++ In Graphics:Applications requiring graphics such as digital image processing, computer vision, screen recording ...

Conclusions and References

Image
 C++ is an amazing broadly useful programming language. It very well may be utilized to faster working frameworks, programs, games, etc. C++ upholds various methods of programming like procedural, object-arranged, useful, etc. This makes C++ incredible just as adaptable. Taking these facts into the account we can say that C++ can be utilized for high-level programming but as it's a successor of C language even basic program runs smoothly on it. Conclusions  : 1) Besides these truths and myths on C++ language, C++ has influenced many other programming languages, some of which include C#, Java and even newer versions of C.  2) The language was designed with an emphasis on system programming and embedded large system.  3) Although it was lacking in C, object-oriented programming was introduced in C++.  4) Among other things, C++ supports the four primary features of OOP: abstraction, inheritance, polymorphism and encapsulation.  5) C++ is unique in the sense t...