Scratch 2.0 – an update…

It’s good to see some interesting news about Scratch 2.0 – in my previous post I mentioned re-working old scripts. As a fun challenge, I decided to re-work my old Flash games on ICTspecialist.com as Scratch 1.4 scripts. Partly because I keep coming back to my old viewpoint, that teachers should be given the opportunity to re-mix and re-work an interactivity so that it fits in with their scheme of work, rather than having to re-write their curriculum to incorporate a pre-written resource.

However, I’ve moved on a little. I’ve since concluded that it’s even better if they have the choice to edit – but also have a number of pre-written interactivities to choose from. And one day, I’ll get round to providing something like that on a larger scale…

In the meantime, here’s an example of one of my Scratch re-writes, I plan to have the ICT Specialist site completely re-done before the end of February – then it’s back to seeing what I can do with InteractiveStuff.org.

Learn more about this project

Re-working old scripts

I’ve reached that part of the planning for a makeover at www.interactivestuff.org where I need to work out why some scripts no longer behave the way they used to. Particularly some fun database-backed stuff I wrote over six years ago.

One part of me says, “Don’t bother – no-one visits those pages anyway.” However, it would be nice to re-work the whole of what used to be on the site – rather than just the popular pages.

Embedding Scratch Code…

Embedding a Scratch applet to play on a blog is easier than you might think – provided you think carefully about what you’re doing.

You can upload your Scratch file to the your account on the Scratch website. Mine is at http://scratch.mit.edu/users/David_Hellam.

However, if you have created several slightly different versions of an interactivity, and you don’t want to clutter your Scratch account with them, you can host them on your own website.

There are two files you need – ScratchApplet.jar and soundbank.gm – full instructions are given in the support forums.

All I did was copy these to a folder on my site and placed my .sb files in the same folder.

Then I just changed two parameters for the applet code snippet for embedding Scratch files, so that the codebase pointed to the directory with my files in it, and the project’s value to the filename for my .sb file.

Here’s an example:

EDSAC rises!

Old computing devices give us a fascinating insight into the development of ICT over the years. Manchester has a reconstruction of Baby at MOSI (in fact there’s a whole website about the 60th anniversary of the world’s first stored program computer). The Science Museum has Babbage’s Difference Engine. Now, according to the BBC, EDSAC will be rebuilt at Bletchley Park.

Sliding Blocks – revisited

I’ve posted some further examples of my Scratch version of a sliding block puzzle on my math games weblog for anyone to see the range of ideas you could use this same puzzle for. I’ve also made reference to a couple of possible starting points for investigation for a Math/Computer Science entry to Google’s new Science Fair – if you have not yet had time to see the range of categories as well as the entry/submission requirements (not to mention the prizes), I’d recommend you take a look.

Google Science Fair

It’s arrived!

My teacher’s pack from the Google Science Fair arrived by FedEx this morning. Inside are pre-printed letters, posters and some sticker-like things that intrigue me. More details will be available from Google’s website on Jan 11. My guess is that it will be similar to ThinkQuest or Doors To Diplomacy – but will encourage students to participate in original research/experimentation and document their results. Depending on the categories for entry whether there’s an emphasis on practical experimentation, I may have some students who would be keen to participate.

Website Design

It’s website design time again in my Key Stage 3 scheme of work. Last year, I piloted something different to see if it would work. Actually I tried two different ideas with different years – both worked, but one worked far better than the other.

So, I’m going to refine this and see if I can come up with a Unit that other teachers can play with.

It’s a simple enough idea – giving an existing site a make-over. Last year, I took my Mathematical Interactivities site and discussed making a new homepage – provided them with screenshots and text, and ended up with some good quality introductory work – this year, I think we’ll do a whole site. I’m going to re-work ICTspecialist.com with my Year 8 students. As an introductory exercise, I’m thinking that my ComputerPogrammingClass.com website needs a complete overhaul into a Scratch Arcade and tutorials website – that will be the Year 7 project.

Over the weeks, I’ll post different examples of what I’ve done with my students and evaluate the effectiveness of each part.

The software I’ll be using is KomPoZer = it’s free, if you’ve not taken a look at it, I’d recommend you give it a whirl.

Scratch – sliding blocks

Some fun with coding in Scratch.

Daughter #1 received a simple sliding block puzzle as a cracker novelty this Christmas. So, I thought it would be fun to create a simulation of this sort of thing in Scratch. Sliding block puzzle programs are nothing new. I remember a friend writing one in high school, and making the classic error of just randomly assigning the initial positions of the pieces – which meant that half the time you ended up with an unsolvable (should that be insoluble?) puzzle. I’m sure there was also one in David Ahl’s BASIC Computer Games compilations from Creative Computing.

I decided that I’d use a list as a data structure in Scratch to store the information about which block is where. There are two reasons for this. First of all, this keeps the values of each block independent of what is displayed as the sprite’s costume. So, I can substitute individual costumes to be elements of a larger picture, words/letters/symbols or more interesting number patterns (will probably post more about that one on my math games blog after I’ve made a few examples to show what I mean). Secondly, using a list makes it extremely easy to check that the puzzle is complete.

However – Scratch has its shortcomings when compared to Flash. It’s not so easy to encapsulate (woo hoo – fancy programming term) instances of code and recycle them as general-purpose procedures. Instead, I’ve ended up with nine sprites with chunks of code that has been copy-pasted and then edited by hand to hard-wire each one to make it work for that specific sprite. I’m sure I could crate just one general-purpose movie-clip in Flash that I could then get the script to replicate, and have all the functionality of the sprites in my Scratch version.

The big question is, do I have the cheek to submit it to Mozilla Labs’ Game On competition, just for fun? (deadline for submitting open standards games is on Jan 11)…

On writing good code…

Having scrawled my fair share of spaghetti-like quick-and-dirty scripts in my time, I warmed to this post on xkcd. As a teacher, it also has a striking similarity to the approach of how to get your solution to match the model answer and hope no-one notices that the two don’t join in the middle.

For the uninitiated, xkcd is a repository of cartoons by Randall Munroe. The thought behind some of the diagrams is impressive. Although, as the homepage warns, it sometimes isn’t suitable for viewing in school on your interactive whiteboard.

It’s possible to add it to your RSS reader, or for those of you who use a comics widget on your iGoogle homepage, you can add it to that too…

Who Knows Best?

According to the TES, with only a few days before BETT, Microsoft published a survey with some interesting results – and some very different conclusions to the one I would make. Unfortunately, I can’t find a press release on the Microsoft website yet – so there’s no way for me to analyse the data beyond the treatment given in the TES article.

According to the quotes there, the majority of UK high school students feel that they know more about ICT than their ICT teachers, and that they learn more about ICT at home than they do at school.

The slant given by MS’s senior director for education is that there’s a serious disconnect between school ICT and the needs of the business community. This implies that schools should do as they are told, and produce obedient little office drones.

I’d agree that there’s a serious disconnect, but I would say the problem is exacerbated by the polarisation of seeing ICT merely as either office productivity tools, or a cornucopia of fun stuff. Both approaches are essentially utilitarian – reducing the role of the computer to that of a box which adds value to something much more “important”. Neither view has room, or curriculum time for empowering students to unleash their creative energies through creating original software. This could be to demonstrate what they have learned across the curriculum, or to solve a practical problem – but would it be any less valid, if it was simply to show off their talents or to explore something that piqued their interest?

My simple, ill-thought-out contribution to the ongoing debate is that until we address this, we risk training ICT specialists who are ill-equipped to bridge this false dichotomy of perceived “needs”. But I’ll wait until I see more information about the survey before pontificating further.