Also to do our best to keep up with our health, so we may live long enough to enjoy life outside of work. It's not all about the money or legacy.
The first point shows hundreds, maybe thousands of people will see what you left behind, be it code, art work etc, but you wouldn't have time to socialise, build a family and be truly missed by loved ones. The second point, you don't have much of a legacy but your family, friends will truly miss you and remember you. So, yeah, try to have both, or just one. It's up to you.