[RUBY] What Rails beginners learned by solving errors

Hello, it's Shota!

I'm currently stumbling upon an error when creating a portfolio in Rails.

And there are three things I learned anew by solving various errors.

*** 1. Know the meaning of the error statement 2. When asking a question, don't just ask what to do 3. It is also important to leave the code once ***

Then, I will explain one by one as a beginner.

** First, know the meaning of the error statement ** It really changes if you understand the meaning of the error statement. I'm a beginner and can't speak English, so when I see an error sentence written in English that I've never seen, "What's this! Difficult ..." I feel that. However, by google the English meaning and error sentences, you can get closer to the solution. The point is to "know the meaning of the error properly". Often for beginners "When you hit an error statement and a solution for a similar error hits, you can imitate and solve it without understanding its meaning." It turns out that it's not very good.

*** Second, when asking a question, don't just ask "what should I do?" *** Beginners, including myself, are especially likely to ask these questions. However, when asking a question, it is not just "error statement and what to do" It is better to explain "Current status ➜ Question ➜ Tried". By doing so, you will be able to properly convey what you want to solve. The answerer should be able to answer comfortably.

*** Third, it's also important to leave the code once *** I refreshed or slept once, and when I restarted the next day, I was able to solve it quickly! There are quite a few things. Also, for beginners like me "I don't know what it is, but it worked for the time being, so let's do it." I think that such an idea is totally ant! I tried hard for perfection, but I think it's better than stagnation because it doesn't make sense.

After resolving the error, I realized that it was important again.

These three will continue in the future

*** 1. Know the meaning of the error statement 2. When asking a question, don't just ask what to do 3. It is also important to leave the code once ***

I will fight against errors with awareness!

Recommended Posts

What Rails beginners learned by solving errors
What beginners can learn by creating a simple Rails API
What I learned from studying Rails
[Rails] Introduction of Rubocop by beginners
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 6
What i learned
A review of the code used by rails beginners
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapters 4 and 5
[Rails 6] Validation by belongs_to
What I learned ② ~ Mock ~
What I learned ① ~ DJUnit ~
[Rails] What are params?
Beginner Ruby on Rails What I learned is being summarized