Spot the Signs. According to Alison Green, who writes the blog Ask a Manager, this is common practice for some industries, especially if you're leaving to work for a direct competitor. However, in those situations, you'll likely know it's coming and can prepare accordingly.
The Thank You. Next, it's always a good idea to thank your employer for the opportunity, describing some of the key things you've enjoyed and learned on the job. And yes, this is true even if you're thrilled to be leaving. Remember__you may need these people for a reference down the line, and leaving things on a good note will leave a lasting (positive) impression.