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. I am dumping C#

I am dumping C#

Scheduled Pinned Locked Moved The Lounge
csharpc++comjsoncareer
25 Posts 12 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.
  • P Prakash Nadar

    I know I will be flamed for this post. C++ is what earns me my bread. But I take programming as a hobby and not as a job, so most of the time I have fun programming and debugging :) Since I am in France and alone, I got lot of time during the weekends to do something new, so I took C# the much talked about language to learn and also to learn new things about .NET 2 Framework. Yeah it is really good and of cource it makes programming very easy. What would take me 2 weeks or more to do took me a weekend in C#, it reminded me of VB when i was doing COM programming, using a COM in VB is way to easy to do than VC++ But when i wanted to something out of the way, i.e. calling windows api, then there was this p/invoke stuff that makes the C# code file very ugly. Then i read couple of Nishant's article on C++/CLI. And now I am convinced that I have to dump C#. If you are programming in C++/CLI, then .NET libs are just like any other library used in C++ (plus other mambo jumbo). Then I thought for a while why C# has become very popular. I know one guy in CP, he is very good in C++, he once said that when VB programmers comes to his house, they ask him the way to the toilet to clean. And now i belive he lurks a lot in C# forum and posted many articles in C#. The point is C# is close to easiness of VB but syntactically it is like C++. So all the C++ programmers who didn't want to have the VB tag on them because it is so uncool to be programming in VB (even if sometimes it is the right tool for the job) went straight for C# because it is not VB. But a person who likes to flex his C++ muscle every now and then, will find C# very restrictive just like VB. So now I move on to C++/CLI. Good luck to me.


    -Prakash

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

    Mr.Prakash wrote:

    So all the C++ programmers who didn't want to have the VB tag on them because it is so uncool to be programming in VB (even if sometimes it is the right tool for the job) went straight for C# because it is not VB.

    The point is: VB and C# are targeting the same niche (business or "enterprise" software) and they both do it well. Comparing C# with C++ has little sense to me since they are targeted to different uses. Now, for C++/CLI, the jury is still out, but I wouldn't bet any money on it.


    Programming Blog utf8-cpp

    1 Reply Last reply
    0
    • P Prakash Nadar

      Marc Clifton wrote:

      Good luck.

      Thanks,

      Marc Clifton wrote:

      Personally, I find C++/CLI to be truly ugly and will never touch it. I'd rather keep both languages well separated.

      Well, i cant comment on it coz i havent truely started developing in C++/CLI. But the code samples that I have seen so far is quite similar to usual C++ except for numerous gcnew ref and val around. But it is the same old c++, like where to use free or delete for a memory allocated by new or malloc.


      -Prakash

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #17

      Mr.Prakash wrote:

      like where to use free or delete for a memory allocated by new or malloc.

      Two things I will be delighted if I never see again, ever. :) Marc

      Thyme In The Country

      People are just notoriously impossible. --DavidCrow
      There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
      People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

      P 1 Reply Last reply
      0
      • M Marc Clifton

        Mr.Prakash wrote:

        like where to use free or delete for a memory allocated by new or malloc.

        Two things I will be delighted if I never see again, ever. :) Marc

        Thyme In The Country

        People are just notoriously impossible. --DavidCrow
        There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
        People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

        P Offline
        P Offline
        Prakash Nadar
        wrote on last edited by
        #18

        Marc Clifton wrote:

        Two things I will be delighted if I never see again, ever.

        good for you:)


        -Prakash

        1 Reply Last reply
        0
        • C Colin Angus Mackay

          Mr.Prakash wrote:

          But when i wanted to something out of the way, i.e. calling windows api, then there was this p/invoke stuff that makes the C# code file very ugly.

          On the rare occasion that I have to do that I abstract those calls in to a separate class (or classes) then when I need to use it in the business logic the code is clear and easy to read. Nothing ugly to see. Sure the abstract class is a bit ugly, but then so is calling ADO.NET directly in the presentation layer.


          Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

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

          Colin Angus Mackay wrote:

          so is calling ADO.NET directly in the presentation layer.

          Then we're not just talking ugly, but poor design.

          1 Reply Last reply
          0
          • P Prakash Nadar

            I know I will be flamed for this post. C++ is what earns me my bread. But I take programming as a hobby and not as a job, so most of the time I have fun programming and debugging :) Since I am in France and alone, I got lot of time during the weekends to do something new, so I took C# the much talked about language to learn and also to learn new things about .NET 2 Framework. Yeah it is really good and of cource it makes programming very easy. What would take me 2 weeks or more to do took me a weekend in C#, it reminded me of VB when i was doing COM programming, using a COM in VB is way to easy to do than VC++ But when i wanted to something out of the way, i.e. calling windows api, then there was this p/invoke stuff that makes the C# code file very ugly. Then i read couple of Nishant's article on C++/CLI. And now I am convinced that I have to dump C#. If you are programming in C++/CLI, then .NET libs are just like any other library used in C++ (plus other mambo jumbo). Then I thought for a while why C# has become very popular. I know one guy in CP, he is very good in C++, he once said that when VB programmers comes to his house, they ask him the way to the toilet to clean. And now i belive he lurks a lot in C# forum and posted many articles in C#. The point is C# is close to easiness of VB but syntactically it is like C++. So all the C++ programmers who didn't want to have the VB tag on them because it is so uncool to be programming in VB (even if sometimes it is the right tool for the job) went straight for C# because it is not VB. But a person who likes to flex his C++ muscle every now and then, will find C# very restrictive just like VB. So now I move on to C++/CLI. Good luck to me.


            -Prakash

            M Offline
            M Offline
            Michael P Butler
            wrote on last edited by
            #20

            Mr.Prakash wrote:

            But a person who likes to flex his C++ muscle every now and then, will find C# very restrictive just like VB.

            Restrictive how? Whilst it is always about choosing the right tool for the job, C# has proved to be very flexible and given me a lot of power. C++/CLI is nice, but when working in a managed environment fulltime there just doesn't seem to be a need.

            Michael CP Blog [^] Development Blog [^]

            1 Reply Last reply
            0
            • P PIEBALDconsult

              Certainly use the tool that's right for you to do the job.

              Mr.Prakash wrote:

              calling windows api, then there was this p/invoke stuff that makes the C# code file very ugly.

              I put that stuff in a library routine, in its own file so I never have to look at it again.

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #21

              PIEBALDconsult wrote:

              I put that stuff in a library routine, in its own file so I never have to look at it again

              Precicely my thoughts. No point throwing out C# as a whole just over one minor issue that is easily resolved.


              Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

              1 Reply Last reply
              0
              • P Prakash Nadar

                In one of the article of Nishant, he has demonstrated the performance difference between C++/CLI and C#, so i guess for a complex or a big C# project, the performance will be terribly hit.


                -Prakash

                R Offline
                R Offline
                Robert Rohde
                wrote on last edited by
                #22

                Why does everybody think that the performance reduces with the size of a project? Think about it - it doesn't make any sense at all.

                1 Reply Last reply
                0
                • P Prakash Nadar

                  I know I will be flamed for this post. C++ is what earns me my bread. But I take programming as a hobby and not as a job, so most of the time I have fun programming and debugging :) Since I am in France and alone, I got lot of time during the weekends to do something new, so I took C# the much talked about language to learn and also to learn new things about .NET 2 Framework. Yeah it is really good and of cource it makes programming very easy. What would take me 2 weeks or more to do took me a weekend in C#, it reminded me of VB when i was doing COM programming, using a COM in VB is way to easy to do than VC++ But when i wanted to something out of the way, i.e. calling windows api, then there was this p/invoke stuff that makes the C# code file very ugly. Then i read couple of Nishant's article on C++/CLI. And now I am convinced that I have to dump C#. If you are programming in C++/CLI, then .NET libs are just like any other library used in C++ (plus other mambo jumbo). Then I thought for a while why C# has become very popular. I know one guy in CP, he is very good in C++, he once said that when VB programmers comes to his house, they ask him the way to the toilet to clean. And now i belive he lurks a lot in C# forum and posted many articles in C#. The point is C# is close to easiness of VB but syntactically it is like C++. So all the C++ programmers who didn't want to have the VB tag on them because it is so uncool to be programming in VB (even if sometimes it is the right tool for the job) went straight for C# because it is not VB. But a person who likes to flex his C++ muscle every now and then, will find C# very restrictive just like VB. So now I move on to C++/CLI. Good luck to me.


                  -Prakash

                  R Offline
                  R Offline
                  Rocky Moore
                  wrote on last edited by
                  #23

                  Mr.Prakash wrote:

                  Since I am in France and alone, I got lot of time during the weekends to do something new, so I took C# the much talked about language to learn and also to learn new things about .NET 2 Framework.

                  I have to wonder if you gave enough time to try C# (should use as main development for a few months to really sink your teeth into it and get use to letting it work for you and not against you). Or maybe that your approached it with a bais against it from the start (based your tone against it as comparing it to VB.NET which has a completely different syntax). Some people however, do not like change, and maybe that applies a bit. I know when I first started looking at C#/.NET I was ready for a change after working with C/C++ since 1985. Now, I would never go back nor would I take a job that required it, but like I felt about Assembler after moving to C/C++. You want to talk about taking time and having great performance, move to Assembler.. Speaking of performance, while in a CAD program or some games (even that is moving over), I see little to be concerned about performance. Quad processors are out and things are only moving faster and faster, seems silly wasting time on things that are of little importance or will fade away within the next year or so.

                  Mr.Prakash wrote:

                  Yeah it is really good and of cource it makes programming very easy. What would take me 2 weeks or more to do took me a weekend in C#,

                  Hmm.. Your words that it makes programming eaiser and takes far less time to create software. I cannot see why you would want to spend "more" time doing these things just for the fun of it. I have a lot better things I could "throw away" time on :)

                  Rocky <>< Latest Code Blog Post: Vista for Web Development, Read this first! Latest Tech Blog Post: USA City Burnt To Death...

                  1 Reply Last reply
                  0
                  • P Prakash Nadar

                    I know I will be flamed for this post. C++ is what earns me my bread. But I take programming as a hobby and not as a job, so most of the time I have fun programming and debugging :) Since I am in France and alone, I got lot of time during the weekends to do something new, so I took C# the much talked about language to learn and also to learn new things about .NET 2 Framework. Yeah it is really good and of cource it makes programming very easy. What would take me 2 weeks or more to do took me a weekend in C#, it reminded me of VB when i was doing COM programming, using a COM in VB is way to easy to do than VC++ But when i wanted to something out of the way, i.e. calling windows api, then there was this p/invoke stuff that makes the C# code file very ugly. Then i read couple of Nishant's article on C++/CLI. And now I am convinced that I have to dump C#. If you are programming in C++/CLI, then .NET libs are just like any other library used in C++ (plus other mambo jumbo). Then I thought for a while why C# has become very popular. I know one guy in CP, he is very good in C++, he once said that when VB programmers comes to his house, they ask him the way to the toilet to clean. And now i belive he lurks a lot in C# forum and posted many articles in C#. The point is C# is close to easiness of VB but syntactically it is like C++. So all the C++ programmers who didn't want to have the VB tag on them because it is so uncool to be programming in VB (even if sometimes it is the right tool for the job) went straight for C# because it is not VB. But a person who likes to flex his C++ muscle every now and then, will find C# very restrictive just like VB. So now I move on to C++/CLI. Good luck to me.


                    -Prakash

                    E Offline
                    E Offline
                    ednrgc
                    wrote on last edited by
                    #24

                    For web programming, I have found C# is a natural progression from C++. Version 3 of C# is a major step in making it the most powerful language. For Windows programming, I'm still using Delphi (no runtime DLLs at all).

                    P 1 Reply Last reply
                    0
                    • E ednrgc

                      For web programming, I have found C# is a natural progression from C++. Version 3 of C# is a major step in making it the most powerful language. For Windows programming, I'm still using Delphi (no runtime DLLs at all).

                      P Offline
                      P Offline
                      Prakash Nadar
                      wrote on last edited by
                      #25

                      ednrgc wrote:

                      For web programming, I have found C# is a natural progression from C++. Version 3 of C# is a major step in making it the most powerful language.

                      I dont know web programming, so C# loose points points for me.

                      ednrgc wrote:

                      For Windows programming, I'm still using Delphi (no runtime DLLs at all).

                      :) Never tried Delphi. My most of my development is in pure C++ for the mobile phones. I just dab around in VC++ for personal fun. :-D


                      -Prakash

                      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