Hacker News new | ask | show | jobs
by wladimir 5175 days ago
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.
2 comments

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!");