Wednesday, December 30, 2020

Looking Back on Computer Science Education in 2020

What a year it has been. I was reading my start of the year post from January. The closing was “2019 has some serious potential.” I had no idea what was to come in 2020. By the middle of March I was teaching online to students who were doing their best to learn from home. It really changes a lot for teachers and students.

So what changed? Well, there was some serious growth in online development tools. Teachers moved to or increased their usage of tools like GitHub, Repl.it, and other online IDEs.  I still like the solution my school used (and continues to use now that they are mostly in-person) of a cloud based virtual machine. That the big cloud companies (I’m looking at you Microsoft and AWS)  haven’t jumped on this means they have missed a huge opportunity in my opinion.

Plans for a lot of physical computing went by the wayside as schools either didn’t have equipment to send home with students or didn’t want students sharing devices that could not be easily sterilized. I suspect emulators got a lot of use.

Along with school, conferences went virtual in 2020. It looks like that will continue into 2021 as SIGCSE will be virtual. It’s still uncertain if CSTA 2021 will be virtual or in-person.  CSTA 2020 went pretty well online. I enjoyed presenting virtually. Though to be honest it wasn’t quite as much fun as presenting in-person. I couldn’t hear people laugh at my jokes for one thing.

For myself, the biggest change of the year was retiring from the classroom at the end of June.  So I have missed most of the crazy on the fall of 2020 school year. I have been watching what my friends have been going through though. I guess I picked a good time to retire. I do miss the kids though.

Friday, December 18, 2020

Pythagorean Theorem Day Programming Project

I’ve been doing little programming projects for my own amusement. I thought about doing Advent of Code like the cool kids are (Looking at you Mike Zamansky who among others is blogging about those challenges) but I just can’t get into them. I need to scratch my own itch as it were. The other day a friend posted on Facebook that the date was a Pythagorean Theorem Day – 12-16-20 because a right triangle with a height of 12, a width of 16 has a hypotenuse of exactly 20. It’s a cute idea if we ignore that the year is really 2020 not just 20.

I commented that calculating the next Pythagorean Theorem Day would be a fun little programming project. Today I thought I would try it myself. The set up is pretty easy. Nested loops for month and day and using the usual math.

There are two issues. One is that not all months have the same number of days. The other is that we want an exact whole number for the hypotenuse.  The first was solved by creating an integer array with the number of days in each month and using those values in my equation.

The second took some thought. There are probably some really cool mathematical ways to do this. I thought about this and decided to cheat a bit. I converted my floating point result into a string, cast it into an integer, converted the integer value to a string, and then did a string compare. The result of the compare determined if I displayed the result or not. There are 12 such dates in case you are interested. Only two of them are after 20 though.

I leave figuring the rest out as an exercise to the interested (or assigned) programmer.

A few things make this a nice student project in my opinion. Nested loops of course, using an array to simplify the programming, and what ever you use to determine if the hypotenuse result is an integer or not. And it is short so you can use it as a demo or an in-class project.

What do you think? How else would you determine if the result was an integer or not?

Thursday, December 17, 2020

Musings on the Goals of High School Computer Science Education

Recent conversations on Twitter and Facebook have had me thinking about the goals of teaching computer science in high school. There is no single goal and it probably varies some by teacher, school, and student population. My goals were basically:

  • Give students a basic understanding of computing and computer science to better understand the world around them
  • Create an interest in computer science so students are willing to learn more.
  • Create in students the idea that they can “do computer science.”

I would rather not prioritize them. I think I did a pretty good job with the first goal. That’s probably the easy one though. But it is pretty important. Helping students better understand the world around them is at the heart of a lot of education. We don’t expect every student to be a novelist, a biologist, a chemist or a professional mathematician. So we are not (usually) expecting HS CS students to become professional programmers.

The second listed goal is pretty hard to measure objectively. I hope I made my classes interesting and the subject itself interesting. A number of students did go one to major or minor in CS so there is that. I hope I didn’t turn too many off.

The last listed goal is also hard to judge objectively but it’s really important. People don’t continue to invest time if they don’t thing they can succeed. Any one can learn computer science. Anyone can learn to program. Some may have to work harder at it than others and some will find it more interesting than others. Student have to know that they can do it if they choose to try.

If students choose to study more CS I want them to have a solid base to build on. I think that is a given. Right? Unless I succeed at the three listed goals above there is not much point in anything else though. So I made the course rigorous and I try to teach the concepts and ideas and good habits that I learned over the decades. I do it with a goal of building success, interest, and understanding of computers in the world today. I’m not just trying to teach the computer science nerds, no matter how much I love then, but all of the students in my class.

Monday, December 14, 2020

Dreidel Game–A Chanukah Programming Project

If you’re anything like me, you like to assign projects that have some relationship to what is going on in the world. Holidays are one such thing. December brings the Jewish holiday of Chanukah – usually right before Christmas. The Dreidel game is a game traditionally played during the Chanukah celebration. It is played with a top that has four flat sides. Each side has a letter of the Hebrew alphabet.

ש Shin ה Hey ג Gimmel נ Nun

The game has multiple players each of whom is given the same number of tokens. Players all place one token in to a “pot” and spin the dreidel to see who goes first. The player who spins the highest value starts. Note: nun is highest, then gimmel, hey, and shin. If there is a tie, the players who tied spin again.

Each player takes turn spinning the dreidel and taking an action depending on what letter they spin.

* Shin: put one more token in the pot
* Nun: do nothing
* Gimmel: take all tokens from the pot
* Hay: take half of all tokens lying in the pot.In case of an odd number of tokens, round up.

The game ends when one player has all the tokens or after some set period of time or mutual agreement.

There are lots of ways to program this of course. Normally, at this point in the semester I have been teaching students how to create simple classes. So when I wrote my solution I created a dreidel class. There are some reasons that this makes for a nice class to create. There is the usual protected data – the face value of the dreidel. And there is the obvious spin and get value methods. I also over loaded the ToString and CompareTo methods.

The ToString method allows for displaying the name of the face value of the dreidel. CompareTo is particularly useful for selecting the high spin at the beginning of the game.

I also added some public const values for the face values so that I could use them in calling programs without the programmer needing to know what the actual values are.

if (player.Value== Dreidel.Shin)

Here we have a fairly simple game to program with a class that lets the programmer do some interesting overloads and activities without too much complexity.

