zwol: (burn zombies burn)
[personal profile] zwol

API hall of shame (names redacted to protect the guilty): I have just found a class that must be used as follows:

void foo(Input *in, Output *out)
{
  Processor proc;
  proc->SetOutput(out);
  proc->Process(in, out->ThingOne(), 
                out->ThingTwo(), out->ThingThree());
}

Process() retrieves ThingOne through ThingThree itself, and asserts that its caller passed the same values. I could not make this shit up if I tried.

Date: 2009-10-27 12:27 am (UTC)

Date: 2009-10-27 12:42 am (UTC)
From: [identity profile] zwol.livejournal.com
There's some archaeological indication that SetOutput and Process used to be called very far from one another, but that's not an excuse for making Process' caller retrieve Thing[123], which AFAICT have always been available from the Output object.

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819 202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 10th, 2026 03:58 am
Powered by Dreamwidth Studios