Share
Embed
Transcript
73 slides
-
पғͷॿ͚Λಘͳ͕Β ָ͘͠։ൃ͢ΔͨΊͷ ΞϨίϨ $ CBSUP 5IF(BSBHF IUUQXXXqJDLSDPNQIPUPT!/ IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ Activities
on a little ingenuity to enjoy working with co-workers’ help T a k a s h i H a s u o ࿇ ඌ ߴ ࢤ TokyoRubyKaigi10 2013.1.13 11:15-11:30 speakerdeck.com/hassaku -
自己紹介 / Who am I • Takashi Hasuo@Everyleaf Corporationʢສ༿ʣ •
Ruby Programmer • Developing Rails applications and in-house system management • Joined the company in July last year • Robot! → Me! → • In previous job, I worked as a research and development engineer at a manufacturer. (not a web developer) speakerdeck.com/hassaku -
昨年7月に入社してから今 まで、色々と分からない ことも多かった $ EJFSLFO &OUFSJOHTUBSUVQ IUUQXXXqJDLSDPNQIPUPTEJFSLFO IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ There
have been a lot of things I don’t understand since I joined the company in July last year. -
人の助けを得ないと何も 進まない状況だった $ EJFSLFO &OUFSJOHTUBSUVQ IUUQXXXqJDLSDPNQIPUPTEJFSLFO IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ I’ve not
got any work done without someone’s help. -
$ EJFSLFO &OUFSJOHTUBSUVQ IUUQXXXqJDLSDPNQIPUPTEJFSLFO IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ ただし、人に助けてもらうと いうことは、しばしば協力者 に負荷を強いてしまう But
helping me could put an extra burden on co-workers. -
$ EJFSLFO &OUFSJOHTUBSUVQ IUUQXXXqJDLSDPNQIPUPTEJFSLFO IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ そこで、楽しい開発が出来るよ う、負担を軽減すべく、色々と 工夫をしながらアレコレしてき た経験について共有したい
So, I’d like to share my experiences about activities on a little ingenuity to reduce such burden and enjoy development. -
$ EJFSLFO &OUFSJOHTUBSUVQ IUUQXXXqJDLSDPNQIPUPTEJFSLFO IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ Git handling Server operation
Pair programming ࡞ۀڥΛखܰʹγΣΞ ։ൃڥΛखܰʹೖख "QQFBM ࣗͷঢ়گΛݟ͑ΔԽ ϝϯόʔͷಘҙΛݟ͑ΔԽ アレコレと工夫した4つの例 Shared workspace Easily available development environment Visualized specialties of members Own status indicator Four examples of a little ingenuity -
࡞ۀͷݟֶ࣌ ϖΞϓϩάϥϛϯάʹ͓͍ͯ จࣈখͯ͘͞ݟ͑ͳ͍ ͜ͷΩʔόΠϯυ͍ͮΒ͍ Viewing the other’s work or doing
pair programming, Text size is too small too read. This key binding is very hard to use for me. -
ෆ׳Εͳૢ࡞Λཔ·Εͨͱ͖ ϨϙδτϦͷૢ࡞Λؒҧ͑ͯ͠·ͬͨʜ αʔϏεͷىಈखॱΛؒҧ͑ͯ͠·ͬͨʜ ͰɺͲ͏ͬͯ͜ͷঢ়گΛ͑Ε ࡞ۀࢦࣔ Requested unaccustomed tasks, Instruction I
made a mistake in operating repositories or servers, but I don’t know how to tell others of the conditions. -
ηογϣϯڞ༗πʔϧΛԠ༻͢Ε खܰʹϖΞ࡞ۀͰ͖Δ͔͠Εͳ͍ zolrath / wemux ෳਓͰಉ࣌ʹૢ࡞ՄೳͳUNVYηο γϣϯΛఏڙ͢Δπʔϧ It allows users
to host a wemux server and have clients join in the same tmux session. A tool for shared session makes low burden pair work possible!! -
ʮ ͷ*1ϢʔβύεϫʔυͰϩάΠϯͯ͠ɺ XFNVYͷηογϣϯΛBUUBDI͍ͯͩ͘͠͞ʯ “Please login and attach the wemux session
with this guest account”. -
$ wemux users Users connected 1. wemux-guest 2. hasuo[m] ήετϢʔβͰTTIϦϞʔτϩάΠϯ
ڞ༗ηογϣϯʹBUUBDI SSH remote login with the guest account and attaching to shared session. -
ʘ)BQQZʗ ʘ)BQQZʗ ͓ޓ͍ʹ͍׳ΕͨϚγϯΛ͍ ͭͭɺಉ͡ը໘Ͱڞಉ࡞ۀՄೳ Git handling Server operation Pair programming
etc... Co-workers can operate anything in same workspace from each machines. -
Ұ࣌తʹख͍Λ͓ئ͍͍ͨ͠ͱ͖ 1SPKFDU"NFNCFST 1SPKFDU#NFNCFST ਓखͷඞཁͳ͜ͷ࡞ۀ͚ͩɺҰ࣌తʹଞϓϩδΣ Ϋτͷϝϯόʔʹख͍Λ͓ئ͍͍͚ͨ͠ΕͲɺ ڥߏங͚ͩͰ࣌ؒΛඅͯ͠͠·͍ͦ͏ ֤छΠϯετʔϧɺίϛοτ࿙ΕɺઃఆϑΝΠϧͷมߋɺσʔλͷ४උɺFUD When temporal help
is needed, Although I need someone to help us from other projects, it takes too long to prepare the development environment. Installations, incomplete commits, config files, data preparation, etc -
खܰʹ7.Λίϐʔग़དྷΔπʔϧΛ ࡞ΕखؒΛݮΒͤΔ͔͠Εͳ͍ Sinatra application 7BHSBOU 7.TJO7JSUVBMCPY ৗʹ࠷৽ͷ։ൃڥΛखܰʹೖखͰ͖Δ The tool I
made makes development environment possible to copy easily!! Latest environments are available in anytime. Wiki without requests unnecessary from scratch -
ᶃೖख͍ͨ͠։ൃڥΛબ͢Δ ᶄ࠷৽ͷ։ൃڥΛΠϯϙʔτ͢Δ४උ͕͏·Ͱͭ ᶅޙ࠶ΞΫηε͢Δͱ४උ͕ग़དྷ͍ͯΔ ᶆεΫϦϓτΛୟ͖ɺڥߏஙΛ࣮ߦ͢Δ Choose a development environment. Wait until
preparing to import finish. Access the site again and it’s finished. Import the development environment. -
% bash < <(curl -s http://192.168.11.7:8080/scripts/rails4-install) - Import VM [vagrant]
Downloading with Vagrant::Downloaders::HTTP... [vagrant] Downloading box: http://192.168.11.7:8080/packages/rails4_.box [vagrant] Extracting box... [vagrant] Verifying box... [vagrant] Cleaning up downloaded box... - Download vagrant project files % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 400 100 400 0 0 16162 0 --:--:-- --:--:-- --:--:-- 17391 x rails4_/ x rails4_/.vagrant x rails4_/Vagrantfile - Start VM [rails4_] Importing base box 'rails4_'... [rails4_] Progress: 100% [rails4_] Forwarding ports... [rails4_] -- 22 => 2222 (adapter 1) [rails4_] Creating shared folders metadata... [rails4_] Clearing any previously set network interfaces... [rails4_] Booting VM... [rails4_] Waiting for VM to boot. This can take a few minutes. [rails4_] VM booted and ready for use! [rails4_] Mounting shared folders... [rails4_] -- v-root: /vagrant - Login VM Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64) Last login: Sun Dec 2 05:10:04 2012 from 10.0.2.2 vagrant@quantal64:~$ εΫϦϓτ࣮ߦ 7.ͷμϯϩʔυ 7.ͷىಈ ϩάΠϯ ଈ࠲ʹ࡞ۀ։࢝Մೳʂ Execute the script Download files Creating VM Login and start to work -
いつでも手軽に開発環境 を入手して、ちょっとし た作業でも分担できるよ うになった! Now it’s easy to prepare the
development environments and share works! -
खܰʹڥߏங͕ՄೳͱͳΔ͜ͱͰ 1SPKFDU"NFNCFST 1SPKFDU#NFNCFST ֤छΠϯετʔϧɺίϛοτ࿙ΕɺઃఆϑΝΠϧͷมߋɺσʔλͷ४උɺFUD Installations, incomplete commits, config files, data
preparation, etc The benefit of easily available development environment, -
1SPKFDU"NFNCFST 1SPKFDU#NFNCFST ʘ)BQQZʗ ʘ)BQQZʗ खܰʹڥߏங͕ՄೳͱͳΔ͜ͱͰ The benefit of easily available
development environment, -
σβΠϯमਖ਼Λखͬͯཉ͍͠ͷ͚ͩ ΕͲɺ$44ͱ͔ಘҙͳͷ୭͚ͩͬ ୭͔ʹॿ͚ΛٻΊ͍ͨͱ͖ Asking someone to help, I need help
with design. But who is good at CSS and HTML? -
ʑͷίϛϡχέʔγϣϯϩάΛղੳ͢Δ͜ͱͰɺ֤ϝϯ όʔͷ٬؍తͳಛੑΛΔ͜ͱ͕Ͱ͖Δ͔͠Εͳ͍ IUUQTMFBGZJO ࣾͰৗతʹར༻͍ͯ͠Δ ίϛχϡέʔγϣϯπʔϧ ղੳ ʢࣗવݴޠॲཧʣ "͞ΜͷϓϩϑΝΠϧྫ DTTܥ HJUܥ
ࣄܥ ಘҙ A log analysis of our communication tool shows specialties of members extracted from what they said automatically. Natural language processing Speciality Example of A’s profile Leafy used at the office daily is a communication tool like Twitter. -
Process flowchart 8FC%SJWFSʹΑΔͭͿ͖औಘ ܗଶૉղੳثʹΑΔ໊ࢺநग़ -%"ʹΑΔτϐοΫղੳ ֤ϢʔβϓϩϑΝΠϧ࡞ octave "͞ΜʮޗഐೣͰ͋Δɻ໊લ ·ͩແ͍ɻʯ ޗഐʢ໊ࢺʣʢॿࢺʣೣ
ʢ໊ࢺʣ ʮಈʯʹؔ͢Δ ʮࣗʯʹؔ͢Δ 4UBUJTUJDT BOJNBM TFMG FUD "`TQSPpMF ruby Scraping with WebDriver Noun phrase extraction with morphological analysis Topic analysis with LDA User profiling -
lςετzʹؔ͢ΔτϐοΫ ʹ͓͚Δ୯ޠग़ݱ֬ IBTVP εϖοΫΛશ෦άϦʔϯͨ͠Β͝൧৯ʹߦ͜͏ͱࢥ͍· ͢ɾɾɾɻ͋ͱͰTIBSFE@DPOUFYUʹॻ͖͑ͨ෦ͷϨϏϡʔ Λ୭͔ʹ͓ئ͍͍ͨ͠ͱࢥ͍·͢ʂ Latent Dirichlet Allocation ͭͿ͖ͷྫ
STQFD εϖοΫ άϦʔϯ ෳͷ͔Βੜ͞ΕΔ୯ޠͰߏ͞ΕΔจষू߹ͷ֬Ϟσϧ େྔͳσʔλͷػցֶशʹΑΓ ֤छύϥϝʔλΛਪఆ จষʹ͓͚ΔτϐοΫ֬ ɾɾɾ A generative model that explain why some words of the document are similar. / An example of a message τϐοΫ֬ʹج͖ͮ ੜ͞Ε֤ͨτϐοΫ ୯ޠग़ݱ֬ʹج͖ͮ ੜ͞Ε֤ͨ୯ޠ Generated words by probabilities Generated topics by probabilities Graphical model of LDA Probabilities of generating each topic in document Probabilities of generating each word in topic Each parameters are inferred from a massive collection of document. -
ॎ࣠ɿϢʔβϓϩϑΝΠϧͱΩʔϫʔυΑΓࢉग़ͨؔ͠࿈ ղੳ݁Ռ Keyword : “TDD” Keyword : “cucumber” ςετܥͷτϐοΫͰ ಥग़͢Δٕज़ܥͷϝϯόʔ
ٕज़ܥͰཱͨͳͯ͘ ࣄܥͰಥग़͢Δϝϯόʔ Result Users ԣ࣠ɿ֤Ϣʔβ Correlation score between user profiles and coefficient of keyword x-axis y-axis Engineers with high scores on keywords about testing Keyword : “精算” A business unit member keeps higher score on nontechnical topic compared with technical topics. -
ݱঢ় wਫ਼ʹ͕͋Γɺ࣮༻ʹ౸Βͣʜ w8FCΞϓϦԽͯ͠ɺؔऀ͕͍ͭͰ ͑ΔΑ͏ʹ͍ͨ͠ In an ongoing way It’s far
from practical use because there are accuracy issues. I’d like to provide this analysis through an internal web service. -
ʙͷͳΒ#͞ΜʹਘͶΔͷ͕దͩͳʂ ʘ)BQQZʗ "`TQSPpMF #`TQSPpMF $`TQSPpMF %`TQSPpMF ཧ૾ Goal Mr B
is the best person to ask for help on ʙ ! -
状況に応じて、適切なメン バーに助けを求められるよ うになった! (という状態が目標…) Now I can ask a proper
member to help depending on the situation! (but demanded continual refinement.) -
ϖΞϓϩͳͲͷϖΞ࡞ۀΛ͓ئ͍ͨ͠ͱ͖ ϖʔε͕ૣ͍͍͚͗ͯͭͯ͢ͳ͍ ݴ͏λΠϛϯά௫Ίͳ͍ Asking for help on pair programming, The
pace is too fast to keep. And it’s difficult to say about it when the opportunity comes. -
ۓுঢ়ଶΛ͞Γ͛ͳ͘Ξϐʔϧ͢ΔγεςϜ Λ࡞Εɺͯ͠Β͑Δ͔͠Εͳ͍ ͓ɺΩπա͔͗ͨͳʁ ϖʔεམͱͦ͏ "QQFBM I made a system to
appeal my own status for more comfortable pair works. Little harshly? Let’s slow down. -
͞Γ͛ͳ͘ܭଌ͠ɺදࣔ͢ΔͨΊͷγεςϜ '3*4,ঢ়ͷ σόΠεͰ ຺ഥΛ͞Γ͛ ͳ͘ܭଌ Casual system to indicate own
status Measure heart rate by FRISK-like device -
͞Γ͛ͳ͘ܭଌ͠ɺදࣔ͢ΔͨΊͷγεςϜ '3*4,ঢ়ͷ σόΠεͰ ຺ഥΛ͞Γ͛ ͳ͘ܭଌ Casual system to indicate own
status Measure heart rate by FRISK-like device -
$BQT-PDL ͷ-&%ʹ͞Γ ͛ͳ͘දࣔ ͞Γ͛ͳ͘ܭଌ͠ɺදࣔ͢ΔͨΊͷγεςϜ Casual system to indicate own status
Blink LED on Caps lock key -
SVCZϓϩάϥϜͰܭଌ Λड৴ɻ৺ഥΛࢉग़ ͠ɺ$BQT-&%Λ໓ γεςϜͷ֓ཁ ֎ઢηϯαͰ݂ӷதͷ ϔϞάϩϏϯมԽΛܭଌ ϐʔΫִؒΛૹ৴ System summary Transmit
peak-to-peak value Ruby application blinks LED on Caps lock key depending on heart rate. Infrared sensor measures varying hemoglobin level of blood. -
アレコレ1の場合どうするの? How about in first example case? Git handling Server
operation Pair programming etc... Sharing workspace on wemux ʘݟΕͳ͘Ͷ ʗ "QQFBM -
Git handling Server operation Pair programming etc... Sharing workspace on
wemux ʘ)BQQZʗ Ε͍ͯͯେৎ It’s not a problem if they’re far away from each other. "QQFBM -
言い出しづらい状況下で も、ペースを合わせても らえるようになった! Now I can have proper pace if
I’m hesitant to propose slowing down! (though this example is very limited.) (あまり実用的な例ではありませんでしたが…) -
日々のちょっとした工夫によって 助けを得ることの敷居が下がり 開発をもっと楽しくできるはず $ DPOUFOUTNBZJODMVEFOVUT )BQQZ'MBQQZ1FOHVJO IUUQXXXqJDLSDPNQIPUPTKV[ IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ I
believe a little ingenuity which strengthen helping each other makes a development more enjoyable. -
Gitͷૢ࡞ αʔόʔૢ࡞ ϖΞίʔσΟϯά "QQFBM 日々のちょっとした工夫の例 ࡞ۀڥΛखܰʹγΣΞ ։ൃڥΛखܰʹೖख ࣗͷঢ়گΛݟ͑ΔԽ ϝϯόʔͷಘҙΛݟ͑ΔԽ Shared
workspace Easily available development environment Visualized specialties of members Own status indicator Four examples of a little ingenuity -
特に色々な案件を抱える会社では、 助け合いが活発になることで、 本来備えた柔軟な組織力を 100%発揮できるかもしれない $ +PBDIJN4.ÛMMFS 4POOFOBOCFUFS IUUQXXXqJDLSDPNQIPUPTKPBDIJN@T@NVFMMFS IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ
QSPKFDU" QSPKFDU# QSPKFDU$ Especially, in case of company which has many projects lined up, such activity to help each other without barrier might lead to the 100% strength of an organization. organization -
$ CBSUP 5IF(BSBHF IUUQXXXqJDLSDPNQIPUPT!/ IUUQDSFBUJWFDPNNPOTPSHMJDFOTFTCZ We can cast our
thoughts into shape to make our development more enjoyable with DIY mind in the weekend. 余暇を利用したDIY的な取り組みで 日々の開発をより楽しく出来そうな ちょっとした思いつきを形にしていく