From the beginning of the history, developers have aimed to write the best code they could and make it the most performant they could to reach the “end”.
Programming, like most other craft, is a means to an end, while there is art and craftsmanship in the process, it is almost always tied up to some sort of physical or other constrains (quoted omeid)