To get Ruby Silver at the last minute

Introduction

I passed the Ruby Silver. The score was 76 points, which was really close. This time, I will write an article about my study that I received at Silver.

Self-introduction

I studied at a programming school for 4 months from March 2020, and from August I got a job at Rails' own company/SES company. I studied Rails at a programming school, but I rarely studied Ruby, and I didn't know the details of methods, arrays, and hashes.

What made you decide to take it Right now, I'm touching my own content, but I thought that the passing rate of interviews at the company I was seconded to would increase because it was decided that I would go out at SES. I thought it would be useful for business.

Impressions of studying

Conclusion first? When I say something like this, I feel that it was really good to study. Development and refurbishment begins by reading the code written by seniors. Then, what is this method? There were a lot of things like this code.

I'm sure that people who are said to be excellent will investigate it even if it has nothing to do with the repair. But if I had nothing to do with this renovation, it would go through lol I don't know, but it's working, and it's okay because the code was written by someone better than me.

It is a bad new engineer. Lol

At this rate, I wouldn't know it for the rest of my life. After studying Silver this time, I can definitely read the code that I couldn't read before. I think it's worth studying because I can now improve the code of my seniors! !!

Study period

Approximately 2 months It's October and December. I think I studied for about 30 minutes to an hour every day. I was just asking about the problem on the commuter train.

In the Rex mock question described later, I was in a state where I finally got only 100 or 98 points.

Books, sites, etc. used for the exam

1:Rex https://www.ruby.or.jp/ja/certification/examination/rex Here you can solve problems that assume an actual exam. I continued to solve mock questions almost twice daily.

2: 1 question 1 answer on your smartphone https://ruby1mon1tou.com/ This is also similar to Rex, but with less variation in the problem. However, it is recommended that you can check the answer immediately when you answer.

3: Fun Ruby 6th edition This is an introductory book that describes regular expressions, exception handling, and Ruby in general.

4: Ruby engineer exam pass textbook Version2.1 It looks like the official text. It seems that it can be used as a reference book, but it is quite difficult and I have hardly read it. The mock questions at the end of the book are recommended because some of the questions will be the same in the actual exam.

Take the actual test

Even if I was just doing mock questions, I felt that maybe 50% could be solved. You're just like me lol Half of them have similar problems to mock problems, or exactly the same problems.

To be honest, I don't remember the content of the problem well, What I personally think is important

-Types of destructive and non-destructive methods (such as destructive ones without!) Clear update concat delete delete_if is one of them.

・ There are many hooking problems If you are doing a mock question, you probably won't get caught. For example

test.rb



ary = [apple,apple,apple]
ary[0].upcase
p ary #=> [apple,apple,apple]

It's a problem like this. The upcase method is not a destructive method, so [0] remains apple.

-File class In practice, it is rarely touched, so it is necessary to confirm how each of the modes r, r +, a, a +, w, and w + behaves. You should also know how to use rewind and IO.seek.

・ Dir class This wasn't very common in this exam. Most of the mock questions were about choosing which is the Dir class method. I think this exam was also such a problem.

・ Hash This bothered me quite a bit. If it is a mock question, you can create a new hash with Hash [], but the answer is correct, but when I read someone's article, it is not supported if it is 2.1.

I had a nightmare that this would appear on the exam shortly after I wondered which one it was.

You also need to remember all the methods related to Hash, including how to create them.

・ Array map collect select find detect reject find_all zip transpose product etc.

How each behaves and which method is the same (map and collect are the same) Must be remembered. This will probably be on the exam.

・ String

test.rb



str = "abcdefghr"
p str[2,4] #=> "cdef"
p str[0,3] #=> "abc"
p str[1..3] #=> "bcd"
p str[1...3] #=> "bc"
p str[1..-2] #=> "bcdefgh"

There will always be problems with the retrieval system like this.

Also, there are many questions about methods such as chop chomp strip.

・ Others There was also a problem with how to use the join and split methods. It's like how it behaves if you don't pass an argument to split. Unfortunately I didn't know, but lol

Regarding each, not only each do but also each_with_index, each_char, etc. are displayed.

There are also problems with binary, octal, and senary numbers. However, I will definitely do a mock problem about this, so if you remember it there, you should be able to solve it without problems.

There are also problems with simple regular expressions and exception handling.

Regarding strftime, which is the time conversion, there are various other things besides% Y% m% d, so it seems better to remember about% x and% F.

Summary

Other than the above, you should definitely do it

Actually set the version of the local environment to 2.1 and verify the code of the mock question! !! !!

This is because there are cases where the answers to mock questions in books and online are incorrect (shock).

I also learned this just before the test.

I think it's better to paste all the code and check the operation.

Also, I have to suppress the reason why the wrong answer is not good. It will be my second dance. Lol

I wrote it in a hurry, so the content became empty, I'm sorry.

I will also flesh out this article.

I hope you all pass.

Recommended Posts

To get Ruby Silver at the last minute
I want to get the value in Ruby
[Ruby] How to get the tens place and the ones place
[For beginners] How to get the Ruby delayed railway line name
Passed the Ruby Technician Certification Exam Silver
How to get date data in Ruby
Java SE8 Silver ~ The Road to Pass ~
What you did to get the Oracle Certified Java Programmer, Silver SE 8
[Java] How to get the current directory
Ruby methods return the last evaluated value
How to get the date in java
I tried to get the distance from the address string to the nearest station with ruby
Looking back on the important things to pass the Ruby engineer certification exam Silver
How to find the cause of the Ruby error
A memorandum to clean up the code Ruby
The story of introducing Ajax communication to ruby
How to get today's day of the week
How to use the replace () method (Java Silver)
Try to get redmine API key with ruby
[Java] How to get the redirected final URL
How to build the simplest blockchain in Ruby
[Java] How to get the authority of the folder
[Ruby basics] How to use the slice method
Rails / Ruby: How to get HTML text for Mail
[Ruby] How to find the sum of each digit
[Ruby on Rails] How to change the column name
[At Coder] Solve the ABC183 D problem with Ruby
[Java] How to get the maximum value of HashMap
Source used to get the redirect source URL in Java
[Android] How to get the setting language of the terminal
Ruby, Nokogiri: Get the element name of the selected node
[Rails] How to get the contents of strong parameters
[At Coder] Solve the ABC182 D problem with Ruby
Get the URL of the HTTP redirect destination in Ruby
[Swift] How to get the document ID of Firebase
[Ruby on Rails] I want to get the URL of the image saved in Active Storage
[Ruby] How to get the value by specifying the key. Differences between hashes, symbols and fetch