-
So why are you using C++ now instead of using C?
In one of these posts , somebody ask me "So why are you using C++ now instead
of using C?", some people here still insist to compare C vs C++ situation
with Java/C# vs C++.
In my point of view , the largest contributions for development are templates
that provides a reusable code , the operators that you can create easily
in your programs and libs. And a collection tools called STL.
C doesn´t have a native support for OO, you can do it using modular programming
an example is the WinApi, C++ has native support for OO.
As everyone can see here was introduced, new features and new concepts, the
argument that "I can do everything , with C is valid in a point of view"
(just if you want to have more work).
But what about Java and C#!? What new contribution was introduced?
Cross platform language, maybe. But you loose performance, with that Just
in Time compiler.
Other, please show me.
-
Re: So why are you using C++ now instead of using C?
I think your point of view is correct. I'd like to add that such comparison
between C++ and Java specifically doesn't make much sense for me. C++ was
designed to be a general purpose programming language with support for multiple
programming paradigms. Indeed, you can apply C++ in procedural, object based,
object oriented and generic programming. The same doesn't apply to Java,
wich seems to me a language designed having only OO in mind.
The advantages given by the adoption of OO methodology, namely, code
reuse, faster development time and others can also be acquired by using another
programming paradigms and mechanisms, such as templates and generic programming,
for instance. For me, this kind of flexibility is singular to C++ and makes
it a very powerful and interesting programming language. Of course, Java
has its great features and advantages, but it seems to be confined to the
OO programming/design paradigm.
"Al" <balki@birdmail.com> wrote:
>
>In one of these posts , somebody ask me "So why are you using C++ now instead
>of using C?", some people here still insist to compare C vs C++ situation
>with Java/C# vs C++.
>In my point of view , the largest contributions for development are templates
>that provides a reusable code , the operators that you can create easily
>in your programs and libs. And a collection tools called STL.
>C doesn´t have a native support for OO, you can do it using modular programming
>an example is the WinApi, C++ has native support for OO.
>As everyone can see here was introduced, new features and new concepts,
the
>argument that "I can do everything , with C is valid in a point of view"
>(just if you want to have more work).
>But what about Java and C#!? What new contribution was introduced?
>Cross platform language, maybe. But you loose performance, with that Just
>in Time compiler.
>
>Other, please show me.
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks