why care about coding?

72
CODING FOR LIBRARIANS PART 1: WHY CARE ABOUT CODING? Bohyun Kim Associate Director, Health Sciences & Human Services Library University Of Maryland, Baltimore Reaching Across Illinois Library System - Webinar Tue, May 31, 2016 10:00 Am - 11:00 Am Cdt

Upload: bohyun-kim

Post on 22-Jan-2018

324 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Why Care About Coding?

CODING FOR LIBRARIANS

PART 1: WHY CARE ABOUT CODING?

Bohyun Kim Associate Director, Health Sciences & Human Services Library

University Of Maryland, Baltimore

Reaching Across Illinois Library System - WebinarTue, May 31, 2016 10:00 Am - 11:00 Am Cdt

Page 2: Why Care About Coding?

WE WILL COVER TODAY:

A. Why care about coding?

B. Why is coding relevant to libraries?

C. What does ‘coding’, ‘scripting’, ‘programming’ exactly mean?

D. What would I use the coding skill for?

E. Tips & Resources

Page 3: Why Care About Coding?

SOME QUESTIONS FOR YOU

• Q1. At what type of library & in what area of the library service do you work?

• Q2. Why are you interested in coding?

• Q3. Do you have any experience with coding, and if so what is it?

• Q4. Have you tried teaching yourself how to code before, and if so what where some of the difficulties?

Page 4: Why Care About Coding?

A. WHY CARE ABOUT CODING?

• An increasing emphasis on coding in the K12 education

• People in many different professions - both academics and professionals -are using the coding skill for their work.

• Code literacy? – Knowing how everyday software does what it does.

• Education – One of the library’s important mission

• More and more people are interested in learning how to code.

• Wider adoption of programming in academia across many different disciplines

Page 5: Why Care About Coding?

http://www.parentherald.com/articles/45853/20160526/why-coding-taught-second-language-primary-school-children-according-apple-ceo-tim-cook.htm

Page 6: Why Care About Coding?

https://code.org/

Page 7: Why Care About Coding?

https://www.edsurge.com/news/2015-03-26-choosing-a-summer-coding-camp

Page 8: Why Care About Coding?

http://www.codecademy.com/

Page 9: Why Care About Coding?

http://www.bbc.com/news/technology-16440126

Page 10: Why Care About Coding?

http://techcrunch.com/2014/12/08/barack-obama-becomes-the-first-president-to-write-code/

Page 11: Why Care About Coding?

http://codeactually.com/

Page 12: Why Care About Coding?

https://www.quora.com/Should-I-learn-how-to-code-if-I-plan-on-being-a-full-time-real-estate-investor?share=1

Page 13: Why Care About Coding?

https://cyber.law.harvard.edu/node/95731

Page 14: Why Care About Coding?

http://mith.umd.edu/

Page 15: Why Care About Coding?

http://software-carpentry.org/

Page 16: Why Care About Coding?

http://medhacks.org/

Page 17: Why Care About Coding?

https://library.nd.edu/hackathon/

Page 18: Why Care About Coding?

B. WHY IS CODING RELEVANT TO LIBRARIES?

• A better understanding of information systems & applications

• Improve communication and collaboration with IT.

• Participate in development projects as a partner rather than a client simply asking for a product

• Being Able to do custom design / development for your library

Page 19: Why Care About Coding?

Knowing how the access to e-resources Is controlled

http://booksandjournals.brillonline.com/content/journals/10.1163/15685284-12341297

Page 20: Why Care About Coding?

http://www.hshsl.umaryland.edu/resources/databases/index.cfm

Page 21: Why Care About Coding?

http://survey.hshsl.umaryland.edu/?url=http://search.ebscohost.com/login.aspx?direct=true&bquery=(introduction+AND+to+AND+biostatistics+AND+sokal)&cli0=LB&clv0=LB+Hea*&type=0&site=eds-live

Page 22: Why Care About Coding?

http://libguides.luc.edu/

Page 23: Why Care About Coding?

https://www.docdel.umaryland.edu http://ares.hshsl.umaryland.edu/

Page 24: Why Care About Coding?

http://search.library.utoronto.ca

http://search.library.utoronto.ca

Page 25: Why Care About Coding?

http://search.library.utoronto.ca

Page 26: Why Care About Coding?
Page 27: Why Care About Coding?
Page 28: Why Care About Coding?
Page 29: Why Care About Coding?
Page 30: Why Care About Coding?

https://www2.hshsl.umaryland.edu/3d/

Page 31: Why Care About Coding?
Page 32: Why Care About Coding?
Page 33: Why Care About Coding?

http://d.lib.ncsu.edu/myhuntlibrary/about

Page 34: Why Care About Coding?
Page 35: Why Care About Coding?
Page 36: Why Care About Coding?

INFO DESK SERVICES STATISTICS THROUGHOUT THE WEEK

Page 37: Why Care About Coding?

WHICH SCHOOL BORROWS MOST ARTICLES THROUGH OUR ILL SERVICE?

Page 38: Why Care About Coding?

E-BOOKS USERS WANT

BUT WE DON’T

HAVE

Page 39: Why Care About Coding?

DATABASES THAT NEED MORE USER

SEATS

Page 40: Why Care About Coding?

C. WHAT DOES ‘CODING’, ‘SCRIPTING’, ‘PROGRAMMING’ EXACTLY MEAN?

• XML

• BOOTSTRAP

• PHP

• API

• R

• HTML5

