in reply to Creating an Intermediate Perl Programming Curriculum
A debugger gives you a chance to step through a program and quickly hover over variables to show how they have changed. They are good for learning and reading code, even if your own day-to-day coding challenges don't benefit from using them.
For objects, I would just teach how to create a hash and bless a reference to it. Then show how to use references as hash values to make a more complex object. I struggled with teaching various automatic-object-creation modules until I found that the hash explanation works better.
I also like to explain common design antipatterns to intermediate programmers, since they tend to be familiar with them! 'The Big Ball of Mud' is a good story to go along with the learning about object-from-hash-reference.
|
|---|