Re: Programming languages
By: Nightfox to art on Tue May 24 2011 23:07:32
Hi Nightfox,
The other "big thing" for me is that C# takes care of memory
management... b
I'm not sure if I'm a masochist about some things, but sometimes I like the manual memory management.. It feels similar to driving a car with a manual vs.
an automatic transmission - The automatic is nice, but sometimes I like
full control. There are times when I appreciate that C++ puts the memory
That's a really good point. By that same token, you should be coding in ASM, no? ;)
All jokes aside, I do agree with you, and that was my argument about 10 years ago when I was developing in Java. However, there has been a paradigm shift in the past decades from "I need to control exactly what the computer does" to something closer to "The computer can be trusted to do X, Y, Z". In that token, my stance is that (at least for .NET C#), I can trust it to collect garbage in a better way than I could--both in terms of reliability and human error.
:) I think C# is really nice, but I still think the good thing about
C++ is that if you can learn C++, it should be fairly easy to learn other languages, since C++ has so many features. C# has a lot of features too though.. different features, too. One thing that does bug me a little
C# is that it lacks multiple inheritance. That can be useful in some situations.
Multiple inheritance: I hear that. I read a very lengthy and technical justification for why this route was rejected by MSDN a few months ago... I'll try to dig it up later. I have only needed this once in my life with C#, and that time I followed some article to get the same functionality as multiple inheritance:
http://www.codingday.com/multiple-inheritance-in-c-using-dynamic-features/
Essentially the gist of it is that coding by contract is ultra important for the .NET folks, and various languages do not align how they deal with multiple inheritance (Python does it differently than C++), which breaks the CLR model. Without going into nitty gritties, when you inherit from multiple sources it becomes a real mess as to who is authoritative/gets first dibs, etc, and without the languages themselves aligning this strategy, I fear CLR languages may never support multiple inheritance.
I wonder if I could post more on DeveloperNet to get more activity going..
If you haven't noticed, that's my strategy too ;)
Kind regards,
________________ _______
\_____ __ \ ___\
\ __ \ <_ \ @ fatcats[dot]poorcoding[dot]com
\_______\___\___\___\ ------------------------------------
f a t c a t s b b s
---
þ Synchronet þ fatcats bbs -
http://fatcats.poorcoding.com