Text this: Mean-field approximation for finite nuclei and nuclear matter