Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
I've been studying Ruby for a couple of months. In the last month, I started working with Ruby on Rails projects. It was a huge transition for a former C# programmer.
Write tests. Then write more of them! Repeat.
Rubyists love tests. If you want to build consistent and trustable applications, test them. In the last weeks, I've been writing tests before I start writing my classes. There are awesome gems such as RSpec, Capybara and FactoryBot that can make this job easier.
Make it work, then make it pretty.
This one is dangerous! When I was working with other languages, I was too much worried about architecture, objects relationship and all the superpowers object oriented programming gives you.Working with Ruby in the last month, I figured that I must write a class that works, spending more time writing what really matters. Then I can think about the other stuff, if it still makes sense at all.
Ruby community is awesome!
If you are stuck or need help with Ruby, be sure that there's a whole community ready for battle. Study groups, meetups, talks, confs, forums and so on. You can find one here.
Feels just like plain English.
Ruby code feels like English. You can barely tell it's machine language.
This code explains itself. It reads like English. This is all about code readability. There's a couple chapters about it on the book Clean Code, a must-read for programmers hard-skills improvement.
âAny fool can write code that a computer can understand. Good programmers write code that humans can understand.ââââMartin Fowler
It's being a fantastic experience to learn a programming language that's been teaching me so much as a software developer đ
What Ruby taught me was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.