Hacker News new | past | comments | ask | show | jobs | submit login

A rock would be too simple; this is PHP, after all.

(Where's my NailDriverDeviceFactoryModuleImpl?)




You're confused with Java. In PHP it is simple, just counter-intuitive and set up to mislead you. It would look like a rock but turn into a viscous liquid as soon as you try to hit the nail and the nails get stuck in it.


Sounds like a description of a non-newtonian fluid, like maize flour mixed with water (which you can compact in your hand but liquefies when thrown), or quicksand.


In Java it would be:

DeviceFactoryFactory().createDeviceFactory().getNailDriverDeviceFactoryModuleImpl();


http://steve-yegge.blogspot.com.au/2006/03/execution-in-king... For the lack of a nail, throw new HorseshoeNailNotFoundException("no nails!");




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: