Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. why c++ is still being used?

why c++ is still being used?

Scheduled Pinned Locked Moved Managed C++/CLI
c++question
25 Posts 9 Posters 64 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B babak1110

    hi friends: why c++ is still being used?!

    J Offline
    J Offline
    Jon McKee
    wrote on last edited by
    #6

    - It might be the most familiar language on your development team. - The core software may already be in C++. - You may have a fancy new C#/managed DLL you want to use with an existing C application (wrappers ahoy!) - You want ultimate, UNLIMITED CONTROL MUHAHAHA756^%&#@ It's just a tool. Whether you use it or not depends on if you need what it provides. If you don't then pick another tool. A computer can do everything a calculator can do but you won't see me lugging a desktop around the office.

    1 Reply Last reply
    0
    • B babak1110

      hi friends: why c++ is still being used?!

      J Offline
      J Offline
      Jon McKee
      wrote on last edited by
      #7

      You want ultimate, unlimited control MUHAHAHA756&^% But seriously, it's just a tool. Whether you use it or not depends on if you need what it provides. If you don't then pick another tool. A computer can do everything a calculator can do but you won't see me lugging a desktop around the office.

      1 Reply Last reply
      0
      • B babak1110

        hi friends: why c++ is still being used?!

        J Offline
        J Offline
        Jon McKee
        wrote on last edited by
        #8

        You want ultimate, unlimited control MUHAHAHA756&^% But seriously, it's just a tool. Whether you use it or not depends on if you need what it provides. If you don't then pick another tool. A computer can do everything a calculator can do but you won't see me lugging a desktop around the office.

        1 Reply Last reply
        0
        • B babak1110

          hi friends: why c++ is still being used?!

          J Offline
          J Offline
          Jon McKee
          wrote on last edited by
          #9

          You want ultimate, unlimited control MUHAHAHA756%^$ But seriously, it's just a tool. Whether you use it or not depends on if you need what it provides. If you don't then pick another tool. A computer can do everything a calculator can do but you won't see me lugging a desktop around the office.

          1 Reply Last reply
          0
          • B babak1110

            hi friends: why c++ is still being used?!

            J Offline
            J Offline
            Jon McKee
            wrote on last edited by
            #10

            You want ultimate, unlimited control muhaha756%^$ -error- But seriously, it's just a tool. Whether you use it or not depends on if you need what it provides. If you don't then pick another tool.

            1 Reply Last reply
            0
            • B babak1110

              hi friends: why c++ is still being used?!

              J Offline
              J Offline
              Jon McKee
              wrote on last edited by
              #11

              You want ultimate, unlimited control muhaha756.(*)!1 -error- But seriously, it's just a tool. Whether you use it or not depends on if you need what it provides. If you don't then pick another tool.

              1 Reply Last reply
              0
              • L Lost User

                ..because you can't program an OS in VB.NET.

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                A Offline
                A Offline
                Afzaal Ahmad Zeeshan
                wrote on last edited by
                #12

                Eddy Vluggen wrote:

                can't program an OS in VB.NET.

                You can't do that in C++ either, if you can then you can do so in JavaScript too. :-) Or even Python.

                The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                L M 2 Replies Last reply
                0
                • B babak1110

                  hi friends: why c++ is still being used?!

                  A Offline
                  A Offline
                  Afzaal Ahmad Zeeshan
                  wrote on last edited by
                  #13

                  babak1110 wrote:

                  why c++ is still being used?!

                  Because not everyone is programming desktop GUI apps, and not everyone hates OOP. C++ provides an object-oriented programming model for C environments. C is Assembly language with a better syntax. So, it means you can do more of hardware programming easily, registers are available etc. C++ was created by Bjarne to include "classes", because he had experience in Simula, which was object-oriented. C was not, so C++ was created to support that, C++ was called, "C with Classes". If you need hardware control and are only an OOP geek, then you use C++, otherwise you use C. Despite my answer, this question is childish and immature. If you need to know if a language is needed to be learnt of if you should use it, know its history! That will answer all of your questions. Just a friendly reminder, when I started to learn how to program in 2011, I heard C++ was fading away, Java is future, I also heard Windows Forms will die soon, and WPF is future. None of that happens and these news are caused by some idiots in computer science who have no idea what they are saying.

                  Quote:

                  The creator of C++, Bjarne Stroustrup, has acknowledged that Simula 67 was the greatest influence on him to develop C++, to bring the kind of productivity enhancements offered by Simula to the raw computational speed offered by lower level languages like BCPL.

                  Simula - Wikipedia[^] C++ - Wikipedia[^] For more, Why I Created C++ | Big Think[^]. Sorry, if you find me rude.

                  The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                  1 Reply Last reply
                  0
                  • A Afzaal Ahmad Zeeshan

                    Eddy Vluggen wrote:

                    can't program an OS in VB.NET.

                    You can't do that in C++ either, if you can then you can do so in JavaScript too. :-) Or even Python.

                    The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #14

                    Afzaal Ahmad Zeeshan wrote:

                    You can't do that in C++ either, if you can then you can do so in JavaScript too. :)

                    Well, it is also not completely true. Most parts of the modern OSes is made in C and C++. You don't write drivers in JavaScript, because most devices work faster than your average garbage collector. It at least needs a language that can compile to native, without dependencies.

                    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                    A 1 Reply Last reply
                    0
                    • L Lost User

                      ..because you can't program an OS in VB.NET.

                      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                      Richard DeemingR Offline
                      Richard DeemingR Offline
                      Richard Deeming
                      wrote on last edited by
                      #15

                      Are you sure about that? :-D SharpOS (operating system) - Wikipedia[^] Cosmos (operating system) - Wikipedia[^] Singularity (operating system) - Wikipedia[^] FlingOS™ - Home[^]


                      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                      L M 2 Replies Last reply
                      0
                      • Richard DeemingR Richard Deeming

                        Are you sure about that? :-D SharpOS (operating system) - Wikipedia[^] Cosmos (operating system) - Wikipedia[^] Singularity (operating system) - Wikipedia[^] FlingOS™ - Home[^]


                        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #16

                        Richard Deeming wrote:

                        Are you sure about that? :-D

                        Already corrected it, remembering Cosmos. I also remember it not being a commercial success :)

                        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                        1 Reply Last reply
                        0
                        • L Lost User

                          Afzaal Ahmad Zeeshan wrote:

                          You can't do that in C++ either, if you can then you can do so in JavaScript too. :)

                          Well, it is also not completely true. Most parts of the modern OSes is made in C and C++. You don't write drivers in JavaScript, because most devices work faster than your average garbage collector. It at least needs a language that can compile to native, without dependencies.

                          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                          A Offline
                          A Offline
                          Afzaal Ahmad Zeeshan
                          wrote on last edited by
                          #17

                          Quote:

                          Well, it is also not completely true.

                          Because it was not meant to be. :laugh: It was merely a rant, or joke. ;-)

                          Quote:

                          Most parts of the modern OSes is made in C and C++

                          Most part comes from C, that contains Assembly in __asm or similar. C++ is just used to create most APIs, because you can provide a simple abstraction there. You can provide underlying implementation of the system and services, then you leave it in the hands of programmers. Of course drivers need to be fast, but what a driver is merely a program in the forest of services running. Tree (program) can be a class, a forest is abstraction, and... You cannot do that easily in C — that is why we have demons in Linux and you can write in in any definition, there is nothing to implement, nothing to inherit and nothing to worry about. Move a bit ahead, enter the realm of C++, Qt for instance, you need to write classes as inherited ones and then you can compile that across. Qt is used for driver development.

                          The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                          L 1 Reply Last reply
                          0
                          • A Afzaal Ahmad Zeeshan

                            Quote:

                            Well, it is also not completely true.

                            Because it was not meant to be. :laugh: It was merely a rant, or joke. ;-)

                            Quote:

                            Most parts of the modern OSes is made in C and C++

                            Most part comes from C, that contains Assembly in __asm or similar. C++ is just used to create most APIs, because you can provide a simple abstraction there. You can provide underlying implementation of the system and services, then you leave it in the hands of programmers. Of course drivers need to be fast, but what a driver is merely a program in the forest of services running. Tree (program) can be a class, a forest is abstraction, and... You cannot do that easily in C — that is why we have demons in Linux and you can write in in any definition, there is nothing to implement, nothing to inherit and nothing to worry about. Move a bit ahead, enter the realm of C++, Qt for instance, you need to write classes as inherited ones and then you can compile that across. Qt is used for driver development.

                            The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #18

                            Afzaal Ahmad Zeeshan wrote:

                            It was merely a rant, or joke. ;-)

                            I already argue way too much here, so I'm not going to react :)

                            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                            A 1 Reply Last reply
                            0
                            • L Lost User

                              Afzaal Ahmad Zeeshan wrote:

                              It was merely a rant, or joke. ;-)

                              I already argue way too much here, so I'm not going to react :)

                              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                              A Offline
                              A Offline
                              Afzaal Ahmad Zeeshan
                              wrote on last edited by
                              #19

                              Have an upvote for a smile then. ;-)

                              The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                              1 Reply Last reply
                              0
                              • A Afzaal Ahmad Zeeshan

                                Eddy Vluggen wrote:

                                can't program an OS in VB.NET.

                                You can't do that in C++ either, if you can then you can do so in JavaScript too. :-) Or even Python.

                                The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                                M Offline
                                M Offline
                                Munchies_Matt
                                wrote on last edited by
                                #20

                                Wrong. C++ compiles down to machine code, so you can.

                                A 1 Reply Last reply
                                0
                                • Richard DeemingR Richard Deeming

                                  Are you sure about that? :-D SharpOS (operating system) - Wikipedia[^] Cosmos (operating system) - Wikipedia[^] Singularity (operating system) - Wikipedia[^] FlingOS™ - Home[^]


                                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                  M Offline
                                  M Offline
                                  Munchies_Matt
                                  wrote on last edited by
                                  #21

                                  But the interpreter the VB Net code will be running on will be written in C or C++ because to run on actual hardware you have to run the instruction set that hardware exposes. You can only do that in a compiled language.

                                  1 Reply Last reply
                                  0
                                  • B babak1110

                                    hi friends: why c++ is still being used?!

                                    M Offline
                                    M Offline
                                    Munchies_Matt
                                    wrote on last edited by
                                    #22

                                    Because C is the corner stone language in computing. It is the language of OSs, space ships, embedded, etc. C++ extends that power scales it, and is a true engineers language. C# (Java) and other interpreted languages have their uses, principally where you want to limit the power of the language for security reasons, or to work at highly extrapolated levels a long way from the hardware.

                                    1 Reply Last reply
                                    0
                                    • M Munchies_Matt

                                      Wrong. C++ compiles down to machine code, so you can.

                                      A Offline
                                      A Offline
                                      Afzaal Ahmad Zeeshan
                                      wrote on last edited by
                                      #23

                                      Like I said in that message, in this case, so does JavaScript, Python or any other language. :-) I wonder if there is a library for translation of shell script to a machine code — highly doubted statement.

                                      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                                      M 1 Reply Last reply
                                      0
                                      • A Afzaal Ahmad Zeeshan

                                        Like I said in that message, in this case, so does JavaScript, Python or any other language. :-) I wonder if there is a library for translation of shell script to a machine code — highly doubted statement.

                                        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                                        M Offline
                                        M Offline
                                        Munchies_Matt
                                        wrote on last edited by
                                        #24

                                        No, you said: "You can't do that in C++ either, if you can then you can do so in JavaScript too" C++ does compile down to machine code, script languages dont, they are interpreted.

                                        1 Reply Last reply
                                        0
                                        • B babak1110

                                          hi friends: why c++ is still being used?!

                                          R Offline
                                          R Offline
                                          Rollin Shultz
                                          wrote on last edited by
                                          #25

                                          As noted by others for drivers and embedded systems. It is a mature language that works well with hardware with less interpretation. One reason many people left C++ was they hate pointers, but as those other languages mature, they too employ pointers, so in the end we are now seeing a revival of C++. p.s. Some people love pointers. :-D

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups