Poetry, like a photograph or a painting or a novel, is an object crafted by a human being. Not unlike Ruby or Javascript. It is designed to transmit information. Not just the facts on the page, but an emotion or feeling from the writer to the reader. Yes, art does fail to achieve this more often than not, though even objectively “bad” poetry will mean something, to someone. Rearrange the words on the page, change the structure or the syntax of a sentence and even that can mean something. See the work of e.e. cummings.
Code, on the other hand, fails completely when syntax and structure is not met exactly.
Read the rest here