技術書査読・校正の現場から

0350fb935be160186cd72472c9e5543b?s=47 HayaoSuzuki
November 24, 2017

 技術書査読・校正の現場から

Lightning talk at BPStudy #123

0350fb935be160186cd72472c9e5543b?s=128

HayaoSuzuki

November 24, 2017
Tweet

Transcript

  1. ٕज़ॻࠪಡɾߍਖ਼ͷݱ৔͔Β Hayao Suzuki BPStudy #123 Lightning Talk November 24, 2017

  2. Who Am I? About Me Name Hayao Suzuki (@CardinalXaro) Blog

    http://xaro.hatenablog.jp/ Major Mathematics (Combinatorics, Number Theory) Work Python Programmer at iRidge, Inc. Reviewed Books Effective Python (O’Reilly Japan) ΞϧΰϦζϜΫΠοΫϦϑΝϨϯε ୈ 2 ൛ (O’Reilly Japan) ॳΊͯͷ PHP (O’Reilly Japan) Effective Debugging (O’Reilly Japan) ͢Β͢ΒΘ͔Δ Python ʢᠳӭࣾʣ Python ͱ JavaScript Ͱ͸͡ΊΔσʔλϏδϡΞϥΠθʔγϣϯ (O’Reilly Japan) 2 / 15
  3. Today’s Theme ٕज़ॻࠪಡɾߍਖ਼ͷݱ৔͔Β 3 / 15

  4. Question ݻ༗໊ࢺ͸ਖ਼֬ʹ Reqeusts ͸΢ΣϒαΠτʹΞΫηεͯ͠ HTML ͳͲͷσʔλΛऔಘ͢ ΔͨΊͷϥΠϒϥϦͰ͢ɻ ໰ɿޡΓΛࢦఠͤΑʢ10 ఺ʣ 4

    / 15
  5. Answer ݻ༗໊ࢺ͸ਖ਼֬ʹ Requests ͸΢ΣϒαΠτʹΞΫηεͯ͠ HTML ͳͲͷσʔλΛऔಘ͢ ΔͨΊͷϥΠϒϥϦͰ͢ɻ ಉ͡υΩϡϝϯτʹ Requests ͷ௲Γؒҧ͍͕

    3 Օॴ͋Γ·ͨ͠ɻ 5 / 15
  6. Question ݻ༗໊ࢺ͸ਖ਼֬ʹ Anacondaʢ޿͘࢖ΘΕ͍ͯΔ෼ੳϥΠϒϥϦͷ΄ͱΜͲΛศརͳύο έʔδʹ·ͱΊͨ Phtyon ϓϥοτϑΥʔϜʣͷ͓͔͛ͰɺҎલ͸໘౗ ͩͬͨ OS ͝ͱʹҟͳΔΠϯετʔϧํ๏΍ݻ༗ͷบΛઆ໌͢Δ͜ͱ͕ͱ ͯ΋༰қʹͳΓ·ͨ͠ɻ

    ໰ɿޡΓΛࢦఠͤΑʢ10 ఺ʣ 6 / 15
  7. Answer ݻ༗໊ࢺ͸ਖ਼֬ʹ Anacondaʢ޿͘࢖ΘΕ͍ͯΔ෼ੳϥΠϒϥϦͷ΄ͱΜͲΛศརͳύο έʔδʹ·ͱΊͨ Python ϓϥοτϑΥʔϜʣͷ͓͔͛ͰɺҎલ͸໘౗ ͩͬͨ OS ͝ͱʹҟͳΔΠϯετʔϧํ๏΍ݻ༗ͷบΛઆ໌͢Δ͜ͱ͕ͱ ͯ΋༰қʹͳΓ·ͨ͠ɻ

    ௲Γ͸ਖ਼֬ʹɻ 7 / 15
  8. Question จ๏͸ਖ਼֬ʹ 2 ͭͷݴޠͷओͳྨࣅ఺ͱ૬ҧ఺Λࣔͨ͠ޙʹɺPython ͱ JavaScript ͷֶश؀ڥΛ༻ҙ͍͠·͢ɻ ໰ɿޡΓΛࢦఠͤΑʢ10 ఺ʣ 8

    / 15
  9. Answer จ๏͸ਖ਼֬ʹ 2 ͭͷݴޠͷओͳྨࣅ఺ͱ૬ҧ఺Λࣔͨ͠ޙʹɺPython ͱ JavaScript ͷֶश؀ڥΛ༻ҙ͠·͢ ɻ ڧ͍ͯ͸͍͚ͳ͍ɻ 9

    / 15
  10. Question Python 3 ܥରԠʁ $ python -m SimpleHTTPServer ໰ɿPython 3

    ʹରԠͤ͞Αʢ10 ఺ʣ 10 / 15
  11. Answer Python 3 ܥରԠʁ $ python -m http.server Python 3

    Ͱ͸ http.server ΁໊শ͕มߋ͞Εͨɻ 11 / 15
  12. Question Python ͷݴޠ࢓༷ Python ʹ͸ 3 ͭͷ਺஋ܕ͕͋Γ·͢ɻֶੜͷ੒੷ΛΩϟετͨ͠ 32bit ͷ intɺJavaScript

    ͷ number ʹ૬౰͢Δ floatʢIEEE 754ʣ ɺ೚ҙ ਫ਼౓੔਺ԋࢉ༻ͷ long Ͱ͢ɻ ໰ɿPython 3 ରԠΛᨳ͍ͬͯΔͱ͍͏લఏͰɺ͜ͷจΛमਖ਼ͤΑɻ ʢ10 ఺ʣ 12 / 15
  13. Answer Python ͷݴޠ࢓༷ Python ʹ͸ 3 ͭͷجຊతͳ਺஋ܕ͕͋Γ·͢ɻֶੜͷ੒੷ΛΩϟετ͠ ͨ೚ҙਫ਼౓੔਺ͷ intɺJavaScript ͷ

    number ʹ૬౰͢Δ float ʢIEEE 754ʣ ɺෳૉ਺ͷ complex Ͱ͢ɻ͞Βʹɺेਐුಈখ਺఺ࢉज़ͷͨ Ίͷ Decimal ܕɺ༗ཧ਺ͷ Fraction ܕ͕͋Γ·͢ɻ Python 3 Ͱ͸ Python 2 ͷ int ͱ long ͕౷߹͞Εͨɻجຊతͳ਺஋ ܕͷதʹෳૉ਺ܕ͕ଘࡏ͢Δ͜ͱΛ๨Εͯ͸͍͚ͳ͍ɻ 13 / 15
  14. Question ΋ͬͱ΋Β͍͠هड़Ͱ͋Δ͕ HTML ͸ɺ1980 ೥ʹ෺ཧֶऀͷ Tim Berners-Lee ͕࠷ॳʹఏҊ͠ ·ͨ͠ɻ൴͸౰࣌ɺεΠεʹ͋ΔཻࢠՃ଎ثࢪઃɺCERN Ͱಇ͍͍ͯ·

    ͨ͠ɻ ໰ɿ͜ͷจͷؒҧ͍ΛࢦఠͤΑʢ10 ఺ʣ 14 / 15
  15. Answer ΋ͬͱ΋Β͍͠هड़Ͱ͋Δ͕ HTML ͸ɺ1980 ೥ʹܭࢉػՊֶऀͷ Tim Berners-Lee ͕࠷ॳʹఏ Ҋ͠·ͨ͠ɻ൴͸౰࣌ɺεΠεʹ͋ΔཻࢠՃ଎ثࢪઃɺCERN Ͱಇ͍͍ͯ

    ·ͨ͠ɻ Tim Berners-Lee ͸ CERN ʹ͸ Consultant Software Engineer ͱͯ͠ಇ͍͍ͯΔɻҰํɺେֶͰ͸෺ཧֶΛֶΜͰ͍Δɻ 15 / 15