I wrote a tutorial at Tuts+ about building a “Recent post” widget in WordPress using SimplePie feed parser and alternatively using WordPress fetch_feed function.
You get to learn how to use a PHP library in WordPress, how widget and plugins are created.
Read => Building a Recent Post Widget Powered by SimplePie