Who needs a stinking academy to provide a code challenge? With some basics under the belt (which of course you cannot do without) and google (which usually lands you at Stack Overflow), you can tinker away. Well, I can.
If I were to write the assignment, I might even force a rule that you have to use the second, fifth, sixth, and eighth result (or some pre scripted list).
But really, this was just a mod of my Words Without English Translation, and all I had to do was to make the function open a window with a URL built from a word chosen from the built in seed list.
I keep forgetting alot of code syntax, but it ends up being just a few seconds away, usually at wwwschools
Give it a try! http://lab.cogdogblog.com/soundslots/
It is easily modifiable, you can download the source code, and just edit the line in index.html to use the words that you prefer:
// create an array for the words, just add or edit this list
var wordBox=new Array('fire', 'storm' ,'spaceship', 'kids', 'thunder',
'monster', 'car', 'bear', 'walking' ,'baby', 'baseball','crowd',
'cheer', 'fizz', 'cat' , 'truck' ,'horn' );
This will run locally on your desktop if you just pop index.html in your web browser, no web server even needed.
I could not resist adding the animated gif touch to the page ;-)
Heck, I would rather do my own code challenges than someone else’s monkey see, monkey do. Thats the rub with this stuff, the motivation changes completely when it is something you need/want, versus someone else’s rote exercise for badges.
We may or may not get badges, but what we ought to focus on is generating the drive and motivation to learn what you don’t know.
The post "CogDogCodeAcademy: A Random Freesound Generator" was originally assembled from spare parts of a 1957 Chevy at CogDogBlog (http://cogdogblog.com/2012/02/random-freesound-generator/) on February 23, 2012.