An author should always keep his audience in mind. The trick is to know your audience. Even when there are 2 or more different audiences.
You can write bad code in any language. You can write good code in any language. The choice is yours.