Thursday, October 11, 2012

NCWIT Award for Aspiration in Computing 2012 Reminder

Time for a reminder. Now that school has been underweight for a while you may have identified some young women who would be good candidates for the NCWIT Award for Aspiration in Computing.

What is the award?

The Aspirations Award honors young women at the high-school level for their computing related achievements and interests. Winners are recognized at an award event here in the community. All applicants will also be considered for the National award. National winners receive $500, a laptop and a trip to the March 9, 2013 awards gala.

Since 2007, NCWIT has recognized more than 1300 young women and honored more than 50 teachers with the NCWIT Educator Award. Learn more at www.aspirationsaward.org. Our Award recipients have been invited to the White House, received scholarships to top universities, and accepted internships at top tech companies such as Microsoft and Google.

Why is the award important?

By generating visibility for technical young women, the NCWIT Award for Aspirations in Computing encourages continued interest in computing, increases awareness of the gender gap in computing and IT, and emphasizes at a personal level the importance of women's participation in computing.

What is the application process?

Please direct girls to http://www.aspirationsaward.org. Detailed instructions and eligibility information are found online. APPLICATIONS ARE OPEN NOW THROUGH OCTOBER 31!

What is the deadline?

Please notify girls of this opportunity right away. Online applications are open now and must be submitted by 11:59 PM Eastern on October 31, 2012.

Wednesday, October 10, 2012

Are Your Students Whiteboard Ready?

One of my former students is the CTO of a startup these days. He posted today about the need for all of the employees of his company to be “whiteboard ready.” His theory is that "He who controls the whiteboard controls the conversation." The idea is a lot more than just presentation skills though. In many meetings the closest thing to official notes is what shows up on the whiteboard in the course of the meeting. The person at the whiteboard has a lot of control over that and by extension both the course of the meeting and the action items that result from it. It takes some confidence to stand up at that whiteboard though. Not everyone is ready for that.
I like the idea of finding ways to put students in the front of the classroom. There are several ways to do that. One that is traditional is to have students prepare and present lessons. I had a professor in graduate school who used this to good effect. One of my classmates complained that he was paying money to be taught not to teach himself but I think he looked at the experience all wrong. One really has to understand something to teach it so we all get a real deep learning on that topic. Since everyone worked hard (the presentation was graded) we all got a lot from each lesson as well. Plus it was a confidence building experience. Once you present a topic in front of a professor  whose PhD research was on that topic and get a good grade it makes you feel like you know something. Having students teach is valuable on many levels.
I think there are even more opportunities in a computer science class though. I would like to see students take turns leading discussions on designing solutions to programming projects. This simulates the sort of discussion that goes on in professional meetings. It also asks students to talk their ideas out and do some planning before starting code.
There is also the option of code reviews. These don’t have to be on student code though that is possible. Ideally the person at the whiteboard leading the discussion would not be the person who wrote the code though. You want someone who could be impartial and not emotional about the discussion. Code reviews are a great skill to have and a great learning experience as well. Rotating students though leading code reviews gives them experience running meetings as well.
In conversations with industry professionals the topic of soft skills comes up regularly when discussion of outcomes that are desirable in students. Being able to lead a meeting, make a presentation, manage a code review, and generally show leadership ability are the sorts of things employers want to see in students. Developing those soft skills in way that support the overall learning process is a win win for everyone.

Tuesday, October 09, 2012

Layers and Layers

Several years ago a teacher asked me to help with a problem one of her students was having. The student had decided to combine all of the semester’s projects into one big program. It was getting a stack overflow and no one had been able to figure out why. By using the debugging capability in Visual Studio (which is amazing) I was able to follow the flow of the program from method to method to method and figure out what was happening. Experienced programmers will tell you that recursion was involved and be right. This one was a little more complicated than that. A method called a method which called a method which called the first method. Looking at any method or two in isolation would not turn up the problem.

This is not a type of problem that one runs into in an early computer science course. The tasks we assign are more simple than that. They are targeted to narrow goals. In industry though large complex projects are the norm.

Years ago, when I was doing operating system development, memory management was less sophisticated than where it has come to today. One of the things we had to do was to manually specify overlays. What than meant was that a programmer had to tell the operating system what parts of code had to be in memory at the same time. Not everything would fit you see and the operating system was not “smart” enough to work things out by itself. So a programmer would diagram all of their subroutines and functions and group them together by which ones needed which other ones at the same time.

For example the open file and close file routines might not have been needed at the same time as the file read and write routines. So the programmer would specify that when the open or close was needed the OS could swap out the read and write routines and bring the others in. In a complex system this sort of diagram and overlay instructions could get several layers deep and look more complicated than a large company organization chart. It was not fun to set up.

This did have a good side to it though. It really forced a developer to understand the organization of their program. Which methods were dependent on which other methods and so on. It actually let one do some performance tuning as well by specifying that some methods shouldn’t be swapped out except rarely. Doing a chart like this would probably have helped spot the stack overflow problem I started this post with. Without the debugging that let me step through from routine to routine I would probably have had to resort to this sort of thing. I’m not sure that would have been a bad thing though.

