C++ the "only proper object oriented language"?!? It started life as a kludged on Modula extension to C. It has evolved into an overly complex language that includes elements of many programming paradigms, but implements all but the procedural ones poorly.
"I can't unsterstand these features/am too lazy to learn them so they must be implemented poorly."
Go read "The Design and Evolution of C++" and then come back for a discussion about something you have a clue about.
As for being a C++ killer, it seems to be exactly that at my current employer. Our content delivery systems have been rewritten in Java and C, replacing a C++ monstrosity. Our only outsourced application is in the process of being rewritten in Java rather to replace the current C++ version from the same vendor. C++ ain't just dying, it's dead here.
"We don't use it here so it must be useless."
The fact that you got moderated 5, Insightful proves how few/. people know anything about C++.
You need a TrackIR (http://www.naturalpoint.com/trackir/). You can physically turn your head and "look around" in the sim cockpit. I'm a Private Pilot and I practiced in my own simulator, using head-tracking to eye the landing pattern.
Now I've upgraded my simulator and am using it to practice IFR.
You seemed to have entirely missed my point about writing image processing software. While I was talking about writing one piece of high-performance code (using templates) that can deal with multiple image formats (and gets automatically inlined by the compiler) automatically, you countered with using prefab Java LIBRARIES (what language do you think THOSE are written in?) or Python (that also uses libraries written in C++ for high-performance image processing).
The mission-critical reference I was making was to Objective-C's runtime binding of functions. Without the compile-time checking you get from C++, Objective C lets you write code that calls functions that might not even exist.
I didn't mention C at all but since you brought it up - it's possible to write far more robust programs in C++, with less code, than C, so people should really prefer C++ over C in almost all cases.
When Objective C has templates then maybe I'll look at it.
With C++ I can write one piece of code that can process pixels with 8 or 16 bit integer channels or 16 or 32 bit floating point channels. Fanboys of Objective C and Java are obviously not writing image processing software.
Without such important features as operator overloading, constructors, stack-based objects, and references, I really can't take Objective C seriously. I can't imagine it being used for much mission critical software, that's for sure.
Have they added a text editor yet?
on
The Future of Emacs
·
· Score: 2, Funny
Personally, I don't see how anyone can play those kinds of games without a mouse. The racing/fighting games lend themselves well to wonky console controls, because they are "console"-style games.
c++'s biggest power imho is to directly include pure C code without any special hacks, this allows you to use the very core libraries of your operating system and gives it speed and comfort using the standard stuff, this is something that most languages miss big time.
C++'s biggest power by far is templates. For those of us writing graphics software, there is no better way to write one bit of code that operates on various pixel depths (8 bit channels, 16 bit channels, half float channels, full float channels), and let the compiler deal with the instantiations.
Not many people mention this. When speed is paramount, and you need portable code, there is nothing better than C++.
As others have pointed out, Qt provides far more than GTK+. I needed a cross-platform toolkit that supported Linux, Mac OS X, and Windows, and tried all of the "free ones". They sucked in comparison to Qt. It's worth every penny of the commercial license.
I worked for almost a year on a high-end OpenGL graphics application, complete with plugins, pixel shaders, floating windows, custom style, custom widgets, icons, etc. etc.
I did most of the development on a Windows box. It took less than a day to get the app up and running on OS X and Linux.
Now how much do you think it would have cost to do a native OS X or Linux version of my app?
I hope the developers also add an easily-found centralized button to turn this stuff off. Maybe it could be labeled "I just want to get work done" or something.
Personally, I told my partners that a power glitch destroyed all of our source code and backups. Boring, to say the least.
But as a pilot I got a kick out of the April Private Pilot magazine. In their "Pilot Products" section there were announcements for three new products. One was a bike rack for your Cessna, complete with picture of bike and rack bungied to the wing of the plane. Another was for a harness for the "airport dog" that was specially designed so even a "23-poung pug could pull a 1,972-pounc Cessna 182" around the airport (prices yet to be determined). Finally, a new type rating requirements for airplanes equipped with "steam gauges" was introduced.
All of the articles were completely dead-pan, and it wasn't until I got to the last one that I realized the joke.
I run my own consulting business and do a lot of cross-platform projects. Although I am a one-man shop, I essentially forced myself into using a source-control system (cvs) just to help manage shipping updated source between Mac and Windows with the proper line endings.
After I lost some code in a relatively small project, I also forced myself to put EVERY project into cvs, no matter how small. My repository sits on a Linux box running amanda so everything gets backed up too.
Now I use cvs for projects that span multiple platforms (Windows, Mac, Linux, IRIX) and use the full feature set for managing versions, etc. I'm looking into migrating to subversion in the near future.
I looked wat wxWidgets, as well as several other LGPL toolkits, and bought a commercial license of Qt anyway.
IMO, Qt's design is far superior to wxWidgets, simply because it doesn't model after the Windows message-map concepts which totally break encapsulation.
I consider Forrest Gump to be THE landmark movie in this area. It is FULL of "invisible effects", from the opening scene (a feather floating around the town square that "lands" on Forrest's shoe - the scene was a mix of blue-screen puppeteering and a morph at the end to a real feather, that had been painted out until the compositing screen landed).
Other examples: The football stadium Lt. Dan's legs (several shots) Talking presidents Forrest hand-shakes with presidents Various war scenes with Forrest The highly-reflective lake (did you know it was a composite?)
I'm sure there are more but I haven't seen it in awhile.
'It's a masturbatory activity, and it would be better if people put down the controller and went outside.'
Funny, that's where I do most of my masturbation.
C++ the "only proper object oriented language"?!? It started life as a kludged on Modula extension to C. It has evolved into an overly complex language that includes elements of many programming paradigms, but implements all but the procedural ones poorly.
/. people know anything about C++.
"I can't unsterstand these features/am too lazy to learn them so they must be implemented poorly."
Go read "The Design and Evolution of C++" and then come back for a discussion about something you have a clue about.
As for being a C++ killer, it seems to be exactly that at my current employer. Our content delivery systems have been rewritten in Java and C, replacing a C++ monstrosity. Our only outsourced application is in the process of being rewritten in Java rather to replace the current C++ version from the same vendor. C++ ain't just dying, it's dead here.
"We don't use it here so it must be useless."
The fact that you got moderated 5, Insightful proves how few
You need a TrackIR (http://www.naturalpoint.com/trackir/). You can physically turn your head and "look around" in the sim cockpit. I'm a Private Pilot and I practiced in my own simulator, using head-tracking to eye the landing pattern.
e dited
Now I've upgraded my simulator and am using it to practice IFR.
http://www.fxtech.com/gallery/simulator/IMG_2949_
You seemed to have entirely missed my point about writing image processing software. While I was talking about writing one piece of high-performance code (using templates) that can deal with multiple image formats (and gets automatically inlined by the compiler) automatically, you countered with using prefab Java LIBRARIES (what language do you think THOSE are written in?) or Python (that also uses libraries written in C++ for high-performance image processing).
The mission-critical reference I was making was to Objective-C's runtime binding of functions. Without the compile-time checking you get from C++, Objective C lets you write code that calls functions that might not even exist.
I didn't mention C at all but since you brought it up - it's possible to write far more robust programs in C++, with less code, than C, so people should really prefer C++ over C in almost all cases.
When Objective C has templates then maybe I'll look at it.
With C++ I can write one piece of code that can process pixels with 8 or 16 bit integer channels or 16 or 32 bit floating point channels. Fanboys of Objective C and Java are obviously not writing image processing software.
Without such important features as operator overloading, constructors, stack-based objects, and references, I really can't take Objective C seriously. I can't imagine it being used for much mission critical software, that's for sure.
Just wondering.
I wonder how long before people will be sued for using their cruise control to bypass the rigid accelerator pedal? Under the DMCA of course.
How about the "size doesn't matter" myth?
I haven't heard anything about science in his statement on the topic; merely flag-waving.
I don't think it's the flag he's been waving.
Enums only give you integer constants.
If you need other types of constants, you should prefer using "static const TYPE VAR;".
Let the compiler help when it can.
Personally, I don't see how anyone can play those kinds of games without a mouse. The racing/fighting games lend themselves well to wonky console controls, because they are "console"-style games.
C++'s biggest power by far is templates. For those of us writing graphics software, there is no better way to write one bit of code that operates on various pixel depths (8 bit channels, 16 bit channels, half float channels, full float channels), and let the compiler deal with the instantiations.
Not many people mention this. When speed is paramount, and you need portable code, there is nothing better than C++.
Takes like chicken.
As others have pointed out, Qt provides far more than GTK+. I needed a cross-platform toolkit that supported Linux, Mac OS X, and Windows, and tried all of the "free ones". They sucked in comparison to Qt. It's worth every penny of the commercial license.
That's cheap.
I worked for almost a year on a high-end OpenGL graphics application, complete with plugins, pixel shaders, floating windows, custom style, custom widgets, icons, etc. etc.
I did most of the development on a Windows box. It took less than a day to get the app up and running on OS X and Linux.
Now how much do you think it would have cost to do a native OS X or Linux version of my app?
I hope the developers also add an easily-found centralized button to turn this stuff off. Maybe it could be labeled "I just want to get work done" or something.
Personally, I told my partners that a power glitch destroyed all of our source code and backups. Boring, to say the least.
But as a pilot I got a kick out of the April Private Pilot magazine. In their "Pilot Products" section there were announcements for three new products. One was a bike rack for your Cessna, complete with picture of bike and rack bungied to the wing of the plane. Another was for a harness for the "airport dog" that was specially designed so even a "23-poung pug could pull a 1,972-pounc Cessna 182" around the airport (prices yet to be determined). Finally, a new type rating requirements for airplanes equipped with "steam gauges" was introduced.
All of the articles were completely dead-pan, and it wasn't until I got to the last one that I realized the joke.
I run my own consulting business and do a lot of cross-platform projects. Although I am a one-man shop, I essentially forced myself into using a source-control system (cvs) just to help manage shipping updated source between Mac and Windows with the proper line endings.
After I lost some code in a relatively small project, I also forced myself to put EVERY project into cvs, no matter how small. My repository sits on a Linux box running amanda so everything gets backed up too.
Now I use cvs for projects that span multiple platforms (Windows, Mac, Linux, IRIX) and use the full feature set for managing versions, etc. I'm looking into migrating to subversion in the near future.
Go outside, read a book, or more likely, spend all your time 'watching' the Internet instead.
Try Far Cry.
Lush foliage instead of meadows, but you can see plenty of blood. Yours, at several points.
I looked wat wxWidgets, as well as several other LGPL toolkits, and bought a commercial license of Qt anyway.
IMO, Qt's design is far superior to wxWidgets, simply because it doesn't model after the Windows message-map concepts which totally break encapsulation.
Aw crap - yeah, I screwed up. It should have been 70. Not enough coffee error. :-(
There should have been a const in front. Otherwise someone could have come along and changed the 72 to a 74!
If they just hadn't been using Outlook.
What were they thinking?
I consider Forrest Gump to be THE landmark movie in this area. It is FULL of "invisible effects", from the opening scene (a feather floating around the town square that "lands" on Forrest's shoe - the scene was a mix of blue-screen puppeteering and a morph at the end to a real feather, that had been painted out until the compositing screen landed).
Other examples:
The football stadium
Lt. Dan's legs (several shots)
Talking presidents
Forrest hand-shakes with presidents
Various war scenes with Forrest
The highly-reflective lake (did you know it was a composite?)
I'm sure there are more but I haven't seen it in awhile.