Re: CreateProcess in a loop



My style is my style; not everyone agrees with it. I am not as extreme as C++ purists
would like, and I'm more extreme than a lot of MFC example code. And in some cases my
code is completely idiosyncratic to me.

Sometimes I worry that the MFC example code is not the best-of-the-best. In extreme
cases, it is actually among the worst code I've seen, although those don't happen very
often. The problem is that sometimes they want to write an example in the fewest possible
lines, but the consequence is that the resulting code doesn't resemble anything a real
programmer would write.

char is old and respected, but it is old and respected like a long-retired University
professor. At one time char was important and represented state-of-the-art, but its
relevance for representing strings in modern programming is questionable. At one time we
had a lot of professors who were among the world's experts on vacuum tubes, but really
weren't up to these newfangled transistors. Nonetheless, they were still teaching, and I
have a friend who took his entire RF Theory and Practice course using vacuum tubes in
1979. char is used in very restricted contexts these days, or should be.
joe


On Wed, 22 Aug 2007 05:48:33 -0700, one-trick-pony <worldofpain.aamir@xxxxxxxxx> wrote:

Excellent. I look at book (and MSDN website) and see one and
sometimes 2 variations of code being used. You expose me to other
ideas or variations. Eventhough, you contradict sometimes what I read
in books but I think you write more robust, portable, fail-safe, and
good software engineering code. It seems to me you understand it at
a very high level of details as to what goes on in OS and system
resources. Beginners take it for granted and code for the sake of
seeing their programs work but that may not be the best approach (or
even accurate). Books I have are introduction to MFC which is not
always the best practice but "good" for a new coder because they hide
details. I am going to read up on wchar, _T and LPCSTR, LPSTR and
other string related pointers, data types and macros. I will visit
your website. All the books I have focus on char mostly. Thanks for
help.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Test Tools
    ... Extreme programming guys seems to be proponent to this practice. ... TDD works for Acceptance Tests and Unit Tests. ... Debugging is boring. ... a lot the way the programmer does his job, and therefore, the way ...
    (comp.software.testing)
  • Re: Programming Languages, "to C or not to C, that is the Q."
    ... Your extreme example serves to show that clarity is dependent on the ... It is not the language that needs to be clear, ... clarity is all on the programmer. ... > Extreme cases, to be sure, and yet Perl has such a lovely thing as this ...
    (Debian-User)
  • Re: Introducing bit-part characters
    ... in mind that not everyone reads the way they do. ... at the extreme end of visual readers, and just *could not* grasp that the ... stylistically beautiful books a lot more, so it's a tradeoff I don't ... at the extreme ends of the scale in either direction -- i.e., ...
    (rec.arts.sf.composition)
  • Re: Introducing bit-part characters
    ... at the extreme end of visual readers, and just *could not* grasp that the ... stylistically beautiful books a lot more, so it's a tradeoff I don't ... visual reader...but I also don't pay a terrible lot of attention to style ... at the extreme ends of the scale in either direction -- i.e., ...
    (rec.arts.sf.composition)
  • Re: Erotic/romance sf?
    ... and doesn't either shy away from sex scenes or bog down with them ... (IIRC, some books don't have any, or not more than one). ... the series' contemporaries, of course, but "Spaceways" is an extreme ...
    (rec.arts.sf.written)