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. To like or dislike C Sharp

To like or dislike C Sharp

Scheduled Pinned Locked Moved The Lounge
csharpc++learning
44 Posts 27 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.
  • A Argonia

    At work i am working alone on the only remaining c++ project. But now new we started working on a new project in c#. So i am writing one of its projects (I pity my coworkers for working with me on the same project) and i was thinking "Oh i will make The class A private so it will be used only with the Class B and just use friend" but of course M$ had other ideas. Today was a good day i found another reason to dislike C Sharp. So i wonder what makes you people like or dislike C Sharp

    Microsoft ... the only place where VARIANT_TRUE != true

    O Offline
    O Offline
    Orjan Westin
    wrote on last edited by
    #12

    Downsides of C#: 1. The generics in C# are far from as powerful and versatile as the templates in C++. 2. The garbage collection (even with IDisposable and "using") means RAII can't be used effectively in C#. Apart from that, I quite like the language. In my current role, the C++:C# split is about 60:40, and I'm fine with that. I wouldn't consider using C++ for a GUI application, while C# is great for that.

    1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      I like it. If you stop thinking "cut down C++" and consider it as a separate language in it's own right, it is very good - in some ways a lot better than C++ in that it is a lot harder to write impenetrable cr@p in C# than it is in C++. If you want a class that is only available to Class B, then declare it as private and part of the B Class:

      public class B
      {
      private class A
      {
      ...
      }
      A a = new A();
      }

      A Offline
      A Offline
      Argonia
      wrote on last edited by
      #13

      Yes i know about that way but the bosses above said that the file is getting too large for the functions and they have to be moved to a new class and file :/ because it is getting too complicated :/

      Microsoft ... the only place where VARIANT_TRUE != true

      L 1 Reply Last reply
      0
      • M Mycroft Holmes

        I'm with Richard on this one, it's development tool, learn it, use it, get paid for it! I don't like web development (specifically javascript) but I still find it interesting. You're only bitching because you are being stuffed into a new syntax, welcome to my world!

        Never underestimate the power of human stupidity RAH

        A Offline
        A Offline
        Argonia
        wrote on last edited by
        #14

        Mycroft Holmes wrote:

        You're only bitching because you are being stuffed into a new syntax, welcome to my world!

        Nah its not that. For example i find F# very interesting and fun. I think that i dislike C# because it is so much as c++ but its not the same thing.

        Microsoft ... the only place where VARIANT_TRUE != true

        1 Reply Last reply
        0
        • L Lost User

          Most C++ programmers starting with C# like it. Maybe you don't like C++?

          A Offline
          A Offline
          Argonia
          wrote on last edited by
          #15

          Alex Fr wrote:

          Maybe you don't like C++?

          No way. I am writing in c++ since my sixth grade. I am pretty sure i don't dislike it :)

          Microsoft ... the only place where VARIANT_TRUE != true

          1 Reply Last reply
          0
          • A Argonia

            Yes i know about that way but the bosses above said that the file is getting too large for the functions and they have to be moved to a new class and file :/ because it is getting too complicated :/

            Microsoft ... the only place where VARIANT_TRUE != true

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

            You can always put your internal classes into a separate source file using partial classes

            MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

            OriginalGriffO 1 Reply Last reply
            0
            • A Argonia

              At work i am working alone on the only remaining c++ project. But now new we started working on a new project in c#. So i am writing one of its projects (I pity my coworkers for working with me on the same project) and i was thinking "Oh i will make The class A private so it will be used only with the Class B and just use friend" but of course M$ had other ideas. Today was a good day i found another reason to dislike C Sharp. So i wonder what makes you people like or dislike C Sharp

              Microsoft ... the only place where VARIANT_TRUE != true

              G Offline
              G Offline
              Garth J Lancaster
              wrote on last edited by
              #17

              yes^4 :-) (all upvoted) 'g'

              1 Reply Last reply
              0
              • L Lost User

                You can always put your internal classes into a separate source file using partial classes

                MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

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

                Precisely!

                "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

                G 1 Reply Last reply
                0
                • A Argonia

                  At work i am working alone on the only remaining c++ project. But now new we started working on a new project in c#. So i am writing one of its projects (I pity my coworkers for working with me on the same project) and i was thinking "Oh i will make The class A private so it will be used only with the Class B and just use friend" but of course M$ had other ideas. Today was a good day i found another reason to dislike C Sharp. So i wonder what makes you people like or dislike C Sharp

                  Microsoft ... the only place where VARIANT_TRUE != true

                  R Offline
                  R Offline
                  Rage
                  wrote on last edited by
                  #19

                  Actually, C++ is the best language ever, so any other will look pale compared to it. /sits down and grabs pop-corn

                  ~RaGE();

                  I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                  L A 2 Replies Last reply
                  0
                  • R Rage

                    Actually, C++ is the best language ever, so any other will look pale compared to it. /sits down and grabs pop-corn

                    ~RaGE();

                    I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

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

                    Rage wrote:

                    C++ is the best language ever

                    Sorry but that accolade will always go to C, as designed by the great K&R.

                    Veni, vidi, abiit domum

                    N 1 Reply Last reply
                    0
                    • J Jean A Brandelero

                      It's not delphi.

                      G Offline
                      G Offline
                      glennPattonPub
                      wrote on last edited by
                      #21

                      Burn the heretic!! :-D

                      1 Reply Last reply
                      0
                      • R Rage

                        Actually, C++ is the best language ever, so any other will look pale compared to it. /sits down and grabs pop-corn

                        ~RaGE();

                        I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                        A Offline
                        A Offline
                        Argonia
                        wrote on last edited by
                        #22

                        The beauty of c++ is that it will never die. It doesn't stop growing. For example in the latest update c++ 11 we see something very interesting for strongly typed language, the type auto. After few years/decades/centuries(lets hope) M$ will stop supporting .Net Platform and c# will die with it. C++ doesn't need any Platforms unlike c#

                        Microsoft ... the only place where VARIANT_TRUE != true

                        P 1 Reply Last reply
                        0
                        • L Lost User

                          Rage wrote:

                          C++ is the best language ever

                          Sorry but that accolade will always go to C, as designed by the great K&R.

                          Veni, vidi, abiit domum

                          N Offline
                          N Offline
                          Nagy Vilmos
                          wrote on last edited by
                          #23

                          ... which we all know, in the depth of our hearts, was a badly implemented BASIC compiler...

                          speramus in juniperus

                          1 Reply Last reply
                          0
                          • A Argonia

                            At work i am working alone on the only remaining c++ project. But now new we started working on a new project in c#. So i am writing one of its projects (I pity my coworkers for working with me on the same project) and i was thinking "Oh i will make The class A private so it will be used only with the Class B and just use friend" but of course M$ had other ideas. Today was a good day i found another reason to dislike C Sharp. So i wonder what makes you people like or dislike C Sharp

                            Microsoft ... the only place where VARIANT_TRUE != true

                            pkfoxP Offline
                            pkfoxP Offline
                            pkfox
                            wrote on last edited by
                            #24

                            if(ThisProjectSuitsc++()) UseC++(); else UseAnotherLanguage(); We can’t stop here, this is bat country - Hunter S Thompson RIP

                            1 Reply Last reply
                            0
                            • A Argonia

                              At work i am working alone on the only remaining c++ project. But now new we started working on a new project in c#. So i am writing one of its projects (I pity my coworkers for working with me on the same project) and i was thinking "Oh i will make The class A private so it will be used only with the Class B and just use friend" but of course M$ had other ideas. Today was a good day i found another reason to dislike C Sharp. So i wonder what makes you people like or dislike C Sharp

                              Microsoft ... the only place where VARIANT_TRUE != true

                              G Offline
                              G Offline
                              glennPattonPub
                              wrote on last edited by
                              #25

                              I got into the whole C# vs. C++ with a previous company the end result was C++ will let you build the gallows and hang yourself, while C# will give you the gallows but makes it hard(er) to hang your self. I must admit not to being very fond of object orientation & classes (give me a struct any day!) My Two pennies worth any now back to stick a test rig together. :)

                              1 Reply Last reply
                              0
                              • OriginalGriffO OriginalGriff

                                Precisely!

                                G Offline
                                G Offline
                                Gizz
                                wrote on last edited by
                                #26

                                Seconded. Anyway, friend? really?

                                A 1 Reply Last reply
                                0
                                • A Argonia

                                  The beauty of c++ is that it will never die. It doesn't stop growing. For example in the latest update c++ 11 we see something very interesting for strongly typed language, the type auto. After few years/decades/centuries(lets hope) M$ will stop supporting .Net Platform and c# will die with it. C++ doesn't need any Platforms unlike c#

                                  Microsoft ... the only place where VARIANT_TRUE != true

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

                                  Argonia wrote:

                                  After few years/decades/centuries(lets hope) M$ will stop supporting .Net Platform and c# will die with it.

                                  Why would C# die with it? It doesn't need to run on .NET - there is at least one alternative to the .NET framework, and C# is now producing code for iOS and Android as well.

                                  P 1 Reply Last reply
                                  0
                                  • OriginalGriffO OriginalGriff

                                    I like it. If you stop thinking "cut down C++" and consider it as a separate language in it's own right, it is very good - in some ways a lot better than C++ in that it is a lot harder to write impenetrable cr@p in C# than it is in C++. If you want a class that is only available to Class B, then declare it as private and part of the B Class:

                                    public class B
                                    {
                                    private class A
                                    {
                                    ...
                                    }
                                    A a = new A();
                                    }

                                    C Offline
                                    C Offline
                                    Chris Losinger
                                    wrote on last edited by
                                    #28

                                    OriginalGriff wrote:

                                    it is a lot harder to write impenetrable cr@p in C# than it is in C++.

                                    maybe, as long as you don't get near LINQ or anonymous functions.

                                    image processing toolkits | batch image processing

                                    OriginalGriffO D R 3 Replies Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      I like it. If you stop thinking "cut down C++" and consider it as a separate language in it's own right, it is very good - in some ways a lot better than C++ in that it is a lot harder to write impenetrable cr@p in C# than it is in C++. If you want a class that is only available to Class B, then declare it as private and part of the B Class:

                                      public class B
                                      {
                                      private class A
                                      {
                                      ...
                                      }
                                      A a = new A();
                                      }

                                      W Offline
                                      W Offline
                                      W Balboos GHB
                                      wrote on last edited by
                                      #29

                                      Impenetrable? Humph. Anyway - not to start a debate, but don't you find something intrinsically wrong with your example? Class inside of class (inside of class (inside of class (inside of class (inside of class (inside of class . . . ??? I look at it this way C# is a good lure to get lifetime-rookies away from VB. But it hides what you're really doing. There's no distinction, visibly between a namespace or a class in terms of separation, for example. (in C++, we have ::, ., and -> vs. . the C#). It makes things easier and masks understanding. I also like the possibility of multiple inheritance without a cascade of derivations - not too often, but when I want it I want it) It's not so much cut-down as light. Per my VB->C# view, that's a good thing . . . as an intermediate step to the real thing.

                                      "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                      "As far as we know, our computer has never had an undetected error." - Weisert

                                      "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                      OriginalGriffO 1 Reply Last reply
                                      0
                                      • C Chris Losinger

                                        OriginalGriff wrote:

                                        it is a lot harder to write impenetrable cr@p in C# than it is in C++.

                                        maybe, as long as you don't get near LINQ or anonymous functions.

                                        image processing toolkits | batch image processing

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

                                        They can get a bit...difficult...but not as much as a carelessly written regex! :laugh:

                                        "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

                                        1 Reply Last reply
                                        0
                                        • A Argonia

                                          At work i am working alone on the only remaining c++ project. But now new we started working on a new project in c#. So i am writing one of its projects (I pity my coworkers for working with me on the same project) and i was thinking "Oh i will make The class A private so it will be used only with the Class B and just use friend" but of course M$ had other ideas. Today was a good day i found another reason to dislike C Sharp. So i wonder what makes you people like or dislike C Sharp

                                          Microsoft ... the only place where VARIANT_TRUE != true

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

                                          Here is my point of view[^]. It was written in 2008, and after that I had opportunity to work with both languages, but my opinion is pretty much the same: C# is good enough for a typical enterprise application, but there is really nothing interesting or exciting about it.

                                          utf8-cpp

                                          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