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 Offline
    P Offline
    Prakash Nadar
    wrote on last edited by
    #1

    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 J C P M 9 Replies 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

      N Offline
      N Offline
      Nnamdi Onyeyiri
      wrote on last edited by
      #2

      With the amount of C ive been doing, I guess i could be accused of dumping C# for C. :~


      website //profile Another Post by NnamdiOnyeyiri

      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

        J Offline
        J Offline
        J Dunlap
        wrote on last edited by
        #3

        I find C# concise and expressive, and that's what I love about it. It's definitely a higher-level language (and therefore missing some low-level aspects) but that's why it has the clean, expressive constructs it has. I like it best for everyday coding. But C++/CLI definitely has its strengths that C# does not have as well! Especially, as you mentioned, in the area of native interop. I'm one of the relatively few people who have both learned it and like it (most people don't get to the "learning it" part). It's just not what I find to be best for my main development work, because it takes longer to code in and is less clean and concise (IMO).

        P N 2 Replies Last reply
        0
        • J J Dunlap

          I find C# concise and expressive, and that's what I love about it. It's definitely a higher-level language (and therefore missing some low-level aspects) but that's why it has the clean, expressive constructs it has. I like it best for everyday coding. But C++/CLI definitely has its strengths that C# does not have as well! Especially, as you mentioned, in the area of native interop. I'm one of the relatively few people who have both learned it and like it (most people don't get to the "learning it" part). It's just not what I find to be best for my main development work, because it takes longer to code in and is less clean and concise (IMO).

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

          J. Dunlap wrote:

          I find C# concise and expressive, and that's what I love about it. It's definitely a higher-level language (and therefore missing some low-level aspects) but that's why it has the clean, expressive constructs it has. I like it best for everyday coding.

          believe me, this is what was said about VB before C# came into the picture.


          -Prakash

          J R 2 Replies Last reply
          0
          • P Prakash Nadar

            J. Dunlap wrote:

            I find C# concise and expressive, and that's what I love about it. It's definitely a higher-level language (and therefore missing some low-level aspects) but that's why it has the clean, expressive constructs it has. I like it best for everyday coding.

            believe me, this is what was said about VB before C# came into the picture.


            -Prakash

            J Offline
            J Offline
            J Dunlap
            wrote on last edited by
            #5

            wordy!=concise :-)

            1 Reply Last reply
            0
            • P Prakash Nadar

              J. Dunlap wrote:

              I find C# concise and expressive, and that's what I love about it. It's definitely a higher-level language (and therefore missing some low-level aspects) but that's why it has the clean, expressive constructs it has. I like it best for everyday coding.

              believe me, this is what was said about VB before C# came into the picture.


              -Prakash

              R Offline
              R Offline
              Rama Krishna Vavilala
              wrote on last edited by
              #6

              and ... Are you implying it is not a true statement?


              Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

              P 1 Reply Last reply
              0
              • R Rama Krishna Vavilala

                and ... Are you implying it is not a true statement?


                Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

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

                Rama Krishna Vavilala wrote:

                Are you implying it is not a true statement?

                it is true for C# now as it was true for VB then.


                -Prakash

                R 1 Reply Last reply
                0
                • P Prakash Nadar

                  Rama Krishna Vavilala wrote:

                  Are you implying it is not a true statement?

                  it is true for C# now as it was true for VB then.


                  -Prakash

                  R Offline
                  R Offline
                  Rama Krishna Vavilala
                  wrote on last edited by
                  #8

                  In that case I fully agree. However, C++\CLI is not the answer IMHO. Once you proceed doing some real life apps, you will get frustrated. COM Interop is the way to go in my opinion;)


                  Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

                  P 1 Reply Last reply
                  0
                  • R Rama Krishna Vavilala

                    In that case I fully agree. However, C++\CLI is not the answer IMHO. Once you proceed doing some real life apps, you will get frustrated. COM Interop is the way to go in my opinion;)


                    Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

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

                    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 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

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

                      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 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

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

                        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.

                        M C 2 Replies 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
                          Marc Clifton
                          wrote on last edited by
                          #12

                          Mr.Prakash wrote:

                          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.

                          Yup. Describes my decision making process!

                          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.

                          I can't compare it to VB, but having come from a C++ environment, when I look at C++ code now, after 4 years or so of C# programming, I kringe. I haven't found anything that makes C# restrictive. Yeah, P/Invoke can be annoying, and yes, for one of my client's I would never code their algorithms in C#. But all the other stuff can live happily in C# and can easily interface with the C++ code.

                          Mr.Prakash wrote:

                          So now I move on to C++/CLI. Good luck to me.

                          Good luck. Personally, I find C++/CLI to be truly ugly and will never touch it. I'd rather keep both languages well separated. 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
                          • 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.

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

                            PIEBALDconsult wrote:

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

                            Exactly. 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

                            1 Reply Last reply
                            0
                            • J J Dunlap

                              I find C# concise and expressive, and that's what I love about it. It's definitely a higher-level language (and therefore missing some low-level aspects) but that's why it has the clean, expressive constructs it has. I like it best for everyday coding. But C++/CLI definitely has its strengths that C# does not have as well! Especially, as you mentioned, in the area of native interop. I'm one of the relatively few people who have both learned it and like it (most people don't get to the "learning it" part). It's just not what I find to be best for my main development work, because it takes longer to code in and is less clean and concise (IMO).

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

                              J. Dunlap wrote:

                              find C# concise and expressive, and that's what I love about it.

                              Funny. I find it wordy and bloated. Have you looked at Boo, Haskell or any ML dialect?


                              Programming Blog utf8-cpp

                              1 Reply Last reply
                              0
                              • M Marc Clifton

                                Mr.Prakash wrote:

                                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.

                                Yup. Describes my decision making process!

                                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.

                                I can't compare it to VB, but having come from a C++ environment, when I look at C++ code now, after 4 years or so of C# programming, I kringe. I haven't found anything that makes C# restrictive. Yeah, P/Invoke can be annoying, and yes, for one of my client's I would never code their algorithms in C#. But all the other stuff can live happily in C# and can easily interface with the C++ code.

                                Mr.Prakash wrote:

                                So now I move on to C++/CLI. Good luck to me.

                                Good luck. Personally, I find C++/CLI to be truly ugly and will never touch it. I'd rather keep both languages well separated. 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
                                #15

                                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 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

                                  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
                                          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