Ruby – The Scripting Language

88 %
13 %
Information about Ruby – The Scripting Language

Published on July 19, 2009

Author: artonx



It's very important the scripting language side of Ruby.

Ruby – The Scripting Language Akio Tajima aka arton

Agenda decade Scripting Language Ruby To Err is Human Windows is Not Unix Unix is Not United For Your Pleasure

Ruby;name=ruby%A4%C3%A4%C6%A1%FB%A1%FB%A1%FB%A4%F2%C6%B0%A4%AB%A4%B9%A4%CE%A4%CB%C9%AC%CD%D7%A4%CA%A5%E4%A5%C4%A4%C0%A4%C3%A4%B1%A1%A9 2005 Railsを動かすのに必要なヤツ 2004 tDiary|portupgradeを動かすのに必要なヤツ

私とRuby 1999末~2000年 Windows ネットワーク 正規表現 COMインターフェイス スクリプト言語

宣伝 2000 2001 2009 2006 2008

Scripting Language The origin of the term was similar to its meaning in "a movie script tells actors what to do": a scripting language controlled the operation of a normally-interactive program, giving it a sequence of work to do all in one batch. For instance, one could put a series of editing commands in a file, and tell an editor to run that "script" as if those commands had been typed interactively.

Rubyとは Rubyは、手軽なオブジェクト指向プログラミングを実現するための種々の機能を持つオブジェクト指向スクリプト言語です。本格的なオブジェクト指向言語 であるSmalltalk、EiffelやC++などでは大げさに思われるような領域でのオブジェクト指向プログラミングを支援することを目的としていま す。もちろん通常の手続き型のプログラミングも可能です。


繰り返しの達人 反復作業は達人を生む 瞬時にファイル名のパターンを認識し マシンのようにマウスを動かし マシンのようにキーボードを叩く マンマシンシステム

To Err is Human

To Forgive is Machine 何を繰り返しているか 作業の分解 ⇒ スクリプト化

例 tDiayのツッコミspam

I ROBOT 2009/200902.tdcをエディタで開く TDIARY2.00.00 Date: 20090204 Name: メル Mail: Last-Modified: 1139188007 Visible: true こないだ私のお兄さんとしたんですけど、不幸なことが . Date: 20090204 Name: paealos Mail: Last-Modified: 1140972441 Visible: true Viagra are often the first treatment tried for erectile . Date: 20090204 Name: アリバイ会社 Mail: Last-Modified: 1140972441 Visible: true <a href=">アリバイ会社</a> . sudo –u www-data vi … 削除 #!/usr/bin/env ruby # # Copyright (C) 2004 Satoru Takabayashi <> # You can redistribute it and/or modify it under GPL2. # puts "Usage: tdiary-comment-clean PATTERN FILE..." if ARGV.length == 0 pattern = file_names = ARGV deleted_comments = [] file_names.each {|file_name| i = first_line = i.gets (continue…)

file_names.each {|file_name| i = first_line = i.gets comments = [] comment = "" while line = i.gets if line == ". " comments.push(comment) comment = "" else comment << line end end i.close (continue…)

tmp_name = "tmp.#{}", "w") {|o| o.printfirst_line comments.each {|comment| if pattern.match(comment) deleted_comments.push(comment) else o.print comment o.puts "." end } } File.rename(file_name, file_name + ".bak") File.rename(tmp_name, file_name) } deleted_comments.each {|comment| print comment puts "." }

Windows is Not Unix

というわけで、1.8.7-p173にはバグが見つかってしまいました。ごめんなさい。修正したものをリリースします。 > > > > > > Checksums: > > MD5(ruby-1.8.7-p174.tar.bz2)= 88c45aaf627b4404e5e4273cb03ba2ee > SHA256(ruby-1.8.7-p174.tar.bz2)= 203978b6db1cc77a79ff03d141d162f6f17d86c3574f76de9eae9d0c8cb920bc > SIZE(ruby-1.8.7-p174.tar.bz2)= 4144807 [ruby-list:46090] Re: [ANN] Ruby 1.8.7-p174 released

[ruby-list:46090] Re: [ANN] Ruby 1.8.7-p174 released

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Ruby Programming Language

Ruby is... A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and ...
Read more

Ruby (programming language) - Wikipedia

Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro ...
Read more

Ruby cheat sheet - Ruby Tutorial

Ruby is a scripting language designed by Yukihiro Matsumoto, also known as Matz. It runs on a variety of platforms, such as Windows, Mac OS, and the ...
Read more

Die Programmiersprache Ruby - Ruby Programming Language

Ruby-Entwicklung: Hilf mit, die neuesten Ruby-Versionen zu verbessern. Fehler melden: Melde einen Fehler oder hilf mit, offene Fehler zu beseitigen.
Read more

Programming Ruby: The Pragmatic Programmer's Guide

Programming Ruby The Pragmatic Programmer's Guide: Previous : ... What exactly isa scripting language? Frankly we don't know if it's a distinction worth ...
Read more

Is Ruby a scripting language or an interpreted language?

Yes. Detailed response: A scripting language is typically used to control applications that are often not written in this language. For example, shell ...
Read more

Ruby Tutorial - Try Ruby

Learn the basic building blocks of the Ruby programming language in Code School’s Try Ruby course.
Read more

GitHub - ruby/ruby: The Ruby Programming Language

Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system ...
Read more

Simple Ruby Examples - Techotopia

Purchase and download the full PDF and ePub editions of this Ruby eBook for only $8.99 Not only is Ruby a flexible scripting language in terms of its ...
Read more

Skriptsprache – Wikipedia

Digital Command Language (kurz DCL) - Kommandosprache für VMS-Plattformen; ... Ruby – wird entweder über CGI oder mit mod_ruby ausgeführt, ...
Read more