How to Teach the Internet Dont

Today my Computer Science Principles classes are starting Unit 2: The Internet Unplugged.

So rather than a terrible exciting lecture on the structure of the Internet - translation "Heres what I think you should care about" - we started with questions.

Telegraph Lines


They were asked to write their own definition of the Internet, and share at least three questions they have about it.

Really, we all use it daily, so we should all have our own working understanding of what it is. By starting with their understanding I can see where we need to add information and what the emphasis should be.

The questions help me plan our activities. By the end of the chapter I want them to understand that the Internet is a physical thing, and be able to describe how it works. I want them understanding how content is posted and to discuss the implications ethically of its content. I want them to know a little HTML and CSS and have the confidence to look up what they need.

But first, I want them thinking.

Questions they asked:
  • How is it possible that the internet can be censored in some countries?
  • Who owns the internet?
  • Who made the internet?
  • How does it actually work?
  • Why was it originally created?
  • When did personal computers have access to it?
  • Who owns data on the internet?
  • Why is internet copyright so important?
  • How hard is it to break the internet?
Right now some of my favorites are Who owns the internet? and  How is it possible that the internet can be censored in some countries? 

Frankly we could start by investigating those two things and cover everything we need to know.

Bookshelf:

  • Tubes by Andrew Blum
    • Story of how theInternet is constructed - I summarized it here
  • As We May Think by Dr. Vannevar Bush
    • Originally published in 1945 this is the first description of linked text - "Thus he builds a trail of his interest through the maze of materials available to him." Really, read section 7 if you are short on time.
  • Blown to Bits by Hal Abelson (also available free here)
    • Good reading for students, especially the appendix
  • Stuck in the Shallow End by Jane Margolis
    • Also read this by Jane - great food for thought in this era of "tech fixes everything"
Some Lessons Well do:
  • Cups and Strings
  • Mapping the Internet
  • Underwater Cables
  • Why do HTML
Read More..

Crafting Computer Science Diversity

I have been thinking a lot lately about diversity in computer science.

The Beacon Hill Dollhouse
My world of technology started on just about  the smallest possible scale - in my dollhouse. Santa brought the dollhouse when I was 7. An Army brat, I already was well accustomed finding creative ways to entertain myself. In the miniature rooms and halls of that house, I learned more about tinkering and problem solving than from any classroom or textbook.

Being an Army Brat also meant moving every 18 months. I was allowed one one box of toys. Each new move meant brutal decisions about what made the cut. My constant choice through all the years was my dollhouse.

I built everything for the house from scratch, I was carpenter, furniture maker and electrician. By the time I was in the 5th grade, I had it fully electrified with a brass chandelier and a working ceiling fan.

Those early experiences -- of learning by exploring and by literally hard wiring my imagination -- now informs how I teach my students to program. I encourage them to connect the abstract code to the underlying electronics through hands on activities. My hope is to get them just as excited about making through code.
Read More..

Human Computer Interaction Oops

Today I was researching Human Computer Interaction as a part of a side project, and I came accross this gem:

http://www.usability.gov/what-and-why/user-interface-design.html 

The error message is cracking me up - do all the .gov pages use this? 

And in case you are wondering THIS is not a professional website.

Which is why it has been so far in few between on posts lately. Several projects are winding down, and big deadlines leave little time for posting.

The biggest of these has been CodeVA, a non-profit to support computer science education in Virginia. 

And of course the AP Computer Science MOOC is nearing the end of the first year. We are doing AP prep right now, with a diagnostic exam and live webinars, so if you students need AP review feel free to use what is posted there.



Read More..

To Make a Program you Have to Break Some Eggs


One of my favorite toys in computer science are plastic eggs. Cheap and they can be used to teach so many things. We are working on searches and sorts in the APCS class right now. They also work well when doing algorithms in the CS Principles class.

To start with searches and sorts I use plastic eggs filled with fish tank gravel. Email your faculty and parents - I guarantee you can get these for free. Fill the eggs with varying amount of gravel and tape them shut. Better yet have a kid do this. You are busy.




I let the kids pick a partner and each pair gets 6 or 7 eggs. Please do not forget to explain that the eggs do not have candy in them. I didnt do that the first time we did this and it made for a very disappointing mess.

Have them put the eggs in a row then "search" for the heaviest egg. Write out the steps you followed.

On the board I then do:

int eggs[] = new int[6];

This is in the APCS class, in CS Principles I make this less formal since they will be doing this in Scratch.

I have the kids come to the board and write out their algorithm, in Java in the APCS, pseudocode in CS Pricniples, using this array. Bam! They just all created a Linear Search.

So, why eggs?

I used to do this writing numbers on the board. They watched and I did. It is always better when THEY do. They are going to remember the Linear Search much better if it was their idea in the first place. 

Also, when you do numbers the amazing processor that is the human brain can just scan the list and pick the biggest. No problem. 

But a computer cannot do that - it cannot just look at a data set in aggregate and pick one. It must "touch" every piece of data in the set and make a comparison. Which is exactly what the kids do with the eggs. Point that out, they should know that.

