Topic: Web development that hurts

It says that it's a web development that doesn't hurt.
But waiting 10-20 seconds for each ruby/rake command in
the command line on Windows definitely hurts. Antivirus
tool is off (add 10 seconds when enabled with RoR folder
and D partition excluded from the on-scanner). Why is that?

I'm using the RoR installer that came with the 3rdRail
installation, but I am not using 3rdRail at the moment,
since I want to learn the RoR from the existing tuts which
all use default RoR development approach. I'm comming from
Delphi/Lua world actually. This installer install RoR 2.0.2,
gem support and some useful gems:

actionmailer (2.0.2)
actionpack (2.0.2)
actionwebservice (1.2.6)
activerecord (2.0.2)
activerecord-interbase-adapter (0.1.0)
activerecord-oracle-adapter (1.0.0)
activerecord-sqlserver-adapter (1.0.0)
activerecord-sybase-adapter (1.0.0)
activeresource (2.0.2)
activesupport (2.0.2)
capistrano (2.1.0)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.12)
gem_plugin (0.2.3)
highline (1.4.0)
hpricot (0.6)
ibruby (0.5.5)
log4r (1.0.5)
mongrel (1.1.3)
mysql (2.7.3)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
rails (2.0.2)
rake (0.8.1)
rspec (1.1.3)
ruby-debug (0.10.0)
ruby-debug-base (0.10.0)
rubygems-update (1.0.1)
sources (0.0.1)
sqlite3-ruby (1.2.1)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.0)
windows-pr (0.7.2)

I use Notepad++ for editing, and a toolbar in the taskbar
with popup menu of my project structure. It pretty much kills
the need for a textmate tool that all the Mac fans praise.
But let's not turn this thread into a Mac/Win/Linux flame war.

What can I do to have "ruby script/console" execute in <5 sec
on my Turion X2 1.8Ghz 2GB DDR2 160GB HDD WinXP machine?
I saw a lot of threads on this topic but no real solutions...

Re: Web development that hurts

I just want to report that on my other machine, Intel E2160, 2GB DDR2, 320GB Seagate with Windows XP as well it takes 4-5 seconds to execute ruby/rake commands! Yay!

Re: Web development that hurts

I was developing on Windows also. It is painfully slow using both InstantRails and using a cygwin install.

I got around this by developing on a Linux box. Rake tasks and script/generates are near instantaneous.

If you don't want to load Linux (stand alone or dual boot), you can always use a VMware appliance. I was using the Jars Ubuntu 6.10 appliance. I had the same near instant results through virtualization as a native install.

Re: Web development that hurts

Linux FTW

Re: Web development that hurts

I switched from Windows to OsX and I will never turn my back again.

Re: Web development that hurts

Ditto.Changed to OSX for about 2 years because of the "wooops" screencast. Every penny I paid for it was worth.
At work I have same problem like you so I got a second harddrive where centos is installed. It's nearly as fast as my iMac.

Re: Web development that hurts

Let's not forget that a lot of gems and plugins just seem to have problems in Windows.  I remember I spent hours and hours just to get anything to work at all.  Seemed like every 30 minutes I was fighting some gem.

So I bought a MBP and Textmate.  And I'm loving it.

I still enjoy Windows and DirectX is awesome but running OSX has been wonderful for me when it comes to web development.

It just seems like Ruby/Rails on Windows is years behind when it shouldn't be.  Probably because the core developers all use Macs or Linux.

Re: Web development that hurts

I did my first rails app in windows.  It was a painful experience...after that i switched to developing in an ubuntu VM using VMWare and then finally ditched windows altogether and installed ubuntu instead.  Now i do everything using gedit and the command line.

That said, it shouldn't be taking so long for you even in windows.

What's it like if you just open a normal irb console instead of the rails console?

Also, look in the rails log file (log/development.log) to see if you can see what's slowing it down.

#If i've helped you then please recommend me at Working With Rails:
# … i-williams

Re: Web development that hurts

Does setting RUBYOPT help at all?

> RUBYOPT=-rubygems
> ruby script/server

Re: Web development that hurts

If you are using this:

ruby script/console
>> rs = ActionController::Routing::Routes

Then try this:

ruby script/console
>> rs = ActionController::Routing::Routes;nil
>> nil

Website Designers London

Last edited by RNick52 (2010-01-05 06:28:39)

Re: Web development that hurts

Thought it was funny as well.

Why does everyone freak out about writing SQL themselves, anyway? Isn't it a good thing to understand the intricacies of the software you write on?


Re: Web development that hurts

Start coding on linux is cheaper, faster and safer.

Re: Web development that hurts

At work I have same problem like you...

Re: Web development that hurts

10-20 seconds is a long time, i can't imagine that even a poorly developed version of ruby on windows would be the cause. in linux you can to a prompt>time command to see how fast things are running.  Is there something like that for windows?  Can you verify that it is ruby ie try running another interpreted language.

Re: Web development that hurts

At work I have same problem like you.

Re: Web development that hurts

Its not just ruby/rake, its more with Windows. Its much better in Ubuntu.
Try ubuntu/kubuntu for RoR development.

Ruby-Rails lists archive

Last edited by developr2 (2010-08-29 15:50:30)

Re: Web development that hurts

I've heared many people speaking about this issue. I suggest start using Linux and it would help to solve the problem.

Re: Web development that hurts

I think you should try to code in Linux environment.

I suggest you to use two different OS : windows for you, and Linux for rails wink