The truth is that as software development gets easier – for example not having to think about memory management and how program methods are overlaid in memory – we give up something in understanding the complexity of what we are doing. It’s a mixed blessing for sure. I don’t really want to go back to overlay charts and manual specifications. At the same time I worry that we don’t understand complex programs as well as we might.

It is always tempting to assume that if all the pieces work well in isolation that the complex structure they are a part of will work just fine. That is not a safe way to bet though. We need to think of the system as a whole and how each piece interacts with each other piece. Perhaps I am biased as I have a degree in Systems but I don’t think we teach enough of that sort of thinking these days. Not just in computer science ether but that is one place it shows up to bite people when they start developing code in large projects.

Computational thinking is a part of this but I think systems thinking is larger than that. We need to start thinking about systems thinking at younger ages.

Monday, October 08, 2012

Interesting Links 8 October 2012

It’s the Columbus Day holiday in the US. Or as we call it in my family Leif Landed First day.  Either way a lot of schools have a holiday today. I’m traveling today so I prepared this post yesterday. Some of you will read it tomorrow so it all works out fine. Smile I just have a few links to share this week. It was slow for me last week

A lot of decisions that companies make not as near an simple as they look. There is a lot of discussion about Microsoft;s decision to turn off tracing of were you go on the Internet. This article The Hidden Feature That Means Microsoft Has Already Won The 'Do Not Track' War covers the discussion pretty well. May make for an interesting discussion in class!

You can read about some other Microsoft backlash on the Geeky Mom blog.

Ken Royal‏ had an interesting interview with Iowa Supt. John Carver Changing Education's DNA  Listen to how his district is using Twitter and other social media and hear why he’s like to make school busses mobile Internet access points.

Did you know that Advanced Placement has the lowest number of female test takers of any AP subject - stuck at 19% from Jane Margolis. Worry anyone else?

Mark Guzdial @guzdial is  Seeking K-12 teachers for study on learning App Inventor The are looking for teachers who are interested in learning and using App Inventor for Android but haven’t started with it yet.

I have been updating my Computer Science educators on Twitter list. Who am I missing? Are you on Twitter? You may want to follow this list. Or at least let me know if you should be on it. Follow me on Twitter @AlfredTwo.

 

Saturday, October 06, 2012

The Problem With Courses

Lots of interesting side comments come up during some curriculum discussions. At a recent meeting of the CS 2013 task force one of the committee members made a statement to the effect that maybe part of the problem was having to have courses. The comment was made (mostly I think) in jest but it really started me to thinking.

In general I think we have too many artificial distinctions in bits or knowledge. Or as we like to call them in school “subjects.” I first started to think of this in the context of math. After all algebra, geometry and trigonometry are all “just” math. But we have people saying that one is easy and one is hard but they’re all math. Where does the line between geometry and trigonometry fit? When does algebra end and linear algebra begin?

We face the same sorts of thing in computer science. Database and data structures? Can you have one without the other and if not where do you draw the line between them if at all? I could go on of course. But we do have courses. Why? Because it makes record keeping easy. Well its more complex than that but basically we have courses as much to make education fit into nice ordered compartments as anything else. In many ways I wonder if it would make for a better learning experience not to have courses at all.

This would require education to be more like an apprenticeship where people move at their own pace and pick up new skills and knowledge when they are ready for them. Or when they need them. It would be a holistic approach with fewer artificial separation between topics. Is it practical? Probably not. At least not the way we do education today. I think it would be better though. Of course I have no data and maybe it is all wishful thinking but it’s something to think about. What do you think? Do courses help learning or get in the way?

Friday, October 05, 2012

The Real Disruption of 3D Printing

The latest “disruption” people seem to be talking a lot about is 3D printing. A lot of the attention has been caused by a group of people calling themselves Defense Distributed trying to use 3D printing to build a firearm. The attention is somewhat caused by fearful concern about easy access to firearms (Plans to print a gun halted as 3D printer is seized) and then a fear for destroying the manufacturing industry (Home 3D Printing Is Killing The Manufacturing Industry). Both fears are, I think, overblown though they do “sell papers” as the saying goes. More than that though I think they miss the real potential for disruption which is the creation of new things.

Firearms have been around for hundreds of years and the means to make them have been around even longer. Anyone with proper machine tools and a little skill can make a firearm. People in the third world do it all the time as it is not a skill limited to first world manufacturing centers.

When 3D printers get good enough to build “anything” then manufacturers will still be able to buy the best machines and the best materials and under cut the price of homemade items for all but very small numbers of items. For a lot of items the assembly is as expensive, if not more so, than the actual creation of parts. So I doubt the manufacturing industry is quaking in their boots.

Right now 3D printing is limited in materials used, limited in precision, and time limited. One can wait hours for even a fairly small part. Over time this will change and we will see faster, more precise machines that use a wider variety of materials. I’m not an expert but I did have classes in patternmaking, foundry, machine shop, sheet metal shop and materials science so I have some idea about what goes into making things. Not everyone thing can be created by layering bits of material on top of other bits of material. So get over the idea that people will be making Rolex watches in their basement anytime soon.

