I am dumping C#
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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.
-
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
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
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 -
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.
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
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 -
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).
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?
-
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
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 SmithMarc 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
-
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
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.
-
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
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
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 -
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
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 SmithMarc Clifton wrote:
Two things I will be delighted if I never see again, ever.
good for you:)
-Prakash
-
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
Colin Angus Mackay wrote:
so is calling ADO.NET directly in the presentation layer.
Then we're not just talking ugly, but poor design.
-
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
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 [^]
-
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.
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
-
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
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.
-
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
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...
-
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
-
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).
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