Click here to Skip to main content
15,915,336 members

Survey Results

The trend in programming   [Edit]

Survey period: 14 Jan 2002 to 20 Jan 2002

Many of the new features in .NET and other frameworks are aimed at making programming simpler, faster and less bug ridden. Does the trend towards smarter programming environments mean dumber programmers?

OptionVotes% 
The more help we can get the better our apps will be.345.26
Better tools and environments means higher productivity.7611.76
Applications are getting more complex so these tools merely help us keep up.9414.55
Programming is only half of it - you still need smart developers to design the apps in the first place.25239.01
Making programming easier means dumber programmers will be writing apps (meaning poorer quality apps)10816.72
Features such as garbage collection mean lazier programmers and poorer quality apps497.59
I don't see it changing things at all.335.11



 
GeneralRe: Pointers are for code monkeys Pin
Brian C Hart14-Jan-02 12:06
professionalBrian C Hart14-Jan-02 12:06 
GeneralRe: Pointers are for code monkeys Pin
Yury Sulsky14-Jan-02 16:16
Yury Sulsky14-Jan-02 16:16 
GeneralRe: Pointers are for code monkeys Pin
Glenn Dawson15-Jan-02 11:13
Glenn Dawson15-Jan-02 11:13 
GeneralRe: Pointers are for code monkeys Pin
Mike Klimentiev15-Jan-02 15:11
Mike Klimentiev15-Jan-02 15:11 
GeneralEnglightment me Pin
NormDroid14-Jan-02 22:35
professionalNormDroid14-Jan-02 22:35 
GeneralWell, what did you expect ??? Pin
Christian Graus14-Jan-02 10:27
protectorChristian Graus14-Jan-02 10:27 
GeneralGarbage collection and sandboxes are for weenies Pin
Chris Losinger14-Jan-02 10:07
professionalChris Losinger14-Jan-02 10:07 
GeneralRe: Garbage collection and sandboxes are for weenies Pin
Alvaro Mendez14-Jan-02 11:07
Alvaro Mendez14-Jan-02 11:07 
I take it this thread is meant to spark some sort of debate. Well, let's get it on!

1. Imagine if C++ didn't have stack allocation of objects, just like Java or C#, where all objects must be allocated with new. Since C++ also doesn't have a garbage collector, you'd then need to remember to call delete for every object allocated. That would really suck! Everytime you'd need a string object, you'd need to do: string str = new string;, then you'd need to use the * and -> notation, and finally call delete str; before the block's end. Thankfully, the vast majority of objects used inside a typical C++ program can be allocated on the stack which: (a) cleans the objects memory, (b) calls the object's destructor, and (c) is very fast. However, for those times when the stack can't be used because the object needs to live outside the block, you need to use new and then remember to call delete afterward. I guess my point is that garbage collected languages completely eliminate this requirement, thereby making the code smaller and easier to write.

2. There are times in C++ when you need to retrieve an object from a function. The most common example is a string object. In garbage-collected languages this is a trivial operation since only the object's "handle" is passed back. In C++, it's more complicated because you want to avoid the overhead of calling the object's copy constructor. So you have to resort to elaborate schemes such as Copy-On-Write to minimize the overhead.

3. In C++ when you have a method that returns a pointer to an object (i.e., to avoid the overhead of copying), there's nothing to indicate whether this pointer should be deleted or not (short of making it const). Even worse, there's nothing to stop you from deleting that pointer and causing other code to break. With garbage collected languages this is not an issue since you're not allowed to delete anything. Only the gc knows when things are safe to be deleted.

4. I love C++! It has great features which I miss in Java and VB. However, as good as I've gotten at manual memory management, with smart-pointers, etc., I'd much rather have it all be done automatically for me, even if causes my app to run a little bit slower. Now, if I could have a language like that which would also give me deterministic finalization, I'd be in programming heaven.

Regards,
Alvaro
GeneralRe: Garbage collection and sandboxes are for weenies Pin
Fazlul Kabir14-Jan-02 11:32
Fazlul Kabir14-Jan-02 11:32 
GeneralRe: Garbage collection and sandboxes are for weenies Pin
Christian Graus14-Jan-02 11:35
protectorChristian Graus14-Jan-02 11:35 
GeneralRe: Garbage collection and sandboxes are for weenies Pin
Fazlul Kabir14-Jan-02 11:51
Fazlul Kabir14-Jan-02 11:51 
GeneralRe: Garbage collection and sandboxes are for weenies Pin
Brian C Hart14-Jan-02 12:02
professionalBrian C Hart14-Jan-02 12:02 
GeneralRe: Garbage collection and sandboxes are for weenies Pin
Shog914-Jan-02 13:11
sitebuilderShog914-Jan-02 13:11 
GeneralRe: Garbage collection and sandboxes are for weenies Pin
Leo Moll16-Jan-02 6:34
Leo Moll16-Jan-02 6:34 
GeneralA Record? Pin
#realJSOP14-Jan-02 7:49
professional#realJSOP14-Jan-02 7:49 
GeneralRe: A Record? Pin
Christian Graus14-Jan-02 10:21
protectorChristian Graus14-Jan-02 10:21 
GeneralBreasts Pin
#realJSOP14-Jan-02 2:47
professional#realJSOP14-Jan-02 2:47 
GeneralRe: Breasts Pin
_Magnus_14-Jan-02 2:54
_Magnus_14-Jan-02 2:54 
GeneralRe: Breasts Pin
qomi14-Jan-02 9:47
qomi14-Jan-02 9:47 
GeneralRe: Breasts Pin
Nish Nishant14-Jan-02 17:04
sitebuilderNish Nishant14-Jan-02 17:04 
GeneralRe: Breasts Pin
NormDroid14-Jan-02 22:41
professionalNormDroid14-Jan-02 22:41 

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.