Re:An actual PHP hammer with the claw on both sides
by wladimir on Friday April 20, 2012 @02:48AM
(#3866785)
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.
[ Parent
| on HN ]
Re:An actual PHP hammer with the claw on both sides
by lloeki on Friday April 20, 2012 @03:12AM
(#3866827)
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.
Re:An actual PHP hammer with the claw on both sides
by wtracy on Friday April 20, 2012 @02:56AM
(#3866795)
In Java it would be:
DeviceFactoryFactory().createDeviceFactory().getNailDriverDeviceFactoryModuleImpl();
Re:An actual PHP hammer with the claw on both sides
by angusgr on Friday April 20, 2012 @03:15AM
(#3866835)
http://steve-yegge.blogspot.com.au/2006/03/execution-in-king...
For the lack of a nail,
throw new HorseshoeNailNotFoundException("no nails!");