yeah but equity * likely outcome is going to be comparable to a lottery ticket, not hard cash, unless you are 100% sure you can pick startup winners, and if you can why aren't you just into the funding market making 1000x than a developer per year?
You don't have to be 100% sure to be able to boost your odds.
One way to boost your odds towards picking a winner is to join in the employee ~15-25 spots. Early enough that equity is on the table, but late enough that some traction has been proven already to dampen your risk.