Hacker Newsnew | past | comments | ask | show | jobs | submit | jackbracken's commentslogin

In fact the dinosaur statues are not plastic. They were constructed from cast concrete in sections and supported internally by brickwork. I used to love visiting crystal palace to see them as a child.


It gives the number of free places, hinted by the method name `available_places`

Needlessly ugly way to write it imo though


But it doesn't. The code will only ever output 0 or 1. With a regular <=> operator at least.


yeah, so basically 1 we have available places, 0 we do not.


I think it probably made sense to the author because they've used all three (-1,0,1) for other examples, and would've been fine until separated out to a method reused to show the actual number.

I think they tried to be a bit too clever, basically.


Release more bugs


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: