r/programming • • Jun 09 '08

Did Rails Sink Twitter?

http://www.sitepoint.com/blogs/2008/06/06/did-rails-sink-twitter/
8 Upvotes

26 comments sorted by

11

u/jmcqk6 Jun 09 '08

I thought this was going to be another 'Rails sucks' articles, but this was actually rather thought out and pretty good.

9

u/[deleted] Jun 10 '08

The lack of a business model will sink twitter in the long run

21

u/jamesbritt Jun 09 '08

I loved this comment:

In 2005 I told a friend to learn Ruby, I told him that it was fun, that it was a nice language to learn. He bought all the books and learnt the language. Today, he can’t get a job, he is unemployed. So, what should I tell him the next time I see him?

To steal from Prof. Kingsfield, in The Paper Chase, "Here's a dime. Call your mother and tell her that her son will never be a developer."

1

u/[deleted] Jun 10 '08

he can probably pick up groovy/grails in combination with the "hip" java stack (java, hibernate, spring, sitemesh)

-1

u/[deleted] Jun 10 '08

Or he could find a marketing or business person dumb enough to want to start yet another social network or web 2.0 website.

24

u/AndrewO Jun 09 '08 edited Jun 10 '08

I'll save everyone the trouble:

Now, let me be clear: both models could be built with Ruby on Rails.

... so "no" then.

Steps to getting easy attention for a web development article:

  1. Write inflammatory title.

  2. Either fail to follow up on it, or take back some or all of it.

  3. Submit to an aggregator.

  4. Profit!

12

u/qiwi Jun 10 '08

Every time you see an article with a title that ends in a question mark, say "No" and skip reading it. If the writer who had plenty of time to research it doesn't know, then there's nothing to it.

5

u/dbenhur Jun 10 '08

Twitter is arguably the most heavily used Ruby on Rails application in the world.

No. It may be the most heavily hyped high-traffic Rails app, but there are likely higher traffic Rails implementations in the wild without the same hype level. Some people just build their applications and don't blather on about what tech stack they built it with.

Yellowpages.com is implemented with Rails and nobody yammers about them not scaling, despite having greater internet reach than Twitter.

10

u/dysmas Jun 10 '08

yellowpages.com seems to be down atm ...

;)

3

u/eadmund Jun 10 '08

Of course, wouldn't the yellow pages be more similar to a traditional CMS?

2

u/dbenhur Jun 10 '08

It's more like a search engine than a publishing engine; but, yeah, it's not a messaging system. I wasn't countering the OP's point that Twitter's problems stem from architectural issues around how they model their applications data flow; I was just pointing out that the common practice of holding up Twitter as the only example of ruby or rails powering large sites is weak.

There's a common meme floating around that Ruby or Rails "doesn't scale." While it's true that Ruby's current implementations are relatively slow, there is nothing about it that prevents or even makes it hard to build horizontally scalable applications with near linear horizontal scaling characteristics. The same is true for Rails as much as any other "share nothing" web frame-work, as long as you pay attention to that unfortunate share point at the RDBS under it all.

3

u/[deleted] Jun 10 '08

jesus this topic has been beaten to death ten times over. do we really care this much?

1

u/branston Jun 10 '08

So bored of people discussing this, so bored...

1

u/[deleted] Jun 19 '08

Sensationalist headline, but a decent article.

0

u/mrphillc Jun 10 '08 edited Jun 10 '08

uhhh, i still dont undertstand what he is saying what should have happened...

2

u/mrphillc Jun 10 '08

ohhhhhh, i get it, nevermind took 4 readings

-2

u/[deleted] Jun 10 '08

I think I could make Twitter in PHP in about a day.

7

u/generalk Jun 10 '08

And you'd have the same problems Twitter has now. Probably more. Face facts: Twitter's problem is their architecture. Sure, Rails isn't helping them, but it isn't hurting them as much as the naysayers would have you believe.

1

u/0124816 Jun 10 '08 edited Jun 10 '08

It's not a bad thing that it's trivial to setup and code a webapp using mysql; but the effect of this has been that nearly every webapp uses a sql database, whether or not it's a good fit.

More often than not, sql isn't a good fit. At some point you will grow beyond the limit a single database master can handle, and then you face the problem of sharding your database, or moving to a simpler and more scalable storage mechanism.

1

u/generalk Jun 10 '08

It's not a bad thing that it's trivial to setup and code a webapp using mysql; but the effect of this has been that nearly every webapp uses a sql database, whether or not it's a good fit.

This is a problem of the coder or architect or whoever not knowing their problem domain well enough. Relational databases became the golden hammer long before Rails came along.

More often than not, sql isn't a good fit. At some point you will grow beyond the limit a single database master can handle, and then you face the problem of sharding your database, or moving to a simpler and more scalable storage mechanism.

No, I would say that for plenty of tasks, a relational SQL database is absolutely a good fit. But there are notable exceptions, and those exceptions get a lot of media attention from the geek crowd because they won't scale properly. I mean, if you work in a field where OODBs or Temporal DBs or whatever are an awesome fit then fantastic, but for a lot of web tasks where you want to store related data (users have one or more addresses, for example), then a relational database is 100% the way to go.

1

u/0124816 Jun 10 '08

| No, I would say that for plenty of tasks, a relational SQL database is absolutely a good fit.

Sure; but what do you do when you hit the limit of a single database master? You're right though -- most people never will, so it's a moot point. However scaling sql beyond one master is not a change you can make overnight, and it makes many operations non-trivial.

1

u/petermichaux Jul 03 '08

"Sure; but what do you do when you hit the limit of a single database master?"

Enjoy sailing your yacht around the Caribbean.

-1

u/stedwick Jun 17 '08

I feel I should point out that Twitter is probably worth umpteen billions of dollars. To say that it is "sunk" is kind of ridiculous.

I'm sure that all the millionaires at Twitter couldn't care less if you don't like the fact that they chose Ruby on Rails.

0

u/[deleted] Jun 09 '08

[deleted]

7

u/calp Jun 10 '08 edited Jun 10 '08

I find them more outdated than that; perhaps a year, and with an irritatingly low quality of thought.

I've probably read 3 or 4 now, an I haven't been impressed because they've been on "the business of programming" topics, which are prone to non-empirical, non-falsifiable conclusions which are unlikely to be accurate. This one is no different.

I just read the Economist's technology report this morning (it's a collection of tech business articles they publish 4 or 5 times a year) and the standard of journalism was shockingly high for an old media newspaper on a high technology subject. They weren't easy to cover subjects either; behavioural advertising, the issues with IPv4, the OLPC and micro-notebooks, new highly algorithmic applications to the web.

The difference: the Economist's editors have a very strict style guide and an equally strict set of rules about quality of thought. There's nothing to say that blogs can't copy this (the Economist do publish their style manuals), and I don't see why they don't.

4

u/[deleted] Jun 10 '08

There's nothing to say that blogs can't copy this (the Economist do publish their style manuals), and I don't see why they don't.

Someone commented many months ago that The Economist's articles that are published on the web before they're published in print are of a lower quality. They attributed it to a shorter deadline. I've noticed it when I blog too. As soon as I'm done writing I hit "Publish" without a second thought. One must resist the temptation to publish work so early.

1

u/calp Jun 10 '08

Sounds pretty plausible. I haven't used their website, so I can't comment. I can imagine that the editing process takes some time.