Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use windows or linux to start work with Ruby On Rails?

I'm new to Ruby On Rails and I want to know which is better to use for work with it. Windows or Linux. I've never worked with Linux before but I heard It's better to work with it. Is it necessary for someone like me to install linux or I can use windows and the results will be same with linux?

like image 529
starrr Avatar asked Jul 25 '12 11:07

starrr


2 Answers

If your current dev machine is running Windows, and you don't have access to a Linux environment right now, don't let that stop you from getting started with Rails. Definitely, definitely, definitely install the DevKit first thing (if it's not included in RubyInstaller yet). See https://github.com/oneclick/rubyinstaller/wiki/Development-Kit for that.

If you get deep into Rails development, or even start doing it for a living, you will inevitably drift towards using Linux on your dev machine. The problem is not Rails, but the many binary gems which are difficult or impossible to install on Windows.

The most popular Ruby library for manipulating images (ie. generating thumbnails) is RMagick, but trying to install it on Windows is enough to make a strong man cry. Paperclip is very nice for dealing with images and other attachments, but it is also a problem. Then there is a popular JSON parsing library which is also problematic on Windows. Unicorn (a popular Rails server) won't run at all on Windows, and Thin (my favorite) may also give you headaches. And so on, and so on.

You can get pretty far with Rails development on Windows these days, but at times you will find yourself having to test code on a remote server, rather than locally, and it can waste a lot of time.

like image 68
Alex D Avatar answered Oct 02 '22 13:10

Alex D


Yes, this thread is an old thread but I am here to express how awfully you will encounter problems on windows platform while using Ruby on Rails. It may be 'OK' to build normal application however, as soon as you start scratching the surface of sqlite3, ASCII Characters, Internationalisation for an application, ... Your hair will start to fall off, I mean literally . Whereas if you stick with Mac or Linux (Ubuntu), You will feel invincible, take pride on projects, progress further without having to configure yourself manually with setting of (gems') native extensions library and it is horrendous.

In Summary, to make it work on windows is just nightmare. Whatever you have done it is entirely your decision. I hope everything is fine.

like image 23
RajG Avatar answered Oct 02 '22 14:10

RajG