• JAVASCRIPT

• PYTHON

• Node

• MashUp

• RoR

• CSS

• .NET

• Regex

• XPATH

• C++

• Drupal

• VB

• Django

• XSLT

• RDF

• Ruby

• SPARQL

• CakePHP

• MySQL

• Apache

Page 41: Why Care About Coding?

MARKUP LANGUAGE

http://www.w3schools.com/css/tryit.asp?filename=trycss_list-style-type_ex

Page 42: Why Care About Coding?
Page 43: Why Care About Coding?

WHAT IS PROGRAMMING?

• Markup language vs. Programming language

• Is it knowing how to use a CMS (Wordpress, Drupal) or a certain computer software like Dreamweaver?

• Is it knowing how to edit HTML, CSS, XML? (http://www.cs.tut.fi/~jkorpela/prog.html )

• Programming is knowing and writing the logic for a computer to execute in a programming language that a computer understands.

Page 44: Why Care About Coding?

• JavaScript

• PHP

• PHP

• Python

• var a = ["do", "re", "mi", "fa"];var len = a.length;for (var i = 0; i < len; i++) {

console.log(a[i]);}

• $a = array("do", "re", "mi", "fa");for ($i=0; $i<count($a); $i++){

echo $a[$i]."<br/>";}

• $a = array("do", "re", "mi", "fa");foreach ($a as $i=>$note){

echo $note."<br/>";}

• a = ['do', 're', 'mi', 'fa']for i in a:

print i

Page 45: Why Care About Coding?
Page 46: Why Care About Coding?
Page 47: Why Care About Coding?

PROGRAMMING ENABLES THE DYNAMIC

MANIPULATION/TRANSFORMATION OF THE INPUT.

Page 48: Why Care About Coding?

CODE, SCRIPT, PROGRAM

• Usually the term, ‘coding,’ refers to the knowledge of a programming language, not a markup language. (Web designer vs programmer)

• http://blogs.jbllanda.com/markup-language-versus-programming-language/

• Code and scripts are also generally much smaller than a full-blow program.

• Here, I will use both terms – coding & programming – interchangeably.

• See the difference between scripting vs. programming:

• https://en.wikipedia.org/wiki/Scripting_language

• http://stackoverflow.com/questions/17253545/scripting-language-vs-programming-language

Page 49: Why Care About Coding?

D. WHAT WOULD I USE THE CODING SKILL FOR?

Page 50: Why Care About Coding?

Need to add an empty column in the front for the ID to import the file into a db table.

Page 51: Why Care About Coding?

Excel messes things up.

Page 52: Why Care About Coding?

A Python script takes care of this!

Page 53: Why Care About Coding?

http://stroke.ahajournals.org/content/47/6/1421.full

http://stroke.ahajournals.org/content/47/6/1421.full

Help those users who forget to log in through the library proxy and can’t get to the full-text!

Page 55: Why Care About Coding?

The library proxy automatically added!

http://stroke.ahajournals.org.proxy-hs.researchport.umd.edu/content/47/6/1421.full

Page 56: Why Care About Coding?

MORE INFO

• Playing with JavaScript and JQuery – the Ebook link HTML string generator and the EZproxy bookmarklet generator http://www.bohyunkim.net/blog/archives/255

Page 57: Why Care About Coding?

WHAT WOULD I USE THE CODING SKILL FOR?

Page 58: Why Care About Coding?
Page 59: Why Care About Coding?

“Building a Faculty Publications Database” presented at LITA Forum 2014http://www.slideshare.net/bohyunkim/building-a-faculty-publications-database

Page 60: Why Care About Coding?
Page 61: Why Care About Coding?
Page 62: Why Care About Coding?
Page 63: Why Care About Coding?

E. TIPS & RESOURCES

Photo from Flickr: https://www.flickr.com/photos/51035800575@N01/94995636/

Page 64: Why Care About Coding?

TIPS

• Don’t be discouraged or frustrated. You are teaching yourself a language.

• Be persistent and realistic.

• Set small goals that solve real-life problems.

• Form or join a study group & find like-minded folks!

• Comment your code and document since you will forget what you have learned and made.

Page 65: Why Care About Coding?

COMMON OBSTACLES

• Coding can be more tedious than exciting.

• Not enough attention to the syntax

• More time will be spent on debugging than code writing!

• A slow learning curve

• Not enough time for intensive learning

• Not always a clear connection with your library work

• Life events

Page 66: Why Care About Coding?

http://www.vikingcodeschool.com/posts/why-learning-to-code-is-so-damn-hard

Page 67: Why Care About Coding?

http://www.vikingcodeschool.com/posts/why-learning-to-code-is-so-damn-hard

Page 68: Why Care About Coding?
Page 69: Why Care About Coding?

RESOURCES

• Many resources online – discussions, tutorials, books…

• W3Schools Tutorials

• Tuts+

• MOOC

• Codecademy / CodeYear

• Lynda.com; Treehouse; Code School

• Pick One and ACTUALLY DOING IT

• Code4Lib listserv/IRC/journal/conference (http://code4lib.org/)

• LibTechWomen (http://libtechwomen.org/)

Page 70: Why Care About Coding?
Page 71: Why Care About Coding?

For the Afternoon Workshop, follow the instructions

in the Set-up Section below:

https://github.com/bohyunkim/examples/tree/master/rails

Page 72: Why Care About Coding?

QUESTIONS?

IT’S JUST SOME CODE!

¯\_(ツ)_/¯