You don't have to choose to be a generalist to have career security. If you pursue mastery, you will be building skill-acquisition at the deepest levels, and picking up skills that are ancillary to that master-set. Don't follow the latest trend - develop mastery.