On Jan 3, 2006, at 3:15 PM, Gregor M. wrote:
thanks for you taking the time to answer!
No problem. I hope I’m not confusing thing…
good way of dealing with the View/Controller part of MVC – there
can’t be anything like it in Java, and there could be but isn’t in
Common Lisp. The way this works is wonderful. If you are a Java
programmer and haven’t tried RoR you just don’t know what I
mean. If you are a smalltalk or lisp programmer, you are going to
experience something like what you are familiar with but it’ll be so
unexpected you’ll be shocked.
Sounds like we should give it a chance by starting a prototype in
For sure, but this isn’t the only reason to use Ruby. W.r.t.
prototyping, I was talking to a colleague this afternoon about how I
can will be using Rails and Ruby to workout some design issues then
re-implement in Java. This’ll still save me a ton of time.
The performance of RoR is not an issue for my stuff. I doubt it will
be for yours either (3000 users is well within range of Rails unless
they are doing something unusual (but this is a university
environment so maybe they are :-))
It was really hard for me to find hard facts on RoR performance. One
website mentioned the performance is eight times less than Java - that
is without any DB access involved. This kind of scared me, but as our
Php application has no performance issues, there shouldn’t be any in
ruby, as I heared it is comparable in speed. Can you confirm that?
Ruby is slower than Java, 8x sounds possible. However, we are
talking about web apps and the internet will be the bottle neck even
with Ruby. And then when you add in DB access, well, I don’t know if
there’s a lot of practical difference. I do not think a typical
community portal is going to see anything like an 8x difference –
I’m not seeing any difference on the stuff I’m playing with (in fact,
on my powerbook G4 with 2GB of RAM I think Ruby serves dynamic
content a bit faster, it sure as hell runs faster in development mode
(about 2s in RoR to start up, about 40 seconds in Java to start – on
my desktop dual CPU G5 thing RoR starts up in a fraction of a second
– this is very nice).
What engine approach?
So in short ActiveRecord models cannot be enhanced
by modules, right? Thats no good news, as this was a primary feature I
was looking for. I looked into the xampl project, but then I would
to convince the team that we should replace the model part of a MVC
framework I’m proposing to use, guess they’ll wonder if it can then be
so good after all. I’ll look deeper into this, anyway.
It isn’t that bad, sorry to leave that impression. Inside the model
there are no restrictions or problems. Modules are also used to
control name conflicts. In Ruby, symbols are global they are not in
a module. So if you have two models, both called :model then you’ve
got a problem. Now, I think this can be dealt with but I don’t see
any explicit discussion in ActiveRecord documentation (I don’t mean
anything more than that). And considering how easy it was for me to
deal with this on my own, I can’t imagine that there isn’t some way
to deal with this already in RoR that I just don’t know about. Now, I
happened to see something about model prefixes this afternoon, I have
not pursued this, but if it is what it sounds like, then this will do
the trick well enough.
This may all be a simple documentation problem… documentation
missing, or me just being a poor reader of the documentation
so there are also people with no deep insight in advanced java
programming, though we have some “freaks” also
Sounds like fun!
Posted via http://www.ruby-forum.com/.
Rails mailing list
Bob H. – blogs at <http://www.recursive.ca/
Recursive Design Inc. – http://www.recursive.ca/
Raconteur – http://www.raconteur.info/
xampl for Ruby – http://rubyforge.org/projects/xampl/