10.06.2017 Views

A Handbook for Teaching and Learning in Higher Education Enhancing academic and Practice

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

286 ❘<br />

<strong>Teach<strong>in</strong>g</strong> <strong>in</strong> the discipl<strong>in</strong>es<br />

value recorded on the Frisbee, which is returned when they reach the end of the<br />

function call.<br />

This simple strategy graphically illustrates the difference. An extension is to attach<br />

a piece of str<strong>in</strong>g to each passed Frisbee so that a swift tug can precipitate the<br />

return; this provides a further neat illustration of po<strong>in</strong>ters!<br />

Data structures<br />

When they have mastered the basics of programm<strong>in</strong>g, students often move on<br />

to implement<strong>in</strong>g simple data structures such as l<strong>in</strong>ked lists or stacks. A significant<br />

part of the battle <strong>in</strong> teach<strong>in</strong>g these structures is to expla<strong>in</strong> to the students<br />

what such a structure is <strong>and</strong> how po<strong>in</strong>ters are usually used to implement<br />

<strong>and</strong> eventually traverse one. The students <strong>in</strong> a lecture room can be turned <strong>in</strong>to a<br />

l<strong>in</strong>ked list. One student is nom<strong>in</strong>ated as the head of the list (effectively a po<strong>in</strong>ter<br />

to the first item) <strong>and</strong> is equipped with a large ball of wool. The student throws<br />

this to another <strong>in</strong> the room, who <strong>for</strong>ms the second element, <strong>and</strong> so on. When<br />

a suitable structure has been created, the <strong>in</strong>structor can show how to traverse<br />

the list to f<strong>in</strong>d certa<strong>in</strong> values, <strong>and</strong> can show how it is vital not to lose the first<br />

element.<br />

It is straight<strong>for</strong>ward to extend this idea to expla<strong>in</strong> more complex operations with<br />

these structures, such as the deletion of an element. This requires some temporary<br />

po<strong>in</strong>ters (<strong>and</strong> scissors!) as the wool <strong>for</strong>m<strong>in</strong>g the list is cut <strong>and</strong> then tied back<br />

together.<br />

A word of caution<br />

The effectiveness of these techniques lies <strong>in</strong> their novelty. Lectures us<strong>in</strong>g ideas<br />

such as these will hopefully be memorable, <strong>and</strong> the subject of much discussion<br />

afterwards. That is important.<br />

It is probably possible to devise demonstrations to illustrate most parts of an<br />

<strong>in</strong>troductory programm<strong>in</strong>g course, but if they are overused they can lose their<br />

crucial novelty value.<br />

(Dr Tony Jenk<strong>in</strong>s, University of Leeds)<br />

<strong>Teach<strong>in</strong>g</strong> methods<br />

Courses <strong>in</strong> comput<strong>in</strong>g provide a mix of both theory <strong>and</strong> practice, thus enabl<strong>in</strong>g transfer<br />

of knowledge <strong>and</strong> the development of skills. Case study 1 highlighted the need <strong>for</strong> active<br />

rather than passive learn<strong>in</strong>g. In order to <strong>in</strong>volve students <strong>in</strong> active learn<strong>in</strong>g it is important<br />

that they are motivated, <strong>and</strong> this is best achieved <strong>in</strong> the learn<strong>in</strong>g environment by ensur<strong>in</strong>g

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!