Inspired by a project idea posted on the AP CS Teachers Facebook group group (https://www.facebook.com/groups/APComputerSciencePrinciples/permalink/1873272652824371/)  Thanks to Lee Whiteley for sharing with the community..

Thursday, December 03, 2020

New Resources for Teaching and Learning about Artificial Intelligence

Earlier this week I was a guest speaker in a computer science class (via Zoom of course). It was fun to be back into a class and interacting with students. The students were asked to prepare questions for me and many of the questions were about artificial intelligence. That’s not surprising as AI has really jumped into the public in ways it hasn’t before. That’s why it is timely that code.org has created a new resource for teaching and learning about AI.

The main resource page for this is at https://code.org/ai There you will find a bunch of short videos of 3 to 5 minutes that cover various aspects of AI. Several of the videos explicitly focus on getting people to think about the ethics involved. Satya Nadal, Microsoft CEO, in his introduction makes one of my favorite points right off the bat. It is not enough to think about what computers can do but we also need to think about what computers SHOULD do. Ethics are woven into all the videos and not just the once focusing on ethics.

The videos are typical code.org videos. That means high production values and a diversity of impressive speakers. Presenters represent a variety of ages, races, and colors. They are all impressive and are practitioners in the fields of AI. There are academics and there are people from industry. They really highlight a broad cross section of people involved in AI today.

Besides the code.org videos there are links to videos from other organizations, lesson plans, and activities powered by artificial intelligence and machine learning. And more. It’s a great place to start building the set of curriculum that will work for your course and the age group you teach.

Tuesday, December 01, 2020

Why Do I care About This Program I am Coding?

Why do we program? Well, for some of us it is because we get paid to write code. For some it is part of our learning experiences. For a few it is the fun of it. There are a lot of motivations and they are different for different people. A couple of posts have been thinking about this lately.

Mike Zamansky has bee posting about the Advent of Code event. (Mike’s initial post here Advent of Code 2020)  Today I replied to his post about the first puzzle with the following.

I struggle with these problems a bit. Not because of the technical issues but because of motivation. Or perhaps relevance.  Why would I need to do this? What interesting or important problem does it solve? I guess the issue for me is that solving a problem for the sake of solving a problem, proving that I can did it basically, is not motivating to me. Maybe I have been programming too long to feel like I need to prove anything to myself. OR anyone else for that matter. I get that for some the challenge is enough motivation and that they get satisfaction from the effort. The journey being more important than the destination I guess. And that is fine and if people enjoy doing it that is wonderful. I'm happy for them. It just doesn't motivate me.

As I thought about it, this also related to a post by Mark Guzdial recently. Purpose-first programming: A programming learning approach for learners who care most about what code achieves: Katie Cunningham’s Defense I hope to be able to hear Katie’s defense tomorrow. And look up her papers.

When we as educators assign projects or do demos, what is the purpose of of the code? And does anyone care about it? Students work harder and longer, it seems to me, on projects that they care about. Not just for the grade though that motivates some. Do they want to see the program work for themselves? I always found that the hardest working most motivating projects were the ones students selected or decided upon on their own. Projects that solve problems that are meaningful for them are much more effective than projects that are more about “just do this to learn how this concept works.

I’ve been playing with code myself lately. Each project has taught me something but I was motivated more to solve a problems that was interesting to me than to learn the new concept/algorithm/language feature or what ever I learned. This is what we as educators need to bring to our students in my opinion. They have to care about the problem and not just the grade.

Sunday, November 29, 2020

Does It Matter How Fast the Code Is?

I’ve been having a lot of fun playing with code lately. One of the things I have been experimenting with is cryptography (See Tiny Book of Simple Cryptography) For one project I wanted to create a string of ones and zeros to represent the binary value of letters. I quickly came up with three ways of doing this. I know that are probably many more ways than that. But for now I have some that work and one of them I really like.

Which one is best? Well, that depends. Which one is the fastest? That depends as well. I think I know which one is fastest. It uses the bitwise & operation which generally is pretty quick. One used the Math.Pow function which I suspect slows things down quite a bit. The third uses nothing fancy at all and could easily be coded by someone with only a little programming knowledge. I suspect it is the middle in speed/ Does the speed matter though?

In this application , probably not. The bottleneck in performance is going to be in the I/O not the calculations. The performance of this function is lost in the noise.

What probably matters more, if one is looking to define “best”, is which algorithm is easier to understand..

I learned this lesson one day back when I was writing code for a living. We were doing a formal code review of my code and I had written what I thought was a very clever piece of code that was pretty efficient. The review made me rewrite it using code that was no where near as clever or interesting. It was, however, a lot easier for someone new to the code to understand. And that was more important.

Now there are applications where performance is critical. I remember working with a company building a system  to collect weather data. They collected a huge amount of data is a very short period of time. They were actually comparing the instruction execution times of various machine language instructions to pick the computer they were going to buy. That’s pretty exceptional though.

To complicate matters even more, today’s optimizing compilers are very smart. It is rare that a person coded Assembly language program can outperform code generated by an optimizing compiler. I was involved in actual benchmarks of this in the 1980s and things are improved since then. Take these two pieces of code:

if (foo % 2 == 1)

label1.Text = "Odd";

if ((foo & 1)==1)

label2.Text = "Odd";

Which one is faster? You may think the second one is faster. You might be right. On the other hand, a really smart compiler by generate the same low-level code from both of them. Unless you were on the compiler writing team you probably don’t know. Even if you have the source code for the compiler do you really want to spend the time to see how it is optimized?  You couple probably also look at the generated code but is that worth it either? Not generally.

The first example is clearer. A number of my friends who write code for a living tell me that is what they would use. Because it is clearer and understandable by more people it is not worth worrying about an optimization that may already be taken care of for them by the compiler.

Once upon a time it mattered a great deal if one iterated though a two dimensional array by column first or by row first.  One had to know which was faster and do it right. Today, compilers take most of the worry about this away from us. We can do it in the way that seems more logical for us and for the application.

One of my friends who has worked on compiler development teams tells me that conversations about this sort of optimization are frequent there. People working on compilers have the time and the experience to make compilers smart. I’m pretty sure more of them (the people and the compilers) are smarter about code optimization than I am.

That doesn’t mean we can ignore performance. I’ve seen some beginner code that is horrible in performance. But still there are trade offs. I once wrote a very slow program that I ran once a month. I thought about a way to optimize it that would cut a minute or two off of the run time. It would have taken me an hour to code and that was a lot more time than it would have saved me. Turns out a faster computer a few months later ran the inefficient code a lot faster anyway.

Honestly, though discussion optimization and performance can be fun for a certain class of geek. Geeks like me.

Sunday, November 22, 2020

The Making of a Computer Science Teacher

There is quite the conversation going on in the private Computer Science Educators group on Facebook about teacher preparation for CS educators. This is a very interesting group for CS educators BTW. Join if you are on Facebook. I link to some specific articles at the end.

It’s a lot more complicated question than it might appear. There is the argument about what CS educators need to know to teach CS effectively. Is something better than nothing or is not enough going to mean poorly prepared students? Given all the complaints I have heard from university people about high school students being taught CS wrong (what ever that means) I tend to believe that CS educators should have a lot more depth of knowledge than the courses they are teaching. Definitely more depth than their students will get from the course. We expect this from teachers of other subjects (for the most part – see highly qualified teacher).

As to preparation, and its close cousin – certification – we are dealing wtih three main types of people who need preparation to teach CS.

  • Teachers of other subjects
  • CS experienced people moving into teaching
  • Career beginners who are not previously teachers or CS people

They all need something different. I have heard people say that a good teacher can teach any subject after learning some content knowledge. I would argue that teaching CS is different from teaching most other subjects. A teacher needs to know how to teach computer science. We've been fortunate over the last decade or two that some serious research in how to teach CS has been done. CS teachers need to know what has been learned about HOW to teach.

Teachers of other subjects also need some solid content knowledge. Topping out at the content involved in AP CS Principles and AP CS A (the top high school cs courses) is not enough. Well, not for high school CS teachers. Students are going to ask deeper questions than what is required and you can only get by with “well, let’s look that up” so often before people start to wonder if you know what you are doing.

How much do you need? And this goes for people new to teaching as well as just new to teaching CS. That’s a struggle. I don’t think you can get it in two one semester courses let alone a couple of weeks worth of summer workshops. Two semesters of programming is probably the minimum for that aspect. In the first one a person learns a programming language and a start of how to solve problems. It takes a second course to really become a programmer. Of course there is a lot more to computer science than programming. Vocabulary, networking, algorithms, security, CS ethics, and well, if your have taught AP CS Principles you get the rest. So three or four semesters of real CS.

Everyone who teaches CS including those new to teaching and those career changes needs a course or two (or three) if pedagogy. A focus on teaching CS for sure but also some work on test development and evaluation and classroom management. Do they teach classroom management in regular education programs? CS has some interesting complications involving students playing on the internet and messing with lab computers.

I also think that CS teachers, especially now when there are seldom multiple CS teachers in a building, need to learn about external resources. Social media, CSTA, summer workshops and conferences, StackOverflow, and generally how to build a network to support your growth as a CS teacher.

To prepare to be a great CS teacher is going to take a lot of work. Yes, people do figure it out on their own I know people, I am one, who came to industry without training in teaching and did a pretty good job. Enthusiasm and great students will get you pretty far. That’s not the ideal I look back and wonder how much better my students would have been if I had known what I know about teaching CS back then. I don’t think I messed anyone up too much but could I have taken them further? I like to think so.

If CS is going to take its place with other core subjects we have to learn to teach it well. We have to have more than just enthusiasm for the subject.. We have to set high standards for teachers as well as students.

Facebook Conversations

Mike Zamansky’s post of the subject https://cestlaz.github.io/post/teachers-can-learn-cs/

Monday, November 16, 2020

Tiny Book of Simple Cryptography

I've been playing with simple cryptography. Mostly stuff that was solid before computers. Just for fun mostly but some of it may make for interesting projects for students. I've written a little bit about the things I have been playing with.

This is not a big book and it is intended more to spark interest and not to be a real reference book. There are footnotes linking to Wikipedia articles that would be a good next step for learning more.

I have a couple of substitution ciphers and a couple of  transposition ciphers. Added some Steganography

http://www.acthompson.net/TinyCrypto.pdf

Comments and gentle criticism welcome. I have coded solutions in C# that are ok. Some of them even have comments.

Updated 5 March 2021 to include a brief chapter on the PigPen Cipher. Also some minor edits in other sections.

Thursday, October 29, 2020

TileCode–Creating games on and for handheld devices

People are Microsoft always seem to be working on interesting and unexpected (to me anyway) things.  My most recent discovery is TileCode. From the website:


Microsoft TileCode is an app for designing, coding, and playing video games directly on low-cost MakeCode Arcade gaming handhelds, as well as in the web browser. With TileCode, we are using the medium of video games to explore the combination of
  • Natural language for informally specifying games goals, rules, and mechanics;
  • Physical computational models that foreground concepts such as data parallelism, pattern matching, and conflict resolution;
  • Testing and debugging of programs to establish confidence in their behavior and to refine specifications;
  • Machine learning to help bridge the gap between natural language and programs, as well as to generate non-player character behavior in games.

Our ultimate goal is to provide a sandbox in which students can express and refine their game ideas, while learning about computation, programming, and machine learning, supported by software engineering practices.


It's a pretty interesting idea. I wonder how it might work in classrooms. There is a webinar about their research later in November that I hope to sit in on.

TileCode builds on a lot of previous work and not just from Microsoft. It builds on Kodu and MakeCode but they reference a lot of other block based tools in their paper - TileCode: Creation of Video Games on Gaming Handhelds

I'm really fascinated by the work I am seeing in domain specific tools lately. While games are a popular topic I'm been following Mark Guzdial's work with domain specific languages for Social Studies with interest. I tend to think that rather than see artificial intelligence take over the job of programming that we’ll see more and more domain specific languages (should we call them tools?) that people will use.  I’m not convinced that AI and machine learning will know when rules are really guidelines.

Wednesday, October 14, 2020

What If We Asked Students To Write Textbooks?

A professor friend on Facebook posted that a student emailed him to say that they textbook the were using was “crap.” I suggested in jest that he asked the student to write a better one. That’s pretty tough since how do you write a textbook about something you are learning as you go? (Can be done. Is painful. Don’t ask how I know this.)

The exchange got me thinking though. Supposed we asked students to write a chapter for a mock textbook? Or perhaps asked them to write step by step instructions for completing an exercise assignment. After it was covered in class but perhaps in lieu of a test.

I think it would be interesting to see how students explain concepts. Have they write to explain things to people their own age. How would they explain things? What words would they use? What examples would they give?

They say that to really understand something you have to be able to explain it to others. 

Somehow I don’t think most students would like this exercise though. Of course we already ask students to do things they don’t like – taking tests being one of them.  I do think that it would give us insights into what they do understand and how they understand it. Or misunderstand it as the case maybe.

Anyone want to try it?

Monday, October 12, 2020

Thinking About the Algorithms in Our Lives

My wife and I use these fitness trackers, ours are made by Garmin, to keep track of our activity during the day. Each day the devices give us a goal for how many steps we should take that day.  The goal goes up or down depending on how many steps we did on the previous day. I think. Maybe.

Being the computer guy that I am I keep thinking about how the algorithm actually works. Is it a simple algorithm based on some sort of average or does it have some amount of smarts? Does it take several days activity into account or just the previous days? Like so many things in our lives the algorithm is completely opaque to users.

Google Page Rank, the algorithms that run on the computers controlling our cars, and the software John Deere uses to control the equipment they make. (see article linked below for way this opacity is a problem for some) are all secret. Why?

Well, various companies have various reasons for keeping their algorithms secret. Competitive advantage is the reason for some. For many it is to keep people from “gaming the system.” Google, and other search engines, don’t want people to find ways to get unfairly high placement in searches. I suspect some of that is involved in my Garmin’s secrecy. For others, it is about keeping control of the how the systems them make are run – often for the sake of safety. That’s why many companies don’t want their software “messed with.”

How good or bad this is for the consumer is quite up for debate. There are solid arguments on both side. Arguably, the right thing depends on the situation in many (perhaps most) cases. These are issues we need to think about going forward. People who write software and create algorithms have a responsibility to make the right decisions about secrecy or openness. The decisions have to be about more than just money as well.

Do you discuss these issues with students? I think we need to do so.

Farmers Fight John Deere Over Who Gets to Fix an $800,000 Tractor

Sunday, October 04, 2020

Artificial Intelligence, Humor, and Appreciation of Beauty

Last night I started re-reading Heinlein’s The Moon Is A Harsh Mistress.  It’s an old book, written in the mid 1960s, so there are some old ideas about computers and computing in it for sure. There is some hand waving about how AI is done and how the computer, Mike or Mycroft Holmes, becomes self aware. It is fiction after all. The computer is trying to understand humor and a human friend is trying to help. One way he is helping is to get lists of jokes and report back on which jokes are funny, which are funny once, and which ones are always funny. That sounds a bit like machine learning we see today I think.

In any case, even is the computer does understand humor at some level and is able to create jokes that people find funny does that mean it has a real sense of humor? Will it be able to laugh at jokes that are not in its system? I wonder.

This makes me wonder about other things. We know that AI has been able to write music that people enjoy and create art that looks like it was done by master artists. Is creating art or music the same as enjoying art and music? Maybe not. Now human artists “hear” music in their heads before they write it down or play it. Beethoven write music while he was deaf and so could not hear it being played.

I’ve been to a number of wine tastings. I don’t like wine. No matter how many times I taste it I just don’t enjoy the taste. Listening to wine experts talk about wine and tasting it myself I think (could be wrong) I could learn to identify the wines that wine lovers like. I don’t see me enjoying the process very much though. Understanding is not the same as enjoying. Is it the same for computers and AI? I think so.Recognizing beauty or humor or music is not the same as enjoying it.

The difference between humans and AI is that humans enjoy their creations. And they enjoy the creations of others. If we think about creating beauty as enough to  being human-like  I think we have a narrow view of humans. What do you think?

Thursday, October 01, 2020

MicroBlocks For IoT and other Physical Computing

Well, there is a new tool in town for programming micro devices like the Micro:bit and the AdaFruit Circuit Playground Express and many more! It's called MicroBlocks and was created by a rock star team with experience with creation of such tools as Scratch and Snap!. It’s pretty exciting for a number of reasons. One of them is the wide variety of devices it works with. Another is the Natural Languages it supports.

Live Coding is another interesting feature.

MicroBlocks is a live environment. Click on a block and it runs immediately, right on the board. Try out commands. See and graph sensor values in real time. No more waiting for code to compile and download.

And Multi Tasking.

Want to display an animation while controlling a motor? No problem! MicroBlocks lets you write separate scripts for each task and run them at the same time. Your code is simpler to write and easier to understand

I played with it a bit and it looks pretty intuitive especially for those with previous block programming experience. I made the mistake of trying it without having a device to use with it handy. I have several at home and so I’ll be trying them next week. But I wanted to get the word out so that if people want to try it over the weekend (yeah, I know you don’t have as much free time as you want) or have some students try it out you could.

Sometime next week I want to do a side by side comparison with MakeCode which supports several of the same devices. Some obvious differences are that MicroBlocks supports running the exact same app on different types of devices and that MakeCode has emulators. Since most people only use one type at a time and have physical devices the impact of those differences will be different in different environments.

We are living in exciting times!

Tuesday, September 22, 2020

What I miss and don’t miss about teaching

Fall has come and while students are back in school I am not. I’ve been reflecting a bit about that. I don’t miss getting up at 6 AM and driving for close to an hour to get to school. I don’t miss running my life by a bell schedule. I don’t miss grading, report cards, and other administrivia. I don’t miss classroom management issues.

On the other hand, I do miss interacting with students. I especially miss the interactions that take place outside of class. I miss the look, and sound, of students when they get a concept or when their program works – finally. I miss debugging student problems with programs or their project. Students are very good at finding ways to mess up a Visual Studio project. That’s the one big downside to using a professional tool. But I had fun putting things back together.

There are all sort of debugging issues that come up in the code. There is syntax issues (semi colon hide and seek anyone?) and logic problems. Both are fun little puzzles to solve. And I am sure there are still many that students have not discovered.

But the big miss is the students. I still think I retired at the right time for me.

I hope your school year is going well. I am following all sort of teacher/school things on social media and I know its not easy. Stay safe. And if you have a student program you can’t debug let me know.

Tuesday, September 15, 2020

Why Computer Science Teachers Should Read Books

Since I retired I have been reading more computer science related books. You may have read my book reviews on Humble Pi, Weapons of Math Destruction, or Computer Science in K-12. More and more I realize that I missed out on a lot of good ideas and information. Each of those books has given me ideas that I wish I had thought of a long time ago.

Currently, I am reading Nine Algorithms That Changed the Future: The Ingenious Ideas That Drive Today's Computers. I haven’t gotten very far yet but the book has covered indexing of web pages, PageRank, and public key encryption so far. I’ve started the chapter on error detection. Pattern recognition, data compression, data bases, and more are yet to come. I’m really looking forward to data compression. Teaching AP CS Principles has built up an interest that I didn’t have before.

The indexing chapter is one I had read long ago. Many years ago I experimented with indexing. I wrote some code that indexed the Bible for me. The program was more general purpose than that but the Bible seemed like a good challenge. The program used a list of words and a text file of a book as input. It output a markup language file that worked with a product called VAX Document. VAX Document read the markup language, called SDML, and formatted a document including an index. I wish I still had the code so I could adapt it for some other backend processors. Sigh.

In any case, the idea of creating and assigning indexing projects has some appeal for me. I can see this being interesting for students especially in the context of understanding search engines and more involved search queries.

Other chapters include a lot of information that would be helpful in understanding and explaining various important concepts. And maybe inspire still more programming projects!  So I do recommend this book to AP CS Principles teachers.

PS: More of my book reviews at http://blog.acthompson.net/search/label/book%20reviews

Saturday, September 12, 2020

How Are You Doing?

We’ve now finished the first week after Labor Day and at least in North America almost everyone is back to school. That may not mean physically back in a bricks and mortar school building though. My grandson is starting kindergarten online this week. I didn’t see that coming a year ago. Teachers, students, and parents are adopting to all sorts of new ways of teaching and learning. 

I confess to being happy I am retired but I am also sympathetic so those still teaching. I do worry about you all. I hope you are finding ways to take care of yourself.

My son is an elementary school principal and his summer was as busy, if not more so, than during the middle of the school year. Administrators have been having a tough time so have some sympathy for them.

Somehow many people seem to think this is all easier for computer science teachers. This is not the case of course. Yes, we may be more comfortable with computers than some teachers but the tools for teaching online are new to us as well. And helping students with computer problems is as hands on as helping students in art, or math, or English. Maybe more so at times.

I think we’ll see some tools appear and older tools will see new features develop Social media is full of teachers talking about online IDEs for example. I’m still not a fan but that’s me. I still like the idea of using virtual machines on a powerful server for teaching computer science..  No doubt a lot of people will be trying new things. If nothing else, we’re going to learn a lot this year about new tools for teaching CS.

And that brings me to a final point, have you thought about sharing what you are learning with other computer science educators? The call for proposals for CSTA 2021 is out. Even if you are learning a lot of what doesn’t work you are learning some things that do work. We’re all better off if we all share what we are learning. Please consider a proposal for the conference. If you have questions about what is involved let me know. I love presenting at CSTA conferences. It’s the best audience you could have. Seriously!

Wednesday, August 26, 2020

The End of School Computer Labs?

There has been a lot of talk in recent years about doing away with computer labs in schools. BYOD and one to one computers have been talked about and have been growing movements for a while. I wonder if the current situation will be the final tipping point.

My old school removed the computers from the computer labs. The work involved in constantly sterilizing and cleaning them was becoming too much. So students bring their own devices and now connect to virtual machines via the network. They have access to all the school’s licensed software no matter what device. This worked great when we moved to remote learning in the spring.

Besides the cleaning/sterilizing issue this means a lot of new flexibility. Of course it makes it easier if school has to close and students have to learn from home. But in school it opens more rooms for teaching. And if you have small rooms classes can even be split across rooms with teachers in one room, or even at home, teaching to several rooms with safety distancing.

I computer room can have a more flexible layout, perhaps with easily movable tables for group work, focusing on a lecture, or just plain spreading out.

Will computer labs now totally disappear? We’ll see. A lot depends on a willingness and ability to provide computers for every student. That’s easier in wealthy areas than poor ones. But it just may be the way things have to be.

Saturday, August 15, 2020

Book Review: Humble Pi

Recently, I asked my Facebook friends for recommendations for non-fiction books that would not get me depressed. Several people recommended Humble Pi: When Math Goes Wrong in the Real World so I bought a copy. I’m glad I did.

The book presents some interesting case studies in math done wrong. From people confusing units of measure (pounds and kilograms for example)  to engineers changing one variable in an equation and assuming the answer doesn’t change and many more. As you might expect there are a lot of examples where computers play a role.

There are examples of problems caused by variable type mismatches, binary overflows, and people just misinterpreting the results. You’ll get any number of examples you can use with students. A valuable book to teachers of computer science, physics, and mathematics for sure.

The book is written in an easy to read and often humorous fashion. It’s an enjoyable read even if you are “not a math person.” I bought the Kindle edition but I am wishing I hard bought a hardcopy edition to keep on my bookshelf. I’ll be back looking at this one.

Thursday, August 13, 2020

Are You Ready to Help with CSTA 2021

The call for participation in CSTA 2021 is now out. You can learn about the submission process and look at some possible topic areas on the conference information page here. There are several ways to help out with the conference (see below). You can present or you can become a reviewer. Both are very important roles.

I encourage CS teachers to consider submitting a proposal to present. I have been honored to present at the CSTA conference a number of times over the years and have found it a very rewarding experience. The audience is kind and anxious to learn. This summer, the conference being online, added a new and extra facet which I found surprisingly energizing. I am hoping, as I think most of us are, that next summer we will be meeting in person. Either way, presenting at CSTA is a great way to be part of the community and to help expand knowledge

Chances are that you tried something new this past spring. Or will be trying something new this fall semester. That means you probably have something worthwhile to share. Don’t be shy!

Reviewers are also critical to having a good conference. Reviewers read and evaluate proposals and are essential in the process of picking the best presentations at the conference. Please think about helping out in this way.


  • Apply to present: We're accepting submissions for a one-hour session, three-hour workshop, 20-minute mini-session, 45-minute Birds of a Feather discussion, or a poster session. Visit our website for more information on the process and to submit your application. All submissions are due by Nov. 8.
  • Become a reviewer: We invite you to consider reviewing submissions for CSTA 2020! If you've attended or presented at a prior CSTA conference, have a connection to K–12 computer science, and are available between Nov. 23, and Dec. 17, consider volunteering your time!

Wednesday, August 05, 2020

Learning Python Part 2: Distracted by a Turtle

I cracked a book and found out that Python supports turtle graphics. I love drawing pictures with graphics. I have since I was in university. So today I played around with the Python turtle a bit.

Mostly I played with a few of the usual turtle methods and wrapping drawing code inside loops. I had some fun but didn’t learn a lot. I’m not sure that was the most productive use of my time.

It did suggest that using graphics with Python is potentially a way to make learning Python more interesting. I have Mark Guzdial’s book on Media Computation around here somewhere. I’m going to dig it out and see if it the libraries for it will work in my environment.  I want to do more than draw lines.

Tuesday, August 04, 2020

Programming Projects for Learning or Grading

The purpose of school work is to get good grades. Well, at least that seems to be a common view on the part of students. Most teachers will tell you that the motivation for students to cheat is that they are lazy and still want to get good grades.  The recent posts by Mark Guzdial  (linked to at Changing How We Teach Computer Science) have sparked a lot of comments on his blog and on Twitter which had sparked some thoughts on my part.

I have long believed that projects are a great learning exercise for students. I haver become less enamored with them for grading. Cheating seems to show up all to often. Often it is hard to prove cheating because projects are to short, variable names are too likely to be the same logically, and there are limited ways to solve them. I have seen the most creativity and the least cheating (provable or otherwise) on larger projects where students were all doing something completely different.

A common thread in the comments I have been seeing recently is that students cheat not because they are lazy but because they don’t know how to solve the project on their own. This idea resonates strongly with me.  I see a lot of satisfaction on the faces of students who successfully complete projects. They tend to actually enjoy the process when they have success. 

Over the last several years I have increased the number of other means of assessments including multiple choice questions that include reading and understanding code. Comparing quiz results with project results has been interesting. Some students show close correlations between quiz grades and project results. Other students not so much. While I haven’t conducted a rigorous or scientific study by any means, my observations suggest to me that students are copying the projects of others because they haven’t gotten a strong enough grasp of the material. 

I’m pretty convinced that evaluative instruments that require the reading and understanding of code are better tools for understanding what students actually know than looking at projects. That is not to say that looking at projects is useless. To the contrary, students who work hard against the struggle show what they know and don’t know in their code. A project that doesn’t work correctly give a teacher a lot more information about student understanding than a project that works perfectly.

In my ideal world, I would give each student a different project for every concept I want them to demonstrate knowledge of. That is clearly not possible and certainly doesn’t scale to large classes. I’d love to have a way to watch student progress on a project. What do they try and what do they do when things either work or don’t work. I don’t know of a good tool to that right now or even if it is practical. I guess for now teachers will just have to watch students closer.And use other tools for grading and for determining what students actually know.

Sunday, August 02, 2020

Learning Python: Part 1

Python has been on my radar for years but I haven’t really had the motivation to learn it myself. It’s time though for several reasons. Reason number one is that I need a learning goal to keep stretching my mind and knowledge. I don’t have a bunch of students finding new puzzles to solve so I have to make my own mistakes.

First step was to pick a development tool. I have played with a bunch. IDLE, PyCharm, Processing, and some I forget. I didn’t like any of them. So I am using Visual Studio. I expect many to tell me that was/is a horrible choice but its the devil I know so there is that. Many of the tools feel like steps backwards to me. I’ve gotten spoiled by the Intellisence in Visual Studio among other features. IDLE felt like what I used to learn BASIC-Plus 40+ years ago. Anyway, I want to spend my time learning a language not an IDE.

OF course there are two parts to learning a new programming language. Part one is the basic syntax. Part two is the idiom of the language. The first part is easy. The second not so much.

I’ve started with easy stuff. Declaration of variables, simple math, declaration of functions, and control flow. IF statements and while loops were pretty straight forward. For loops are different and idiom rears its ugly head here first for me.

For loops in Python seem to be what I think of a ForEach loops in other languages. Very powerful and useful. On the other hand, how do I do the equivalent of:

for (i=0; i <= 100; i+=5)
or
for i =0 to 100 step 5

Or do I need to use a While loop to do this? Go ahead, show off in the comments and help me out.

String manipulation, one of my favorite things to code, is probably next for me.I think that will be ok.  Lists and dictionary come after that. I think I will have to read up on them as they look to be thought of differently than arrays in the languages I am used to using. They also look like fun and powerful to use. So there is that.

Classes after that. Hopefully that moves quickly.

Once I get some basics down I’ll start looking into various libraries and what not. Perhaps go back to try some graphics in Processing. Is there an equivalent to Windows Forms like I use with C# and Visual Basic? Or do I have to go backwards again to do that?

At least I’m having fun. Now to go crack a book.

Thursday, July 30, 2020

Changing How We Teach Computer Science

I haven't been blogging much lately. I'm adjusting to being retired for the most part but I have been reading and thinking a lot about teaching computer science along the way. Mark Guzdial has been thinking even harder and has posted a four part set of blog posts about the subject.

I find that many of his ideas as close to how I have done things in the past. Of course at the high school level we see a lot fewer students with previous experience in CS than many university faculty do. SO we follow much of his suggestions in proposal #1 out of necessary.

The whole series is worth reading. Don’t ignore the comments either.

Saturday, July 18, 2020

Book Review: Weapons of Math Destruction

Weapons of Math Destruction has been out for a couple of years now and it is one of those books that a lot of people reference. I finally got around to reading my copy this week.  For those of you who are not familiar with it, the book talks about algorithms involving huge amounts of data and how they are used and misused.These WMD are involved in increasing parts of our lives from teacher evaluations, to credit scores, to policing, to getting hired for a job. Companies make assumptions that the algorithms are fair, impartial, and that they get the results they are advertised to provide. Often all of those assumptions are wrong.

In some ways I think the point could have been made with one or two chapters but providing a multitude of examples is definitely informative and convincing. The book is more than a little scary but I think that is the point. We should be concerned.

Those of us involved in computing, perhaps especially those of us teaching computing, need an eye opening book like this. It can help us do better and perhaps avoid some of the unintended consequences that this book so clearly outlines.

I’d love to assign this book as required reading to students. I could probably get away with that at the university level but high school students are both reading adverse and already loaded with a lot of reading. I think what I would do at the high school level would be to place a couple of copies on course reserve and assign specific chapters to individual students to read. I’d have them submit both an oral and a written report of their chapter. Some group discussions would also be a plus. This is a natural for an AP CS Principles course but I think it would fit in elsewhere as well.

We need people in computing who can look at technology and think about unintended consequences and, perhaps more importantly, ask what are the impacts on society of what we are thinking about doing? Is it all just about money and the bottom line or are we actually making people’s lives better?

Wednesday, July 15, 2020

Thoughts on Virtual Conferences - CSTA 2020

The first online CSTA Conference is now about 24 hours behind me. I was fortunate to experience it both as an attendee and a presenter. After mulling it over a bit I have to say it was a much better experience than I expected it would be.

Attending was very low friction. No travel half a day each way (with attendant airfare) no hotel to book and pay for and that is just to start. Attending sessions was easy. No hunting for rooms for example. I have put in a lot of steps in previous conferences going to the wrong room or finding a room at out of the way locations. None of that here. No trouble entering and finding a seat. Or leaving if I wanted to switch sessions. Really very smooth.

Attending sessions was great this way. I particularly liked the chat window as it allowed others to share resources and for more people to ask questions. I hope there is a way to capture the chat session information. I would like to have the comments from my presentation at least.

Presentations were of the usual high caliber for a CSTA conference. Sure some were better than others but over all much higher than some other conferences I will not name. Presenters seemed comfortable presenting online. Some of this may because a lot of us have been doing so for school but the preparation for presenters was really very well done. As a presenter I felt very prepared for the platform.

As a presenter things went pretty well. I had wanted to have a second monitor running but due to some technical issues that were all my fault I didn’t get that working. Let that be a lesson to me. Not being able to see the chat window while I was presenting was a disadvantage but the wonderful CSTA proctor was able to see it and fed me questions as appropriate. Having a person who can do it is very important in an online presentation.

While presenting I obviously could not see the reactions so setting an audience based pace was difficult at best. Attendee questions did help there. I also missed hearing people laugh at my jokes (be they intentional or otherwise). There were some comments in the chat that said people did laugh so that’s good. Presenting online is not as much fun for me as presenting in person. One the other hand, I don’t think any of us presenters would have had the size audience we had online if we’d had the conference in person.

The hopin platform worked very well – flawlessly for me. I recommend it. We had a reception area for finding out what was happening and when. A “main stage” for keynotes, breakout rooms for the concurrent sessions, a networking area, and a virtual exhibit hall.

The networking area was very interesting. It placed you in a session with a random attendee for 5 minutes. Just enough time to meet someone and be very low stress. You didn’t have to find an excuse to “walk away.” I took part a few times but as an introvert I have my limits.

The exhibit hall didn’t quite work for me. I like to look at booths and the physical objects in them. It was great if you like to listen to exhibitor presentations and I know that many people do. So that was a mixed story for me. I would love to know what exhibitors thought of the experience.

I was going to write about missing the “hallway track” in this post but I think that deserves a post of its own. So that will probably show up tomorrow.

Tuesday, July 14, 2020

CSTA Online Conference 2020–Day Two

The first thing I did this morning was to prepare for my presentation. I may have made some last minute changes to my presentation deck.

The first thing I attended was a Birds of a Feather session called White Teachers as Anti-Racist Allies. I listened closely. Living in New Hampshire were we don’t have a lot of people of color it is easy to fall into the idea that race is not an issue. But of course I have been teaching in a school with more than the average number of people of color for the area so I know better. This BoF gave me some things to think about.

I couldn’t focus on anything after the BoF. In all honesty I couldn’t get my mind off of getting myself set for you presentation. This tends to happen to be at in-person conferences as well. I probably missed something valuable but hopefully I can watch recordings later.

If you are interested, my presentation slides can be downloaded from Techniques for Teaching Programming. Someone else will have to review that session. Please be kind.

After lunch was a keynote by Dr. Ruha Benjamin called Keynote: 2020 Vision: Re-imagining the Default Settings of Technology and Society She focused on the intersection of technology and bias. Really thought provoking. She shared a really interesting video called "Racial Sensitivity" from Better Off Ted Recommended. How does data and algorithm incorporate bias?

After the keynote I started with Our Code From Miles Away: CS via Distance Learning, which according to to the slides was going to be about Pear Deck and FlipGrid. The main presenter had some issues with time zone coordination which is more a problem with online conferences than in-person ones. Anyway, I left early and moved to Machine Learning in the High School Classroom. It was well done but jumping in 20 minutes late means I missed some important context. I look forward to viewing the recording from the beginning And reading through the website I linked in the session title.. Not much else I can say about this one I am afraid.

Next up was Git and GitHub: How to Use It, How to Teach It, which was of course about Git and GitHub. This was a very fast paced session by a pair of experts. I learned a lot from this one.

I dropped into Nifty Assignments for my last session of the day.

The archive of CSTA Nifty Assignments is here. Check them out!

So the virtual conference is over. For me there were a lot of great sessions. If you were there, what sessions did you like? Let me know which ones I should look for when the recordings are ready.

Monday, July 13, 2020

CSTA 2020 Conference Online–Day One

Day one of the online CSTA 2020 conference has been today. I’m blogging this as the day goes on and posting it at the end of the day. We started with welcome remarks and some tutorial about using the Hopin conference platform. As a presenter, I’d had some time to try this out previously but I think this was probably very valuable for first time users. I hope not many missed it.

After welcomed remarks we had some networking time. This is actually fun as you are randomly placed in a window with someone for 5 minutes of casual chatting. I found this a nice way to warm up to the day. And to chat with CS teachers from other parts of the country.

During the first break out I attended a session called - Integrating Cybersecurity into the AP CSP Course.I really think we need to teach more of cybersecurity so I jumped into this one. The people have Whatcon Communiyt College have some very interesting and useful looking resources for teaching Cybersecurity. They have 13 units at their website which I link to below along with their sites description.

C5 Cybersecurity Concept Lessons

NCYTE Center supports the work of a related grant project also based at Whatcom Community College, Catalyzing Computing and Cybersecurity in Community Colleges (C5). One of the goals of the C5 project is to develop and disseminate instructional materials to enhance computer science and cybersecurity courses.

The following Cybersecurity Concept Lessons (CCL) illustrate how Cybersecurity can be integrated into the AP CSP course. Each lesson contains activities, a presentation and an overview document that can be downloaded and used in the classroom.

The first keynote started after a sort of ad from Apple. A lot of side chatter was about the usability of Swift without having a Mac to compile on. I may have to look into that. I will start here I guess https://www.makeuseof.com/tag/program-swift-in-windows/

The keynote was by Linda Liukas who writes children’s books about computing. I really need to look into her “Hello Ruby” books. Lots of us use the exercise of having students write instructions for making a peanut butter sandwich or a paper airplane (my favorite) but Linda suggested brushing ones teeth. That sounds fun. The talk had a lot of computer free examples and exercises. Most of these would work for a wide range of ages.

The keynote was high energy and inspiring for me. Videos will be available later for CSTA+ members I believe. I plan to watch it again.

Lunch break and time to visit the booths and poster sessions. I visited a couple of booths. It’s interesting as the booths I visited had 50-60 people listening to the person “working the booth.” I spend some time in the Microsoft booth while they were talking about the Hacking STEM program and projects. I keep telling myself I need to get into this stuff but year after year I find myself pulled into other things. Maybe I’ll get to it now that I am retired. Then maybe I can do quest visits to my old school. We’ll see. I really do want to get involved in hands one matter hacking.

After lunch, Mini-Session 3: Tools to Teach 9th-12th Grade There are over 150 people attending this session! Can you picture having rooms that large for as many sessions (12 by my count)  as are going on now?

This session started with Truffle Hunt: Teaching an AI Agent to Play a Minesweeper-Based Game (that link is to the PowerPoint which itself has resource/reference links) I like the idea of teaching rules based AI. Jeffrey L. Popyack from Drexel University presented that one.

Next up was Teaching AI to High Schoolers Inclusively with  Sarah Judd, AI4ALL. Her slides are at  https://bit.ly/AI4ALL-CSTA2020 Sarah talked about an Open Learning curriculum for teaching Artificial Intelligence. You can Access the curriculum at  http://olp.ai-4-all.org

The last mini session was by Leon LaSpina on MATLAB.  His slides on MATLAB are here. Leon is a great guy and I can see some reasons for people to teach MATLAB. But I left early and just dropped in on a couple of other sessions for a few minutes at a time. It is less disruptive to enter and leave sessions online.

Next up, Formative Assessment and Feedback for CS Learning with over 270 attendees! I guess a lot of us are interested in doing better assessment and giving feedback. Slides are available at  Formative Assessment This is another session I want to watch a second time.

I attended Incorporating Culturally Authentic Practices in a Problem Based Computer Science Classroom. I’ve always been a proponent of project based learning but I haven’t thought a whole lot about cultural reliance before. It seemed more about PBL in general than specifically how to make them culturally relevant. It may be just me though.

So I jumped into Teaching Girls to Code and Change the World which was about Girls Who Code. Girls Who Code is an outstanding program.  I love the concepts of their program. It’s so much more than coding as it includes community building, long term connections and networking, and showing of role models.

The afternoon keynote was by Hadi Partovi of code.org and titled K-12 CS: How Far We've Come and Where We're Headed Hadi started with a review of where we were 7 years ago and how far we have come. Hadi listed a bunch of individuals and organizations who have helped make the progress we have seen in that time. It was awesome to hear him call out so many. It’s been a global village.

Hadi ta;led about how important it is to teach students ethical thinking and taking into account the impact of computing and technology. This is so important. I’ve heard Hadi speak several times and this was far and away his best talk.

The last session I attended was AP CSP 2020: Updated Course and Exam because there is a chance I may teach AP CS P online in the fall. Maybe. In any case, this was VERY useful if you are teaching AP CS Principles. I have to say that I like the changes. They have really made the create task more clear and added some specific requirements that I think make the task more rigorous. . I’m happy about dropping the explore task as a digital portfolio part of the exam. The link on the session name at the start of the paragraph is to their presentation deck. I saved a copy for potential mixing and definitely for my own review.

That’s the session wrap up from me. I’ll have more thoughts specifically about how the online conference experience was for me in a day or so. And of course I will be blogging about tomorrow’s sessions tomorrow.

Wednesday, July 01, 2020

Book Review: Computer Science in K-12

Full disclosure: I haven’t read all of “Computer Science for K-12” edited and compiled by Shuchi Grover yet but a couple of chapters was enough to convince me I should recommend it to other computer science teachers. The books has chapters written by a veritable who’s who of computer science educators. (See the table of contents listed below) I’ve heard many of them speak, read much of their published works, and met more than a few of them. I knew from the author list that it would be worth having.

I have been jumping around a bit but for me the chapter on Naïve Conceptions of Novice Programmers alone was worth the price of the book.  I have no doubt that I am going to learn a bunch reading the rest of it. The chapter or chapters you read that makes the book worth the price may vary but I suspect you’ll find several such. If you are looking to improve HOW you teach CS you should get this book.

It is available with black and white illustrations and diagrams and color versions. I bought the black and white version but wish I had spent a few extra dollars for the color. It's available from Amazon and Barnes & Noble

The table of contents is below from the Amazon page.

  1. Foreword (Inventing Computing Education in Schools) by Mark Guzdial
  2. Algorithms (Shuchi Grover)
  3. Before You Program, Plan! (Phil Bagge, Shuchi Grover)
  4. Creative Coding (Miles Berry)
  5. Data Structures (Baker Franke, Richard Kick)
  6. Events (Jennifer Rosato, David Wolber)
  7. Feedback Through Formative Check-Ins (Shuchi Grover, Vicky Sedgwick, Kelly Powers)
  8. Guided Exploration Through Unplugged Activities (Paul Curzon, Shuchi Grover)
  9. Hard Fun With Hands-on Constructionist Project-Based Learning (Deborah Fields, Yasmin Kafai)
  10. Integrating Programming Into Other Subjects (Shuchi Grover, Aman Yadav)
  11. JavaScript, Python, Scratch, or Something Else? Navigating the Bustling World of Introductory Programming Languages (David Weintrop, Shuchi Grover)
  12. Knowledge, Skills, Attitudes, and Beliefs | Learning Goals for IntroductoryProgramming (Rebecca Vivian, Shuchi Grover, Katrina Falkner)
  13. Learner-Centered and Culturally Responsive Pedagogy (Tia C. Madkins, Jakita O. Thomas,Jessica Solyom, Joanna Goode, Frieda McAlear)
  14. Modularity With Methods and Functions (Mike Zamansky, Jens Monig, Jonalf Dyrland-Weaver)
  15. Naïve Conceptions of Novice Programmers (Juha Sorva)
  16. Operators and Expressions (Matthias Hauswirth, Shuchi Grover)
  17. Pair Collaboration and Pair Programming (Shannon Campe, Jill Denner)
  18. Questioning and Inquiry (Shuchi Grover, Steven Floyd)
  19. Repetition and Recursion (Dan Garcia, Joshua Paley)
  20. Selecting Pathways With Conditionals (Shuchi Grover)
  21. Testing and Debugging (Kathryn Rich, Carla Strickland)
  22. Universal Design for Learning: Reaching All Students (Maya Israel, Todd Lash)
  23. Variables (Shuchi Grover)
  24. Worked Examples and Other Scaffolding Strategies (Jane Waite, Shuchi Grover)
  25. X-ing boundaries With Physical Computing (Sue Sentance, Katharine Childs)
  26. Yay, My Program Works! Beyond Working Code ... Good Habits of Programming (Shuchi Grover)
  27. Zestful Learning (Bryan Twarek)

Friday, June 19, 2020

How Do We Know Who Is Struggling In Learning CS

One of the interesting points Amy Ko makes in her presentation to Microsoft (CS education in higher education) is that “Most faculty have little insight into who is struggling most into their class, because the ones that struggle are most silent.” She goes on to suggest that took could help make struggle visible at scale.

In the high school classroom most teaches try to be aware of what students are doing and notice who is struggling but it’s hard. Students are very good at hiding the fact that they are struggling. Many just don’t want to admit, especially in front of their peers, that they are having trouble in a class. Teaching online makes noticing struggle even harder!

So what sort of tools would be helpful? That’s what I have been thinking about for a bit.

What are the indications of struggle? Idleness in the IDE? Maybe but sometimes students are very active but not making progress. They add stuff, try it, delete it, and try something else. The “lest throw stuff against the wall and see what sticks method.” So to much activity or to little activity? These are both things an educational IDE could track.

What about syntax errors? This is a tough one because sometimes a single character off will generate a great many errors. I have managed to see error lists move from over 100 to 2 or three after changing one line of code. So maybe look at specific errors? We probably need some research on this.

Number of builds? Some people write a lot of code before doing a build while others run a build after every little change. Seems like an unreliable metric.

Total time spent in the IDE? Maybe although how does the automated system know if the amount of time is due to struggle or to an advanced student adding far more than what is required?

As a teacher, one thing I would like to know is that errors are the most common in a class. That would help me adjust how I teach certain things.

If only students would talk to us!

All in all I love the idea of tools to help teachers see who is struggling and what they are struggling with. I just don’t feel like I have a good handle on what metrics would be really helpful.  Commercial IDEs are never going to care about these things though. Might make a good PhD project for some CS education researcher though.

Dr. Ko suggests that one way industry could help is by “should be supporting the hiring of CS education faculty and the creation of CS education classes to prepare effective CS teachers for K-12 and higher education classrooms.” We still have a lot more questions than answers in terms of teaching computer science.

Wednesday, June 17, 2020

Thoughts on an IDE for Teaching CS

Amy Ko posted a slide deck about CS education in higher education from a presentation she made to a group at Microsoft. There is a ton of stuff in there. I need to read it a couple more times actually. I’ll probably blog some more based on other things she brings up. Issues of equity for example. That one I need to think over a bit more as I process the reality of the world today. But for this post I want to focus on some of the ideas she shared for teaching beginners.

Under the heading “Classes move too fast” she writes “Many introductory programming courses now include a 1) professional-grade programming language, 2) a professional-grade IDE, 3) a professional-grade version control system, and 4) a professional-grade test framework.”

This is too much for many students. In my end of year survey most of my students felt that Visual Studio (a professional-grade IDE using a professional-grade programming language) was fine for them. Not to hard. And a lot of teachers are using GitHub – a professional grade version control system. That is still a lot to learn just to get going though. My students may think they are doing just fine but honestly I spend a lot of time fixing projects because it is far to easy to mess them up. I’m finally beginning to face that truth.

Later in the presentation Dr. Ko talks about making tools that make collaboration and working together easier. How do students work together? How do they do it when they are separated by time and space? That is something we have to think about even more these days.

What is the answer? Well, I’d like to see an IDE and language that creates projects that are harder to screw up for one thing. Don’t ever let beginners use Save As in a Visual Studio project. Doing so is almost a guarantee that a beginner will mess up their project in serious ways. Save As as an option for experts? Yep. We don’t want that for beginners. That’s just the start. Students are always closing windows they think they don’t need but later realize that they need them after all.

And collaboration? GitHub works for some. As I said I know a number of teachers use it with their students. I have had students who used it on their own as well. Awfully smart girls those two. But its got some rough edges. It’s really a powerful professional tool that offers more than most students or teachers really need.  And there are so many options and steps! We need something more simple! It needs to be tied in to the IDE fairly transparently as well.

Pair programming remotely? I’ve tried Visual Studio Live Share a bit.and it has some real potential. Not many seem to know about it yet. It does require  that people have a reliable want to share links for sessions. I’m not sure how it would work if a teacher wanted to look at a lot of student sessions are once. And we are still dealing with Visual Studio or VS Code and their projects.

This last semester I used Microsoft Server Manager to work with students online/remotely. Worked great as long as we were on the same virtual machine. It’s not something I want to give students access to though. I would like that functionality in a different tool. Especially if making the connection was as easy as this one was. It was easier than Live Share. So the tool I would want would probably involve some sort of “server” that was attached to a class that let students find their partners and connect with permission from the other student. Wouldn’t that be cool?

So what I want is an IDE that doesn’t let students mess up their projects easily, does easy version control with minimal set up or steps to make happen, and easy sharing of coding sessions. All built in with an easy set up.

A test framework? That’s a topic for another post.

Monday, June 08, 2020

Setting Up To Teach From Home

This past spring semester was my first time teaching remotely but not my first time working remotely. I worked from home while working in industry for jsut over 9 years. The latter probably helped me set up to teach remotely. Still, I learned a few things about being a remote teacher. I thought I should write it up and see what other ideas people might have to share.

First, you need to work somewhere outside the main events of the household. An office is ideal of course but not many of us have that option.  Still you want to find a place that is not busy when others are home, where they are a minimum of distractions, and where you don’t have to set up and break down your work equipment every day.

If you are presenting with video you want to be aware of your background. To much light behind or from the side can be a problem for the video. You want to know what is behind you. Will it distract others? Will it show things that are to personal to share with the whole world? I know teachers who have hung sheets behind them. That is probably not necessary but you want to be deliberate about what other see in the video.

Speaking of video, you want a good camera. I’ve seen some debate over webcam or built-in camera and I don’t have a firm opinion. If you have a good camera in your laptop or desktop you will probably be fine. In either case, make sure you are centered in the image it takes.

I find that a headset works better than the microphone and speaker built into at computer. A headset keeps out extraneous noise from both your ears and the conversation. It helps avoid distracting noises in the house as well. I know that a few teachers I know have purchased “gamer headsets” and found they work very well. They’re not that expensive either.

Speaking of gamer equipment, a comfortable chair is a must as you will be in it longer than you would be if teaching in person. Several teachers I know have been buying chairs made for computer gamers. What ever chair you get should be comfortable and sturdy.

Screens? You really want, I almost say need, two or more windows. Professional developers argue over which is better – two (or three) monitors or one very large monitor with multiple windows. I suspect that for most teachers a second monitor is less expensive than a very large monitor. Cost aside, personal preference rules in the hardware decision. I used two laptops side by side this spring but I would use one with a second screen if I were doing it again. I might have a second laptop as well since I have several anyway but that would be more of a backup than a principle workstation. Being able to copy things from one window to another is invaluable.

I used to keep one window showing that online meeting with student faces and the second with what ever I was demonstrating or presenting. I also liked to have my student information system, for attendance, in one window and the Zoom or Meet window in another to make taking attendance easier. That was much easier than switching windows on one screen. I did the same thing when grading. Work I was grading in one window and gradebook software in the other window. Since work was all being submitted online this was the easiest way to work for me. Your mileage may vary of course.

I can’t forget the network. Wi-fi works when it works. Wired connections are almost always faster and more reliable (I sometimes lose WIFI when the microwave runs),  It’s not always easy to set up but if you can use a wired connection I do recommend that you do..

Will teachers be teaching remotely in the fall? I don’t know that anyone knows for sure. It doesn’t hurt to prepare for multiple eventualities though.

Monday, May 25, 2020

ACM Digital Library is Open for Free

Like most K-12 teachers, a membership in a professional society like ACM or IEEE is not funded by my school. So I pay out of pocket for an ACM membership and have for years. The extra money for access to the ACM Digital Library is a bridge to far. Normally, during a conference members can download papers from that conference and I take advantage of that. Right now, the ACM Digital Library is open to everyone for free. I am downloading papers like crazy. OK, maybe not like crazy, but I have been downloading a lot of papers that I find interesting.

I start by browsing conference proceedings and moving from there. Today I have been looking for papers at the Koli Calling conference.  I’m not sure where to go next but with just over a month to go of free access I hope to download papers referenced by the ones I have already.

Teachers of computer science now is the time to download your summer reading!

From the ACM Digital Library website:

We believe that ACM can help support research, discovery and learning during this time of crisis by opening the ACM Digital Library to all. For the next three months, there will be no fees assessed for accessing or downloading work published by ACM. We hope this will help researchers, practitioners and students maintain access to our publications as well as increasing visibility and awareness of ACM’s journals, proceedings and magazines. Please be sure to inform your colleagues that the ACM DL is now open, and will continue that way through June 30, 2020

