How do you learn vocabulary?

I've just finished reading Yearlyglot's post saying that one should not study a language, but rather learn it. To some extent I have to agree, but »