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

You know, it's kind of sad. Before reading the article, I was going to post a reply to your comment like "but omg, javascript has functions that are values!!1". Then I read the article, and found that that's the first "hidden feature".

I guess "hidden feature" means "something that's not in PHP".

I also like how people use terms like "null coalescing operator" when everyone else calls it "short circuiting". They are so smart!!11!



The "Hidden features of PHP" section is pretty damn funny actually, but not in a good way. I can summarise it for you if you're lazy:

  "ZOMG - PHP has arrays! Arrays are like, super cool!"


short circuiting is only half of why this example works. The other half is that boolean operators in javascript don't implicitly cast the result as a boolean type.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: