A more elegant way to handle notices/warnings

It is a good practice (and suitable for production) to log the errors, instead (or in addition to) displaying them. See Configure Error Logging in Codex.

I usually combine it with my Error Log Dashboard Widget plugin for bit of UI on live servers.