Pro Yearly is on sale from $80 to $50! »

Ruby之道——让Ruby更简单

Ea44bd120ed7cf301d561bcc3e7a6c96?s=47 Alex
November 30, 2015

 Ruby之道——让Ruby更简单

Elixir缘道会线下活动第二期主题

Ea44bd120ed7cf301d561bcc3e7a6c96?s=128

Alex

November 30, 2015
Tweet

Transcript

  1. Ruby ԏ᭲ ——ᦏRubyๅᓌܔ ୟ࿥ӳ

  2. ਍ԟԏ᭲ / ՗ߺ᯾๶ҁwhy҂ /ฎՋԍҁwhat/how҂ / کߺ᯾݄ҁWill҂ ߽਍ҁכਞ҂ӣᳯ

  3. ਭᥤRuby / ՗ߺ᯾๶ҁwhy҂ • Matzๅىဳአߺᐿᖫᑕ᧍᥺ๅளԔ • ໑ഝർਫ਼ਧ஌ෙ᥺Ꮭկ౮๜տ᩼๶᩼֗ • ᖫᑕ᧍᥺ଫᧆᥴ٬ጱḒᥝᳯ᷌ฎ୏ݎපሲ •

    ᧍᥺֛ሿጱฎՈᔄ௏ᘍጱ๜ᨶ҅ଫᧆฎՈԆਵᦇᓒ๢҅ ᘒᶋݍᬦ๶
  4. ਭᥤRuby / ՗ߺ᯾๶ҁwhy҂ • ᭌೠԧᶎݻ੒᨝ • ᓌ၄௔/ ಘ઀௔/ ᑞਧ௔

  5. ਭᥤRuby / ฎՋԍҁwhat/ how҂ • ੒᨝޾ၾ௳ • Duck Typing •

    Mix-inਫሿग़ᖀಥ • ՗lispᮎ୚فԧblock
  6. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ੒᨝޾ၾ௳

  7. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ੒᨝޾ၾ௳ object.message ളතᘏ ၾ௳ Ruby๋໐ஞጱ੒᨝ཛྷࣳ

  8. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ੒᨝޾ၾ௳ object.message ളතᘏ ၾ௳ ᬯ੪ฎRuby๋໐ஞጱ੒᨝ཛྷࣳҘ

  9. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ੒᨝޾ၾ௳ Ӟڔጲ੒᨝҅੒᨝ጲํဩ

  10. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ੒᨝޾ၾ௳/ Ӟڔጲ੒᨝҅੒᨝ጲํဩ object class Class

  11. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ੒᨝޾ၾ௳/ Ӟڔጲ੒᨝҅੒᨝ጲํဩ send msg respond result

    Ԕᥡఘ٭ send msg Ҙ ఓᥡఘ٭ҁय़ग़හ҂
  12. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ੒᨝޾ၾ௳/ Ӟڔጲ੒᨝҅੒᨝ጲํဩ class1 superclass2 Module Module

    Module singlton_class singlton_class
  13. ਭᥤRuby / ฎՋԍҁwhat/ how҂ ොဩਧԎ/ /ොဩই֜ਧԎ /ၾ௳ݎᭆ޾ߥଫጱොୗ (හഝ॒ቘ) /ොဩࣁߺਧԎ •

    def • define_method • method_missing • const_missing • send • ᳮ۱ҁeval/bind̵lambda/proc҂ • block • ݍ੘ • class_eval • module_eval • instance_eval • class << self • self • include • extend • open class(monkey patch)
  14. ਭᥤRuby / ฎՋԍҁwhat/ how҂ DSLᐏֺ/ Jbuilder json.author do json.name "David"

    json.age 32 end
  15. ਭᥤRuby / کߺ݄ҁwill҂ Ruby3.0/ ௔ᚆ೮ᖅ൉܋x3 ग़໐ҁ݄ᴻGIL̵multi vm҂ pipeline

  16. ਭᥤRuby / ᦎᦞғ᪙elixirጱྲ᫾ Rubyࣘ/ 10.times do |n| puts n end

  17. ਭᥤRuby / ᦎᦞғ᪙elixirጱྲ᫾ Elixirਡ/