Wow!! Such civilized culture :) In the US, unless otherwise negotiated, all employees are under the legal term "at will", which means firing/quitting can happen anytime and for any reason. Fortunately I have walked off the job on day one when I thought it was not as described :) But have also been fired plenty of times for assinine bullshit.
Maybe programmers in Cali are able to negotiate different contracts. But like 95% of non-state workers can be fired instantly I imagine in the US.
Cheers!!