I know Apple uses interesting and groundbreaking projects to motivate and retain talent. They also rotate engineers regularly to keep them engaged