The possibility does exist for real innovation and real disruption in the creation of new things. By new I mean things that haven’t been done before. Things that people were able to visualize but not able to construct. What sort of things? If I knew  that I would invest in a 3D printer today and start creating them.

But art work is one thing that springs to mind. 3 dimensional art that goes beyond traditional sculpture. With a 3D printer you don’t have to have years of practice working with wood or stone or metal to make things come out the way you visualize them in your head. Rather you can use computer graphics tools to do the work. Actually this might lead to a new class of computer graphics design tools which would be a plus by itself.

On a more practical basis being able to make gears and shapes and other parts that are not available off the shelf or that are too expensive in small quantities will make the creation, at least in prototype form, practical for many more people than can do so today. Need to scale up or down? Ask the machine to do it for you. Creating models in less time and to better specifications than you could easily do by hand or afford to have model makers create for you would open all sorts of doors for affordable experimentation.

The future of disruption via 3D printers is not by copying things that already exist but by creating things that were never created before.

Thursday, October 04, 2012

Omnibus Software (and hardware)

I have several “Swiss Army” type tools. You know the ones with all the different blades, screw drivers and pliers in one tool. They are ok for simple tasks but for serious jobs I prefer a real screw driver, a real knife or a real pliers. I think most of us recognize the difference between multi-purpose tools and tools specially created to do one thing and do it well. Somehow for computers we ignore that though.

As I sit here I have four devices plugged in.

  1. A laptop
  2. A tablet
  3. A phone
  4. A Kindle

I can get to the Internet on all of them. I can read books on all of them. I can create email easily on three of them. I can write documents on three of them. Honestly I might be able to do some of those things on a different Kindle too. So why do I need four devices when all of them do everything? Because they don’t all do everything well. So I use them for what they are best at. There is a nice Kindle app from my Windows Phone but the reading experience on the Kindle device is a whole lot better to name one thing.  Generally I like special purpose tools for computing tasks just like I do in my shop.

That is what I like in my software as well. I think that one of the reasons I struggle with doing everything in the web browser is that it makes the browser a “Swiss army knife” when what I really want is a bunch of special purpose tools.

I like stand alone email tools. Well ok Outlook is a calendar and a task scheduler as well as an email tool but it’s still close. I like Twitter clients more than reading/writing to Twitter in the web browser. Web based editing is getting better but it still doesn’t compare to tools like Word or Windows Live Writer. I’m writing this without web access BTW. That would be had to do using my web browser.

I carry my all in one tool when I need to travel light and an not sure what tools I will need. That doesn’t make it my tool set of choice. The same is true with a web browser. It’s ok and gets me by for many things but it still feels slow, clunky, and a lot less powerful than a stand alone app. Moving away from the web browser doesn’t mean giving up “the cloud” either. In fact one could argue that it makes the cloud more powerful by making it more usable.

We tend to think of the Internet and the web as synonymous. They are not. And they never have been. The web is just one of many protocols that travel across the Internet. By thinking of the two as being the same we run into the old problem best expressed by “when all you have is a hammer all of your problems look like nails.” I know some will call ne a reactionary or a Luddite but there are days when I believe that moving everything to the web browser is a step backwards not forwards. What do you think?

Wednesday, October 03, 2012

Certified or Qualified

Certification is a hot topic for K-12 computer science educators. It’s a big issue in public schools but not so much in private schools. The concern in private schools, who often see certification as a “nice to have” rather than a requirement for hiring, is more about qualified. It’s tempting to assume that certified equates to qualified but given the state of certifications for CS teachers that is not always a safe assumption. One can’t assume that not certified equates to not qualified either. So what is a school do to?

Laura Blankenship asks some good questions in a post titles Am I Qualified? on her blog. I am a person with nine years of classroom teaching experience but no certification so a lot of her questions felt familiar.

The people who hired me to teach high school computer science (something like 17 years ago now – wow!) told me that they were interested in qualified far more than certified. This was a private Catholic school so they had that flexibility. BTW many of their teachers were and are certified. They send something like 98% of their graduates to four year universities so they do seem to have some good results.

Still while I had lots of technical experience I didn’t have much teaching experience at that time so they were taking something of a chance. Not everyone with a solid technical background makes a good teacher. It takes more than technical knowledge. Some of that is taught in education schools but from what I have seen of certified teachers not everything you need to know is taught there either. There is a lot of on the job learning no matter what your education background. Half of certified teachers don’t last more than 5 years in the classroom so even that is no certainty of success.

An other question that comes up when discussing certification is what person with a degree in computer science is going to want to take less money as a teacher when they can work in industry? That’s a fair question. But take a look at this story of a Harvard grad who left Microsoft to teach at Issaquah High School. Some people are happier as teachers. Contrary to popular opinion money is not everything.

There is also the possibility of having it both ways. Working in industry full-time and teaching part-time. See this New York Times article about putting engineers in the classroom via the TEALS program that Microsoft is sponsoring. Of course it helps if these engineers in the classroom have some training which they do get through the TEALS program. They also get paired with certified teachers who no doubt help them a lot with the “how to teach” part of their roles.

