Disclosing affiliation with the product (or company, software, etc.) mentioned in an answer is always a good idea, and in general, disclosing affiliation is mandatory on Stack Overflow. However, one situation where it's not strictly required is when the question itself mentions the product. In these cases, it's not considered self-promotion, and the post would not be spam even if affiliation is not disclosed.
However, mentioning the affiliation is still a good idea, since it makes any bias the answer author may have apparent to future readers. If an answer already discloses affiliation, I wouldn't remove it, as that would make the answer worse. At the very least, leaving it in doesn't do any harm.
The additional pleasantries at the end of the answer isare just noise and should definitely be removed, as has already been done. Likewise for the mention of posting the sample on an external forum: that is irrelevant to the question posted on Stack Overflow, and should not be included in the answer, so I've gone ahead and removed that sentence.