We paid particular to the difference between passing variables by value and by reference.
Students did a paper exercise on passing by value and by reference.
We looked at recursive functions for multiplication and Fiboancci sequence. The Colin tried the code for the Towers of Hanoi off the top of his head. The code was OK but tracing the execution of it on the board was a head-wreck.
While we were waiting for everyone to arrive I gave out a HTML exercise.
For this module should should already know
some HTML
how to program
I spoke a little bit about the inverted classroom model. Note everybody watched the videos in advance. But that's not a big surprise
I asked students to install XAMPP on their machine if they had them handy. We looked at how to view html file and PHP files via localhost. The files must be in htdocs.
We looked at variables in PHP and string manipulation.
Students did an exercise on variable substitution in PHP. That's tricky.
We looked at the assessment for the module.
We didn't continue on the the labs at 2015. We all went home.
I asked students to watch the following videos before next week's facetime. We'll see how that works and whether it frees up time for coding.
Not everybody managed to get the exercise done on time.
A common mistake was to close of the list items too soon. When a list is nested inside another, it goes inside the li. So closing off France with a /li when there are cities inside it, is incorrect. Lists are not that important, but that exercise illustrates the structure of HTML.
If you struggled with this exercise, this video might help.
The HTML validator at validator.w3.org is a great resource for checking that HTML is correct. Just because something looks OK in the browser, doesn't mean it's correct. We don't need a lot of HTML for this module. So we won't dwell on it too much.