cleverness

How many hardware details can a Java Applet Discover?

I'm writing a Java applet to run differently under different hardware. For instance if I know a computer has a large amount of RAM but a weak processor, I can alter the balance of some time-memory trade-offs. Being able to discover the exact make and model of the CPU on which the applet is running could be helpful. Having such informatio...

Help me understand this Brian Kernighan quote

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." --Brian Kernighan It seems to be a subjective question, but in your opinion, 'What exactly is he intending "clever" to be?' ...

Memory management for a convenience class to do asynchronous web requests

Inspired by Apple's LazyTables sample, I've just built myself a class called ImageLoader. It's agonizingly clever of me. And as is often the case when I'm agonizingly clever, I'm up against the limits of my wisdom about how to handle the memory of this object. The thing gets instantiated from a UIViewController subclass inside viewDidLo...