How should you properly take antibiotics to ensure effectiveness and minimize side effects?

How should you properly take antibiotics to ensure effectiveness and minimize side effects?