Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Ruby on rails

Name: Anonymous 2007-02-14 14:05

So, I spent 6 hours, wrote 8 lines of code, and I now have a working time-report system.

Thing is, I could have written this in PHP in 200 lines in half the time. I hate Ruby on Rails...

Also Apache dislikes Ruby, and it's slow as fuck.

Name: Anonymous 2007-02-14 14:59

Thing is, I could have written this in PHP in 200 lines in half the time.
You're more familiar with PHP.

and it's slow as fuck.
Yeah. You should hear the excuses Rubyists come up with though.

Name: Anonymous 2007-02-14 15:09

(not the OP)

Is there a way to write web applications in ruby without using the Rails framework? Juste like in PHP : apache, fcgi, etc

Name: Anonymous 2007-02-14 16:26

Of course. It has a cgi and fcgi module. fuggingoogleit

Name: Anonymous 2007-02-14 16:30

MORE LIKE RUBY ON FAILS

Name: Anonymous 2007-02-14 16:57

>>2
that's why Ruby rocks, you can write extensions for any compiled language in a few minutes and use them in your Ruby program, that's how you get the speed with one of the best looking language.

Name: Anonymous 2007-02-14 17:14

Also Apache dislikes Ruby, and it's slow as fuck.

I'd advise you to learn how to configure Apache to use mod_fcgi, but Apache's config file syntax is so insane that I wouldn't want to be responsible for any brain damage you might suffer as a result.

Therefore I'm advising you to install lighttpd and learn how to configure it to use fcgi. Really, it's easy and will make your rails app fly.

Name: Anonymous 2007-02-14 17:35

>>4
mod_ruby and eRuby both hate WinXP
I guess I'll stick with RoR :<

Name: Anonymous 2007-02-14 17:51

>>7
lighty ftw

Name: Anonymous 2007-02-14 18:57 (sage)

Therefore I'm advising you to install lighttpd and learn how to configure it to use fcgi. Really, it's easy and will make your rails app fly.
that still doesn't change the fact that ruby is slow as fuck.

Name: Anonymous 2007-02-14 20:29

>>10

Indeed fcgi just keeps a pool of interpreters around waiting for the responses - so your initial startup time is minimal.  But the ruby program will still take XBOX HUEG time to complete.

>>1

You can probably write it in a lot less lines than that, really.  You probably just need to google around for some of the PHP frameworks that are equivalent rails.  They exist, they just don't have the rabid ruby fanboys constantly shouting about them.

Ruby, as a language, is neat - but it really doesn't have anything that other dynamic languages don't.  Even its library isn't all that special.  The big thing I keep hearing touted is ActiveRecord, but this is just the same as Class::DBI in Perl.

Name: Anonymous 2007-02-14 22:44

but Apache's config file syntax is so insane
I keep hearing this... and I keep not getting it.

LightTPD groupies love to parrot the above, but having looked at LightTPD's config, it doesn't look any simpler to me. Unless you're a machine.

They're both bleh in their own way, but if you think that either of them is complicated (outside mod_rewrite that is), you're an idiot, because they're simple. gtfo/prog/ nub

Name: Anonymous 2007-02-15 4:03

Apache config syntax is just insane. It's most irregular and seems to be made out of tossing completely different, unrelated stuff in.

Name: Anonymous 2007-02-15 4:05

Like?

Name: Anonymous 2007-02-15 6:01

>>14
I take it you have some skill in apache configuration?

What I'd want is for any request coming to www.mydomain.com/rails to be forwarded/proxied (preferrably proxied) to localhost:3000. I know I saw a howto a few days ago, but damn if I could find it now...

A link is fine too.

Name: Anonymous 2007-02-15 6:43

>>15

Use mod_proxy and put this in your config file:

ProxyPass /rails/ http://localhost:3000/

Name: Anonymous 2007-02-15 11:23

>>16
OH SHI-
It's that easy? Coooool!

Name: Anonymous 2007-02-15 12:40 (sage)

>>17
sage for not reading the manual.

Name: Anonymous 2007-02-15 12:47

>>18
age for Ruby thread.

Name: Anonymous 2007-02-15 13:37 (sage)

>>19
sage for fage

Name: Anonymous 2007-02-15 13:56

>>20
please anonymous, tell me more about Ruby.

Name: Anonymous 2007-02-15 15:06 (sage)

>>21
it is a magical gem in the cosmic hierarchy, shat by ancient gods directly on your forehead. also known as fage

Name: Anonymous 2007-02-15 17:17

200 lines of PHP will never do as much as 8 lines of Ruby.

Name: Anonymous 2007-02-15 17:55

>>23
200 lines without a framework. With comparable frameworks, they can be more equivalent, I'd say 10 to 8.

Name: Anonymous 2007-02-15 18:09

>>24
Frameworks are shit, you have to master the language AND the framework API.

Name: Anonymous 2007-02-15 19:23

>>24
iirc php frameworks are slower than even ruby's

>>25
you are a backwards idiot

Name: Anonymous 2007-02-15 19:49

>>26
Frameworks are overhyped, like all thus Web 2.0 stuff...

Name: Anonymous 2007-02-15 19:53

