K
Kevin Aylward
Guest
Chuck Harris wrote:
Mission Statment:
The fundamental mission of any and all software (in business) is to
maximise the financial profit returned to the financial investor of the
code producer. Nothing else matters.
For example, writing a GUI is Windows API functions will take an order
of magnitude longer then writing in MFC. In the cases where such code is
hypothetically larger, it is clearly not needless based on the mission
statement.
one needs large memory is because applications have gotten larger and do
more, ie. more features, irrespective of the coding language.
Secondly, for 99.99% of applications memory and speed is simply not an
issue. There are millions of MS VC programmers out there, not embedded,
500Mhz real-time ones. Sure, there are applications that are quite
thrifty, but one has to move with the times.
specifically to stop you doing this. C is a complete nightmare. It lets
you do anything. For example, its difficult to set a pointer to one
function type to another in C++. The compiler wont let you do it
directly. The reality is, if the the code compiles, it usually works. I
have done a lot of work in both c and c++, an its a no brainer, c++ is
the only way to go.
Kevin Aylward
salesEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.
Nope.Active8 wrote:
Tell it to Dennis Richie, the designer of the "C" language, he
codes:
for(;{
}
As do I.
i can read it, but i'm not use to or fond of it. it reeks of java.
It can't reek of java, it preceeds java by more than 20 years!
the style:
for(;{
}
is known as *K&R style*. I know, because I have been using it since
the late '70s when I was programming in "C" on early Unix edition 6
and 7 on PDP-11/70s.
The reason I format my "C" code that way is it saves 1 line per
block. This makes it easier to see an entire complicated block in a
single screen without in any way obscuring the block nature of the
language.
unless you add another line. then your on another screen.
If are used to the language, it is no problem to see the beginning
letter of the for, while, if, function, ... as the beginning of that
block.
But seriously, this is simply a matter of personal preference...
I've never met a good "C" programmer who couldn't bounce back and
forth from one style to the other as necessary. But given that it
is you Kevin, it really doesn't surprise me that you would be so
intolerant of coding styles that don't match your own.
-Chuck
c's nice for embedded, but C++ rules. those old c habits, functions,
etc. creeping into application codes are bad, IMHO.
C++ needlessly bloats the code.
Mission Statment:
The fundamental mission of any and all software (in business) is to
maximise the financial profit returned to the financial investor of the
code producer. Nothing else matters.
For example, writing a GUI is Windows API functions will take an order
of magnitude longer then writing in MFC. In the cases where such code is
hypothetically larger, it is clearly not needless based on the mission
statement.
Don't be bloody daft. You don't really believe that do you? The reasonIt is the primary reason that
people need 160GB hard disks, and 1Gb of ram on their computers.
one needs large memory is because applications have gotten larger and do
more, ie. more features, irrespective of the coding language.
Secondly, for 99.99% of applications memory and speed is simply not an
issue. There are millions of MS VC programmers out there, not embedded,
500Mhz real-time ones. Sure, there are applications that are quite
thrifty, but one has to move with the times.
Thats right.A good programmer writes good code. It doesn't matter much what
language he uses.
I disagree. Its quite the opposite. C++ type checking is designedC++ allows ALL of C's dirty tricks, and more.
specifically to stop you doing this. C is a complete nightmare. It lets
you do anything. For example, its difficult to set a pointer to one
function type to another in C++. The compiler wont let you do it
directly. The reality is, if the the code compiles, it usually works. I
have done a lot of work in both c and c++, an its a no brainer, c++ is
the only way to go.
Kevin Aylward
salesEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.