I already invest in a company that I know well, Apple. Being a hacker, a Mac/iPhone/iPad developer and a fan (no so much lately) I know and understand the company quite a bit. I bought some stock in 2009 and it's performing quite well. But I know the risks of falling in love with a company, that's why I'm trying to differentiate.
save a little money, consistently, over a long period of time
I'm lucky that I have learnt this a long time ago, coming from a family that had economic problems since I can remember. My parents taught me the importance of saving with bad examples.
Regarding index funds, I don't live in the USA and I'm trying to figure out how I could invest in them (it does not seem so simple, from here).
Still it's important to diversify your portfolio: Pick at least two companies to invest into. There is no need to pick more than five.
Don't sell in panic when price goes down -- if you didn't sell company when you was more expensive yesterday -- why sell it today when you get even less? Don't buy in greed when stock price goes up. If you didn't think that company was undervalued yesterday -- why buy it today when it's even more expensive?
You are right to invest long term. If you are buying/selling same stock more often than once per year -- you are spending too much time on it. Time that you could better spend in your profession.
Lesson: invest in companies where you have a good/deep understanding of the product/industry.