My own experience with watching lectures is that I feel I understand everything as I listen to them, but once a week passes I have trouble explaining anything but the basic gist of what I learned. My experience with assignments is that they force me to acknowledge just how incomplete my understanding of what I learned was. With programming in particular, I feel like lectures are an important framework that help guide your learning, but that most of the actual learning takes place in the assignments.