Monday, March 26, 2018

Digest for comp.lang.c++@googlegroups.com - 7 updates in 3 topics

James Moe <jimoeDESPAM@sohnen-moe.com>: Mar 26 12:08PM -0700

On 03/25/2018 01:31 PM, computer45 wrote:
 
> This is only one post here about Islam..
 
It should have been zero (0) posts.
Plonk.
 
--
James Moe
jmm-list at sohnen-moe dot com
Think.
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 26 10:58PM +0100

On 26/03/2018 00:29, Rick C. Hodgin wrote:
> his attack against you based on what you will believe. His goal is
> to keep everyone away from Christ, to keep them unforgiven for their
> sin and solidly on the path to Hell.
 
Speed of light mate.
 
#atheism
 
/Flibble
 
--
"Suppose it's all true, and you walk up to the pearly gates, and are
confronted by God," Bryne asked on his show The Meaning of Life. "What
will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery
that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates
a world that is so full of injustice and pain. That's what I would say."
Jorgen Grahn <grahn+nntp@snipabacken.se>: Mar 26 07:45PM

On Mon, 2018-03-26, Richard wrote:
>>the language feature as a whole, IMHO) is not needed in every program.
 
> I found that when practicing pure TDD, pure abstract interfaces show
> up more often in my code. That means virtual functions in C++.
 
Yes. That's one of the issues I have with TDD in C++: I have to make
my code more complex to use it.
 
 
> A modern compiler may even notice that this "virtual" function is only
> ever called on one particular class implementation and eliminate the
> indirection through the vtable.
 
That's good, but the problem (for me personally) is I find it harder
to handle code when there's a lot of inheritance. Except of course
when it replaces manual "if (type_a) do_a() else if (type_b) do_b()"
code; then it's the natural choice for me too.
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
legalize+jeeves@mail.xmission.com (Richard): Mar 26 08:20PM

[Please do not mail me a copy of your followup]
 
Jorgen Grahn <grahn+nntp@snipabacken.se> spake the secret code
>> up more often in my code. That means virtual functions in C++.
 
>Yes. That's one of the issues I have with TDD in C++: I have to make
>my code more complex to use it.
 
How does it become more complex?
 
I have found just the opposite. My code gets simpler because I end up
with good abstractions, highly cohesive classes and loosely coupled
deisgns. All of those things make for code that is simpler to
understand.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
Ian Collins <ian-news@hotmail.com>: Mar 27 09:44AM +1300

On 03/27/2018 08:45 AM, Jorgen Grahn wrote:
>> up more often in my code. That means virtual functions in C++.
 
> Yes. That's one of the issues I have with TDD in C++: I have to make
> my code more complex to use it.
 
How so? Is the design more complex, or do you just end up with more,
smaller pieces?
 
--
Ian
"Öö Tiib" <ootiib@hot.ee>: Mar 26 02:37PM -0700

On Monday, 26 March 2018 23:44:18 UTC+3, Ian Collins wrote:
> > my code more complex to use it.
 
> How so? Is the design more complex, or do you just end up with more,
> smaller pieces?
 
TDD does not cause shorter or less complex functions or
more interfaces. If people want they do like that for other
reasons but TDD does not push towards it.
TDD causes less function parameters, less and flatter
inheritance trees, more methods public and less global state.
Daniel <danielaparker@gmail.com>: Mar 26 10:45AM -0700

On Monday, March 26, 2018 at 12:35:24 PM UTC-4, Pvr Pasupuleti wrote:
> https://unacademy.com/lesson/controlling-loop-statements/3QOIQ506
 
Just for starters, you should be using
 
#include <iostream>
 
instead of
 
#include <iostream.h>
 
and namespace qualified std::cout and std::endl.
 
Daniel
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: