$30 off During Our Annual Pro Sale. View details »

わたしの知らなかった超絶技巧プログラミングの世界

 わたしの知らなかった超絶技巧プログラミングの世界

Quineを書いてみたという話
ソースコード: https://github.com/ta-chibana/hey_quine

ta-chibana

May 09, 2019
Tweet

More Decks by ta-chibana

Other Decks in Programming

Transcript

  1. Θͨ͠ͷ஌Βͳ͔ͬͨ ௒ઈٕ޼ϓϩάϥϛϯά ͷੈք 2019/05/09 Hello hey for Engineers vol.3 @tachibana314

  2. ௒ઈٕ޼ϓϩάϥϛϯάʁ

  3. ʮ࣮༻తͳϓϩάϥϛϯάݴޠΛ ɹ࢖ͬͯશ࣮͘༻తͰͳ͍΋ͷΛ࡞Δ༡ͼʯ ʮ͋ͳͨͷ஌Βͳ͍௒ઈٕ޼ϓϩάϥϛϯάͷੈքʯΑΓ

  4. RubyKaigi 2019 LT https://speakerdeck.com/oda/how-to-make-bad-source

  5. RubyKaigi 2019 LT https://speakerdeck.com/oda/how-to-make-bad-source

  6. RubyKaigi 2019 LT \ ŦůŢťř / https://speakerdeck.com/oda/how-to-make-bad-source

  7. RubyKaigi 2019 LT \ ŦůŢťř / \ źſťƄ/ https://speakerdeck.com/oda/how-to-make-bad-source

  8. ࡞ͬͯΈͨ

  9. None
  10. None
  11. https://github.com/ta-chibana/hey_quine/blob/master/hey.rb

  12. https://github.com/ta-chibana/hey_quine/blob/master/hey.rb

  13. https://github.com/ta-chibana/hey_quine/blob/master/hey.rb

  14. https://github.com/ta-chibana/hey_quine/blob/master/hey.rb

  15. https://github.com/ta-chibana/hey_quine/blob/master/hey.rb

  16. None
  17. ݩͷιʔεͱ׬શʹҰகʂ

  18. ղઆ

  19. AAʹରԠͨ͠ม਺ i (0 <= i <= 3)

  20. ม਺ i ʹ࠶୅ೖ͢Δࣜʢ࣍ʹग़ྗ͢ΔAAΛܾఆʣ

  21. AAͦΕͧΕͷܗΛ84ਐ਺Ͱදͨ͠σʔλͷArray

  22. σίʔυͯ͠ιʔεΛAAͷܗʹ੔͑ͯग़ྗ͢Δॲཧ

  23. ΰϛ

  24. େ੾ͳ͜ͱ͸͢΂ͯ͜͜ʹ

  25. end