What it boils down to are several basic issues:

  1. The politics of public schools that require certification
  2. The question of what makes someone qualified to teach computer science
  3. How do we train people who want to teach computer science to make sure they are qualified?

If we can solve question three question one largely goes away as an issue except as long as we have realistic alternative certification plans for people who are qualified. That makes question two the key one we need to worry about. How do we define qualified in a way that balances the needs of everyone = prospective teachers, hiring schools, and of course the students we want taught.

But these are not easy questions. Worse still we have lots of people coming up with different and sometimes contradictory answers.

BTW the Computer Science Teachers Association has some research on the subject of certification on their web site. Check them out for more information:

  1. Computer Science Teacher Certification Requirements
  2. Certification Requirements by State

Tuesday, October 02, 2012

Debugging is Good For Learning

I was going to title this post “I love debugging” because, well, I do love debugging code. For me that is one of the most fun puzzle solving mind challenging things someone in computing can do. This is contrary to most people I think. Beginners in their first job often feel that they are “stuck” debugging and cleaning up other people’s code when what they really want to do is write brand new code from scratch. There is where the glory is! Bah!

One of the interesting quotes in computer science is Brian Kernighan saying:

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it

The glory may be in writing original code but the difficult part is debugging. Anyone can write crappy code from scratch but it takes someone with a good brain to clean up other people’s messes. In his essay "Learnable Programming" Bret Victor early on states a truism that I think we tend to forget while teaching students.

Programming is a way of thinking, not a rote skill. Learning about "for" loops is not learning to program, any more than learning about pencils is learning to draw.

Real debugging is more than just looking for the typos and getting the syntax right. Sure that is part of it. Did someone use a “*” where they were supposed to use a “+”? Or is there a semi colon in the wrong place? These are all part of it but only a small part. Debugging requires understanding of what happened, what was supposed to happen, and what sort of things could cause the disparity. It requires understanding of a way of thinking.

We struggle teaching complete beginners because we do have to teach them a big rote skill about what a loop is and the like at the same time we are trying to teach a whole new way of thinking. This is why tools such as Alice and Scratch which avoid a lot of syntax are so popular. They let us focus more attention on the hard part – learning a way of thinking.

Getting back to debugging for a minute. I would argue that the real reason beginners should be fixing other people’s code is that doing so will help them learn more and faster how to think like a programmer. While debugging code one can look at intentions and understand what someone was thinking (or not) when the code was written. Did they take a shortcut they should not have? Did they make some incorrect assumptions? Did they just get careless? Did they forget test cases? What went wrong and how can it be fixed without creating new problems.

That fixing things without creating new problems is harder than most beginners think it is. If you are an experienced programmer you know that already but beginners need to learn that.

I wonder if what students need is to be assigned more “broken code” and be asked to fix it. It may help with the whole learning to think differently that so many struggle with. Thoughts?

Monday, October 01, 2012

Interesting Links 1 October 2012

Well it’s a new month. It’s been about three weeks in this location (for the blog) and I sure do appreciate how many people stuck with me over the move. Seems like more people are commenting as well which I really appreciate. Comments always add value and not just that they help me not to feel like I am writing for the null set of readers. BTW if you get a chance please remind others that Alfred Thompson’s computer science education blog has moved to http://alfredtwo.BlogSpot.com

Anyone interested in teaching computer science will want to read Bret Victor responding to Khan Academy's new CS curriculum with "Learnable Programming" I found pointers and references to it seemingly everywhere I went last week. I am thinking about a blog post but already several people smarter than I am have done so.  Mark Guzdial wrote Learnable Programming: Thinking about Programming Languages and Systems in a New Way  which is really good. Eugene Wallingford wrote REACTIONS TO BRETT VICTOR'S VISIBLE PROGRAMMING which takes advantage of the fact that he had heard Bret Victor speak on this topic  quite recently. All of these are well worth your time.

Looks like Rob Miles @robmiles and I both posted about finding programming bugs last week. His is at Sneaky First Year Programming Lab Fun while mine was at Find The Bug. Rob’s is probably better but read them both and decide for yourself.
Garth Flint has some interesting thoughts on the old “Draw A House” programming task that a lot of people use. If you’ve dismissed this project in the past Garth’s post may change your mind.

Interesting article in the Washington Post  In cyberattacks, hacking humans is highly effective way to access systems,  A lot of computer break-ins and related security problems are people issues not technical issues. We sometimes forget this.

Ray Chambers, has released the source to his Kinect Quiz project Also from Ray is his Kinect Maths Game with source code. It’s in the early stages but looks interesting.


You will remember a month or two back, that I started working on a Kinect Game. The idea of the game was to use more active gestures to answer questions in Mathematics lessons. To use the game, students will calibrate their custom movements for addition, subtractions, multiplication and division. Once they have answer the questions, It will give them a sound if correct. If they have got it incorrect then it will give the students an error noise.

Speaking of sample code - Hello Blog Reader Sample for the Windows Store in C#, Visual Basic.Net, JavaScript and even C++!

Via Hydrogene,  Minimal Posters of 6 Women who Changed Science & the World. Grace Hopper is one of them!!

Hal Berenson is a really smart guy and has written a couple of posts I feel like I should pass along. The first is called Developers ignore creating “Windows Store” Apps at great peril which I think students should read when they think about outside projects. Teachers should read it as well as they think about what sorts of technology to be teaching students. While you may not be thinking you need to prepare students for the work force this post does give some idea where things are going for them. Much better than my To App or Not To App post.

The second is called Windows 8 and Arrogance (or not) and discusses some design decisions that were involved in Windows 8. It gets a bit personal about Microsoft President in charge of Windows Steve Sinofsky who replies in the comments. Agree or disagree with the various conclusions the discussion is facilitating and educational. Don’t avoid the comments. There is great stuff there.

Friday, September 28, 2012

Find The Bug

The big problem I have with using professional quality sample code in class is that it is too professional. By that what I mean is that it is too complete and often too complicated for beginners to use. Oh it is great as an example to read and study for sure. On the other hand the complexity can be overwhelming to the point where beginners find it difficult to use or to extrapolate from the specific example to more general usage. This is not a problem for experienced programmers (usually) but can make it difficult to use with students who are just starting out.
For those reasons a lot of sample code for beginners is over simplified. This can mean problems as well. One problem is that if beginners see enough code without error handling they tend not to include it in their own projects.
What I like for sample code is very simple code that is easy to understand but that lends itself to easy expansion and improvement. I want it to be the start for experimentation. Recently I found such a sample on Code Project.
Create Pie Chart Using Graphics in C# .NET - hari19113
This article shows how to create a Pie chart using the Graphics class in C#.
It’s a simple C# project and even though it is not commented it should be easy for most beginners to understand. In fact I think it is easy to expand and the routines in it could be fairly easily moved to other projects. But it is far from perfect. There are some coding practices that are less than ideal. Specifically a) some variables that should not have as large a scope as they do and b) a bug that is not unrelated to that variable scope.
Here is what happens. If you add a number of numbers to the sample program and press the View button you get a nice little pie chart like this:
PieChart1
Then you realize that you want a fourth number in the chart so you add it and press View again. You will get something like this:
PieChart2
Something is clearly wrong here. What could it be? I gave you a hint earlier. The example code can be obtained on Code Project or from my own website at www.acthompson.net/PieChart.zip  I found two slightly different ways to fix this bug. One way involved adding a line while the other involved moving a line. I tend to prefer the second but I’ll leave it to the reader to find what works best for them. [Insert evil laugh here]
BTW I used Visual C# Express 2010 which is a free download. Students of Java should have little trouble trying this “exercise.”

Thursday, September 27, 2012

Creativity In Computer Science

I was reading a blog post titled Creating creative portfolios by Deepa Muralidhar the other day that really got me thinking of this whole notion of creativity in computer science. I think it is a problem in a lot of subjects these days but it can be particularly troublesome in disciplines that call from some real creativity like art and Computer Science. OK maybe not everyone puts those two together but the same day I read Deepa’s post I cam across this quite:

“Imagination is more important than knowledge. For knowledge is limited to all we now know and understand, while imagination embraces the entire world, and all there ever will be to know and understand.” Albert Einstein

We are still in the very early stages of computer science in my opinion. We can’t afford not to see computer science as requiring creativity and imagination. Computer science needs to embrace the entire world. We need students to go beyond the rubric and get creative. We need students to see game as being more than just “games using missiles and guns or sports based games.” as Deepa’s students seemed to see as the only projects for creation.

We need that so that they exercise their creative side; that they go beyond the obvious that everyone else is doing. We need projects that force students to go beyond their knowledge and discover new knowledge. Or at least new ways of using old knowledge.

This can be hard for students for a number of reasons. One is that too often in schools we teach the creativity out of students by asking a class of 30 students to hand in 30 identical papers/projects/texts. or we assign recipes and expect students to follow then exactly for full credit. We make them color inside the lines! There are no lines in real art but we forget that.

So what can we do when students get to high school and want to stay inside the lines? We have to encourage them to stretch themselves. We have to say “here is the box. do what you want as long as you stay outside the box.” We have to ask them what problems do they have and want to solve. We have to find ways to help them to be creativity and then when they are creative we have to reward them for it. As with almost anything one gets that behavior that is rewarded.

And you know what? Having creative students doing creative things and forcing their learning outside the textbook is a lot more fun for teachers too!

Wednesday, September 26, 2012

What About Small Data?

