Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To be honest, the only time I've seen glob() used was with an outsourced code bomb that was written to delete all the code if a get variable (think it was delete_everything) was passed, presumably in case we didn't pay up.

We paid, and surprisingly didn't choose to ask for any more work from that particular coder ;)

I like the example of sys_getloadavg(), but am unsure if I'd ever use it...



Was the contractor from Kerbleckistanian? ;) http://thedailywtf.com/Articles/Maybe-I-Needing-Later.aspx


Dear god, is this a common occurrence?


Agreed on sys_getloadavg(), by the time you get to PHP much of the overhead of serving the connection has already been incurred.


It's also a poor way to decide whether to stop serving pages. Depending on circumstances, it's possible for request handling to be still reasonable or completely wedged for same load numbers. The number is also dependent on the configuration of the machine so moving to a box with, say, more cores might make whatever magic constant threshold you put in your code even wronger.




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

Search: