pulibrary / ruby_for_metadataists

a quick introduction to ruby, and metadata processing with ruby-marc and nokogiri
Apache License 2.0
1 stars 3 forks source link

Basic Ruby Tutorial #1

Closed escowles closed 5 years ago

escowles commented 5 years ago

What is the minimal amount of Ruby introduction needed to get started?

escowles commented 5 years ago

https://www.ruby-lang.org/en/documentation/quickstart/ looks like a good place to start.

jrgriffiniii commented 5 years ago

I propose to please address the following concepts:

Variables

Control Flow Statements

Classes and Objects

Modules

Text Processing

I could see reducing the number of aspects addressed for Classes and Objects, but I fear that leaving anything else here might make it more difficult to explore the Nokogiri API.

escowles commented 5 years ago

@jrgriffiniii Most of that looks good to me (I agree that the basic datatypes and control flow stuff is essential). I think we could leave out constructors, inheritance, and be very brief about namespaces since we'll mostly be focused on scripts instead of OO development.

jrgriffiniii commented 5 years ago

How might we attempt to address the question of IDEs or code editors? https://ruby.github.io/TryRuby/ provides a minimal browser-based interpreter for demonstrating the basic usage of the language itself, but I suspect that some may wish to see us interact with vim, Atom, Visual Studio Code, or any other popular editor.

escowles commented 5 years ago

I'm not sure what is installed on the laptops we'll be using for the workshop. I think that's going to be the biggest factor in what to recommend for editing.

jrgriffiniii commented 5 years ago

An additional item which should be covered should be regular expressions.

jrgriffiniii commented 5 years ago

I can see about uploading the presentation materials in Markdown for this, and will adjust these once it can be determined precisely what might be involved in working with the laptop environments for the workshop.