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 a better language than any language you care to name.

C is a better language than any language you care to name.

Scheduled Pinned Locked Moved The Lounge
csharphtml
150 Posts 54 Posters 3 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.
  • L Lost User

    Are you a VB Code reviewer? :p

    Z Offline
    Z Offline
    ZurdoDev
    wrote on last edited by
    #82

    :) :thumbsup: VB Code is actually very easy to understand but you're right, the code written by some people in VB is atrocious.

    There are only 10 types of people in the world, those who understand binary and those who don't.

    _ 1 Reply Last reply
    0
    • J Jeremy Falcon

      Roger Wright wrote:

      Then came C, and the death spiral of useful language development began.

      It's like just as soon as computers get faster, we want to make the languages more bloated. That way we never enjoy the new speed, we simply keep things the same and have a new cool shiny layer that sounds technical to toss on top of it. I've never made a programming language, but when I think of something like Ruby, which has some nice features, and then I think it's slow as dirt so I'll never use it. Just because CPUs are faster doesn't mean we can waste cycles, otherwise it's always a game of catch up.

      Jeremy Falcon

      G Offline
      G Offline
      grralph1
      wrote on last edited by
      #83

      :thumbsup: Agree with you totally.

      "Rock journalism is people who can't write interviewing people who can't talk for people who can't read." Frank Zappa 1980

      1 Reply Last reply
      0
      • F Forogar

        ...and c# is pointedly better! Hmmm... that doesn't work, sharp ---> points... but there isn't much use of pointers directly so that may be a bad analogy and therefore an even worse pun! However, with puns, the worst is the best so, yeah! :-)

        - I would love to change the world, but they won’t give me the source code.

        F Offline
        F Offline
        Fabio Franco
        wrote on last edited by
        #84

        C# is better because # is composed of four pluses, therefore 4 times better than C: ++ ++

        To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia

        P L B 3 Replies Last reply
        0
        • C Chris Maunder

          Discuss. I've just read The Unreasonable Effectiveness of C[^] and decided to outsource my ranting response to it

          cheers Chris Maunder

          R Offline
          R Offline
          Reese Currie
          wrote on last edited by
          #85

          I think my favorite quotation about C is, "C is memory with syntactic sugar." AFAIK it is original to Dennis Kubes and first appears here: http://denniskubes.com/2013/04/23/how-to-think-about-variables-in-c/[^] The nice thing about C is you can almost always do whatever it is you want to do in C. The downside is, you can almost always do whatever it is you want to do an order of magnitude more easily in something else, even if that "something else" is C++. Nevertheless, that "something else" is almost universally just an interface, in some form or fashion, to C or C++ code.

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            I agree that compilers do produce good code: but they can't interpret what the author is trying to get the hardware to do and that means what they generate can be spectacularly inefficient. I had this problem with the ARM development kit (which was stupid money) - I needed to generate a specific wave output with my data to match the hardware it was interfacing to - and the C / Embedded C++ code just wouldn't do it no matter what I tried. In assembler it was trivial (but I eventually fitted a second PIC processor just to handle the interface - and coded that in C :laugh: )

            Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

            F Offline
            F Offline
            Fabio Franco
            wrote on last edited by
            #86

            OriginalGriff wrote:

            but they can't interpret what the author is trying to get the hardware to do and that means what they generate can be spectacularly inefficient.

            I agree, I love programming in Assembly, but I'm not sure I would beat the compiler, I'm just an enthusiast, don't program in it professionally. I also love C/C++ and was wondering if the ARM compiler you used support mixing up C and Assembly, like:

            __asm
            {
            INC [EAX]
            MOV EBX, [EAX]
            ...
            }

            To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia

            OriginalGriffO 1 Reply Last reply
            0
            • Z ZurdoDev

              :) :thumbsup: VB Code is actually very easy to understand but you're right, the code written by some people in VB is atrocious.

              There are only 10 types of people in the world, those who understand binary and those who don't.

              _ Offline
              _ Offline
              _WinBase_
              wrote on last edited by
              #87

              you can write bad code in any language, and as a programmer of 35 years ive seen more of it than u can shake a stick at, and as far as the VB v c# argument goes, it all compiles to the same IL anyway, the skill is in the programmers interpretation and solution, not for c# snobs to blindly say that its somehow 'better' - its a subjective argument

              Z 1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                It's a good language, but in the modern world it's a bit...outclassed. If you want small tight code for embedded work, then assembler is probably a good bet - though C is very useful there, it does tend to generate bloated code compared to that produced by a good assembler programmer. The C code will be produced faster, but it'll need more RAM, more processor, more...in embedded work you don't always have the luxury! If you want desktop work, then C# or C++ have so many massive advantages in terms of OOPs design that there really isn't any comparison. It'll take you a lot longer to write the same app in C, and it'll almost certainly be harder to maintain. If you want to write a website, then good luck doing it in C... It's a product of it's time: it was designed to be "better than COBOL and FORTRAN". But the world has moved on, and the "competition" is a lot more sophisticated now.

                Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

                M Offline
                M Offline
                MikeTheFid
                wrote on last edited by
                #88

                OriginalGriff wrote:

                If you want small tight code for embedded work, then assembler is probably a good bet - though C is very useful there, it does tend to generate bloated code compared to that produced by a good assembler programmer.

                Agree if you're code is WOUF (Write Once, Use Forever). The choice depends on what the engineering constraints are. If I want to accommodate the hardware people having an upgrade path, going from an 8051 to an 80186 say (to use an archaic example), then portability and reusability are the constraints and C makes much more sense. I really don't want to do the SSDD shuffle for the rest of my egregiously unnatural life. :) ("bloated code" used in reference to "C", Gracie? Oh! I get it. It's a pesky relativity thing.)

                Cheers, Mike Fidler "I intend to live forever - so far, so good." Steven Wright "I almost had a psychic girlfriend but she left me before we met." Also Steven Wright

                1 Reply Last reply
                0
                • F Fabio Franco

                  C# is better because # is composed of four pluses, therefore 4 times better than C: ++ ++

                  To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia

                  P Offline
                  P Offline
                  poc42
                  wrote on last edited by
                  #89

                  No, sorry not 4x+s or sharp but hash... C was so good MS had to make a ... of it ;-)

                  1 Reply Last reply
                  0
                  • _ _WinBase_

                    you can write bad code in any language, and as a programmer of 35 years ive seen more of it than u can shake a stick at, and as far as the VB v c# argument goes, it all compiles to the same IL anyway, the skill is in the programmers interpretation and solution, not for c# snobs to blindly say that its somehow 'better' - its a subjective argument

                    Z Offline
                    Z Offline
                    ZurdoDev
                    wrote on last edited by
                    #90

                    _WinBase_ wrote:

                    he skill is in the programmers interpretation and solution, not for c# snobs to blindly say that its somehow 'better' - its a subjective argument

                    +5. I agree. :thumbsup:

                    There are only 10 types of people in the world, those who understand binary and those who don't.

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      Discuss. I've just read The Unreasonable Effectiveness of C[^] and decided to outsource my ranting response to it

                      cheers Chris Maunder

                      M Offline
                      M Offline
                      MikeTheFid
                      wrote on last edited by
                      #91

                      C is a weakly hyped language.

                      Cheers, Mike Fidler "I intend to live forever - so far, so good." Steven Wright "I almost had a psychic girlfriend but she left me before we met." Also Steven Wright

                      1 Reply Last reply
                      0
                      • F Fabio Franco

                        OriginalGriff wrote:

                        but they can't interpret what the author is trying to get the hardware to do and that means what they generate can be spectacularly inefficient.

                        I agree, I love programming in Assembly, but I'm not sure I would beat the compiler, I'm just an enthusiast, don't program in it professionally. I also love C/C++ and was wondering if the ARM compiler you used support mixing up C and Assembly, like:

                        __asm
                        {
                        INC [EAX]
                        MOV EBX, [EAX]
                        ...
                        }

                        To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia

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

                        Yes: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0205j/Cihccdja.html[^]

                        Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

                        "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

                        F 1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          Yes: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0205j/Cihccdja.html[^]

                          Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

                          F Offline
                          F Offline
                          Fabio Franco
                          wrote on last edited by
                          #93

                          Awesome, thanks

                          To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia

                          1 Reply Last reply
                          0
                          • C Chris Maunder

                            Discuss. I've just read The Unreasonable Effectiveness of C[^] and decided to outsource my ranting response to it

                            cheers Chris Maunder

                            B Offline
                            B Offline
                            Breamore Boy
                            wrote on last edited by
                            #94

                            https://mail.python.org/pipermail/python-list/2002-November/141486.html

                            1 Reply Last reply
                            0
                            • J Jeremy Falcon

                              Roger Wright wrote:

                              Then came C, and the death spiral of useful language development began.

                              It's like just as soon as computers get faster, we want to make the languages more bloated. That way we never enjoy the new speed, we simply keep things the same and have a new cool shiny layer that sounds technical to toss on top of it. I've never made a programming language, but when I think of something like Ruby, which has some nice features, and then I think it's slow as dirt so I'll never use it. Just because CPUs are faster doesn't mean we can waste cycles, otherwise it's always a game of catch up.

                              Jeremy Falcon

                              J Offline
                              J Offline
                              James Curran
                              wrote on last edited by
                              #95

                              Jeremy Falcon wrote:

                              Just because CPUs are faster doesn't mean we can waste cycles, otherwise it's always a game of catch up.

                              True, only if you're doing something extremely CPU-bound. However, the vast majority of current application are highly user-interactive, where , by far, the really speed bottleneck is the user.

                              Truth, James

                              1 Reply Last reply
                              0
                              • C Chris Maunder

                                Discuss. I've just read The Unreasonable Effectiveness of C[^] and decided to outsource my ranting response to it

                                cheers Chris Maunder

                                K Offline
                                K Offline
                                Kenneth Kasajian
                                wrote on last edited by
                                #96

                                Let's start with this. Name any other language other than C. But there's a catch: the language's primary implementation must not currently be in C. So Java, JavaScript, Python don't qualify since they're canonical implementation is written in C. Also, self-hosting doesn't count; in that case, it must not have been bootstrapped with C. I'll start -- Pascal -- first version of Pascal was written in Fortran. Next...

                                ken@kasajian.com / www.kasajian.com

                                P 1 Reply Last reply
                                0
                                • J Jeremy Falcon

                                  Roger Wright wrote:

                                  Then came C, and the death spiral of useful language development began.

                                  It's like just as soon as computers get faster, we want to make the languages more bloated. That way we never enjoy the new speed, we simply keep things the same and have a new cool shiny layer that sounds technical to toss on top of it. I've never made a programming language, but when I think of something like Ruby, which has some nice features, and then I think it's slow as dirt so I'll never use it. Just because CPUs are faster doesn't mean we can waste cycles, otherwise it's always a game of catch up.

                                  Jeremy Falcon

                                  P Offline
                                  P Offline
                                  patbob
                                  wrote on last edited by
                                  #97

                                  Jeremy Falcon wrote:

                                  just as soon as computers get faster, we want to make the languages more bloated. That way we never enjoy the new speed, we simply keep things the same and have a new cool shiny layer that sounds technical to toss on top of it

                                  The assembly guys said the same thing of C. I'd be willing to bet the patch-cable guys said the same thing of assembly. Do you really want to program your current applications using patch cables? How about assembler? It isn't (or shouldn't) be about adding cool-sounding technical layers, each language evolution allows the computer to do more of the mechanical grunt work, freeing us to spend more time doing the creative part. I don't know about you, but I really appreciate that.

                                  We can program with only 1's, but if all you've got are zeros, you've got nothing.

                                  J 1 Reply Last reply
                                  0
                                  • P patbob

                                    Jeremy Falcon wrote:

                                    just as soon as computers get faster, we want to make the languages more bloated. That way we never enjoy the new speed, we simply keep things the same and have a new cool shiny layer that sounds technical to toss on top of it

                                    The assembly guys said the same thing of C. I'd be willing to bet the patch-cable guys said the same thing of assembly. Do you really want to program your current applications using patch cables? How about assembler? It isn't (or shouldn't) be about adding cool-sounding technical layers, each language evolution allows the computer to do more of the mechanical grunt work, freeing us to spend more time doing the creative part. I don't know about you, but I really appreciate that.

                                    We can program with only 1's, but if all you've got are zeros, you've got nothing.

                                    J Offline
                                    J Offline
                                    Jeremy Falcon
                                    wrote on last edited by
                                    #98

                                    patbob wrote:

                                    It isn't (or shouldn't) be about adding cool-sounding technical layers, each language evolution allows the computer to do more of the mechanical grunt work, freeing us to spend more time doing the creative part. I don't know about you, but I really appreciate that.

                                    I totally agree with this, but only if the evolution gives us a real gain. Something like sugar coating at the price of performance I don't agree with. A legitimate paradigm shift I could understand.

                                    Jeremy Falcon

                                    P 1 Reply Last reply
                                    0
                                    • J Jeremy Falcon

                                      patbob wrote:

                                      It isn't (or shouldn't) be about adding cool-sounding technical layers, each language evolution allows the computer to do more of the mechanical grunt work, freeing us to spend more time doing the creative part. I don't know about you, but I really appreciate that.

                                      I totally agree with this, but only if the evolution gives us a real gain. Something like sugar coating at the price of performance I don't agree with. A legitimate paradigm shift I could understand.

                                      Jeremy Falcon

                                      P Offline
                                      P Offline
                                      patbob
                                      wrote on last edited by
                                      #99

                                      Jeremy Falcon wrote:

                                      sugar coating at the price of performance I don't agree with

                                      Often, what has appeared to me at first as a sugar coating, turns out to be a paradigm shift in thinking that I didn't grasp. Not always, but a lot of times.

                                      We can program with only 1's, but if all you've got are zeros, you've got nothing.

                                      1 Reply Last reply
                                      0
                                      • C Chris Maunder

                                        Discuss. I've just read The Unreasonable Effectiveness of C[^] and decided to outsource my ranting response to it

                                        cheers Chris Maunder

                                        C Offline
                                        C Offline
                                        Colborne_Greg
                                        wrote on last edited by
                                        #100

                                        Visual basic 2013. It can utilize every C, C++, and C# library. Plus it looks pretty. For example the "with" operator is in Visual basic but is not in C.

                                        P S 2 Replies Last reply
                                        0
                                        • F Fabio Franco

                                          C# is better because # is composed of four pluses, therefore 4 times better than C: ++ ++

                                          To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia

                                          L Offline
                                          L Offline
                                          Luiz Monad
                                          wrote on last edited by
                                          #101

                                          No, it's because it is a half tone above C.

                                          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