The designer is more responsible for the visual part of the product and the engineer accounts for the technical side. But this does not mean that the designer should not understand the code. UX is an interdisciplinary profession that requires professionals to have extensive expertise in both areas.