I question the thesis that "writing" code productively is the only part of DX. When I consider DX, I consider that code is written less often than it is amended, than it is read, and than it is run.
Getting all of those things right is DX, not just writing.