Tuesday, May 10, 2011

Ruby on Rails

Well,

Let me start of saying that I love Ruby on Rails. The syntax of the language, the possibilities, the speed at which you can develop. There's currently nothing that can beat it in my oppinion. Ask any Ruby on Rails developer and he will probably tell you the same.

However, what they don't tell you, is that it's becomming a serious pain over the years to get most things running on Windows machines. Alot of the gems that are beeing used either drop support for Windows systems, or never included it to begin with. And honestly it's starting to piss me off.

"Deploying Ruby on Rails is easy". Quoted literally from the Ruby on Rails page. Let me tell you, it's not !
The page lists various installations and tricks that can make the deployment of such an application seem like childsplay. Let's go over them shall we?

- Fusion Passenger Mod : No Windows Support --> Failed on the "easy" part
- Proxy Setups : Tried it and failed miserably. only NGINX got what I wanted
- JRuby : Not even going there...

I've been working with the rubygems system for quiet some time now. The system is simply marvelous, except for the flaw that alot of gems don't compile under Windows.
Now before you start jumping around talking about compilers etc:
- I have the Ruby DevKit installed and configured
- I have a complete msys minGW system setup with make etc, all working from commandline

The problem is that some gems cannot compile without alot of stuff installed beforehand or having specific requirements installed.
Are all gems bad then? No, definitly not. There's some out there that have great documentation of all the required gems that need to be installed and some even describe on which sources/libraries/applications need to be available to compile the gems.

Unfortunatly not all gems are like that. Some simply state they do not support Windows. Then i'm asking, what's the point of creating open-source projects that are supposed to be platform independant? I mean, that's the point of Ruby on Rails is it not?

No comments:

Post a Comment