Sunday, May 24, 2020

What About the Students Who Thrive Learning Online

In my end of course evaluations I asked my students if they learned better online or in the classroom. Not surprisingly, most of them said they learned better in the classroom. Maybe the experience will help motivate them to come to class. But I have been thinking about the students who said they learned better online. My son who is an elementary school principal has been seeing similar things. Students who struggle in the physical classroom are thriving online. What can we learn from this to help us reach these students better?.

The last few months have been anything but a careful study so it is hard if not impossible to come to firm conclusions. Antidotally, it looks like some students are more comfortable asking questions privately. Hardly a surprise but we don’t generally make allowances for that. Maye we should.

Other students are doing well because they are more In Control of their schedule. I don’t just mean the time of day, though I suspect that is a factor for some. I mean they can work on a subject in smaller or larger chunks of time. If they are really progressing and feeling food they can keep going. I have had students stay after class in the physical and well as the online classroom but teaching online the last class of the day has resulted in a lot more students staying late and getting extra help

Often we know that there are times when frustration means one should walk away from a problem and come back with fresh eyes later. The asynchronous learning that many schools have been using really opens the door for more of that. Its not like homework which in theory would allow for that because the whole day has been unstructured or at least less structured.

Home school parents have been talking about these things for years.If educators can look beyond our own biases perhaps we can learn from them.

Over the summer, hopefully, we can catch our breath and take a close look at what we learned, what worked, and what didn’t work. We’ll know more about how to teach online for sure. It wouldn’t hurt to look at this experience for things that may help the students who don’t learn as well in the physical classroom.

