L
Lynn McGuire
Interesting article on why C++ development may be fading but it
will never go away: http://apenwarr.ca/log/?m=201007#22
Lynn
will never go away: http://apenwarr.ca/log/?m=201007#22
Lynn
will never go away: http://apenwarr.ca/log/?m=201007#22
Interesting article on why C++ development may be fading but it
will never go away: http://apenwarr.ca/log/?m=201007#22
Uhm, some good stuff, some bad.
I've gone through and I've read the precedent post too, a rant about C++
(not that the one you linked isn't a rant, it also is, somewhat).
Although his rants contain a fair bit of good speech (as for the
contents), it's a shame he shapes it interleaving gratuitous vulgarities
and insults: that's the drop that moved the needle from "towards" to
"away", for me.
I gave up at "C and C++ both get the job done in their respective
niches. And those niches are shrinking dramatically". I assume he hasn't
heard of embedded devices.
I gave up at "C and C++ both get the job done in their respective
niches. And those niches are shrinking dramatically". I assume he
hasn't heard of embedded devices.
I gave up at "C and C++ both get the job done in their respective
niches. And those niches are shrinking dramatically". I assume he
hasn't heard of embedded devices.
Francesco S. Carta said:Although his rants contain a fair bit of good speech (as for the
contents), it's a shame he shapes it interleaving gratuitous vulgarities
and insults: that's the drop that moved the needle from "towards" to
"away", for me.
Well, is the other guy is right, and there's nothing to do about it, one
can still use call up some stilistic issue do dismiss the content... :-o
Interesting article on why C++ development may be fading but it
will never go away: http://apenwarr.ca/log/?m=201007#22
Interesting article on why C++ development may be fading but it
will never go away: http://apenwarr.ca/log/?m=201007#22
Sort of whiny.
Does not like
* std::string (template gibberish).
* boost::format (template gibberish).
* boost::bind (template gibberish).
* std::map (operator [] and template gibberish).
Especially long he goes on about std::map's operator []. His long
speech about its "Ha-ha" downsides felt longer than to read the<map>
header (350 lines or so).
So seems ordinary whiner. If that Avery Pennarun could code he could
write some pennarun::map behaving like he wants quicker than all the
obsenities he wrote about standard one.
Further than the complaints you pointed out, that are all about the STL
and as such can completely be worked around (as you correctly said), he
pushed himself that far as to say that a pointer to member function
should hold a "this" pointer - that is, a complaint about the language
itself: he would prefer those pointers to be tied to one specific
instance instead of pointers that can be applied to whichever object.
In practice, how often are pointers to member functions used? I don't
think I've ever had cause to use one except for exotic RPC applications.
Jonathan said:Not just that. Look at http://www.langpop.com/
C, C++, and Java are consistently in the top 3 by all kinds of
metrics. I've seen similar stats elsewhere.
More than that, but I think Java's numbers are a bit inflated.
Not sure about universities elsewhere, but in Canada Java is
the "intro" programming language. So statistics like "most
discussions on site _____" will include a lot of 1st and 2nd
years asking generic questions about how to make a stack and
such (in Java).
Francesco S. Carta said:Too bad you snipped the parts where I said that some of that content is
_bad_.
I've not dismissed it just because of its style: had it been more right
than wrong, I would have kept a reference to that website, but since it's
50/50 (at best) and since it's pretty bad style, I feel I can safely
dismiss it.
There are tons of more knowledgeable people that write in a far more
pleasant way, my spare time is limited by definition and I _have_ to make
a choice about what to read: wrong information, vulgarities and insults
tell me I can safely drop that source, whatever "right" things that source
could give me.
Öö Tiib said:Especially long he goes on about std::map's operator []. His long
speech about its "Ha-ha" downsides felt longer than to read the <map>
header (350 lines or so).
So seems ordinary whiner. If that Avery Pennarun could code he could
write some pennarun::map behaving like he wants quicker than all the
obsenities he wrote about standard one.
Ian Collins said:In practice, how often are pointers to member functions used? I don't
think I've ever had cause to use one except for exotic RPC applications.
Francesco S. Carta said:I think I'll give it a shot, I'm really curious because it seems to be an
undervalued feature.
IMO more like too good -- we both know that your away speach is mere
notpicking on a randomly selected sendence, that is quite irrelevant
wrt. the content.
I'd be really interested how you calculated that 50% bad figure. Do you
think std::string is not a monster? That std::map is not broken in the
interface? That C++ lacks lots of undamental support for trivial things
that we struggle to cover with template magic with all its painful
consequences (what btw after stripping concepts is bound to stay for
another decade?)
When I'm concerned about tinme spent on nonintertesting stuff, I start
by NOT writing about in in a forum. ;-)
The landscape is pretty simple.
STL introduced iterators, algorithms, and stuff tso you can supposedly
write in that style.
But those ideas are hanging in the air, and turn not usable at all. For
the very issues mentioned, there is no working way to call your functions.
The minimum would have needed:
- something that is usable like boost::bind, with native support
- built-in support that is now covered by boost::ref and boost::cref
- perfect forwarding
- iterator that in modeled like GOF iterator rather than on simple ponter
- resolving the error: 'reference to reference' issue. At least for the
natural const& to const&. :-((
- allowing definiton of local functions, or at least local classes
usable with templates
just what pops up in a few minutes
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.