![]() |
English: Flowchart example of calculating factorial N ( N! ). (Photo credit: Wikipedia) |
Aug 4, 2014 Deadline
September 2014 Issue
Think, Code, Solve: Programming as Career Skill
“Until I had to code it, I didn’t understand how many perspectives there are.”
This spring, a group of my statistics students attempted to model the return on investment for various degrees at several colleges. To develop their model, they had to ask themselves what is “value” and how would they measure “return” for those students not seeking financial wealth. Developing their computational model, they learned more about what college provides society.
Creating variables and functions, collecting data and creating output, the task of creating a computer program opened up new ways of considering the question these students sought to answer. Was a degree from one college better than the same degree from another school? Was one degree better than another?
If you want to earn a lot of money, study petroleum engineering or computational finance. That’s a simple statistical analysis searching for the highest median salary. But, not every student is rushing to earn a degree in one of the high-paying science fields. Clearly salary is only one measure of return on investment. What the students came to recognize was that users of their software might want to adjust the output based on personalized criteria. The resulting model the students developed was more like a dating service than a single answer.
That was when the group leader observed that he hadn’t understood the problem clearly until the team tried to develop an application to match students to their optimal school and degree. It turned out, some people get the best return by pursuing vocational programs based on their interests, location, family situation and other variables.
Computer programming teaches students to break problems into smaller blocks, converting every few steps of a problem into a line of code. When we teach programming, we teach one way to approach quantitative problems. The problem solving skills learned by young programmers offers them a valuable approach to analyzing the world.
I would never suggest that programming skills are the only way or the best way to address all problems, but I do argue that learning to code develops a logical thought process.
When I mentioned the need to improve math and science education in our public schools, a colleague suggested doing so would necessarily cut the humanities. This dichotomy troubles me.
Computer programming need not be a cold, heartless pursuit, apart from artistic expression. If we teach applied technology courses as nothing more than memorized approaches to math problems, then that is a human failing, not a problem with the machines.
Art is mathematics, as we witness when we study color or sound as waves perceived by our senses. When we dance, it is biology and physics at work to express emotion. The movements of bodies can be analyzed and turned into simulation software. The animators at Pixar and Dreamworks rely on careful studies of the physical world to program amazing works of art.
It does not matter if we teach “real” programming in Java, C, C#, Python, Ruby or some other language. I’ve taught students introductory programming skills in JavaScript, Visual Basic and AppleScript. Although languages approach problems differently, many of the skills transfer from one language to another. Whatever language students learn, it might be out of favor in a few years. As a Web developer, I’ve had to shift from Perl to PHP to Ruby. Apple is shifting from Objective-C to Swift. Languages go out of style, but the underlying coding skills do not.
In the 1970s and 80s, the LOGO programming language enabled students in classrooms to create complex geometric art, as if they had Spirographs behind the screens. If you learn how to construct programs in LOGO, the same skills transfer to more complex programming languages.
Programming LOGO, available as StarLogo TNG (http://education.mit.edu/projects) and Scratch (http://scratch.mit.edu), still offers a fun mix of computing skills and artistic creativity.
For more advanced students, the Alice Project (http://www.alice.org) offers three-dimensional game programming. You can’t program a realistic game without appreciating concepts from physics, such as what happens when a ball hits a wall at an angle. Creating a virtual world requires creativity and problem solving skills. The object-oriented concepts behind Alice transfer to most current programming languages. Game programming cannot avoid being educational in unexpected ways.
Game play can also introduce programming and analytical concepts. One of my favorite games in the 1990s was SimCity. As a professor, I find much of what my students explore reminds me of this classic game. My economics and statistics students use math and computer programming skills to study social problems: agriculture planning, water usage, transportation efficiency and epidemic patterns. Taking complex social concerns and analyzing the related data via computer programming represents what I consider the noblest application of technology.
Optimizing resource allocation involves a specialized form of math and programming known as integer theory. If you consider a hospital with beds, the admissions desk can only assign one patient to one bed; there are no fractions of a person or fractions of a bed. Approaching health care as delivering the best care to the greatest number of people is a statistical problem best solved with programming skills. The same is true for any allocation of limited resources.
Just as requiring students to write essays won’t turn every student into a professional writer, requiring that students code won’t create a legion of software developers. I want my students to write essays and write code that communicates their ideas to readers and users, as best they can.
My students are pragmatic programmers. They use the computer the way I used a calculator in school. The programs they write solve problems that couldn’t be solved on paper in hours or even days. Software students surely write more efficient code, but that’s not the point of asking my students to develop programs.
A computer cannot tell a person what to ask or why, and no program can tell us if we are using data for good purposes. Those questions are beyond technology. But, once we do know what we want to ask, computer programing becomes an invaluable skill. Those with that skill have an advantage in the job market.
Comments
Post a Comment