Skip to main content

Posts

Showing posts from June, 2016

Coding with Chrome's JavaScript API

Coding with Chrome is a new Google application that's built to help people learn how to code.  It supports Blockly, CoffeeScript, Pencil Code, and JavaScript.  It's free to download and works right your the Chrome browser. I've been working on some educational material for the new application.  One of the things I really like about it is that it provides a really simple drawing API so you can easily code shapes and drawings instead of starting off with the command line.  Since the application gives you an immediate response, you're able to experiment and see how changing your code affects the picture on the screen. Here's what I've learned about the basic drawing API.  You can download this file and try experimenting with the code yourself. /*  * draw.clear() clears the screen.  */ draw.clear(); /*  * draw.point(x, y, color, size) draws the specified point on the screen in the  * specified color.  *  * @param {number} The X-coordinate for the p

Final Exam, Question 16: Star Boars

This has become a routine now: I don't give extra credit but on final exams I usually include a gimme question that involves something absurd.  I've done it a few times before ( pigs in hats  /  hippos thinking about tacos  /  happy rabbits ).  For my web development class's final exam, question 16 was: "Illustrate what a warthog would look like if it were piloting a spaceship.  Title your drawing Star Boars."  These are the finest submissions. I tried to time this one with the release of the new Star Wars movie but I'm not so good at getting this kind of thing done so you get it 5 months late. Disclaimer: the dark side would have won if they had more porcine TIE Fighter pilots. As usual, click the small images to see the bigger images. Even after sustaining significant damage, this pig perseveres.  Star Boars are dedicated. Not sure if this is a pig or a normal guy with a big mustache.  Also the Pig Box was way better than the P