C++ Creator Confident About Its Future 241
bonch writes "Bjarne Stroustrup is confident about the future of C++. He says there is a backlash against new languages like Java and C#, and that developers are returning to C++." From the article: "He claimed the main reason why people are not aware of this is because C++ doesn't have a 'propaganda campaign.' Sun Microsystems has touted the use of Java in the Mars Rover program, for example, but Stroustrup asserts that C++ was also used.
C++ Should Be The Only Programming Language (Score:4, Funny)
In this article, I seek to dispel the myth that non-C++ languages are beneficial in proper Software Engineering. I outline how standardization on the C++ language can strengthen your corporation's bottom line. And I describe how to contact the men in Congress to have C++ use finally made legally mandatory.
C++, a programming language invented by Lucent's Bjarney Strupstrup in 1995, has been hailed as a God-send to Computer Science since its creation. Based on Richie Kerninghan's language "C+", C++ brought several previously-theoretical programming languages features to the mainstream:
Church-Rosser Compliance
Known as "multiple inheritance" in the programming world and as "being Church-Rosser" in academia, C++'s compliance to this IEEE standard immediately placed it head-and-shoulders above other languages. "Churrossity" allows programmers to use blocks of code, called "objects," in place of other blocks of code ("arrays".) The layman can think of this as "allowing 'new' code to 'run' old code." This advance has not been possible in previous logic-based languages such as Ada.
Multi-Byte Characters
C++ allowed use of "Beaster," a subset of Microsoft's COM ("Common Object Model") windowing layer. The Beaster system allows non-English-speakers such as the Welsh to use computing technology, as it could redirect the signals used to display non-English characters on a computer's monitor screen or laser printer. It is also useful in helping the blind, who speak a specialized subset of English called "ALS."
Pass-By-Text
A non-recursive pass-by-text mechanism existed in Kerninghan's C+, called "macro facility." But Strupstrup did Kerninghan one better with the "String Template Loader" variable passing mechanism, which allowed text to be passed to procedures at run-time. This sped up code execution times, as code could be compiled while the user was running the program. This eliminated speed loss caused by incompatibility from obselete computer chips (Motorola and ADM.)
The superiority of C++ over other languages should be obvious. But is switching to it from other languages possible in your corporation? Astute observers will note that the eco-terrorist group FSF produces a C++ compiler called "DJGPP." Under President Bush's War on Terror, any organization supporting a terrorist organization is recursively itself a terrorist organization.
Corporations needn't worry. Microsoft has its own C++ offering, "Visual Studio." As an added bonus, Microsoft Visual Studio is highly standards compliant. It features a visual programming interface, and several features not found elsewhere (such as a visual debugger and an AOL instant messanger client called "Windows Messaging".)
But these advantages can only be realized if code written in inferior languages can be kept from polluting the inter-web eco-space. When compilers for other languages are available, low-level managers are tempted to write code in them. Why? Often times, managers are brought up from the ranks of Software Engineers, and thus lack an Executive's sense for using the right tool for the job. When these managers write code in a jungled zoo of languages, code in one program is unable to interact with code from another program (churrossity.) Only by standardizing on C++ can all programs run together smoothly. Using C++ to eliminate software errors will jump-start the sagging technology industry. This will boost our economy as a whole, which in turn will help us to win the War on Terror.
The effort to legally mandate this has been going on for a while. But it needs your
plagiarism (Score:5, Informative)
Re:C++ Should Be The Only Programming Language (Score:2)
creator of the C++ programming language (Score:3, Interesting)
OK, mod me troll, but surely C++ is by definition an 'extension' of C?
So, creator is a big word. Or perhaps the lack of context is the problem? Or maybe I'm just a language nazi?
mod me pedant....
Re: creator of the C++ programming language (Score:2, Insightful)
(though yes, you can of course use OO in C, it just sucks)
Re: creator of the C++ programming language (Score:2, Funny)
At least in C your bugs are all yours.
-- John.
Re: creator of the C++ programming language (Score:3, Funny)
All These Bugs Are Yours --- Except .net. Attempt No Coding There.
*cough* sorry.
Re: creator of the C++ programming language (Score:2)
At least in C your bugs are all yours.
So when using libraries in C++, all your bugs are belong to us?
Re: creator of the C++ programming language (Score:2)
Creator is the correct word or designer , architect take your pick its all fine.
Not an extension (Score:4, Informative)
A trivial conversion exists between any ISO C90 program and ISO C++, but then again, we have FORTRAN-to-C translators and nobody thinks C is an extension of FORTRAN.
Stroustrup would also likely be a little uncomfortable with the appellation "creator". While he's certainly been one of the pivotal figures in C++, Stroustrup has always been quick to recognize the contributions of other people and the work of the ISO standardization committee.
While it would be nice... (Score:5, Insightful)
Apart from PHP and Perl, the above languages are usually very strict in their object-oriented ways, and thus prevent loose syntax and clumsy errors. But this nannying produces only poorer developers who rely on the language rather than their own abilities to code effectively.
A return to C++ would be nice, especially in educational institutions, as it provides all the necessities of modern languages, bar effective string-handling, while maintaining the simplicity of older languages.
While Java and
Re:While it would be nice... (Score:3, Insightful)
C++ fills a rather difrent void and there is place for all , it really depends what you want. Right tool for the job as always applys
Re:While it would be nice... (Score:3, Insightful)
C++ fills a rather difrent void and there is place for all
How many operating systems are coded in C++? I know a lot that have been coded in C, but none that have been coded in C++.
Re:While it would be nice... (Score:2)
I probably should have said
You dont hammer a nail witha screwdriver , and you dont program a modern "First person shoot'em'up" in java.
But the point remains the same
Re:While it would be nice... (Score:2)
Re:While it would be nice... (Score:2)
Also I guess its which of the two your more comfertable with , perhaps c++ would be a better all purpose choise , but if he has more experiance with C, it can more than make up for any short-commings.
Re:While it would be nice... (Score:2)
OK, I'll play. Let's stick to current, reasonably popular operating systems to make things easier. Which do you think are written in C?
Re:While it would be nice... (Score:2)
I woud say that most userspace operating system code is stil written in C over C++...even on windows.
Re:While it would be nice... (Score:2)
It's fast and has many features that give you flexibility in design (templates, multiple inheritance, operator overloads etc).
For GUI I prefer C# or Visual Basic.
Re:While it would be nice... (Score:2)
Re:While it would be nice... (Score:3, Interesting)
The kernel wasn't, but all the 'Kits' above it was.
Re:While it would be nice... (Score:4, Insightful)
out of interest, what's wrong with std::string?
Re:While it would be nice... (Score:5, Insightful)
Re:While it would be nice... (Score:2)
Re:While it would be nice... (Score:5, Informative)
Re:While it would be nice... (Score:2)
I haven't fiddled around with Boost threads though. How would you rate them against protothreads?
Re:While it would be nice... (Score:2)
iso c++ standard moves slow to be sure. since much of boost is a proving ground for the standard, and since it has its own review
Re:While it would be nice... (Score:2)
Re:While it would be nice... (Score:2)
While not everything can be included in any language, for it would truly be a behemoth to program and deploy, there are some things which all languages should have. The problem is where do you draw
Re:While it would be nice... (Score:2)
Because when you're an open source programmer working on small projects, you want to pull in several different libraries and use them together. If they
Re:While it would be nice... (Score:2)
Several of the people behind boost also sit on the C++ stand committie. They have suggested that boost is a proving grounds for things that will be in the next standard.
Re:While it would be nice... (Score:2)
Thx for the heads up. I can't wait for GCC 4 (Cygwin) with tr1.
Re:While it would be nice... (Score:2)
It's clunky, and something of a workaround; strings are still treated as char * types internally unless stated otherwise, so you have to jump through some hoops to get proper string manipulation. You can't, for instance, do this:
C++ interprets that as adding two pointers to type char together, which does nothing useful whatsoever. Instead, you have to do this:
Further, string manipulation is inconsistent
std::string (Score:2)
A fairer question might be what's right about it. ;-)
Seriously, the string-handling in standard C++ suffers horribly from design-by-committee.
To give the most obvious example, there's no way to write a literal std::string, which in turn means that basic syntax like "a"+"b" doesn't work, even though the + operator is used to concatenate std::string objects.
There are also glaring inconsistencies in usage, because of all the history using char*, and then
Re:While it would be nice... (Score:2)
It doesn't support Unicode well. Specifically,
Re:While it would be nice... (Score:2)
See http://bstring.sf.net/features.html [sf.net] for my own take on std::string and other string libraries.
In short, its slow, it doesn't have bounds protection, has slow interopability with char * strings, has mediocre functionality (no insert, no overwrite, no find-replace, no split/join, no useful line-input). Various implementations have thread safety problems, and I don't know if it is aliasing safe.
Of course it is possible to implement safe and powerful strin
Re:While it would be nice... (Score:2)
I know this is shockingly off-topic, but it is interesting how stating something like that seems pretty obvious and logical when talking about computer programs. The reason I mention this is that your comment could very easily be applied to western (or at least American) culture in general. We have become a culture of safety where anything even remotely dangerous is banned or s
Re:While it would be nice... (Score:3, Insightful)
. You may complain about Java etc. being inefficient or coddling developers, but the design of C++ is strictly a case of bolting object orientation onto a procedural language in a very crude manner, then throwing in the kitchen sink just so that it has feature xyz. It collapses of it's own weight. C
Re:While it would be nice... (Score:2)
Java, for one, doesn't allow for RAD. It requires a structured design and systematic coding. People have invented scripting languages based on Java, and this highlights Java's serious lack of flexibility. The problems with
Nice troll. (Score:5, Insightful)
You've also clearly never done serious programming with the Standard Template Library, where the algorithms are written so generically--and so consistently across different data types--that they can be plugged together in an almost limitless number of configurations.
Re:Nice troll. (Score:2)
You've also clearly never done serious programming with the Standard Template Library, where the algorithms are written so generically--and so consistently across different data types--that they can be plugged together in an almost limitless number of configurations.
Yes, 'clearly.' That always wins an argument.
STL is a cute idea, but an abomination. I had the task of a subset of the STL. I still have nightmares about it. I know more about C++ than any man should.
Re:Nice troll. (Score:3, Informative)
The STL is part of the base C++ language. Read the Standard.
Damning with faint praise. Have you ever used the STL for more than a trivial 5,000-line app?
C++ generics predate Ada95's strong generics mechanism by quite some time. In fact, the inventor of generics--Stepanov--used C++ as his testbed for ideas. C++ gener
Look! A funny. (Score:5, Funny)
I bet he also trys to catch all the code NASA uses.
C++: too complex (Score:3, Insightful)
I've been programming a while. Familiar with Lisp, Smalltalk, etc. My first "favorite" language was C, which had a certain simplicity that appealed to me. I also liked Objective C.
When I first saw C++ it seemed complicated and half-baked. Objective C was SO much nicer. And one C++ program would work with one compiler, but not another. The language was in a state of flux apparently. So I ignored it, thinking it would be finished later.
By the time I looked at it again, computers were fast enough so that "scripting" languages like Python were practical for big projects, and elegant enough to write good programs in. C++ was still a gigantic clunky mess. I remember seeing those "What's wrong with this program?" ads with C++ examples and being utterly confused. And any language that "mangles" things should be avoided I think.
Also Java looked like "what C++ should've been".
And now the programming world seems to be returning to a desire for simplicity, elegance, "Agility", and C++ just doesn't cut it. My favorite language today for practical work is Ruby, with the occasional C extension.
So, to me, C++ is an obsolete language.
Re:C++: too complex (Score:4, Insightful)
Ruby is slow even for scripting languages. It's fine for many things, but if you need performance Ruby doesn't cut it. And if you really need performance no scripting can cut it and you gotta use something better.
Nothing can equal the power along with performance that C++ gives you. It's not perfect and has some serious issues, but it's the best we have in terms of performance combined with power.
Ousterhout's Dichotomy (Score:3)
The ideal way of doing things is to write as much as you can in the scripting language. This is almost always faster and more efficient in terms of programmer time. Then, you go back and redo the speed critical bits and pieces in C or C++.
When this dawned on me, I really began to appreciate T
Multi-language approaches (Score:3, Insightful)
I've heard that a lot, and certainly the argument has merit.
Where it sometimes breaks down, IMHO, is that learning a new language isn't free. It's a myth that any good programmer can learn a new language in a week. Sure, they can learn the basic syntax, and if they'r
Re:C++: too complex (Score:2)
This quote is 15 years old, but I still think it gets to the heart of the matter:
"If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor and when was the last time you needed one?" --Tom Cargin (C++ Journal, Fall
Re:C++: too complex (Score:2)
Q: "What's wrong with this program?"
A: "It's written in C++."
Re:C++: too complex (Score:2)
If you want to talk about half-baked, let's compare Gnome/Gtk+ to Qt/KDE. You have performance issues that would only be solved with something like C or C++, and when it comes to technical superiority there is no doubt that Qt and KDE are better.
Frankly, many unix heads and others are just afraid to learn something more complicated, but much more powerful. You ca
Re:C++: too complex (Score:2)
That explains your preference of Objective C. It's a lot more like Smalltalk.
When I first saw C++ it seemed complicated and half-baked. Objective C was SO much nicer. And one C++ program would work with one compiler, but not another. The language was in a state of flux apparently. So I ignored it, thinking it would be finish
C++ has a long future... (Score:5, Informative)
I wrote an article about the economics of programming languages that talks about this and other issues that concern the adoption and lifecycle of languages, although be forewarned that the login system is a bit fiddly:
http://www.byte.com/documents/s=9553/byt111384524
To those who have not programmed in C++ enough... (Score:5, Informative)
Re:To those who have not programmed in C++ enough. (Score:2)
Trying to answering this question tears me apart, because I so much like the _idea_ of elegant OO software design. However, I generally find that I can w
Re:To those who have not programmed in C++ enough. (Score:4, Informative)
The simple flat file C program that everyone can debug is also a small program. OO really comes into it's own when you get over 20,000 lines of code. Then the kiss C style starts breaking down.
Re:To those who have not programmed in C++ enough. (Score:3, Insightful)
With well-organized header files and a little documentation, I've had no problems with C up to 100K lines. The main advantage, IMO, is that C is just so damn simple to "execute" in my mind, and it is very intuitive to step through in a debugger. The only real catch for me is tracking down memory leaks at times.
Now, for programs with millions of LOC, I don't think any language will be easier than another, just because the program's own complexity overwhelms everything else. Just ask people how quickly th
Didn't take me long to get into KDE development. (Score:2)
I can't speak for the rest, but it didn't take me long to get into KDE development. KDE is designed well enough that I don't need to know the entire project to work on it. I've submitted a couple patches here and there. I've never looked at 99% of the source code, but I don't need to, since I can quickly find the area of code I'm interested in for the patch, fix it, test and submit.
Now KDE does need some experts who understand the entire thing, to make sure I'm not adding something that should be done
Re:To those who have not programmed in C++ enough. (Score:2)
No one really considers assembly an applications programming language, any more, except perhaps HPC/graphics developers.
Of the four you mentioned, three (OO.org, KDE, mozilla) are in C++. GNOME is in C...
Yes, but they are all difficult to work with. That's just a fact of all projects that large, IMO. If it isn't a problem with C kludges, then its a problem with choice of abstraction or a problem with 100 shared libraries or a proble
Re:To those who have not programmed in C++ enough. (Score:2)
I am not agai
Re:To those who have not programmed in C++ enough. (Score:2)
That's a slightly loaded question, don't you think? ;-)
Any high-level design tools are a double-edged sword. When used well, they allow you to express designs more simply and clearly. When used poorly
Re:To those who have not programmed in C++ enough. (Score:3, Insightful)
Sad, but almost certainly true.
As I've said in these parts before, C++ should have been superceded for all areas of programming a very long time ago. The fact that it hasn't is a pretty damning indictment of the software development community as a whole, a reflection of how little "new" languages like Java or C# have really added, and an insight into how productive many theoretically sounder la
Re:To those who have not programmed in C++ enough. (Score:2)
It would be like pairing Java and Python together. Absurdly powerful, but there's a lot of programmer-time overhead in learning and using the systems properly together.
Ruby, etc.... (Score:2, Interesting)
Re:Ruby, etc.... (Score:2)
Mistake number one...
And how is this an advantage over
or even
in real life? Do you often find yourself taking the length of a string literal in real code anyway?
It does, however, have the practicality yo
Re:Graphics Work (Score:2)
The reason I don't use it (Score:3, Interesting)
The basic reason I don't use C++ is the lack of sensible libraries as part of the standard. A programmer desirous of learning cross platform GUI programming has to rely on libraries that are not a part of the standard. I haven't poked around that field for a while now, but IIRC, each system had its quirks and arcane additions. For example, MFC (not cross platform) and QT have implemented their own version of various containers, string classes, etc. MFC relies heavily on arcane macros, QT relies on a weird (from a pure C++ point of view) MOC. I understand they both had good reasons for doing that when C++ was still evolving. But today, it is just a hinderance when trying to write "clean" code.
Another disadvantage of not having a great collection of libraries in the standard is that people won't know about them unless they dig around a lot. Introductory text books won't cover them, help files in the system won't cover them (if they do, a beginner in that field might not even know what to look for and where to look).
Do you want a OO library for accessing the serial port? OK... which OS? Windows: use MFC. Linux: google around until you find something on sourceforge. What about some GUI and audio libraries? again, similar method. Fine... now the application has used various libraries from various places. The source now looks like it was done by a person with multiple personality disorder, with each library having its own design and coding approach. Now that you have built an application with ten different sources of libraries, you have to keep track of all of them for bug-fixes, performance enhancementes. Each with its own quirky impact on your application. I went through all this, and eventually gave up C++ in favour of Java.
And this is just the beginning of my woes with C++.
Re:The reason I don't use it (Score:4, Insightful)
Seems sort of silly to state that C++ doesn't have a good set of libraries when you can use any C library you wish. I do it all the time. There is no reason to create a C++ resolver library when a simple one exists in C already.
C++ has a very simple philosophy, you don't pay for what you don't use. You can write C and occassionally use std::string if you want to. Nothing stops you from doing it. There is no rule that says, "thou shalt use operator overloading."
Re:The reason I don't use it (Score:2)
C++ has a very simple philosophy, you don't pay for what you don't use.
My ass. The whole point of object oriented programming is abstraction and encapsulation. Try working with two different C++ systems at once. Say, anything and OmniORB. One library might use RTTI, while another might be working on a KISS base class. Another library may be throwing all kind of exception shit. One library may be using std::except, the other might be throwing ints. Or worse, the library implementor may have not read the
Re:The reason I don't use it (Score:2)
So in other words, if you don't
Re:The reason I don't use it (Score:2)
A week ago, Bjarne Stroustrup was giving a talk about the work on the next C++ standard.
One interesting thing that he mentioned, was that C++ was quite popular for embedded programming. Templates is a very nice way to make the compiled code small and run fast (if you got a good C++ compiler of course).
Re:The reason I don't use it (Score:2)
Simplistically, yes. But, for example, it's common to implement specialisations such that all pointer types use the same code (based around a void* and casting internally), thus gaining all the advantages of type safety and code reuse, but without the bloat. The same concept could be applied in other contexts as well, though I'm not aware of any mainstream development that uses it so at present.
I've always liked C++ (Score:5, Insightful)
However, it's a double-edged sword. It has been said that C lets you shoot yourself in the foot. C++ provides a dozen ways to shoot yourself in both feet and your own back, simultaneously. Be carefull.
Many have tried to design languages to protect the programmer from themselves, i.e. by providing native garbage collection, disallowing bald pointers, etc. However, this is short-sighted. It presumes what is "hard" and prevents the skilled programmer from replacing the default implementation. C++ new and delete member functions provide no-fuss custom memory management... and probably account for probably half of those ways of shooting one's self in both feet and back.
A language that is complete in the sense of permitting the coding of fundemental facilities is seductive. It provides an assurance that one can implement "low-level" stuff like memory management, or even the bulk of an O/S kernel in it. The lack of I/O facilities in C, for example, is an intentional feature, and not an oversight. Never have to learn another language again.
Other languages may provide the convenience of built-in capabilities that are useful for a particular task at hand: awk, perl, and the rash of modern scripting languages come to mind. When the shoe fits, the adaptable programmer will take the path of least resistance. Languages like Java and C# attempt to bridge the general-purpose languages with the protection and features offered by application-specific ones, the latter via extensive run-time libraries (.NET, anyone?). They tend to return to the pseudo-compiled small-interpreter model to provide hardware portability.
The problem is, that one has do do things the C# "way", or the .NET "way", or the Java "way". Multiple inheritance? Oooh, it's so hard to implement right, and can be so confusing, and, admitedly can be expensive at run-time, so we'll not provide it. Mixin becomes a hack, with language keyword support. Over time, syntactic sugar in the language provides clever support for things like iterators, but binds language features to what should be artbitrary types (Lists are special in C#, for example).
Well, I want it all.
A programming language that will let me shoot myself in the foot any way from Sunday if I dare to try... but, with the flexibility to let me say, "Nope. No bald pointers here." Segregation of programmable expressiveness by program, not language, design.
A programming language that is mutable, so I can invent my own brand of syntactic sugar, and the support to let me quickly find out what mutations a particular piece of code uses.
A programming language that lets me choose when to evaluate things. Do I want this figured out at compile time? Link time? Load time? Run time? Sorry, C++ templates, though Turing-complete are about as maintainable as APL, if one uses them for anythng clever.
It's too bad Mary2 never caught on.
Many will argue that mutable languages result in unmaintainable code: which mutation is in force? I would counter that programs written in non-mutable languages are equally unmaintainable if one does not understand the design of the application. Sure, one can see the "trees", but not the forest: I know x = a + b adds a and b to yield x, but what is that for? The effort to undestand what mutations are in effect is likely similar to the effort to understand an application's design. Except, one has the advantage of a known meta-syntax for expressing the mutatations, instead of having to rely on a design document (which may not exist), likely poorly written or out of date
Re:I've always liked C++ (Score:2)
I know it's become a joke to suggest Lisp, but those that laugh have never used Lisp.
Re:I've always liked C++ (Score:2)
They do add syntactic and semantic sugar, of course, but really, I'd like to be the one to define the kind of syntactic sugar they add. It's also the one thing that Lisp lacks: any kind of syntactic or semantic sugar. Forth might have an edge here, but it is less formal a language.
Re:I've always liked C++ (Score:2)
You may be able to do something kind of like this with Lisp reader macros, but frankly I think it's impossible, or at least near impossible.
It's also the one thing that Lisp lacks: any kind of syntactic or semantic sugar. Forth might have an edge here, but it is less formal a language.
I'll grant you Lisp has little syntatic sugar, but it's simplicity yet openness is a
Re:I've always liked C++ (Score:2)
(oh (yes (we (have))))
LISP has a lot going for it, but it also has a lot against it. The most popular programming languages in general use today have a lot of things in common with each other and not with LISP, starting with providing syntactic sugar for various common control structures and vast libraries. Sure, you *could* define your own control structures in LISP and write your own libraries, but why bother when y
Re:I've always liked C++ (Score:2)
If you mean they all have an algol-like syntax, then you're correct. However I don't know what you mean by "sugar for common control structures".
and vast libraries.
Apparently, you haven't really used Lisp, or you'd know that most things that are in standard libraries are handled internally by the lang
Re:I've always liked C++ (Score:2)
I mean something that highlights the logical structure of what's going on. The most trivial example is probably picking out sequential vs. iterative vs. conditional logic in algorithms. Of course you can do these things in LISP, via cond and such, but there's no particular emphasis on them; they just look like any other bit of LISP. I realise that this is neces
Re:I've always liked C++ (Score:2)
-- John.
Re:I've always liked C++ (Score:2)
Some backlash in academics as well.. (Score:5, Interesting)
After graduating with my BS in CS, I was out in the field for a few years. I spent some time at a C++ Windows shop which was trying to become gung-ho about C# and the various
I left that place and moved into a contracting position where I help admin a data center. The attitude there is much different, to say the least.
I'm also now studying for a master's degree in CS. Since I had been away a few years, I was not surprised when I came back to see Java everywhere in the undergrad classes (this at a different school than before). What did surprise me is the attitude of one of my new professors. He taught a projects class where the whole point of the class is to build/do something by the end of the term. It doesn't matter what as long as it fit the basic subject area of the class. After that, you're pretty much on your own (or in a group, if you want). Since this was a different school than where I got my BS, I didn't know this professor. I had seen him wearing a Java shirt a few times, so I was prepared to have to deal with some friction when I went to suggest that I wanted to do my project with C++. One day I stayed after class to chat with him and get to know him a bit. I was shocked to discover that he had done a lot of postdoctoral research using Java and about Java and found it lacking in many very important areas (specifically in high performance scientific computing applications). As we were walking out of the building, he was asking me about my background in programming and computers, so I was giving him a mini life story sort of thing. I mentioned my C/C++ upbringing and how in my college days the Java shift had begun and I didn't quite feel comfortable with that and how I see it seemed to have happened everywhere. That's when he took a careful look around the hallway, leaned in, and said in a hushed tone, "Switching to Java for the undergrads is the worst decision this department ever made."
I was pretty stunned to hear that from a professor considering what was going on just a few years previous. I hope that sentiment grows and CS departments take back their programs from corporate interests and marketing machines. Perhaps there is hope...
Re:Some backlash in academics as well.. (Score:2)
I have two java server installations here one serves around 2500 users with around 100.000 hits per month, almost no CPU cycles used, and basically running constantly without any crashes or bigger load on the database (although it uses an OODB/RDB mapper, but omits stuff like EJB, but uses a portlet engine). On the same app server around 10 other webapps with similar load
Re:Some backlash in academics as well.. (Score:2)
Re:Some backlash in academics as well.. (Score:2)
Re:Some backlash in academics as well.. (Score:2)
Re:Some backlash in academics as well.. (Score:5, Insightful)
Java is a fine language. I've done a lot of cool stuff in Java. Out of the box, it has libraries to handle multithreading and all sorts of neat stuff.
The problem is that when you don't have to worry about things like memory management, you lose a huge part of your education. You don't think about things in terms of the kind of resources that you might use, you just do it.
In a way, it may be possible to go to a purer kind of programming with Java, needing only to worry about the algorithmic complexity of the method that you're coding. In practice, however, I've seen nothing but sloppy work out of people trained from the start using Java.
I coded in at least 6 different languages through my degree, and I did most of my work in C, not C++. I believe that when you start, you should start close to the machine, not as far away from it as possible. Start with assembly - the programs don't have to be big - and work your way up. Java is the last step you should take, after you understand what it's doing under the hood, and how to mitigate the overhead that those sorts of things will incur.
Re:Some backlash in academics as well.. (Score:2)
Re:Some backlash in academics as well.. (Score:2)
Re:Some backlash in academics as well.. (Score:2)
Id rather (Score:5, Interesting)
Sorry, been there, done that, but the widespread usage of C++ was one of the biggest history jokes ever. A language, as bloated as a language could be, with lots of cool features on the language level, but ommitting the two most important aspects, a good standardized classlib which covers all important application scope aspects, and a language which is actually usable without having to fight with it for years before being able to master it to a certain degree. There was a reason why people flooded to java in 97-98, it was less the hype, it was more the fact, that people tried to implement big long running systems in C++ and saw it was not really feasable in a decent timeframe, due to constantly crashing problems thanks to the missing boundary checks, memory leaks thanks to the missing garbage collector, and general programming errors and unreadable code, thanks to the byzantine bloatware the language in fact really is. Add to that the compiler bugs caused by the 1200 pages of language specs and you could see why people were fleeing from C++.
And up to date, whenever I have to talk about C++ I only can give the advice, limit yourself in the usage of features and only use a readable subset of it (which would be similar to java and C#), try to omit the C heritage entirely if possible, do not use preprocessors, do not use extensive operator overloading or templating. And check out the KDE/Qt API, they so far have been the only ones to master the language on a design level which in fact results in readable and maintainable code.
Re:Id rather (Score:3, Insightful)
Eh. You have no idea what C++ is used for. Programming isn't just writing nice little programs for desktop computers. C++ is used in everything from tiny microcontrollers to large clusters. Good luck writing a classlib which covers that.
You mention KDE/Qt as examples on APIs that are good. I use Qt at work and I really like it. However, Qt covers just one (or a few) uses of C++, regular applications which run on standa
High School's should teach C++ (Score:5, Insightful)
I also eneded up taking a C++ course in High School, and I found that many of my classmates started to think and analyze problems differently. A year later the school changed from C++ to Java ( because the CollegeBoard changed it's CS exams to Java). I also took that class and I noticed that the kids that only took Java, even after completing the course did not learn much - and especially not to think like programmers. I think that this is most likely because Java has so many libraries within that the kids never actually learn what occurs in the "back end." Many fail to understand what a string is, and the majority did not understand algorithms at all, I dont want to mention efficency. Although Java is probablly used more widely, I think that for beginners to learn to think like programmers it would be better to learn a language from which they can learn the basics behind programming, and although I would suggest PASCAL (better for learning algorithms)
Learning DSA with Java is a bit funny, how is having a garbage collector efficent and how will that inspire programmers to write more cautius and efficent code?
Just my opinion, I'd like to learn more.
Closed-mindedness abounds (Score:4, Insightful)
News flash: most software that I've seen and written benefits from multiple paradigms: procedural for basic algorithm implementation, OOP for the architecture, and generic programming as glue code (generic programming annihilates OOP in terms of code reuse, and you typically don't pay a performance penalty for it.) There are other paradigms, but I don't have enough experience to comment on the efficiency of them. C++ is one of the few languages that gives the aforementioned paradigms a presence and trusts the programmer to choose. You may think this is 'bloated,' but nothing is further from the truth: the overall mantra of C++ is, "you only pay for what you use."
You can bitch all you want about the importance of language purity and point to languages like Smalltalk or Java as an example of how software should be coded. I'll ask you to point me to popular desktop software that is written in these languages. C++ is the archetype of a hardcore language - a huge learning curve, but insanely powerful in the right hands. It is also really dangerous in the wrong hands.
Like operating systems, all programming languages suck in some way. Its up to you to choose the least sucky one for the problem at hand. I enjoy writing native, minimal dependency desktop applications in a language that has excellent tool support, can interface directly with OS APIs, and doesn't talk down to me. C++ fits the bill most closely, but I've been told I'd like O'Caml as well.
C++ isn't going anywhere. The fact that so many people don't understand it or the place that it occupies only strengthens my resume.
zerg (Score:3, Informative)
C++ loses its 3rd position after almost 4 years (Score:2, Interesting)
Here is the link http://www.tiobe.com/tiobe_index/tekst.htm [tiobe.com]
OT: the TIOBE survey and .NET in trouble (Score:2)
What I find interesting is that Delphi is roaring back, and it is not just a temporary blip caused by the new Delphi 2005. My guess is its not so much that people love Pascal but some big problem with Microsoft's .NET and their stand on Visual Basic 6.
If you want to do what Visual Basic 6 used to do (and still does, thank you),
Re:Sometimes C++ programmers miss the point (Score:2)
+5 Flamebait.
+6 Flambay.
Re:Sometimes C++ programmers miss the point (Score:2, Informative)
(A lot of times) C++ programmers miss the point (Score:3, Insightful)
Well, you and your colleagues could bone up on the skills to compile large C++ programs, but you could also hire some people who are experts at IBM OS/360 JCL while you are at it.
Anyone here remember JCL? The idea was that you had a "separation of concerns" bet
Re:The D Programming Language (Score:2)
Simple problem is that I've been hobbying with functional languages in my spare time lately and D just doesn't appear to be available on all the platforms I'd like to use it on.
How difficult would it be to get D on Mono? That might help get people into it.