Monday, March 16, 2015

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

legalize+jeeves@mail.xmission.com (Richard): Mar 16 06:57PM

[Please do not mail me a copy of your followup]
 
Martijn Lievaart <m@rtij.nl.invlalid> spake the secret code
 
>> I second that emotion.
 
>I don't. I've seen tons of shitty code by C++ programmers who should read
>Meyers to get the basics right.
 
Naturally, it depends your experiences. I'm not saying that every C++
programmer writes the best code. I have learned plenty of ways to write
better C++ from other C++ programmers as well as other programmers who
use different languages. If you are willing to learn and improve your
code, then I have respect for you.
 
Learning from others on how to improve your C++ is why I implemented
the C++ language track on exercism.io.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
legalize+jeeves@mail.xmission.com (Richard): Mar 16 07:02PM

[Please do not mail me a copy of your followup]
 
Wouter van Ooijen <wouter@voti.nl> spake the secret code
>perspective: YOU might settle on a reasonable subset of your language to
>write your code in, but each feature will end up in someones subset, so
>to read and maintain code you will need to understand the whole language.
 
Yes and no. I would argue that you don't need to understand every
single nook and cranny corner case of the language, but you need a
basic grasp of all the concepts.
 
There are template metaprogramming techniques that only library
implementors need to understand, for instance. There's understanding the
language syntactically/semantically and there's understanding the idioms.
There are plenty of idioms used by library writers that I am unfamiliar
with and that's OK. I don't need to know those in order to use their
library.
 
A good example is Boost.Spirit which probably uses most template
library tricks under the hood. They even have a way of helping you to
make sense of the "error novel" when it occurs as a user of their
library. (You go to the location in the header of the failed static
assert and look for a comment that says "If you got this error, it
probably means you made the mistake of (whatever) and you need to do
(remedy)."
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
legalize+jeeves@mail.xmission.com (Richard): Mar 16 07:06PM

[Please do not mail me a copy of your followup]
 
Johannes Bauer <dfnsonfsduifb@gmx.de> spake the secret code
 
>The problem is not that C++ is a bad language, it's a fantastic one. The
>problem rather is that it is MUCH more complicated than C is [...]
 
Have you looked at Stroustrup's "Tour of C++"? I don't think C++ is
any more complicated than C# or Java.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
BGB <cr88192@hotmail.com>: Mar 16 02:31PM -0500

On 3/16/2015 1:04 PM, Scott Lurndal wrote:
 
> One of the largest users of big "embedded" SoC's (like the Cavium
> 48 core MIPS parts) are network appliances (switches, routers,
> intrusion detection, deep packet inspection, etc).
 
yes, ok, ... wasn't really thinking of these.
 
I looked it up before, my current home WiFi router used a 1.6 GHz ARMv7
processor and has 128MB of RAM.
 
I am not sure how the software in a router or network appliance would
compare with something like that used in industrial or robotics or
automotive applications or similar.
 
I had generally lumped them more in with computers and web-servers and
similar.
 
 
 
had noted it slightly odd that home routers use somewhat faster
processors than what I am using for my robotics stuff, but oh well.
router boards tend to lack usable GPIO pins though and are more
expensive than the boards I am using.
 
generally, what I end up with is a mixture of parts intended mostly for
automotive and power-tool applications (say, lots of parts intended for
power-drills, chainsaws, ...) and similar, maybe with a few parts
intended for use in cell-phones, ...
 
then, one may soon discover that things like heat and electrical noise
and similar can be issues (parts overheating and shutting down,
electrical noise making the controller crash-prone, ...).
 
 
say, for example, how well does a Raspberry Pi run when only a few
inches away from a running chainsaw engine and surrounded by a bunch of
power-tool motors?... not necessarily all that great sometimes... (one
basically ends up with lots of filter capacitors everywhere and
surrounding it in aluminum foil and similar).
 
also electrical contacts are fun (... solder everything ...).
heating issues are also fun... (don't forget to add some fans).
...
 
 
but, then again, maybe this is part of why some MCUs cost a little more
and have lame-duck hardware stats, but higher than normal operating
temperature ranges (say, -40C to 145C and similar...).
 
 
or such...
BGB <cr88192@hotmail.com>: Mar 16 03:33PM -0500

On 3/16/2015 2:06 PM, Richard wrote:
>> problem rather is that it is MUCH more complicated than C is [...]
 
> Have you looked at Stroustrup's "Tour of C++"? I don't think C++ is
> any more complicated than C# or Java.
 
try writing a compiler for each...
 
the results may be surprising, and I suspect one may see that C++ is,
in-fact, a fair bit complicated...
 
but, language complexity is not quite the same as ease of use.
actually, one of the simpler languages here (Java), is actually rather
unpleasant to write code in (say, I prefer to avoid writing any Java
code if I can do so, though, there are plenty of worse languages around...).
Christopher Pisz <nospam@notanaddress.com>: Mar 16 05:56PM -0500

On 3/16/2015 2:06 PM, Richard wrote:
>> problem rather is that it is MUCH more complicated than C is [...]
 
> Have you looked at Stroustrup's "Tour of C++"? I don't think C++ is
> any more complicated than C# or Java.
 
I disgaree. A friend of mine once told me that in Java and C# you can
take bad programmers, and while they will still write bad code, they
won't write as bad of code as you would get if you took a bad programmer
and set him out on a C++ project. Reason being, they simply don't allow
some of the things that get people into trouble.
 
I mean, no pointers or allocations by itself cures a lot of bad
programming problems. Wide vs Multibyte (internal) strings also seem to
be a non issue. No #define for macro messes. If I remember right, there
was also no multiple inheritance, so no need to worry about order of
instantiation there. They probably don't deal with the C++
initialization fiasco either, but I'm not sure.
 
I'm sure there is still horrible code in all languages, but
statistically, I think C# and Java are a tad bit harder to make
apocalyptic messes in.
 
 
Admittedly, I haven't delved very far into either one. I am still
waiting for the job where I can get paid according to my C++ expertise
and learn more C# or Java while there. But it seems there is never an
empty backlog of problems to fix when you come on as the new C++ guy.
 
 
--
I have chosen to troll filter/ignore all subthreads containing the
words: "Rick C. Hodgins", "Flibble", and "Islam"
So, I won't be able to see or respond to any such messages
---
Melzzzzz <mel@zzzzz.com>: Mar 16 08:02PM +0100

On Mon, 16 Mar 2015 18:19:32 GMT
 
> Starting with Cfront 2.1 (before templates, before exceptions and
> before STL). Much of this was done on a motorola 88100 using PCC
> as the back-end for cfront.
 
Wow!
 
 
> That works out to $400,000/yr. That's high for even here in
> the valley. But it's not completely out-of-line for experienced
> senior engineers once options are factored in.
 
I remember back in late 90es 200$ (early 20s ?) per hour was almost
norm ;)
 
