short circuit evaluation  

Ruby doesn’t look at both expressions unless it has to; if it sees

false && true

it stops reading as soon as it sees && because it knows false && anything must be false.

 
0
Kudos
 
0
Kudos

Now read this

HTTP, a stateless protocol

The Protocol Every Web Developer Must Know - Part 1 HTTP Made Really Easy These two links are what I read on. From requests, server make it responses. It’s a stateless, application-layer protocol for communicating between distributed... Continue →