You will never gain anything from negative people, the only thing you will learn is how to look on the bad side of things. Make it a goal of yours to stay away from perpetually negative people.
When you surround yourself with people, you tend to share characteristics with them. The last thing you need it to pick up a habit of always being negative. Stay positive and away from others who will just install doubt in your mind.