If your cucumbers or broccoli have started turning yellow they are probably over ripe, and should be sent straight to the compost pile. To find out exactly when your home grown fruits and vegetables are at their peak check out these two detailed harvesting guides:
Picking Fruits and Vegetables by WSU
When to Harvest Vegetables by Georgia Extension