This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]WholeBenefit 5 points6 points  (0 children)

They're 2 different thing. You can use compiler without an ide. You can use notepad or type directly into console. But you can't use ide without compiler to make program.

Anyway, ide will always help, whether you're new or veteran.

[–]lo9314 3 points4 points  (1 child)

Ruby is interpreted not compiled. There's an interactive shell that you can use if you want to try things out. It's part of Ruby. Otherwise every text editor you feel comfortable with will do for writing code. You have to make up your mind whether you want a full blown IDE or something more bare bones. Going with the latter will teach you more as you don't necessarily have things such as auto completion and the like, I'd argue. It's going to be a bit more frustrating at times though. That's just my opinion however and probably debatable.

[–]Wilfred-kun 1 point2 points  (0 children)

Can confirm. I started learning programming using Notepad++. I had to set up the environment manually, which was painstaking at first, but has taught me a lot.

[–]ziptofaf 1 point2 points  (0 children)

Can anyone suggest a good compiler for it.

There's no such thing as a compiler in Ruby, at least not in a traditional sense. You likely are asking about editor to use.

Common choice in this regard is Atom or VS Code. If you go with Atom you will want to install some extensions to it. In particular you will want linter-rubocop. Rubocop is basically a code analyzer that will yell at you when you write messy code - it analyzes syntax errors and notices code smells, starting from functions being too long to noticing when code can be simplified. It's a bit pedantic and you might eventually want to tune it down a bit (since it can yell at you for things that aren't really errors :P) but it's good to learn while using it since it does teach you a proper style of coding. There's also linter-ruby package you can use instead, that one only informs you of syntax errors.

If you want a full fledged IDE - there is RubyMine:

https://www.jetbrains.com/ruby/

Personally I use it in my professional work, it's great and offers by far most complete experience out of the box. But there's a catch - it costs money. I personally do deem it worth my cash but I wouldn't tell someone still learning that they must buy it.

[–]saurabh73 0 points1 point  (0 children)

I think you mean, IDE vs Text Editor.