This is also a good time to go over swapping. They get so confused on this.

How many times have you had them try to swap two numbers and they do:

a = b;
b = a;

Here is the fix: Hand each group some cups - make it look like you are giving them an arbitrary number, but make sure they all get at least 3.

Rule - you can only have an egg in a cup. NEVER can you have two eggs in a  cup. Now swap two eggs.

Again, once they get the point of using a third cup, you have them write out the algorithm in the language of your choice.
Read More..

Telling Stories with Data

Content has moved to CodeVAs Teachers Lounge - latest post: 


Telling Stories with Data: The Most Common Job In Every State

One of the major themes in Computer Science Principles is Data. This interactive map shows how jobs have changed throughout the years. It is a great example of how visualizations ...




Read More..

AP Computer Science Mock Exam

For the past few years I have been involved with VASS , the Virginia branch of the national NMSI AP readiness grants. They work in increasing access to college by implementing rigorous AP programs in STEM areas in public schools.



The program has a specific methodology for increasing student success in AP classes. There are a ton of things they offer teachers, and Ill write about those separately.

The method they use for students could be implemented anywhere. This includes:


  1. Weekly hour long structured tutorials in AP classes. This is not just "does anyone have any questions?" but a structured session that focuses on elements of the curriculum that will most impact student success. I spend a lot of time in these sessions on tracing code and writing code on paper.
  2. External prep sessions that cover course topics more in depth. We do these online and each session lasts an hour. 
  3. The annual mock exam. Students sit for an AP style exam as practice. We use the released 2009 multiple choice questions (purchased) and the free response from the previous year. The results are used to steer the review for each individual student.


I have been grading Mock Exams for VASS  all this week. It is so nice to see my students arent the only one making goofy mistakes. After grading over 50 exams I have noticed a few patterns that might help you prepare your students for the free response section.


  1. Many of the questions are set up as methods:
    1. Do not rewrite the method header or make changes to the header! (this one boggles my mind)
    2. If they give you parameters - use them
    3. Do not re-declare the methods as local variables
    4. If the method returns an int, declare an int and return it
    5. If the method is void DO NOT RETURN A VALUE
  2. These questions are usually in a larger class. Look for how the data is stored - probably as an array, ArrayList or a 2-D array.
    1. Do not re-declare that object locally. Use the one from the class.
    2. Do not use [] with an ArrayList
    3. arrays and Strings use .length 0 ArrayList uses .size

  3. Look for patterns- especially if you are stuck. You can sometimes steal a few points even when you have no idea how to solve the problem.
    1. simple array? put in a for-loop
    2. does it ask a question? Youll need an if-statement

In the next week I am thinking of putting all of the free response question prompts from the past 5 years on a sheet of paper, handing out highlighters, and letting them look for these patterns.

I wouldnt do these all at once, but as you do practice coding on paper encourage them to think in terms of patterns. Even the best programmer can get stuck when having to code on paper. These tips should help them from making silly mistakes.


Read More..

Binary Flippy Do How To

Today in AP Computer Science Principles we made the Analog Binary Calculator. We have been working up towards binary. I do not start them with the big explanation of This Is Binary.

Instead I do a series of puzzles as warm ups and exit tickets for the week or so before the actual lesson. That way by the time we get to full scale binary they have had some positive experiences and built their own understanding of how binary works.

(Why do I even do Binary? Here you go)

So for example I show them a picture of two light switches and point out they can either be on or off. Working with a partner they have to figure out how many numbers they can store using the light switches. What if we add a third switch, how many then? Without listing all the combinations can you predict how many numbers you could represent with 4 switches? This makes a great warm up activity.

The great thing about the flippy do is it is super easy to translate numbers back and forth. My stronger math kids pick up the number theory behind it quickly, while my weaker math students are successful so they will stick with it rather than tuning out.

If you also cover the full twos comp representation it is also an incredibly easy way to teach the steps.



Materials:
  • Index cards - 4x6 or larger
  • Markers
  • Scissors 
  • Rulers - helpful, but not necessary


Steps:

First you fold up the bottom 1/4, draw 8 columns, and cut the bottom flippy things like this:

Can you tell this is my white board?

Second, you label the powers of two. Then put 1s on the back of the flaps and zeros underneath as shown:



Then I have them do a few puzzles:
  • How may ways can you represent 13? 3? 15?
  • Count from 0 to 13. Any pattern with even/odd numbers?
  • What is the largest number this can store?
  • What is 01111111? 00111111? 00011111? - what is the pattern here?
The point here is, if I just tell them that there is only one way to make any base ten number in binary it goes in one ear and out the other. Snore.

If instead they are doing a puzzle, and after a few realize THEMSELVES that there is only one combo per number, they internalize that at a different level. They dont forget it.


After all this we do the algorithm to change from binary to base ten and back. The best part is when the kid in the back, the one that hates math, tells their neighbor "Hey, I actually get this".
Read More..
Powered by Blogger.