As commented above, yes, it is possibly illegal under UK law. For example:
(1) A person is guilty of an offence if, with intent to cause a person harassment, alarm or distress, he: (a) uses threatening, abusive or insulting words or behaviour, or disorderly behaviour, or (b) displays any writing, sign or other visible representation which is threatening, abusive or insulting thereby causing that or another person harassment, alarm or distress.
Yet that seems to produce much better software than Google or Microsoft
Not really. Please do not confuse Apple's successful products with anything else. Microsoft still delivers on software products in a way (admittedly a hardware company)Apple never could. Oh and as for comparisons with Google, thats even more ludicrous.
http://www.h1bwage.com/