This is an other post along the lines of We Are Making Things Too Hard more than the more obvious Thinking About Databases. And there may perhaps be a bit of old man “get off of my yard” nonsense in it as well. Back in the day (I warned you) we had only very simple says of dealing with data. In fact on many systems all we had were “flat files” that could be addressed either sequentially or, if we were lucky, randomly. One had to more or less know where the data was. Sorting files so that one could do a binary search though the whole data set was not uncommon.
In my first job out of university I worked for a company that used a system with two files for each set of data. One file had the data in unsorted order while the second file had a key structure that had to be frequently reorganized as efficacy would fall apart rapidly as more data was added to the files. Oh is was a kludge. I don’t really want to go back to those days.
Later I worked with operating systems that had fairly simple but reliable ISAM (Indexed Sequential Access Method) file systems. Initially they only supported a single key for a file but they rapidly grew more sophisticated to support multiple keys, duplicate keys, transaction support such as journaling. These systems were then developed to support simple relational databases that while not true databases the way we think of today but faked it pretty well. Oh and they were easy to use.
Today it seems that most of our options involve real databases. Tools like Microsoft SQL Server and MySQL are full blown relational database management systems. MUCH power! With power comes complexity though. At times and for some applications I feel like my choice is between a chainsaw and a dull knife when what I really want is a scroll saw.
What I want is to be able to declare a record type with various data and a key or two, have the system create or open the associated file and let me place or get data with a simple write or read statement. That’s it. No high priced DBA to set up a complex database after long and careful study. No complex and powerful SQL statements to build. No daemon or server application to run and communicate with. Just simple straight forward indexed access to a simple file. The sort of thing that I could do 30 years ago using Record Management Services on various Digital Equipment operating systems.
It’s out there right? Someone please tell me its out there and where to find it. Thanks.

Ruth Hartsook’s CS Teaching Resources

Ruth Hartsook posted links to some interactive web based teaching resources on the Advanced Placement Computer Science discussion forums that I think are just wonderful. These can be used by a teacher in class or by students looking for review or even getting a jump start using a flipped classroom model. She has four five of them covering some very key concepts:
  1. For Loops - watch a for loop run
  2. Boolean Logic - learn and practice
  3. All about methods - learn and practice
  4. Recursion - learn and practice
  5. Encapsulation - review the concept
You don’t have to be an AP CS teacher to use these. And even though they are written for Java I can see them easily being used with other languages.

[Note: updated with new URLs and a fifth item on 23 August 2013 ]

Tuesday, September 25, 2012

Can We Afford To Wait For a CS Sputnik Moment

I was having a talk with a teacher online recently and he reminded me of the Sputnik scare that started a lot of renewed interest in science and math in education. All of a sudden politicians and business people were concerned that American students were losing ground in those fields. This started a rash of interest that eventually lead to landing people on the moon. Along the way many wonderful and unexpected scientific discoveries were developed and I mean a lot more than just Tang! There was a defining moment that sparked a call to action. Where is that moment for computer science?
I first publically asked that question in a blog post several years ago called Finding the Titanic which I have copied below. I haven’t found that moment or that discovery. I wonder if such a thing can be manufactured or is it something that just has to happen? But if we wait for something to happen will it happen too late? That is if it is not already too late. Other nations are waking up to the essential nature of computer science. Estonia is teaching computer science to all students in all grades! Who knows where that will lead them in the long run!
How do we get this conversation out beyond the choir who is already interested in CS education? That is the multi-billion dollar question!
The closing keynote of TCEA 2009 was given by Dr. Robert Ballard of oceanographic explorer fame. It was a talk that was both interesting and inspiring. One thing he said was particularly thought provoking to me. I think it is highly relevant to the current and worsening recruitment problems we are having in computer science – especially with non-traditional CS students. Dr. Ballard explained that for many years he was making important discoveries in science. Uncovering secrets of the earth and of life that caused people to throw away the old textbooks. Revolutionary discoveries. And yet all his graduate students were from over seas. Children had never heard of him. There was no excitement in the field outside of the field. Then he found the Titanic!
Within weeks he’d received 16,000 letters from young people with two questions on their mind – "What do I have to do to do what you do for a living?" and "The next time you go, can I go with you?" From relative obscurity he and his field had grabbed the imagination of young people in a way that was unprecedented. These days all of his graduate students are Americans and many young people grow up wanting to be like him and make the sorts of discoveries that he and his teams are making.
It makes me wonder – what is the computer science equivalent of finding the Titanic? What is that one thing that will grab the imagination and inspire a generation to enter the field?
It may not even be central to the field. In fact I suspect that it will not be. Perhaps it is some tour de force that proves a controversial concept or theory. After all finding the Titanic was a great demonstration of equipment that was really designed to do other more centrally scientific things. I don’t know what it will be but I am pretty sure that we need to find it. Slow and steady is losing us ground. So … any ideas?

Monday, September 24, 2012

Interesting Links 24 September 2012

Happy Monday. Well try to start the day with a big smile until you actually feel like smiling. It works. Trust me on that. Last week a lot of things crossed my screen but I think I have the best of them to share with you today. First a couple of important reminders though.

First for the young geeky women you know the applications are open for the NCWIT Award for Aspirations in Computing. This program recognizes women who are interested in technology. I hear all sorts of inspiring stories about the winners and their potential. So please look into it.

Also if you are a K-12 computer science professional development (PD) provider or know of one, it is of vital importance that your efforts are recognized in this national landscape study of computer science PD. By completing the survey (link below) you will ensure that your PD opportunity will count. PD Survey Link: https://uchicagocenter.us2.qualtrics.com/SE/?SID=SV_3ehqq2eWXOhlzvf

