Oct. 26th, 2009

zwol: (burn zombies burn)

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.

April 2017

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

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 7th, 2026 10:39 pm
Powered by Dreamwidth Studios