What do programmers actually do?

I left a physics job to do software engineering. Was it worth it? What do software engineers actually do?