legalize+jeeves@mail.xmission.com (Richard): Mar 16 07:58PM

[Please do not mail me a copy of your followup]
 
Melzzzzz <mel@zzzzz.com> spake the secret code
>> senior engineers once options are factored in.
 
>I remember back in late 90es 200$ (early 20s ?) per hour was almost
>norm ;)
 
People who get paid by the hour are called contractors and are
generally hired for short-term work. Contractors don't get any
benefits and they don't have the guarantee that they'll be employed 40
hours/week, 52 weeks/year. It is erroneous to take the hourly rate
and just convert that into 40 hrs/week, 52 weeks/year salary that
includes benefits like health insurance, life insurance, disability
insurance, etc.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
woodbrian77@gmail.com: Mar 16 01:24PM -0700

On Monday, March 16, 2015 at 2:02:31 PM UTC-5, Melzzzzz wrote:
 
 
> I remember back in late 90es 200$ (early 20s ?) per hour was almost
> norm ;)
 
I think Eisenhower was the last decent President.
Between Bushes/Clinton/Obama things have gotten worse.
 
 
Brian
Ebenezer Enterprises - In G-d we trust.
http://webEbenezer.net
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Mar 16 08:25PM

>> norm ;)
 
> I think Eisenhower was the last decent President.
> Between Bushes/Clinton/Obama things have gotten worse.
 
Fucking sausages mate.
 
/Flibble
Vir Campestris <vir.campestris@invalid.invalid>: Mar 16 09:20PM

On 16/03/2015 15:13, Christopher Pisz wrote:
> All my jobs have been single language for myself and my peers. In a
> Windows environment. Usually, C++ for backend and C# for front.
 
That's two languages... :P
 
I'm with the more-than-one. This week I've been writing a C++ interface
for a Java Android service that's being called from some existing C code.
 
Andy
Christopher Pisz <nospam@notanaddress.com>: Mar 16 05:43PM -0500

On 3/16/2015 4:20 PM, Vir Campestris wrote:
 
> I'm with the more-than-one. This week I've been writing a C++ interface
> for a Java Android service that's being called from some existing C code.
 
> Andy
 
Well, only if you are developing both the backend and the front end with
the same people simotaneously! However, there are usually two distinct
teams for that with distinct skill sets.
 
I really hate it when they mix and match, because then you get some
silly willy trying to duplicate some concept from another language. Ever
seen someone try to derive everything from a base object class that does
nothing?
 
 
--
I have chosen to troll filter/ignore all subthreads containing the
words: "Rick C. Hodgins", "Flibble", and "Islam"
So, I won't be able to see or respond to any such messages
---
Christopher Pisz <nospam@notanaddress.com>: Mar 16 05:47PM -0500

On 3/16/2015 2:58 PM, Richard wrote:
> and just convert that into 40 hrs/week, 52 weeks/year salary that
> includes benefits like health insurance, life insurance, disability
> insurance, etc.
 
True! Since Obamacare kicked in my insurance premiums are a good $500 a
month instead of the $120 they used to be! When I am contract. I don't
even bother with disability... It was pretty insane expensive to get
anything that would make a difference.
 
Also, as contract, I take way more time off, because there is no PTO
pool, you just don't come and don't get paid instead.
 
If I am full time employed, like I am now, thank goodness, my premiums
are a couple bucks to nothing.
 
 
 
--
I have chosen to troll filter/ignore all subthreads containing the
words: "Rick C. Hodgins", "Flibble", and "Islam"
So, I won't be able to see or respond to any such messages
---
"astro.del.cielo" <vedi@lasignature.com>: Mar 16 10:51PM +0100

Il 14/03/2015 06:47, Jorgen Grahn ha scritto:
> an actual programmer) you can try to work around the obstacles and
> using trial and error and, using all kinds of ugly tricks, accomplish
> what you want.
 
I wrote to zmodo support and it tell to me they add my request "to to do
thing"
 
I found a solution.
Not very elegant but i think it solve 99,9%
Record mouse moviment (and reaplay) in a wm machine that every minute
click on color button
I must only have time to trye, but it for me is not difficult
 
> It's nothing I can help with, but I wanted to point it out since
> astro.del.cielo seems to show some trace of promise. Great things
> sometimes start with someting absurd.
 
astro.del.cielo not indicate Christmas
It mean something like: a object of the sky
a small (small) point of the universe
 
bye ;)
 
--
a.d.c.
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: