Using the Right Words
This lesson demonstrates the importance of using the right names for variables, methods, classes, and whatnot!
Naming things is hard
Just like programmers are obsessed about formatting, they also care a lot about how to name the things they create.
Why to choose better names?
Choosing good names for your variables, methods, and classes, is important because this makes your code more expressive and easy to read. In fact, once you’ve learned the basic concepts of Ruby, a well-crafted code will read almost like a prose text to you. Not necessarily like your favorite novel, but maybe like a recipe or other instructional prose. Ruby is particularly great for writing expressive, readable code.
Here are a few examples of great, and rather bad ...
From looking at ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy