Re: Antenna programming tool/language/compiler/preprocessor?



Tom Ring wrote:

> ...
our code (my "code" is probably 80% comments) and don't declare (assuming they declare at all) our functions as void. Unless they
> ...
tom
K0TAR

I certainly would not go about bragging in that style, dead sign of lack of structure/logic in the code leading to obfuscation and requiring extraordinary effort of documentation ...

The comments in source are only meant for other programmers, they already know how to program, you don't have to teach 'em, nor attempt to impress them with your brilliance--if such is present--they'll know.

With the proper use of significant names for variables, structs, defines, etc. and programming for a "logical flow" of code, few comments are needed (approx. 10-20% comments should be more than sufficient--if the source is structured and non-obfuscated.)

Krist, they pay me to engineer software, not write books ... (if management had their way--they'd screw that up ...)

SIMPLIFIED EXAMPLE:
// call at any point to debug/check variables
(void) debug_printout_of_variables_used(float whip_self-capacitance_pf,
float coil_self-capacitance_pf,
float coil_inductance_uh,
...)
{
cout << "Whip self capacitance (pf): " << whip_self-capacitance_pf << endl;
cout << ...
...
}

JS

.



Relevant Pages

  • Re: Dull, but useful links
    ... It's aimed at serious programmers and serious compiler ... executed using double precision operations if neither range nor ... of a float, and because the precision of f1 was that of a float and d ...
    (uk.rec.sheds)
  • Re: Naming structs with a variable
    ... remember that structs are value types in .NET. ... reference semantics) should be the default choice. ... I said that there were two reasons. ... Experienced .NET programmers with a firm grasp of value semantics ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Advantages of C++ over C - request for information
    ... > are improving programmers efficiency on long-term project development. ... die-hard C programmers... ... in structs and writing functions to work with structs. ...
    (comp.lang.cpp)
  • Re: How to write optimized/efficient C programs....?
    ... programmers community. ... it is intensely irritating when code fragment one works on float *'s and fragment two works on double *s. ... You end up either rewriting functional code or writing little interface functions to allocate buffers of doubles and convert them from floats. ...
    (comp.lang.c)
  • Re: To coerce or not...? struct sockaddr vs struct sockaddr_in
    ... Does this just happen for structs? ... expected to make sense of a float??? ... be right in assuming that the compiler generates code to convert ... movl -152,%eax ...
    (comp.lang.c)