What a developer does

People usually think the work of a software developer is to write code in one or more programming languages to create computer programs, build a website, or an application, and it’s valid to a certain extent, but what’s the real work of a developer?