Ruby and Rails

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
User avatar
dw
Baaa!
Baaa!
Posts: 496
Joined: Sun Jul 14, 2002 10:54 am 0
Location: london
Contact:

Ruby and Rails

Post by dw »

Dabbling with this at the moment. Very nice, easy and very quick.

:D

For some stuff it's certainly better than .NET. I'll see how far I can take it...
Investigate & Revert
User avatar
t0ne
Baaaaaa!
Baaaaaa!
Posts: 3134
Joined: Wed Sep 11, 2002 8:48 am 0
Location: Bristol

Post by t0ne »

Ace init :D
I've finally got around to getting started with it over the Christmas break ...
Looking for a liitle project to work on now to bring my skills up a bit.
Certainly a very welcome change to doing things in bloaty J2EE land, I've already started evangelising about this at work :D
User avatar
dw
Baaa!
Baaa!
Posts: 496
Joined: Sun Jul 14, 2002 10:54 am 0
Location: london
Contact:

Post by dw »

Well I work for a nasty big corporation that has budgets starting at $500k and going up in $500k increments.

I did a quick calculation based on the last 10 intranet projects and the average price was $1.7m 8O

None of them were very complicated, just reporting sites, but were built by around 300 offshored indians, 17 BAs and 4 PMs (that's a guess)

I think I could knock a couple of them out in an hour with Rails... :)
Investigate & Revert
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Post by failrate »

I've been using RoR for fun and profit in a team of... erm... me. It really is piss easy for most things, and can even hide a lot of JavaScript ugliness in erb commands. I would recommend MySQL for the db, with Apache fronting the show (redirects and overall security), and see about mod_ruby or some other CGI fun after you've gotten past development. Until then, WEBrick is a great development server, with long legs even in debug mode. :D
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12525
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Post by tufty »

failrate wrote:I've been using RoR for fun and profit in a team of... erm... me. It really is piss easy for most things, and can even hide a lot of JavaScript ugliness in erb commands. I would recommend MySQL for the db, with Apache fronting the show (redirects and overall security), and see about mod_ruby or some other CGI fun after you've gotten past development. Until then, WEBrick is a great development server, with long legs even in debug mode. :D
I would recomend using mySQL for the DB if (and only if) you don't give a flying fuck about your data. Use postgresql instead.

And Lighttpd / fcgi rather than apache / mod_ruby, it's a shitload easier to set up, uses less resources, and is generally a load faster.

Yes, this is what I do for a living, I've put together about half a dozen big sites over the last year based on rails, plus a heavy duty online payment system that's going live for two major clients this week.

Simon
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
defsdoor
Baaaaaa!
Baaaaaa!
Posts: 3909
Joined: Fri Jan 30, 2004 12:26 am 0
Location: Sunny Beduff

Post by defsdoor »

It looks good but I'm not sure my brain is up for learning another language :|
User avatar
bloid
Baaaaaa!
Baaaaaa!
Posts: 4082
Joined: Wed Dec 17, 2003 3:12 pm 0
Location: Mancuniana

Post by bloid »

t0ne wrote:Certainly a very welcome change to doing things in bloaty J2EE land, I've already started evangelising about this at work :D
It is cool...but sometimes you need the functionality of bloaty J2EE land... :(

Roll on March ;)
"What's there to lose?" said the general, selling our dead meat by the pound...
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12525
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Post by tufty »

bloid wrote:
t0ne wrote:Certainly a very welcome change to doing things in bloaty J2EE land, I've already started evangelising about this at work :D
It is cool...but sometimes you need the functionality of bloaty J2EE land... :(
Not being snarky or anything, but what can you do in j2ee that you can't do in rails?

Simon
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
t0ne
Baaaaaa!
Baaaaaa!
Posts: 3134
Joined: Wed Sep 11, 2002 8:48 am 0
Location: Bristol

Post by t0ne »

tufty wrote: Yes, this is what I do for a living
You lucky, lucky bastard.
I was only talking about this with a colleague today, would love to change over and do RoR for a living instead of the madness I have to deal with (mainly web frameworks/applications/portals written by complete muppets and having to try and bend new stuff in or extend what's there to make it useful :evil:

Are you self-employed or work for a consultancy outfit or what Simon ?
Is there much Rails work around ?
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12525
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Post by tufty »

t0ne wrote:
tufty wrote: Yes, this is what I do for a living
You lucky, lucky bastard.
Ain't I just :)
I was only talking about this with a colleague today, would love to change over and do RoR for a living instead of the madness I have to deal with (mainly web frameworks/applications/portals written by complete muppets and having to try and bend new stuff in or extend what's there to make it useful :evil:

Are you self-employed or work for a consultancy outfit or what Simon ?
Is there much Rails work around ?
I'm self-employed, moved a project over from a tech demo using gnustep web to rails back in - umm - March or so, and haven't looked back since. I work in what's best called a 'loose consortium of developers', we push work about between us and keep ourselves busy...

We still do other tech too, but mainly these days we're doing rails and rails. There is rails work about, one of the best places to find out about it is on #rubyonrails, although we tend to punt direct to clients, pushing the speed of development and the fact that they are not going to be tied to some proprietary platform, as well as the fact that rails is easy to learn for any programmer worth any cop, so even if we disappear off the face of the planet, they should be able to get someone to maintain the project.

Project #2 last year was a massive web email system with some fairly hairy tech behind it (subscription service paid for using premium rate SMS messages etc) - The company had already blown absurd amounts of money for some awful asp.net solution that was never going to work technically, and lined the company up for license charges 3x what they could ever earn from the system. Myself and 2 others migrated the whole thing to rails and an open-source back end (freebsd/cyrus/postgres etc) in 2 months. The project still failed, but that was due to a stupid business model not tech issues.

Simon
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
dreadster
Baaa!
Baaa!
Posts: 409
Joined: Wed Sep 11, 2002 2:32 pm 0
Location: London, UK
Contact:

Post by dreadster »

tufty wrote: Not being snarky or anything, but what can you do in j2ee that you can't do in rails?

Simon
It manages transactions that span distributed application servers. E.g. it does all the two-phase commit protocol gubbins for you and ensures that state is correctly persisted into temporary storage during appropriate phases of the commit protocol.

The number of J2EE projects that need this is very, very small.
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Post by failrate »

defsdoor wrote:It looks good but I'm not sure my brain is up for learning another language :|
Ruby is a lovely language, and if you want to learn it today, I would suggest
http://tryruby.hobix.com/ 8O

I wish this existed when I started learning Ruby.
User avatar
20thCenturyBoy
Baaaaa!
Baaaaa!
Posts: 1093
Joined: Fri Oct 01, 2004 8:16 am 0
Location: Perth, Australia

Post by 20thCenturyBoy »

failrate wrote:
defsdoor wrote:It looks good but I'm not sure my brain is up for learning another language :|
Ruby is a lovely language, and if you want to learn it today, I would suggest
http://tryruby.hobix.com/ 8O

I wish this existed when I started learning Ruby.
Fuck me that's a good site.

What advantages does Ruby have over, say, Python?
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Post by failrate »

Flavor-choice.

I use them almost interchangeably, as their idioms and syntax are fairly similar. In practical terms, I've found Python to be faster, and Ruby has better Regexing (and very interesting iterators like list.collect{ |l| l>0 }).

It's a piece of piss to wrap your head around the one if you already know the other.
User avatar
defsdoor
Baaaaaa!
Baaaaaa!
Posts: 3909
Joined: Fri Jan 30, 2004 12:26 am 0
Location: Sunny Beduff

Post by defsdoor »

Today I am mostly learning ruby - just installing it now :)
Post Reply