True for small tech companies, but major tech companies routinely flaunt CA loopholes to lay claim all sorts of employee-produced IP, and prevent moonlighting. If an invention is similar to something your company makes or might one day make (which could encompass anything for a major tech company), then they can lay claim to it and prevent you from moonlighting working on it.