I'm an employer. I've had people give me 2 weeks of notice at extremely inopportune times.
Right; I certainly wouldn't expect a bad recommendation if I did that. On the other hand, if I recognized that only giving two weeks notice would be inconvenient for my employer, and if it wouldn't be problematic for me, I think giving more notice is just a decent and honest thing to do.
For example, let’s suppose you are a two years out of college and have a job at a startup. You like your job but decide you want to go to graduate school. The big company legalistic types will tell you to secretly send in your applications, and, if you get accepted and decide to attend, give your boss two weeks notice.
What you should instead do is talk to your boss as soon as you are seriously considering graduate school.
This is bad advice. You should disregard it.
I'm an employer. I've had people give me 2 weeks of notice at extremely inopportune times. I am good for a solid recommendation for all of them. You don't dick around with people's careers.
Consider also the flip side of this issue. If you give me 2 months notice, and I need someone for a solid 4 months to execute a project, I may have to start recruiting now to fill that slot in time. We can talk all we want about the sacred bonds of trust between startup founder and startup employee, but none of that competes with the requirement to keep feeding and providing health care for the families of everyone else who works at the company.