It really depends on your skill set in order to say if writing a Sidebar gadget is difficult or not. If you're comfortable with web technologies, I'd say writing a Sidebar gadget is easier than writing a desktop application.
Also, depending on what programming class you're taking at school, that may or may not be directly applicable.