A couple of good links from my old manager at Microsoft Bob Familiar ‏@bobfamiliar signing Retro Looking Games for Windows 8 and long list of tools for creating games for Windows 8 at Windows 8 Game Development For The Win.

I really like this post What Does “Big Data” Mean?  at the blog@CACM | Communications of the ACM. I can’t help but see it as a great, more in depth follow on to my recent post Thinking About Databases.

Some people are just born to teach. I love this story of a Harvard grad who leaves Microsoft to teach at Issaquah High School.

I continue to be impressed with the way Kinect is finding uses with special needs students. See how teacher Shannon Putman uses Kinect to empower students with autism. Can you see more applications like this?

My friend Vicki Davis (aka Cool Cat Teacher) was highlighted in the Boundless Educator Spotlight: Vicki Davis

Also last week I discovered the  Crypto Museum website which is an online museum on cryptography. You should see the things they have for sale too! If you or students you know are interested in cryptography you really should check it out.

Over on the  Coding 4 Fun web site they now have Kinect Magic Cursor version 1.2, now with source code.

Kinect Magic Cursor allows you to use Kinect connected to a Windows 7 pc to control the windows mouse pointer and perform left clicks.

My good friend Doug Peterson had a very thought provoking post called How do you foster technological innovation? I’ll have more to say on this general topic later in the week So keep coming by.

Friday, September 21, 2012

What period is it? Let me check my phone

The Center for Advanced Technology is a great program at Lakewood Senior High School in Florida. Students in this program learn and use technology in interesting ways. These students help develop applications that help the school function better. Earlier this week Lou Zulli, the award winning teacher who teaches Applied Computer Technologies and Emergent Computer Technologies at CAT, let me know about his student’s latest project. Smart Phone apps that help students keep track of their school assignments, time in a way that is relevant to students (i.e.. what period is it) and more. Available for use by students and parents it is tied into the school’s SharePoint system.

CATNIP Mobile is an application for the students enrolled at the Center for Advanced Technologies Program at Lakewood High School and their parents. This app allows the user to see the current bell schedule and how many minutes are left in class. It also displays any assignments that teachers have added to their CATNIP2013 MySite calendars. Just tap on an assignment to view its details. These assignments are filtered by teacher.

I know that a lot of schools forbid phones of any sort in school but these apps make the phones a serious resource for students. Let’s face it a list of assignments on a student’s smart phone are a lot less likely to be lost than those written on a notebook buried in the bottom of a book bag.

If you want to get an idea what these applications are like you can see some previews of the various versions.

The links are:

WP7:   http://www.windowsphone.com/en-us/store/app/catnip-mobile/55723bfc-94b3-4247-b52e-35a58ed1ef25

iOS:    http://itunes.apple.com/us/app/catnip-mobile/id560540569?mt=8

Android:   https://play.google.com/store/apps/details?id=com.cat.catnip.mobile

More about CAT

The Center for Advanced Technologies is a public school magnet program housed at Lakewood Senior High School, located in the southernmost part of Pinellas County, on the west coast of Florida. Curricular offerings within the Center include mathematics, science, computer education, multimedia applications and research; other coursework is completed within Lakewood Senior High School. The Center opened its doors in August, 1990 to a class of eighty-five freshmen; each year an additional class of approximately one hundred fifty students is added. The enrollment for the 2009-2010 school year is approximately four-hundred fifty, grades nine through twelve, with 100% of the students planning to attend college. Funding for the program came from a variety of sources: Pinellas County Public Schools, local corporations and partnerships. Last year, Newsweek magazine ranked the CAT Program 24th in the nation!

Thursday, September 20, 2012

Thinking About Databases

Some years ago I had students write a program that involved managing a checkbook and balancing it. I was so proud of it. Later a student told be she liked the programs that were “relevant.” I replied “like the checkbook program?” She shook her head and said “no, like tic tac toe.” I was devastated but I think I hid it well. I realized that relevant to her was not the same as relevant to me. She didn’t have a checkbook or write checks. This was meaningless to her. I might have been better off with some sort of credit case program but I’m not sure that would have worked either. Fortunately today there are database applications that our students use and that are relevant to them. Instant message programs for one and Facebook for another.
These are big databases. Huge! Most people don’t even think about how they work behind the scenes. For a computer science student though they make great thought exercises. Take your average instant message software.
Obviously there is a database that tracks who ones contacts are. What happens when you log into the software. Probably some thing like this:
  1. Verifies username and password. Is the date encrypted? How is it passes safely?
  2. Changes your status to online.
  3. Checks the database for a list of your contacts and looks at the status of each of their records.
  4. Builds your initial display of contacts
