Kevr3_100x100_small Kevin Rodgers 7 posts

Near the end of episode 5, you left us a short homework assignment where we had to write the code to make the Obits navigation item use the “current” class. I think that leaving us some tasks to figure out on our own is a good idea to help the learning process. My recommendation would be to leave us one or two of these tasks at the end of each episode. You can include the answer code in the archive so we can check our solutions against yours. Then, at the beginning of the subsequent screencast, you can go over the solutions.

Incidentally, following is the code I used for the Obits task.

<li><a {if segment_1 == "obits"} class="current"{/if}href="/obits">Obits</a></li>

 
Ryanirelan_headshot_48x48_small Ryan Irelan 73 posts

Hey Kevin, thanks for the feedback. I’m glad you liked the idea of homework. I’m not sure I’ll do it every episode, but there are times when I’d like provide you the chance to put your new skills to test. Maybe we can use these forums as a place to discuss the answers?

BTW, your code looks good!

 
Kevr3_100x100_small Kevin Rodgers 7 posts

I think instead of giving the homework in the actual screencasts, it might be better to post the questions in the forum (sort of like extra credit for those who want to learn more). My thought is that some viewers may feel they are not getting full value if they have to read these forums in addition to watching the screencasts.

3 posts, 2 voices