That really shouldn’t be the case: A well-designed UI can help define the underlying code, while code snippets can power prototypes that refine project deliverables by showing users the shape of an application.
There’s long been a tension between designers and developers, with code and user interface often seen as being in conflict.