Sunday, July 19, 2015

Digest for comp.lang.c++@googlegroups.com - 5 updates in 4 topics

chris.hinsley@gmail.com: Jul 19 03:33PM -0700

Hi folks I just thought I'd drop a message here in case anyone is interested in a chess app I've done in C++14. Just a single file and no OS specific bits, should compile and run happily on most system.
 
https://github.com/vygr/C-Chess
 
Best regards
 
Chris
ram@zedat.fu-berlin.de (Stefan Ram): Jul 19 07:02PM

>And what's C++ all about, if it's not about being pedantic? :)
 
»I have never, ever, ever seen a great software developer
who does not have amazing attention to detail.«
 
http://www.softwarebyrob.com/articles/Personality_Traits_of_the_Best_Software_Developers.aspx
 
Programming is about expressing your ideas so that other
people can understand them,
 
"Programming is understanding." - Kristen Nygaard
 
"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand."
- Martin Fowler
 
This suggest that it is about using a language correctly.
 
»I've found that some of the best [Software ]developers
of all are English majors. They'll often graduate with
no programming experience at all, and certainly without
a clue about the difference between DRAM and EPROM.
 
But they can write. That's the art of conveying
information concisely and clearly. Software development
and writing are both the art of knowing what you're going
to do, and then lucidly expressing your ideas.«
 
Paul Potts
http://praisecurseandrecurse.blogspot.com/2007/03/english-majors-as-programmers.html
 
»Besides a mathematical inclination, an exceptionally
good mastery of one's native tongue is the most vital
asset of a competent programmer.«
 
Edsgar Dijkstra
 
»While sloppy writing does not invariably mean sloppy
thinking, we've generally found the correlation to be
strong -- and we have no use for sloppy thinkers.
If you can't yet write competently, learn to.«
 
Eric Raymond
 
http://www.catb.org/~esr/faqs/hacker-howto.html#skills4
 
»The narrative measures of conjunction use, event
content, perspective shift, and mental state reference
were significantly predictive of later Math scores.«
 
http://www.arts.uwaterloo.ca/%7Edoneill/papers/Storytelling%20and%20math.pdf
Louis Krupp <lkrupp@nospam.pssw.com.invalid>: Jul 19 04:49AM -0600

On Fri, 17 Jul 2015 09:52:11 -0700 (PDT), Doug Mika
<dougmmika@gmail.com> wrote:
 
.. snip ..
>So it begs the question, when we write vector<int>::const_iterator myIterator
>can I deduce from this that const_iterator is an inner class of vector<int> class? Is it?
 
To be pedantic, it doesn't *beg* the question, it *raises* the
question. Hopefully, this link is accessible without a New York Times
subscription:
 
http://afterdeadline.blogs.nytimes.com/2008/09/25/begging-the-question-again/
 
That links to this page, which might be helpful:
 
http://begthequestion.info/
 
And what's C++ all about, if it's not about being pedantic? :)
 
Louis
Andre Zunino <neyzunino@hotmail.com>: Jul 18 09:47PM -0400

Hello.
 
Given
 
class Sprite { /*...*/ };
 
class Toon : public Sprite { /*...*/ };
 
, then doing the following
 
Sprite& s1 = Toon {};
 
is invalid since the result of the right-hand side expression is an
rvalue, which can't be bound to a non-const reference.
 
Sure enough, making it const like
 
const Sprite& s1 = Toon {};
 
takes care of the problem.
 
Now, suppose you actually want to keep the reference as non-const, in
order to be able to invoke non-const members, would it be OK to use an
rvalue reference?
 
Sprite&& s1 = Toon {};
 
I've been using it like that and have not run into any problems, but I'd
like to know where I'm stepping.
 
Thank you for your comments.
 
--
Andre Zunino
"Öö Tiib" <ootiib@hot.ee>: Jul 18 07:05PM -0700

On Sunday, 19 July 2015 04:48:11 UTC+3, Andre Zunino wrote:
> order to be able to invoke non-const members, would it be OK to use an
> rvalue reference?
 
> Sprite&& s1 = Toon {};
 
Yes. However where you need that? In most circumstances
that works lot better:
 
Toon s1{};
 
> I've been using it like that and have not run into any problems, but I'd
> like to know where I'm stepping.
 
Yes, tell us why you use it?
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: