Re: The Mark of a Serious programmer.

From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 10/10/04


Date: Sun, 10 Oct 2004 20:23:16 GMT

Jeff Relf wrote:
> Hi Myxococcus xanthus,
>
> You told me: <<
>
> Using macros, you've defined your own private language.
> Because of this, everything you state is completely irrelevant
> to any discussion about the relative merits of C versus C++.
>
>
> That's how a Serious programmer reads code.
>
> And no, I am not saying that you should try to read my code,
> nor am I suggesting that you should run it.
>
> I can use macros because I've been coding professionally
> for the last 23 years... I'm still delivering code.
>
> Macros make the code look a Thousand times better,
> it simplifies the source code and reduces complexity.
>
> Use #define... You Idiot !
>
> As an example of how macros clarify source code,
> take a look at this code which
> extracts a server name from an article's Path line:
> ( taken from X.CPP http://www.Cotse.NET/users/jeffrelf/X.CPP )
>
> // XHd() sets P ( char * ) to the raw Path line
> // and B to a free buffer.
> // Path is one of the XHdr commands that I used:
> // enum { XOver, Path, User_Agent, X_Newsreader, H_Cnt };
>
(rest of example clipped, TV)

Have you tought to enter into the Obfuscated C Contest?

See <http://www.ioccc.org/>.

(Coded professionally since summer 1964, and still doing)

Tauno Voipio
tauno voipio (at) iki fi



Relevant Pages

  • Re: Data Type Converter
    ... >> in C is done with macros. ... Without such methods the source code ... My primary goal is a C to Delphi converter, ... But there exist no restrictions on the number of back-ends for that converter, ...
    (comp.lang.pascal.delphi.misc)
  • Re: Runtime macros
    ... Since other people have complained that macros in Common Lisp are already first class, I wonder what term they would like us to use for macros that may be passed around as functions may be and used in that way? ... use") the runtime constraints are never violated and I never ... But the minute somebody assigns to source code I have to throw out everything that depended on the constant-sourcecode constraint and fall back on the unoptimized versions. ... And, unfortunately, I haven't got any optimizations working ...
    (comp.lang.lisp)
  • Re: S-expr form of C
    ... representing C source code in s-expr form? ... for a more literal "representation" of C source in s-expr form, ... I actually generate it from CLOS objects, and have macros defined to build these CLOS objects from the corresponding S-exp. ...
    (comp.lang.lisp)
  • Re: The Mark of a Serious programmer.
    ... > it simplifies the source code and reduces complexity. ... Macros may be ok for addressing portability issues. ... In a given scoop you can create a container full of trolls and never ...
    (comp.os.linux.development.apps)
  • Re: Masm32 error line number limit
    ... source code line numbers higher than 65535. ... I'm guessing this must be a holdover from 16-bit days. ... the limit when making heavy use of macros in an HLA program of ...
    (comp.lang.asm.x86)