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. The Lounge
  3. C is better !!!!

C is better !!!!

Scheduled Pinned Locked Moved The Lounge
csharpc++hardware
56 Posts 28 Posters 0 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 Offline
    B Offline
    Behzad Sedighzadeh
    wrote on last edited by
    #1

    I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

    Behzad

    T L P N P 14 Replies Last reply
    0
    • B Behzad Sedighzadeh

      I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

      Behzad

      T Offline
      T Offline
      TheGreatAndPowerfulOz
      wrote on last edited by
      #2

      Well, you could use the C++ compiler as a better "C" (i.e. only use the "C" features). That fixes many of the holes of "C". I'm interested to understand your reasons for excluding "C++" from consideration though.

      Fight Big Government:
      http://obamacareclassaction.com/
      http://obamacaretruth.org/

      B R 2 Replies Last reply
      0
      • B Behzad Sedighzadeh

        I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

        Behzad

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

        I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste?

        J T L C P 5 Replies Last reply
        0
        • L Lost User

          I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste?

          J Offline
          J Offline
          Jim Crafton
          wrote on last edited by
          #4

          harold aptroot wrote:

          who needs inheritance when you have copy and paste?

          That's sig material!!! :) In fact, I'm pretty sure that's the title for an article, if not a book :)

          ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

          OriginalGriffO L 2 Replies Last reply
          0
          • L Lost User

            I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste?

            T Offline
            T Offline
            TheGreatAndPowerfulOz
            wrote on last edited by
            #5

            harold aptroot wrote:

            copy and paste

            LOL. Yeah sometimes that is the correct answer, but sometimes you're using a third-party library so you don't have possibility to copy and paste. Or were you being facetious and ironic?

            Fight Big Government:
            http://obamacareclassaction.com/
            http://obamacaretruth.org/

            L K 2 Replies Last reply
            0
            • B Behzad Sedighzadeh

              I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

              Behzad

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              Behzad Sedighzadeh wrote:

              When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

              Any particular reason why? I fortunately get to call the shots on what language to develop customer applications in. They basically do not care as long as they get the deliverables delivered within the agreed time frame, and code that works. With that said, I typically choose C# to meet their requirements.

              "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

              J 1 Reply Last reply
              0
              • T TheGreatAndPowerfulOz

                harold aptroot wrote:

                copy and paste

                LOL. Yeah sometimes that is the correct answer, but sometimes you're using a third-party library so you don't have possibility to copy and paste. Or were you being facetious and ironic?

                Fight Big Government:
                http://obamacareclassaction.com/
                http://obamacaretruth.org/

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

                ahmed zahmed wrote:

                Or were you being facetious and ironic?

                Are you?

                T 2 Replies Last reply
                0
                • P Paul Conrad

                  Behzad Sedighzadeh wrote:

                  When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

                  Any particular reason why? I fortunately get to call the shots on what language to develop customer applications in. They basically do not care as long as they get the deliverables delivered within the agreed time frame, and code that works. With that said, I typically choose C# to meet their requirements.

                  "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                  J Offline
                  J Offline
                  Jim Crafton
                  wrote on last edited by
                  #8

                  Well he mentions embedded systems, and I've heard horror stories about how bad some of the compilers are in terms of supporting C++, so it might just be less hassle dealing with C. Occasionally I do some OpenVMS development and it's always in C. I'd rather do C++, but the compiler is so slow that it's not worth the hassle.

                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                  P P 2 Replies Last reply
                  0
                  • J Jim Crafton

                    Well he mentions embedded systems, and I've heard horror stories about how bad some of the compilers are in terms of supporting C++, so it might just be less hassle dealing with C. Occasionally I do some OpenVMS development and it's always in C. I'd rather do C++, but the compiler is so slow that it's not worth the hassle.

                    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    Jim Crafton wrote:

                    he mentions embedded systems

                    When I look back at his post, perhaps I misunderstood a little. I haven't done much in the embedded area outside of college hardware courses, and from what I could see with the little exposure I've had with embedded development, I have seen some horrors with some of the compilers out there.

                    "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                    1 Reply Last reply
                    0
                    • J Jim Crafton

                      harold aptroot wrote:

                      who needs inheritance when you have copy and paste?

                      That's sig material!!! :) In fact, I'm pretty sure that's the title for an article, if not a book :)

                      ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                      OriginalGriffO Offline
                      OriginalGriffO Offline
                      OriginalGriff
                      wrote on last edited by
                      #10

                      It's been my sig for a few weeks now... :laugh:

                      You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                      J 1 Reply Last reply
                      0
                      • L Lost User

                        ahmed zahmed wrote:

                        Or were you being facetious and ironic?

                        Are you?

                        T Offline
                        T Offline
                        TheGreatAndPowerfulOz
                        wrote on last edited by
                        #11

                        no, not really. Sometimes when you need the functionality of existing classes but with slight tweaks, but that code isn't polymorphic, then you have no choice but to copy/paste.

                        Fight Big Government:
                        http://obamacareclassaction.com/
                        http://obamacaretruth.org/

                        L S 2 Replies Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          It's been my sig for a few weeks now... :laugh:

                          You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

                          J Offline
                          J Offline
                          Jim Crafton
                          wrote on last edited by
                          #12

                          I stand corrected! I didn't realize fat_boy had a sense of humor!

                          ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                          1 Reply Last reply
                          0
                          • T TheGreatAndPowerfulOz

                            no, not really. Sometimes when you need the functionality of existing classes but with slight tweaks, but that code isn't polymorphic, then you have no choice but to copy/paste.

                            Fight Big Government:
                            http://obamacareclassaction.com/
                            http://obamacaretruth.org/

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

                            Of course.. anyway this was just a quote

                            1 Reply Last reply
                            0
                            • L Lost User

                              ahmed zahmed wrote:

                              Or were you being facetious and ironic?

                              Are you?

                              T Offline
                              T Offline
                              TheGreatAndPowerfulOz
                              wrote on last edited by
                              #14

                              i see from someone else's post that you were "quoting" fat_boy. understood. LOL...

                              Fight Big Government:
                              http://obamacareclassaction.com/
                              http://obamacaretruth.org/

                              Y 1 Reply Last reply
                              0
                              • B Behzad Sedighzadeh

                                I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

                                Behzad

                                N Offline
                                N Offline
                                Nemanja Trifunovic
                                wrote on last edited by
                                #15

                                None of the abovementioned languages (C, C++, C#, VB) are very good, IMHO, but C++ is among other things a better C. Not much better C, granted, but still better.

                                utf8-cpp

                                K 1 Reply Last reply
                                0
                                • J Jim Crafton

                                  Well he mentions embedded systems, and I've heard horror stories about how bad some of the compilers are in terms of supporting C++, so it might just be less hassle dealing with C. Occasionally I do some OpenVMS development and it's always in C. I'd rather do C++, but the compiler is so slow that it's not worth the hassle.

                                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                                  P Offline
                                  P Offline
                                  PIEBALDconsult
                                  wrote on last edited by
                                  #16

                                  I've never done C++ on OpenVMS; only C -- Whitesmith's C, VAX C, DEC C, Compaq C (?), HP C. The hobbyist license and media seem to include it, but I haven't installed it.

                                  1 Reply Last reply
                                  0
                                  • B Behzad Sedighzadeh

                                    I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

                                    Behzad

                                    P Offline
                                    P Offline
                                    PIEBALDconsult
                                    wrote on last edited by
                                    #17

                                    I've only dabbled in C++; I've had no need for its "features". In my opinion, object-oriented languages are like big trucks, boats, and planes -- when you need them, you need them. But you don't need them if you're just going to the local pub. I don't like having to use objects and namespaces just to write "Hello world!" in C#. X| "Use the right tool for the right job." -- Scotty, et al

                                    1 Reply Last reply
                                    0
                                    • B Behzad Sedighzadeh

                                      I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

                                      Behzad

                                      D Offline
                                      D Offline
                                      dighn
                                      wrote on last edited by
                                      #18

                                      C is the way to go for embedded for many reasons. 90+% of the code I write is C but I'm not a big fan of it. Expressing higher level constructs and concepts like classes and polymorphism is extremely verbose in C.

                                      1 Reply Last reply
                                      0
                                      • T TheGreatAndPowerfulOz

                                        Well, you could use the C++ compiler as a better "C" (i.e. only use the "C" features). That fixes many of the holes of "C". I'm interested to understand your reasons for excluding "C++" from consideration though.

                                        Fight Big Government:
                                        http://obamacareclassaction.com/
                                        http://obamacaretruth.org/

                                        B Offline
                                        B Offline
                                        Behzad Sedighzadeh
                                        wrote on last edited by
                                        #19

                                        Can you please tell me some of holes? I have done embedded coding in C and C++. In C you can use files in which source codes can act as classes and you can write application and do not use OOP features. Once upon a time, i heard from a guy " C++ is C with another syntax!".At the time,for the desktop i was using C# and for a embedded application C++. Now Iam using C in linux and altough IDEs are not as good as VS, i think that guy's opnoin was correct.I love coding in C which i think simplifies thinking; All in all There are some rules you must obey, no matter you use OOP or structured programming, etc.

                                        Behzad

                                        T K N K S 5 Replies Last reply
                                        0
                                        • B Behzad Sedighzadeh

                                          I have written applications in C/C++ for embedded and C#/VB for enterprises.When it comes to choosing between C and C++ for an application i always go to C, no matter how much much much features C++ has

                                          Behzad

                                          P Offline
                                          P Offline
                                          Pete OHanlon
                                          wrote on last edited by
                                          #20

                                          B will fight you. He thinks he's better because he's one letter higher up in the alphabet.

                                          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                          My blog | My articles | MoXAML PowerToys | Onyx

                                          A 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