I completely disagree. in the long run, a company is not going to remember you gave them a lot of notice before leaving. your coworkers aren't likely to remember either, at least in terms of your ability to get references.
at the same time giving a long notice has a lot of downsides. your offer can get rescinded and now you are either jobless or have a very awkward conversation. your managers in this time will not respect your time, they will pile on all the work no one else wanted. 'lets put so and so on call, they are leaving in a month anyways'.
at the same time giving a long notice has a lot of downsides. your offer can get rescinded and now you are either jobless or have a very awkward conversation. your managers in this time will not respect your time, they will pile on all the work no one else wanted. 'lets put so and so on call, they are leaving in a month anyways'.