Simple enough. What happens when someone has a status change? Several possibilities exist. One is that perhaps the software merely changes the status on the user’s record. Then perhaps each user’s program periodically checks they status of all their contacts and changes the display. Another is that besides setting the status the software also checks the status of all of the users contacts, finds which ones are online and notifies each user.
These options (and there are probably others that people can think of) have pros and cons. What are they? How is performance different with each option? Which way scales best (works best for larger numbers of contacts?) There is a lot to discuss. I don’t know the answers but I’ll bet a discussion among several people would be instructive. Can you write a simulation? How would that work and how would you use it to test your theories?
What about Facebook? How might that database work? There you also have the fact that each item also has information about who can see it. How is friends of friends handled differently from just friends or from public? If you have 500 friends and each of them have 500 friends who many people can see an item? What about duplicates? Do duplicated play into things and if so how?
At the university level most computer science majors will take formal course work in databases. One, two or more courses. Most often we don’t have time for that in high school. In fact many times there isn’t time for more than a discussion of databases. It’s a reality. But I think that students can learn a lot from discussions of databases around data applications that they know and love. The technical issues are fascinating (well they are to me) but I also think that students can get value from discussion the ethical and social impact of database applications. Topics like encryption of data (passwords if nothing else) and how all this data is used are natural discussion points.
Privacy and the use of data for marketing purposes on Facebook is a huge topic among those people concerned with data privacy. Our students even aware of the issue? I think that a well educated CS student should at least be exposed to the issues. What do you think?

Wednesday, September 19, 2012

We Are Making Things Too Hard

I once had a conversation with Bill Gates. Yes, in person, face to face. And while I will not go into the whole meeting he said a couple of things that I continue to think about on a regular basis. One of them is that he suggested that development tools have gotten more and more powerful but at the same time that has made it harder and harder for students and other beginners to use them. I think that anyone teaching programming using tools like Visual Studio and Eclipse and the various markup languages that seem to be growing in power and complexity daily would agree with this. This has spurred the growth on simpler tools such as Alice, Kodu, Scratch and IDEs for beginners like Small Basic, BlueJ and Greenfoot. These are great learning tools but I wonder if they keep beginners, and by that I mean hobby programmers as well as students, away for the main stream of programming. Away from the really cool stuff.

Today when you think about programming apps for phones you have three options: iPhone using Objective-C, Android using Java and Eclipse with add-ons (Or App Inventor about which I will say more later) or Windows Phone using Visual Studio (C#, C++ or Visual Basic). Your user interface is likely to be drawn using some sort of markup language that is probably going to have its own learning curve. In my humble opinion it shouldn’t be this way!

Many years ago I worked with an operating system  called TRAX. It’s so obscure not that I can’t even find it in Wikipedia. Why bring it up now? Because back 30 years ago this operating system used a mark up language for describing a user interface that was much like the ones we are using today. Where is the progress? Oh sure today we have some drag and drop capability and I love getting started that way using Visual Studio for Windows Phone and Windows 8 apps. But a lot of modifications seem to have to be made in the code. Sure I can do it. I have almost 40 years of experience writing code and messing around in mark-up languages.

As long as I have been programming which is about 40 years now people have been talking about programming getting easier and easier to the point where one day everyone would be able to program. It seems as though we went so far with that (remember Visual Basic 6.0 and earlier?) and then started backtracking. Now Visual Basic .NET was a huge step forward in power but we lost something in ease of use. Control arrays which I thought was one of the most powerful features in VB 6.0 were still doable in VB .NET but it took a lot more work that had to be coded by hand.

Moving from Windows Forms in earlier versions of Visual Studio to Silverlight and HTML5 today again seems like a bigger step backwards in ease of development than it is step forward in power. I’m not sure I understand the motivation behind it either. Who is pushing for this sort of thing?

Now a word or two about App Inventor for Android. I did a throw down event where we demonstrated development of apps for iPhone, Windows Phone (my part) and Android. I have no doubt that the App Inventor demo “won” for many definitions of won. I like to think I was second – Objective-C is weird looking to me. But with App Inventor one has a domain specific (phone in this case) version of a drag and drop block programming language (it builds on work at MIT that went into Scratch) that makes it easy to do very powerful things very easily. The demo made ME want to start developing for Android! Why can’t we have more of that sort of thing?

Why can’t we have domain specific blocks for more types of apps and applications? Why can’t we have more work in developing block languages that make it easy to avoid syntax and create more WYSIWYG user interfaces? Oh sure the professional programmers will sneer at it and stick with their powerful tools that make them feel like the elite – or is that l33t? But why not open development to the rest of the world?

Tuesday, September 18, 2012

Decorate For Inspiration

Last week Mike Zamansky (blog at C'est la Z Twitter @Zamansky), who is the head computer science teacher at Stuyvesant High School in New York City, tweeted about asking his alumni to send in SWAG to decorate his classroom He asked for logo goodies from companies the alums work at, started, or have a major stake in. And they delivered. He’s used these goodies to decorate his classroom What a great idea.

I know a lot of schools like to do things like display banners and the like from colleges and universities that their graduates attend. Guidance departments are prime locations for this sort of display. I wonder how many students actually notice such things though. And university is still fairly short term. What I like about this idea is that the display is in a classroom that is directly related to the careers that are highlighted.  There is a more closer connection between the students in the room and the alumni who are sending the stuff back for the display.

I think this idea has applicability for a lot of classrooms. Showing students a tangible sign of success in the field they are studying in the classroom can be very inspiring. What do you think? How do you decorate your classroom or lab to inspire students?