Friday, May 22, 2020

Am I Retired Now?

My last class of the school year just ended. My grades and report card comments are in the system. I am not going back to school in the fall. Am I retired now? I guess so. It feels weird as if there is no real closure. It doesn’t feel real. I actually updated a PowerPoint today that I have no immediate plans to use. Just seemed like the right thing to do.

People are asking me what’s next and to be honest that is unclear. I will be presenting at CSTA 2020 this summer. That will be online which is also weird. I will really miss the the hallway thread. I am on the conference committee for CSTA 2021 so CSTA and I are clearly not done with each other.  I hope to actually make more CSTA New Hampshire meetings. If I can swing it I hope to make some other conferences as well. There is one in Canada I have always wanted to attend and SIGCSE may be doable as well. I will not have to miss school for it at least.

Anyone want to pay my way somewhere, anywhere once the world is open again and have me  speak?

A lot of people have suggested teaching online and I  am considering it. I have mixed feelings about it and it would have to be the right situation.

Once the lockdown is over I plan to spend more time with my grandson. I am really looking forward to that.

I have a book idea or two that I want to work on. So that may keep me busy a bit.

As for this blog, I intend to keep going with it. I keep running into ideas to share and doing so seems like a good thing to do.

Tuesday, May 19, 2020

Teaching is About Relationships

Today I was online with my students for about 90 minutes of a planned 55 minute class. One of my students joined the Google Meet session early and we chatted for a while. We talked mostly about how things were different learning online. I also had students stay after the scheduled end of class for extra help and we also talked about online learning for a while.

For me, as for I suspect most teachers, the best part of the job is building relationships with students. That is harder when teaching online. There are few chats between classes, before and after school, or during lunch room supervision. Many teachers I have heard from talk about how they are glad they got to establish relationships with the students they teach before we went to emergency remote teaching.

One of my students this morning said that she was worried about incoming freshmen if school starts online. They will not have the relationships that help adjust to a new school. They will also not have the technology experience that current students had even before we moved online.

Students tell me these out of class chats are important to them. From my observations, students who establish a good relationship with even one teacher are happier and more successful in school. I wonder how we can develop those relationships if school stays online.

My students tell me that they would rather be in the physical building. They miss their friends but they also recognize that they learn better in a physical classroom than online. Sure it is nice to be able to eat in class, have a restroom close at hand, and be able to do things at home without the travel to and from school but that’s not enough.

One student told me today that she misses the atmosphere of school. There is a feeling in the building that helps her feel comfortable and ready to learn. That is the sort of intangible that often gets overlooked during discussions of moving education online. Yes, it is less expensive. No doubt about it. But we lose so much. Students know this. They may not all have known this before but they are seeing things through a different lens today. So are teachers. I hope parents see it as well.

I’ve had almost prefect attendance in my online classes. The reasons for that are many, varied, and complicated but I believe that relationships have had a huge influence. Relationships between students and teachers and relationships with the culture of the school have all played a part. Plus I have really amazing people for students. I’m a lucky guy.

Friday, May 15, 2020

What is your School IT Department’s Mission?

My school ran a pair of online awards events yesterday. We had almost 850 people on the day time Zoom meeting and around 500 on the evening one. These are both on a par with our events in the building in previous years. But that is not what I really want o focus on. I want to focus on how this is possible

As part of the day, the highest award the school presents to a member of the faculty or staff was awarded to our director of technology. It is largely because of his leadership that we were able as a school to move online as quickly and as effectively as we did.

Largely because of his work, our students were used to going online for assignments, to taking quizzes and tests online, and to turning in assignments online. Teachers are used to taking attendance online, giving assignments online, and many other things essential for the running of the classroom. In preparation for moving online faculty were given their first training and preparation weeks before we actually had to move to teaching from home. We got more training once the decision was made.

This happened because our IT department, from the top down and with the support of the school’s administration, has the same mission as the school. The IT people see their role as helping everyone use technology to teach and learn. Our It director has taught several classes the last two years and learned first hand how technology can be used and has used that experience to help prepare teachers to use it.

My school is fortunate to have an experienced and dedicated Director of IT who fully embraces the mission of the school. I suspect that him being a graduate of the school as are his three children doesn’t hurt.

Over the years I have visited many schools were IT departments and teachers, especially computer science teachers, have had an almost adversarial relationship. Teachers may want to teach things that the IT department is afraid of students learning. Or IT departments have made decisions about policy, hardware, and software without considering the needs of teachers.

Among the many lessons we are learning during these unusual time is that teachers and IT have to be partners working together for a common goal and with a common mission.

Thursday, May 07, 2020

More Fun With Live Coding

Live coding or as I like to call it coding without a net is a wonderful way to teach.There was a time when I thought that having prewritten code that was pasted in during a demo was a good thing. You see it a lot in demos at events for coding professionals. It turns out that in a marketing presentation that is fine and dandy but for teaching it just doesn’t work.For one thing, it moves to fast. Students can’t follow it all. And secondly, it avoids making mistakes.

It turns out that making mistakes is useful. When teachers make mistakes students feel less bad about making their own mistakes. Programmers make lots of mistake. Getting very upset or feeling inadequate when one makes a mistake is a sure fire way to get burned out very quickly. So seeing a teacher make a mistake can be comforting.

Of course, what is really important is how the teacher reacts to making a mistake. The obvious advantage to making a mistake is that the teacher gets to model how to fix the mistake. A teacher will, I hope, read the error message and then explain it to their students. For some  reason students have to be taught that reading the error message is helpful. That is strangely not intuitive.

I find that I make several kinds of errors regularly. The most common error is the typo. It’s amazing how poorly my keyboard it as typing what I mean. A great opportunity to point out that they computer is not as good at handling ambiguous spelling as people are. Typos are often a good reminder to slow down as well. Sometimes taking your time is the fast way of doing things.

I also get bit by the logic error. Now you would think that would not happen for a long time professional writing simple code for beginners. What tends to happen in real life is that the good idea fairy strikes in the middle of a demo and I decide to make the demo more interesting by adding something I have never added before.This turns into a great example of why planning BEFORE writing code is such a good idea. It is yet again a wonderful opportunity to model problem solving and debugging. Always take advantage of opportunities to model how to solve problems.

I teach several courses using several different programming languages so the other sort of problem I run into is using code for the wrong language. Visual Basic and C# (and JavaScript) declare variables differently and that seems to be a problem for me some days. As does remembering which languages use semi colons and which ones don’t. I haven;t figured out how to really take advantage of those errors. Any ideas? At least they don’t happen to often.

For me, I have decided to embrace the chances for mistakes. I’m not going to be afraid to make a mistake in front of my students. Life is to short and there is a legitimate upside to it. Now I have to make sure I can explain the error I made at the end of last class.

Tuesday, May 05, 2020

Can Online Teaching Really Work?

There is already a lot of discussion about schools and the fall semester. Will we be in physical spaces again? Will we be online again? Will there be some mix?

[Dallas Texas] District preparing for three possible scenarios to start the 2020-2021 school year

It’s far to soon to know but there are a lot of questions to be answered before decisions are made. I link to some articles below that may be of interest. But for now, I want to ask the question “Can online teaching really work?”

People talk a lot about equity and the digital divide. The current situation sure has highlighted that with access to computers and the Internet being a huge factor in many areas of the country. One would like to think that if we fix  that, give kids computers and an Internet connection that will be enough. As if!

I think there is more to it than the digital divide. I think there is a cultural question of the value of education. In some schools, students who could participate are not. Why? I don't think we know all of the reasons.

I teach to a populations for whom education is critically important. Parents are paying real money for education and kids know that how adults spend money shows what they value. I think that is huge. Talking to my students over the years, they know their parents are making sacrifices for their education. They want to make sure their parents are getting value for that money.

Sure there are the spoiled self-entitled students out there but in a school like  mine the culture values learning. Peer pressure helps motivate students to do school work.

That is not a universal culture. There are schools where the culture says "get out of school as soon as you can" and "you don't really need school but you do need to work." There are schools where students feel they have to go to work to help support their families. There are kids who parents will actually make them leave home at 18 and go on their own. (This is not a myth. I have seen it.)

School culture is very important. Peer pressure can work to help students value school or not value it. So my concern about online teaching is two fold. How will students who are not living in a culture, at home or at school, where it is cool to be smart, where it is important to go to school. or where they don’t feel like they belong motivate themselves to attend online classes?

And how will schools with a supportive culture be able to maintain and grow that culture online? It’s not going to be easy.

And that is just secondary school. I don’t even want to think about grades k-8. No, really, I don’t.  I can’t imagine online school working well at those age levels.


BTW are plans for the fall thinking about teachers? Especially older and otherwise vulnerable teachers?