There are many ways to do this. Personally, I try to keep up-to-date by following people on Twitter, which in my view is the most active source of developer information.
Another great way is to work with other people. This is especially relevant for freelance developers who work by themselves most of the time. Interacting with other people in a professional capacity means you get exposed to tons of different ways of thinking.