Adding custom rule for Rubocop in the 2 month of employment
by
Yla Aioi
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
RubyKaigi2022で転職をキメて RuboCopのルールを書いた話 Yla Aioi (@Little_Rubyist) Adding custom rule for Rubocop in the 2 month of employment
Slide 2
Slide 2 text
今回話す人/Speaker 相生ゆら/Yla Aioi @Little_Rubyist @Little-Rubyist I am interested in RBS and Rubocop. 2023/02~
Slide 3
Slide 3 text
今回話す人/Speaker 相生ゆら/Yla Aioi @Little_Rubyist @Little-Rubyist I am interested in RBS and Rubocop. 2023/02~ talk about today
Slide 4
Slide 4 text
When was your first RubyKaigi? Job change
Slide 5
Slide 5 text
Last year was my first time there! (That was a lot of fun.) Job change
Slide 6
Slide 6 text
btw, we had a RubyMusicMixin by Pixiv last year. It will be on the day3 again. Job change
Slide 7
Slide 7 text
I was drunk at the time and said to a Rubyist I had just met... Job change
Slide 8
Slide 8 text
“I've been wanting to work at BOOKWALKER for 6 months~ >_<” Job change
Slide 9
Slide 9 text
The Rubyist Job change
Slide 10
Slide 10 text
smoothly Job change
Slide 11
Slide 11 text
handed me a BOOKWALKER business card. Job change
Slide 12
Slide 12 text
The Rubyist is an employee of the company I wanted to join! Job change
Slide 13
Slide 13 text
me when I receive twitter DM right after RubyKaigi
Slide 14
Slide 14 text
casual interview →apply for the job opening →joined the company Job change
Slide 15
Slide 15 text
While it is often said that speaking about your dreams to others can make them come true, I did NOT anticipate such a rapid pace of events Job change
Slide 16
Slide 16 text
unexpected things like this tend to happen at RubyKaigi Job change
Slide 17
Slide 17 text
So, I successfully got into the company I wanted to join 🎉 Job change
Slide 18
Slide 18 text
Thank you RubyKaigi Thank you RubyMusicMixin
Slide 19
Slide 19 text
It appears to end here, but there's a bit more to come
Slide 20
Slide 20 text
Since I've made the effort to join the company, I want to deliver results About RuboCop
Slide 21
Slide 21 text
What I can do even if I don't understand the project well enough. About RuboCop
Slide 22
Slide 22 text
A little refactoring (so I’m a “little” Rubyist) About RuboCop
Slide 23
Slide 23 text
For example, replacing the short one-line `let` with `{...}` About RuboCop
Slide 24
Slide 24 text
About RuboCop
Slide 25
Slide 25 text
About RuboCop An array of `let` defined in rubocop-rspec
Slide 26
Slide 26 text
About RuboCop Converting a long one-line `let` to `do...end`
Slide 27
Slide 27 text
About RuboCop Short one-line `let` is replaced with `{...}`
Slide 28
Slide 28 text
About RuboCop
Slide 29
Slide 29 text
About RuboCop AST matcher
Slide 30
Slide 30 text
About RuboCop Converting a long one-line `let` to `do...end`
Slide 31
Slide 31 text
About RuboCop Short one-line `let` is replaced with `{...}`
Slide 32
Slide 32 text
It became a “little” more convenient
Slide 33
Slide 33 text
Simple Cops like this are easier to work on
Slide 34
Slide 34 text
We can write them even without fully understanding the project's content, which is a great advantage
Slide 35
Slide 35 text
There are probably many people in this venue who are new to Ruby or recent graduates.
Slide 36
Slide 36 text
Let's try improving the environment starting with the easy stuff 👍
Slide 37
Slide 37 text
Ruby community is SO good! :) Summary
Slide 38
Slide 38 text
I am happy to have Ruby as my first programming language
Slide 39
Slide 39 text
I love Rubyists and Ruby community
Slide 40
Slide 40 text
Happy coding with Ruby and community!