Click here to Skip to main content
15,888,461 members

Survey Results

C# - Cool or UnCool?   [Edit]

Survey period: 3 Jul 2000 to 9 Jul 2000

C# is out of the closet. So what d'ya think?

OptionVotes% 
Way cool. Can't wait to get my hands on a compiler24231.72
Doesn't fuss me either way17623.07
What a dud. I'm not impressed.34545.22



 
GeneralC# will.. Pin
2d15-Jul-00 4:25
2d15-Jul-00 4:25 
GeneralMicrosoft is behind the rise of Java and they will one responsible for the fall of COM, C# .... Pin
arvind singh14-Jul-00 10:40
arvind singh14-Jul-00 10:40 
GeneralRe: Microsoft is behind the rise of Java and they will one responsible for the fall of COM, C# .... Pin
Member 147417-Jul-00 14:24
Member 147417-Jul-00 14:24 
GeneralC# - a J++ rehash? Pin
Thomas Bratt7-Jul-00 2:04
Thomas Bratt7-Jul-00 2:04 
GeneralRe: C# - a J++ rehash? Pin
Member 26277-Jul-00 4:54
Member 26277-Jul-00 4:54 
GeneralRe: C# - a J++ rehash? Pin
Eddy Celis7-Jul-00 12:48
professionalEddy Celis7-Jul-00 12:48 
GeneralRe: C# - a J++ rehash? Pin
shimon8-Jul-00 19:55
shimon8-Jul-00 19:55 
GeneralRe: C# - a J++ rehash? Pin
Martin Lapierre12-Jul-00 6:03
Martin Lapierre12-Jul-00 6:03 
GeneralRe: C# - a J++ rehash? Pin
CloudJin9-Jul-00 20:19
CloudJin9-Jul-00 20:19 
GeneralRe: C# - a J++ rehash? Pin
Uncle Sam10-Jul-00 21:18
Uncle Sam10-Jul-00 21:18 
GeneralRe: C# - a J++ rehash? Pin
Member 147417-Jul-00 13:59
Member 147417-Jul-00 13:59 
GeneralIts gotta be good... Pin
Daz Richards3-Jul-00 12:29
Daz Richards3-Jul-00 12:29 
GeneralRe: Its gotta be good... Pin
Uncle Sam11-Jul-00 20:18
Uncle Sam11-Jul-00 20:18 
GeneralRe: Its gotta be good... Pin
Uncle Sam11-Jul-00 20:18
Uncle Sam11-Jul-00 20:18 
GeneralRe: Its gotta be good... Pin
Daz Richards11-Jul-00 23:18
Daz Richards11-Jul-00 23:18 
GeneralRe: Its gotta be good... Pin
Uncle Sam12-Jul-00 3:56
Uncle Sam12-Jul-00 3:56 
GeneralMy assessment Pin
Alvaro Mendez3-Jul-00 10:45
Alvaro Mendez3-Jul-00 10:45 
GeneralRe: My assessment Pin
Keith Hill6-Jul-00 14:11
Keith Hill6-Jul-00 14:11 
GeneralRe: My assessment Pin
George6-Jul-00 22:38
George6-Jul-00 22:38 
GeneralRe: My assessment Pin
Member 11277-Jul-00 1:57
Member 11277-Jul-00 1:57 
GeneralRe: My assessment Pin
Alvaro Mendez7-Jul-00 5:21
Alvaro Mendez7-Jul-00 5:21 
I agree Dave!

If templates weren't as useful as they are, I don't thing the Standard Library would have employed them as extensively. They're just awesome and for all the reasons you stated so well.

On the second point, I couldn't have said it better myself. Nothing beats allocation of objects on the stack, especially for encapsulating resource get/release scenarios! It's such a powerful and handy feature of C++ (aside from being so much faster than allocating on the heap).

Unfortunately allocation on the stack can cause problems for example when the address of the object (on the stack) is passed to a function which holds on to it. Once the object goes out of scope, the passed pointer is no longer valid and unpredictable things happen:

void foo()
{
CMyObj obj;
bar(&obj);
}

void bar(CMyObj* pObj)
{
g_someMyObjCollection.Add(pObj);
}

In Java and C# this wouldn't be a problem because the object would always be allocated on the heap and the garbage collector would know about all the places where it's being used. Still, in my opinion, only an "inexperienced" (or heavily drunk) C++ programmer would write code like the one above. So I don't agree that Java and C# should have been handicapped on that pretense.

So as much as I like having a garbage collector that can free objects whose lifetimes I don't care to track, I'd also like to be able to control the lifetimes of objects and thus take advantage of destructors. This isn't possible in C# and Java but with the aid of some third-party garbage collection libraries it can be done in C++.

Alvar
GeneralRe: My assessment Pin
Alvaro Mendez7-Jul-00 5:58
Alvaro Mendez7-Jul-00 5:58 
GeneralMSDN Pin
Member 4642-Jul-00 21:27
Member 4642-Jul-00 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.