473,664 Members | 3,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Language features

who can tell me which two features in the C++ language are most
usefule, and which two features that you think are the most over-rated
or the most misused and why you think so? Thanks very much!

Nov 2 '05 #1
18 2042
On 2 Nov 2005 05:00:29 -0800, 54*****@163.com wrote:
who can tell me which two features in the C++ language are most
usefule, and which two features that you think are the most over-rated
or the most misused and why you think so? Thanks very much!

And if I feel they are seven, like sins?

Most useful: books published, google searchs
Most over-rated: asking moronic questions about the language, asking
stupid questions about language features
Most misused: usenets queries for homeqowrk, usenet queries for tests

Regards
Nov 2 '05 #2
54*****@163.com wrote:

who can tell me which two features in the C++ language are most
usefule, and which two features that you think are the most over-rated
or the most misused and why you think so? Thanks very much!


If your homework asks you to do a newsgroup poll, you
should say so ....
most useful:
beeing able to do addition. (without addition I could not write
a single program)
beeing able to write functions. (without functions I could not write
a single real world program).

most over-rated or most misused:
automatic return 0 in main()
thinking that the NULL macro denotes a pointer

Seriously: This question have the same meaningful answer as the
question: What is the most useful part in a car?

--
Karl Heinz Buchegger
kb******@gascad .at
Nov 2 '05 #3
54*****@163.com wrote:
who can tell me [...]


I can tell you anything you want.
Nov 2 '05 #4
On 2 Nov 2005 05:00:29 -0800, 54*****@163.com wrote:
who can tell me which two features in the C++ language are most
usefule, and which two features that you think are the most over-rated
or the most misused and why you think so? Thanks very much!


[I normally don't respond to trolls, but I think there are sensible
answers to these questions, so I hope this isn't an attempt at
trolling...]

Most useful -- without a doubt, polymorphism and encapsulation. These
are features which can be found to some degree in other languages, but
the C++ implementation of these concepts is quite powerful and cannot
be found elsewhere IMHO. Templates and generic programming are almost
equally important, though. But since they came later to C++, I will
say that polymorphism and encapsulation are more important since they
were there from the very beginnings of C++ ("C with classes").

The other question is more difficult to answer. People tend to misuse
just about everything, but this is no fault of the language itself.
And I would say that just about all the features in C++ which are used
at all are certainly important. For example, should we condemn the use
of pointers just because there are people who do not use them
properly? You cannot outlaw the knife just because it is sometimes
used to hurt other people.

However, there are two things which probably not many people use and
might possibly be overrated:

(1) export (for templates). This is a potentially very useful feature,
but hardly any widely-used compiler vendors have implemented it. Many
seem to think that we could therefore get along quite well without it.
I can get along without it, but it would be nice to have for hiding
parts of the template source code. Once there are more compilers which
offer this feature, it will be easier to determine whether it is
actually as useful as those who introduced it seem to think it is.

(2) the <c...> STL headers which put the C runtime functions into the
std namespace. Since the names are almost always in the global
namespace anyway, I think most people just use the <.h> headers for
these (not for any other standard libraries, though...it is important
to remember to use <iostream> instead of <iostream.h>, for example).

--
Bob Hairgrove
No**********@Ho me.com
Nov 2 '05 #5
export usefull?? Very interesting in fact that using export template
didn't release you from distributing the source code of templates.

One usefull feature of export template is that you can split source of
you template into .h and .cpp, but this is only organisation of you
code.

Nov 2 '05 #6
On 2 Nov 2005 05:43:21 -0800, "Tomasz Sopek Sobkowiak" <so***@go2.pl >
wrote:
using export template didn't release you from distributing the source code of templates.


Thanks, I didn't know this.

--
Bob Hairgrove
No**********@Ho me.com
Nov 2 '05 #7

"Karl Heinz Buchegger" <kb******@gasca d.at> wrote in message
news:43******** *******@gascad. at...
54*****@163.com wrote:
Seriously: This question have the same meaningful answer as the
question: What is the most useful part in a car?


The back seat, of course. :-)

-Mike
Nov 2 '05 #8

<54*****@163.co m> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
who can tell me which two features in the C++ language are most
usefule,
That depends entirely upon one's notion
of 'useful', which changes with the purpose
of a program. It could easily be that for
a given program, some other language would
be more useful than C++.
and which two features that you think are the most over-rated
C++ often gets overrated by those who think its
the best tool for every job. One thing I see rather
often is that folks assume that a C++ program must
use OO features, whether they're applicable or not.
or the most misused
I've seen almost every feature of C++ misused
at one time or another, especially by those
who don't fully understand the language (I think
at some point everyone has been guilty of this).
and why you think so?
Because those are my opinions. :-)

Thanks very much!


You're welcome.

-Mike
Nov 2 '05 #9
On Wed, 02 Nov 2005 15:03:04 GMT, "Mike Wahler"
<mk******@mkwah ler.net> wrote:
What is the most useful part in a car?

The back seat, of course. :-)


LOL ... good one, Mike!

--
Bob Hairgrove
No**********@Ho me.com
Nov 2 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
2856
by: Michael Nahas | last post by:
Antti & all interested, The draft description of my language to replace C is available at: http://nahas.is-a-geek.com/~mike/MyC.pdf I am a long time C programmer (I read the old testament in 1987) and I've tried to keep the spirit of C and make as few changes as possible. I was mostly driven by the bloat of C++ and, now, C99. I was also
7
3142
by: Edward Yang | last post by:
A few days ago I started a thread "I think C# is forcing us to write more (redundant) code" and got many replies (more than what I had expected). But after reading all the replies I think my question about local variable initialization is still not solved. And some of the replies forked into talking about out parameters. And the thread is becoming way too deep. So I open a new thread here. My question in the previous thead has turned...
7
3284
by: RFS666 | last post by:
Hello, I would like to use variables with a type in jscript.NET. I declare them as follows: var x : double = 5.03; This doesn't work in my script, that I write to the page in codebehind with "registerClientScriptBlock" as follows: string script = "<script language=jscript>"; script += "function test()";
6
2119
by: Sean | last post by:
Hi, guys: I am newbie to the C++ from the C. I want to know something about the C++ language features! Could you describe your two favorite features in the C++ language and why you like them so much. Also describe the two features of the C++ language that you think are the most over-rated or the most misused, and why you think that is the case. Thanks in advance! Sean
669
25860
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
1
2078
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules written using other languages. Extensions of Python could be done via special interpreter extensions. From Python sources, the special modules would look like other modules, with the Python API (the key feature from
11
3166
by: Sarath | last post by:
I'm so much font of working with C++ . That's the reason why I'm not yet looked or craze about any other language. Still a question exists, really C++ is the best language in its category?
84
8555
by: aarklon | last post by:
Hi all, I found an interesting article here:- http://en.wikipedia.org/wiki/Criticism_of_the_C_programming_language well what do you guys think of this article....??? Is it constructive criticism that needs to be appreciated always...???
43
3659
by: Adem24 | last post by:
The World Joint Programming Language Standardization Committe (WJPLSC) hereby proclaims to the people of the world that a new programming language is needed for the benefit of the whole mankind in the 21st millenium. This new language not only differs from existing ones by new features and paradigms but which also brings real advantage by rigourously preventing bad programmer habits by omitting features which are outdated. In the proposed...
0
8437
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7375
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1759
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.