As soon as I became editor of the Accidental Technologist, I thought of a column on Codecademy's program. Code Year is interesting not only for its unique online educational model but also because of the way librarians have organized a community around it. I met Andromeda Yelton at ALAs 2012 Midwinter conference, where she helped run an informal meeting of librarians participating in Code Year and organize an official ALA interest group around the event. She holds a BA in Mathematics from Harvey Mudd, an MA in Classics from Tufts, an MLS from Simmons, and works for Gluejar.inc, an innovative company set to unglue e-books by purchasing their rights and re-releasing them under Creative Commons licensing. As an active member of LITA and a co-chair of the Code Year Interest Group, she seemed like the perfect person to write a column explaining the program and its benefits.--Editor What if you could write a program to make bulk edits to thousands of MARC records with a single click? What if you could change the way your whole catalog looks--even if it's proprietary software that doesn't let you change the HTML? (1) What if you could write your own mobile web site to display your historical photographs to people throughout the community, in the very locations those photos were taken? (2) What if you could explain to your systems folks exactly what you needed because you could talk their language--and what if you didn't even have to ask, because you could do the work yourself? Questions like these--alternately practical, innovative, and empowering--are motivating librarians to learn to write software. There are many resources out there for people who want to learn to code: web sites, books, and classes (both free and paid). However, one that's been getting a lot of attention from librarians lately is Code Year, from codecademy.com. If you sign up at http://codeyear.com (it's free), Codecademy sends you a new programming lesson each week. The lessons are relatively short, build sequentially, and tie into projects for extra practice. Code Year is part of the gamification trend, so it awards badges for the successful completion of lessons and other milestones; it also makes it easy to share your progress on social networks. This free, bite-sized, rewarding approach--plus a splashy publicity campaign when it launched in January--got many dozens of librarians to sign up. What kinds of things can you learn through Code Year? The first 12 weeks were an introduction to JavaScript, a programming language used to create dynamic web content. The lessons covered the syntax of the language and traditional programming concepts like loops, functions, and variables. Extra projects, such as building a blackjack game, let people apply their knowledge. Code Year has now moved into an introduction to HTML and CSS. While it hasn't combined these languages yet, I expect it will down the line, enabling students to produce complete, interactive web pages. Because Code Year is built on the Codecademy platform, though, it's possible to learn many more things. This platform supports interactive lessons in JavaScript, Python, and Ruby. In addition, it allows creators to build their own lessons. At least one librarian has been taking advantage of this; one of the community-submitted lessons teaches how to build a JavaScript program to manipulate MARC records (http://www .codecademy.com/courses/marc-viewer). In my experience Codecademy is quick to respond to feedback, so if you'd like to beta test lessons to make them more beginner-friendly, or create your own lessons to share what you know, they want to hear from you. SO HOW DOES THIS CODE THING WORK, ANYWAY? I've been talking in generalities about code so far; I'd like to give a specific example. I'm going to walk you through a bit of jQuery I wrote for my employer's web site, http://unglue.it. jQuery is a derivative of JavaScript that simplifies some of the syntax, especially for the functions web developers use most. …
Read full abstract