>>27
your English and expertise are over-hyped. be a good boy and STFU

Name: Anonymous 2007-02-15 20:03

Actually, I tend to agree with >>25.

I don't know whether that's wise, but given that I currently use a framework at my job, I can honestly say I am hating every fucking moment of it.

Zope3 is a monster.

Name: Anonymous 2007-02-15 20:11 (sage)

>>26
is an elitist faggot, and probably a Ruby fanboy.

Name: Anonymous 2007-02-16 1:01

>>26
weeaboo programmers GTFO

Name: Anonymous 2007-02-16 4:36

>>30
>>31
same person

Name: Anonymous 2007-02-16 9:48

>>1
One word.  The forced productivity of programmer.  Application development over.

Name: Anonymous 2007-02-16 16:25

>>33
ROFL niceley made point.

Name: Anonymous 2007-02-17 9:59

>>29
Zope3 is ugly. It manages to screw up everything good Python had. Prefer to use something sane.

Name: Anonymous 2007-02-17 11:12

One word.  The forced productivity of programmer.  Application development over.
One word.  The forced productivity of programmer.  Application development over.
One word.  The forced productivity of programmer.  Application development over.
One word.  The forced productivity of programmer.  Application development over.
One word.  The forced productivity of programmer.  Application development over.
One word.  The forced productivity of programmer.  Application development over.
One word.  The forced productivity of programmer.  Application development over.

Name: Anonymous 2007-02-17 12:47

try using mongrel instead of apache

Name: Anonymous 2007-02-17 12:49

Try shoving a 1880's steam engine up your ass instead of using Ruby on Rails.

Name: Anonymous 2007-02-17 12:50

>>38
seconded.

Name: Anonymous 2007-02-17 14:57

>>37
Cockmongrel?

Name: Anonymous 2007-02-17 15:35

>>40
gem install cockmongrel --include-dependencies

Name: Anonymous 2007-02-17 16:02

>>41
It's asking me if I want to install:
1. CockMongrel 3.2.2 (Ruby)
2. CockMongrel 3.2.2 (Windows)

Which one do I choose?


Irony aside, I've been running mongrel since I gave up on apache, but mongrel is still hideously slow when accessing the page for the first time. We're talking 5 seconds on a 3GHz machine when accessing from localhost. That's not even funny.

Name: Anonymous 2007-02-17 17:25 (sage)

>>42

Solution : Lighttpd + mod_fcgi + CakePHP

Name: Anonymous 2007-02-17 21:26

>>35
I guess I can get a different job. Maybe writing something in C for a change would be fun. Yeah, Zope's so bad that it makes twiddling bits look like fun.

I can maybe understand some of the design decisions behind it, in an effort to allow Python to scale better... but it's a real pain in the butt.

It doesn't help at all that most my Zope3 queries on Google only turn up SVN commits. Fuck.

Name: Anonymous 2007-02-17 21:48

>>44
The best way to scale better is to not be enterprisey, but to be smart. Enterprisey actually makes everything go wrong.

Name: Anonymous 2007-02-18 0:30

You're telling me. :(

Name: Anonymous 2007-02-18 2:53

Enterprisey actually makes everything go wrong.
something which actually happens faster rather than slower in enterprisey. So I guess enterprisey does make some things faster!

Name: Anonymous 2007-02-19 11:24

Bump.

Name: Anonymous 2007-02-19 11:30

>>48
Why?

Name: Anonymous 2007-02-19 12:25

>>49
Need more ruby trolling

Name: Anonymous 2007-02-26 5:02 ID:+CsI2HW9

I would hereby, for the honor of me and my offspring, like to state that I am >>1 and that I in NO WAY endorse nor appreciate the "Ruby on Rails is slow as fuck" forced meme.

Name: Anonymous 2007-02-26 9:32 ID:e7hzbSGl

Too bad Ruby on Rails is slow as fuck

Name: Anonymous 2007-02-27 16:17 ID:Heaven

Too bad ruby on rails is blazing fast

Name: Anonymous 2007-03-01 4:29 ID:XSMk7j38

So in conclusion, use Perl for CGI or you're definately a nigger.

Name: Anonymous 2007-03-01 16:22 ID:cDcN8+mz

>>54
Illegal in New York.

Name: Anonymous 2007-03-11 19:34 ID:N5KKW5Qg

Rails apps consume much more system resources, but it's not "slow as fuck".

If you use mongrel, which is recommended, you'll even need *dedicated* memory for the app.

One of the consequences is that 99% of shared and the majority of dedicated hosting plans will deliver poor rails app performance.

Name: Anonymous 2007-03-12 6:32 ID:xl7Tk6lw

>>56
I don't use mongrel, but I use mongler, is it alright?

Name: Anonymous 2007-03-12 9:23 ID:arOLkDzH

Name: Anonymous 2009-01-14 14:22

ENTERPRISE QUALITY

Name: ​​​​​​​​​​ 2010-10-25 4:17

Name: Anonymous 2010-11-29 14:53

BBCODE

Name: Anonymous 2010-11-29 14:55

BBCODE

Name: Sgt.Kabu궔炦kiman롄蓧 2012-05-28 22:54

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List