Nope, midwest US. Two weeks notice is social etiquette as a minimum to avoid burning a bridge, so to speak. There's nothing against giving further notice.
Thinking back on it, though, I would absolutely not give further notice if I was only doing "busy" work (as someone suggested elsewhere). I try to maintain a good relationship with my employers as a professional courtesy. Putting out notice beyond what active work I have would, I think, send a signal that I'm looking to collect an easy pay check and disconnect. Lining up my resignation with my active work sends a message that I am still invested in contributing to my team's success, and that's a good way to have people be more than happy to give you referrals or networking opportunities in the future.
That's interesting. In my experience, I've somehow managed to score referrals despite daring to give less than 2 weeks notice and my previous bosses still recognize my investment in the company's success. It's rather amusing that the midwest isn't more forgiving when it comes to shorter notices, or that an employee is instantly branded as a "bridge-burner".
As with all social etiquette, it's a guideline, not a law. The outcome depends entirely on your relationship with your boss and what kind of position the team is left in when you leave.
Don't you have it defined in your contract typically? It is in the UK. Two weeks is about the minimum it'd be for a professional job, often more with seniority or time at a company (i.e. contact will say +1 week for every two years or whatever).
Most employment positions in the US are at-will, meaning either party is legally allowed to terminate at any point for no reason given, barring legal protections against discussion and retaliation.
It's different if you're a contractor (i.e. not an employee but hired for a specific contractor term) or in a union (not an issue for most software engineers). My experience with both is indirect.
Thinking back on it, though, I would absolutely not give further notice if I was only doing "busy" work (as someone suggested elsewhere). I try to maintain a good relationship with my employers as a professional courtesy. Putting out notice beyond what active work I have would, I think, send a signal that I'm looking to collect an easy pay check and disconnect. Lining up my resignation with my active work sends a message that I am still invested in contributing to my team's success, and that's a good way to have people be more than happy to give you referrals or networking opportunities in the future.