Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

LTの敷居を下げる / Lower the threshold for LT

LTの敷居を下げる / Lower the threshold for LT

【オフライン開催】Omotesando.rb #93
https://omotesandorb.connpass.com/event/305893/

Takumi Shotoku

January 11, 2024
Tweet

More Decks by Takumi Shotoku

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ • ໊લ: ਖ਼ಙ ޼(aka: ਆ଎) • GitHub: @sinsoku (ը૾ӈ্)

    • Twitter: @sinsoku_listy (ը૾ӈԼ) • ޷͖ͳݴޠ: Rust ! , Ruby " • Railsྺ: 8೥͘Β͍ 2
  2. Google Slides • ແྉ • Windows, Mac Ͱར༻Մ • ៉ྷͳσβΠϯ͕࡞ΕΔ

    • จࣈɾը૾Λࣗ༝ʹ഑ஔͰ͖Δ ҎલʹΑ͘࢖͍ͬͯͨɻձࣾͷςʔϚΛ࢖͏ͱ͖͸ͬͪ͜ɻ 14
  3. Desckset for Mac • ༗ྉʢ$35/one-timeʣ • ϚʔΫμ΢ϯه๏Ͱ࡞੒Մೳ • GitHubͰ؅ཧͰ͖Δ •

    จࣈɾը૾ͷ഑ஔʹ੍ݶ͕͋Δ ࠷ۙ͸ͬͪ͜Λ࢖͍ͬͯΔɻ୹࣌ؒͰεϥΠυ͕࡞Εͯศརɻ 15
  4. ! map ͱ flat_map ͷҧ͍ map [[1,2], [3,4]].map { |i|

    i.map { |j| j*2 } } #=> [[2, 4], [6, 8]] flat_map [[1,2], [3,4]].flat_map { |i| i.map { |j| j*2 } } #=> [2, 4, 6, 8] 21
  5. ! map ͱ filter_map ͷҧ͍ map (1..10).map { |i| i

    * 2 if i.even? } #=> [nil, 4, nil, 8, nil, 12, nil, 16, nil, 20] filter_map (1..10).filter_map { |i| i * 2 if i.even? } #=> [4, 8, 12, 16, 20] 22