News for hackers. Stuff that matters.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by SoftwareMaven on Thursday October 04, 2012 @03:51PM (#4614029)
If you are thinking about using node.js for this reason[1] on most sites, you are optimizing poorly. LinkedIn didn't worry about this until after they were a public company.

If Python/Djando or Ruby/Rails can get your app out the door and into customer hands faster, it is almost always the right thing to use.

1. There are certainly other, very valid, technical reasons for choosing node.js over other technologies early. But let those reasons be about the problems you are solving today, not the ones you might need to worry about when you have 50 servers to deal with.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by Smudge on Thursday October 04, 2012 @04:11PM (#4614129)
I'm sure LinkedIn could have cut servers without switching to node. Take your first, crappy implementation and rewrite it in the same language and you'll probably still see at least 10x improvement, if not 20.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by nicholassmith on Thursday October 04, 2012 @04:34PM (#4614238)
This times a thousand. When you first write the software you're basing it on expectations, no matter how well you plan, but when you rewrite it you're coming at it with real world knowledge of the pain points so of course it's going to be better in terms of performance.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by omaranto on Thursday October 04, 2012 @05:10PM (#4614414)
"This times a thousand" would be an improvement by a factor of 10000. The improvement should definitely not be that large.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by omaranto on Thursday October 04, 2012 @07:24PM (#4614946)
Thanks for the explanation, skeletonjelly. I think the reason I misunderstood is that I don't hang out on the Internet enough: a friend explained to me that "This." and "this times a thousand" are Internet slang that mean "I agree" (the second, presumably means something like "On a scale from 1 to infinity my agreement level is 1000." :). As far I know these expressions aren't used verbally, which would explain why I took it literally.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by xenophanes on Thursday October 04, 2012 @09:54PM (#4615335)
It means repeat it a thousand times for emphasis.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by skeletonjelly on Thursday October 04, 2012 @07:16PM (#4614915)
You're getting downvoted because the poster was referring to the gravity/importance of the message.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by freditup on Friday October 05, 2012 @12:36AM (#4615684)
We don't all have English as our first language, and there's no problem with that. I'd have replied exactly as you did if I thought he literally meant "this times a thousand"
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by nicholassmith on Friday October 05, 2012 @04:46AM (#4616111)
I included an extra bit of improvement to deal with inflation rates.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by dguaraglia on Friday October 05, 2012 @12:09AM (#4615647)
LOL, apparently sarcasm and witty banter is not HN forte :P
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by dkrich on Thursday October 04, 2012 @05:29PM (#4614497)
I disagree. When you change state management to client side, you are making a fundamental architecture shift that is significant enough to remove a lot of server-side overhead. What makes you think refactoring code is going to give you a 10x improvement in efficiency? If your code is that bad, you should get rid of the developers along with the code.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by dmorgan on Thursday October 04, 2012 @05:36PM (#4614529)
>I disagree. When you change state management to client side, you are making a fundamental architecture shift that is significant enough to remove a lot of server-side overhead.

In most cases, you're not. You're mostly making a big logic spaghetti mess on both the client and the server AND make your pages load slower, especially for the initial load (client performance, js loading times, etc).

>What makes you think refactoring code is going to give you a 10x improvement in efficiency?

Because even correctly implementing just the caching layer, with nested/micro-caching, can give you up to 1000x improvement in efficiency in the first place.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by kevincennis on Thursday October 04, 2012 @09:42PM (#4615313)
It's true that moving more logic and state management to the client side often increase page load times - but it also allows you (potentially) to make certain interactions much faster.

When you have real data on the client instead of just a bunch of markup, you can be a lot smarter about how and when you make additional AJAX requests. Optimistic updates can make a huge difference in perceived performance.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by pdelgallego on Thursday October 04, 2012 @05:12PM (#4614426)
>> Take your first, crappy implementation and rewrite it in the same language and you'll probably still see at least 10x improvement.

You will probably will get the same mess. There is plenty of literature about that. I.e: A complete rewrite is what killed Netscape

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by zorked on Thursday October 04, 2012 @07:09PM (#4614892)
As bad as Netscape 4 was, what killed the company was their decision to charge for the browser while their monopolitic competidor was giving it away for free.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by tedunangst on Thursday October 04, 2012 @09:53PM (#4615330)
When a competitor undercuts your pricing with free, not doing anything for three years is unlikely to be the optimal response...
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by yuhong on Thursday October 04, 2012 @07:51PM (#4615024)
Actually the competitor deliberately did it in order to kill Netscape's business model. This also affected Opera too.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by ahupp on Thursday October 04, 2012 @05:52PM (#4614586)
I think this taking the wrong lesson from Netscape. If you do a greenfield re-write of a multi-million line application you probably are going to have a bad time, but people successfully re-write smaller applications or portions of an application all the time. Since this was just a portion of the total functionality of LinkedIn, they incurred much less risk than a ground up rewrite would have.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jes5199 on Friday October 05, 2012 @02:35AM (#4615913)
Don't rewrite the whole thing at once! Cut off logical sections and fix them one at a time.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by dmorgan on Thursday October 04, 2012 @05:58PM (#4614615)
>You will probably will get the same mess. There is plenty of literature about that. I.e: A complete rewrite is what killed Netscape

That's a meme started by a Joel Spolsky article, and maybe an allusion to the "second system effect" (which is about something else altogether). Hardly "plenty of literature about that".

Actually, the complete rewrite might killed Netscape, but it saved Mozilla and Firefox. And Netscape was a multi-million line web browser engine, with a javascript interpreter, a full mail client and a wysiwyg editor thrown in. And multi-platform in C/C++ to boot.

That is, something an order of magnitude more difficult than LinkedIn or 99% of web properties out there.

There have been TONS of successful rewrites. Especially in the web space, it's almost trivial to rewrite your webapp or parts of it. To name but a few:

Twitter, the new Digg, SoundCloud, Basecamp, etc etc.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by andybak on Thursday October 04, 2012 @06:21PM (#4614700)
It's got a slightly longer history than just being a Joel Spolsky meme: http://en.wikipedia.org/wiki/Second-system_effect
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by dmorgan on Thursday October 04, 2012 @07:04PM (#4614878)
Noticed how I already wrote about that? To quote:

"That's a meme started by a Joel Spolsky article, and maybe an allusion to the "second system effect" (which is about something else altogether)."

That said, the "second system effect" is not about merely rewriting risks, but especially about architecture and design choices. From the very wikipedia article:

"""People who have designed something only once before, try to do all the things they "did not get to do last time," loading the project up with all the things they put off while making version one, even if most of them should be put off in version two as well."""

That is, if you design your rewrite _without_ wanting to build a bigger, more involved product, but merely a cleaner and more cleanly made product, this does not apply.

Another quote from the very article: """The second-system effect refers to the tendency of small, elegant, and successful systems to have elephantine, feature-laden monstrosities as their successors."""

This is not the case we refer to here. The Netscape got by version 4 had gotten an ungodly mess (and even before that), not a "small, elegant" system. And Mozilla/Firefox, the rewrite, is cleaner and more elegant than Netscape was.

Consider a 100 line Python script. People can rewrite it from scratch in 100 different ways, while improving upon it with no problem. At some point of complexity this stops being true, but Brooks was talking about huge projects, built by enormous teams, like OS/360 and such. Not some 20K - 100K line web project.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by tedunangst on Thursday October 04, 2012 @06:34PM (#4614773)
the complete rewrite might killed Netscape, but it saved Mozilla and Firefox.

What do you mean?

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by dmorgan on Thursday October 04, 2012 @07:22PM (#4614936)
I mean that while Netscape, the company, succumbed while waiting to put out their new competitive browser, we now have the Mozilla Foundation and Firefox.

We wouldn't have those if it wasn't for the rewrite. The old code was a mess even before version 4 (by its developers own admission), and it could never get to the point of competing in the engine space ever again.

That is, with the old Netscape rendering engine it would not be possible to extend it to compete in the modern HTML5/Canvas/GPU acceleration/CSS3/add-ons/separate contexts for each tab/etc era.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jeremyjh on Thursday October 04, 2012 @09:09PM (#4615232)
And since we are talking here more about technology, and not business models, we should more or less regard the Netscape rewrite as a success story. They did NOT produce a system that was over-engineered or that failed to perform well. Indeed it took a tremendous amount of market share. Now of course they complain about the code again but the situation is far from desperate.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by Devilboy on Thursday October 04, 2012 @05:16PM (#4614451)
Is moving from Rails to Node not a complete rewrite?
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by tedunangst on Thursday October 04, 2012 @06:35PM (#4614775)
It doesn't count as a rewrite when the rewrite is in a language that's cooler than the original version.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by pyre on Thursday October 04, 2012 @05:58PM (#4614621)
They just wrote a Ruby interpreter for Node.js. Node.js is just that fast.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by OriginalSyn on Thursday October 04, 2012 @06:59PM (#4614865)
Where can I see this?
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jrockway on Thursday October 04, 2012 @08:51PM (#4615191)
You'll have to wait until April 1.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by ericcholis on Thursday October 04, 2012 @04:38PM (#4614262)
I'm with you on this one. I'm currently in the process of re-platforming and I'm noticing considerable gains just from revising the way certain process are done. You find a lot of "wtf was I thinking".
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by asianexpress on Thursday October 04, 2012 @04:17PM (#4614165)
My thoughts exactly -- going from 30 to 3 servers is no joke and it couldn't just be because of a move to node.js
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by benologist on Friday October 05, 2012 @01:38AM (#4615799)
Node has some pretty unique benefits, I save a good $1000/month from switching from .NET on dedicateds to NodeJS on a PaaS (Heroku), and that was after 2 - 3 years of writing and rewriting and optimizing the .NET stuff.

Biggest improvements came from persistant connections to redis/mongodb and polling for updated information independently of requests so there was no cached-or-fetch shenanigans at all in some areas.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by commentzorro on Saturday October 06, 2012 @03:22PM (#4621414)
>> " I save a good $1000/month from switching from .NET on dedicateds to NodeJS on a PaaS (Heroku)"

I'm really puzzled by this. A single dedicated large .NET box (16GB RAM and 6 Core Processor, 1TB raid, etc.) runs $150 a month. When I was looking at PaaS, Heroku came in more than five times that much for similar capability. $1,000 a month gets me SIX of these dedicated boxes that can be tied together as needed.

Why was your setup so much more for dedicated that you could _save_ that much, much less why you would be spending that much in the first place?

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by statictype on Friday October 05, 2012 @03:30AM (#4615989)
What were the benefits you saw in switching from .NET to Node? Was it in basic code structure/complexity or performance?

I'd actually be very surprised if NodeJS running on Heroku (which is built on EC2) performs better than compiled .NET code running on dedicated Windows hardware.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by benologist on Friday October 05, 2012 @04:38AM (#4616097)
The major benefits were persistant connections and background fetching of data - a lot of my requests serve data directly from local memory instead of hitting local or shared caches and databases.

The equivalent in .NET I guess would be BackgroundWorkers that are independently prefetching the data required most of the time but I could never get them to Just Work.

Specifically for my use case 99+ percent of requests receive some data, do some light manipulations and then push the data to redis about 8,000 to 12,000 times a second. With .NET I could only push to locally running software instances because anything remote couldn't keep up with the connection volume (without throwing even more hardware at the problem).

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by statictype on Friday October 05, 2012 @05:32AM (#4616211)
Interesting. Thanks for the answer. I'm a little surprised that .NET can't juggle network connections very well but in retrospect, I probably shouldn't be.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by benologist on Friday October 05, 2012 @06:07AM (#4616271)
I think it's just whatever .NET's doing to pool them that has some tiny bit of overhead that doesn't matter most of the time.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by gizzlon on Friday October 05, 2012 @05:15AM (#4616170)
Interesting.. how often do you pull from the db's? Do you think about it as a write-through cache?
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by benologist on Friday October 05, 2012 @05:55AM (#4616250)
Every 30 or 60 seconds + the data's timestamped so it's usually a pretty minimal refresh.

It's really just like using any memcached or the built in .net caching rather than a write through one, new data reaches each dyno either via the periodic refresh or when it tries to create that record and finds it already exists. Writes are done immediately and the caches don't get updated because there's 8 - 16 dynos and why bother updating the single dyno that created it.

I did originally use redis pub/sub to push out updates to everything but I ended up removing it because it was unnecessary.

Here's some example code, it pre-fetches all the leaderboards (not scores) every 30 seconds: http://pastebin.com/asq6eExu

Higher up in the same script is the api for the leaderboard data with stuff like: http://pastebin.com/gsfvsZsv

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by throwa on Friday October 05, 2012 @07:16AM (#4616405)
This article actually gives details of their first implementation which suggest that they could cut servers without switching to node :

http://ikaisays.com/2012/10/04/clearing-up-some-things-about...

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by fleitz on Thursday October 04, 2012 @06:26PM (#4614726)
Yeah as the article notes the old version used HTML and the new version uses binary blobs.

This is hardly surprising.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by lumberjack on Thursday October 04, 2012 @04:13PM (#4614140)
To be fair, Node.js isn't exactly harder to work with than Django or Rails. I myself had to choose between these about a year ago and despite the asynchronous paradigm I still found it relatively easy to start using in comparison to Rails and Django.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by astrodust on Thursday October 04, 2012 @04:43PM (#4614299)
Node.js is extremely hard to work with compared to Rails and moderately hard to work with compared to Django.

The Node.js ecosystem has a lot of potential, but the variety of off-the-shelf add-ons is severely limited compared to either of those more mature frameworks.

If you think Node.js is easy, you've never really experimented enough to understand what makes Rails so effortless. It's a lot easier to produce a production-ready application with Rails than it is with Node.js as it is today.

In four years, as Rails starts to add less critical features, Node.js may well have caught up.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by grandalf on Thursday October 04, 2012 @05:38PM (#4614536)
I used to think this until I built an app with node... every time I got to a point where I wanted a library or framework, a mature, well-supported one existed. Yes I had a bit of a learning curve since it was my first node app, but I was shocked at how smoothly it went and this was over a year ago.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by astrodust on Thursday October 04, 2012 @11:05PM (#4615501)
When you want a 100% solution and Node gives you a 95% one that 5% can be a deal-breaker. Node is nearly there, which is frustrating because it has so much potential, but it's just not yet.

I think in the long run Node will beat the pants off of Rails but it's going to take an enormous amount of work to make that happen.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by grandalf on Thursday October 04, 2012 @11:41PM (#4615583)
What's the missing 5%? I'm personally partial to sinatra so I might be missing it there also :)
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by astrodust on Friday October 05, 2012 @01:23PM (#4617759)
Sinatra is a lot closer to Node and Django than Rails in terms of philosophy. It's more minimalist, where you must assemble a lot of your environment rather than be issued one by default.

The missing 5% is mostly things that make your development process more effortless.

I've found that it's easy to get a first cut of an application out inside of two weeks with Rails, but you will probably need more time or lower expectations when working with something more limited like Django or Sinatra.

Since Rails imposes a lot of conventions, applications are easier to organize if you follow the rules. Sinatra is far more open to interpretation, so if you're not disciplined it can turn in to a bit of a mess.

I'm a big fan of the DRY principle and it's much easier to apply within Rails than in other environments. A lot of this relates to how Ruby is a lot easier to meta-program than other languages.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by erichocean on Thursday October 04, 2012 @05:16PM (#4614447)
Node.js is extremely hard to work with compared to Rails and moderately hard to work with compared to Django.

Pro tip: Don't put this on your resume.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by astrodust on Thursday October 04, 2012 @11:01PM (#4615492)
Coming from Rails, Node is like opening a toolbox and finding it has a screwdriver, a wrench, and a hammer. Somehow you're expected to build things with that.

For those that love to build things from the ground up or to carve out new solutions, Node is a great place to be. I think it's got enormous potential and is biggest opportunity since Python and Ruby took off around years ago.

Just don't think because you can create the same sorts of apps with Node that it's as easy.

Ruby on Rails even three years ago was laughable compared to today's toolset. Node is catching up quickly, covering ground faster than Ruby ever did, but still lagging.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by andybak on Thursday October 04, 2012 @06:23PM (#4614712)
Meaning?
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by mansoor-s on Thursday October 04, 2012 @05:46PM (#4614557)
made me chuckle
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jonpaul on Thursday October 04, 2012 @04:13PM (#4614144)
Why not write your code using Node.js because you actually enjoy using JavaScript? Or how about the convenience of writing in one language in your stack? Or how about the simplicity provided by not having to worry about threading per process?

If you already know Python or Ruby, then ya, using Node.js would be silly. But if you have to pick one because you're equally familiar with all of the languages, then Node.js isn't a bad choice at all.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by SoftwareMaven on Thursday October 04, 2012 @04:16PM (#4614158)
You'll note I explicitly said there are reasons to choose it. And if you choose it for those reasons, great. Just don't choose it because it will solve your Mazzerati problem. Choose it for your problems today.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by andersbreivik on Thursday October 04, 2012 @08:11PM (#4615093)
" because you actually enjoy using JavaScript? "

You sick bastard!

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by kin on Thursday October 04, 2012 @04:24PM (#4614198)
What I saw as a plus was that they combined front/back end teams into a single unit.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jeremyjh on Thursday October 04, 2012 @09:16PM (#4615249)
Am I the only person who doesn't believe this story? Because really, the whole reason we have front-end/back-end specialists is because front-end javascript ninjas can't learn RUBY??!?
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by kin on Friday October 05, 2012 @12:53AM (#4615717)
It's believable to me. The whole reason we have front-end/back-end specialist isn't because front-end js people can't learn Ruby but rather it's the same reason why front-end/back-end is separated code-wise.

Depending on how they're using node they could very well keep this segregation. But some implementations with node have server/client sharing code. I know I've seen examples of this. I imagine that's how they're doing things.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by ikailan on Friday October 05, 2012 @01:12AM (#4615757)
I don't think it's about the language - it's about knowledge. A backend specialist can learn Javascript but may not know the nuances of working with the DOM, or optimizing for pagespeed, or the important front end libraries. Similarly, a front-end specialist may not have all the experience necessary to diagnose problems in a deployment. That's one reason I don't buy the "front end developers can now do backend development because of node.js" argument. Any sufficient competent backend developer can start writing Python code in a day. What that developer doesn't get in a day is understanding deployments, popular Python libraries, the ecosystem, etc.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by kin on Friday October 05, 2012 @05:42PM (#4618815)
I'm not saying they've removed specialists. I believe they still exist. But in switching to node, because client/server shares a language, they're now capable of sharing code as well. Which is what I imagine they are doing, which is why it's logical that they've merged teams. This doesn't rule out that front/back-end specialists are removed and become well-rounded rather, they're just working together more.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jeremyjh on Friday October 05, 2012 @09:03AM (#4616674)
Exactly.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by todd3834 on Thursday October 04, 2012 @04:15PM (#4614153)
After reading the article, the fact that they cut servers was just one of the advantages they got from using node.js
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by markmm on Thursday October 04, 2012 @05:20PM (#4614464)
I would spend a little extra time upfront and save many many expensive rewrites latter on. Use C from the start, you won't need to rewrite just scale with hardware.

This argument that using Ruby (or any language that makes programming easy but runs like treacle) to get something out the door a few months earlier is bullshit, I would rather release something a few months later that I didn't have to totally rewrite down the line 10 times.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by SoftwareMaven on Thursday October 04, 2012 @07:22PM (#4614937)
Said with true engineering "vision".

The reason why "getting it out the door" is so important is because nobody behind the door generally has any idea about what people will really pay for. By making it fast (read: cheap) to make, if you find that you don't get it right, you can try again, and again, and again.

Now, you can argue that "they shouldn't be releasing without knowing they will be successful", but if they have the ability to see the future, they should just take that VC money and put it in the market. People like Steve Blank and Eric Ries have a lot of evidence how running most startups (software startups particularly) using a "build it and they will come" attitude is ripe with failure.

Now, if you are just building for fun, that's different. I knew a guy building a Dropbox clone in C. More power to him (though I wouldn't have touched it, because I think it is too hard to get security right all the time in a language like C).

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by markmm on Friday October 05, 2012 @05:30AM (#4616208)
I can turn around a project in a few months easily, and all my _running_ software will be C or C++. The secret is leverage and code generation (Where I will use a scripting language)
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by ollysb on Thursday October 04, 2012 @05:30PM (#4614500)
This would only make sense if you're working for an established company that can burn a few extra months early on. For a startup the runway might be too short. In this case you have no idea if your product is even going to exist a year later so it seems a bit premature to be worrying about the possibility of rewrites.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by markmm on Thursday October 04, 2012 @05:35PM (#4614525)
My experience is a software always takes much longer than expected, if your startup will fail if you run a few months over then you may as well go and place all your money on black at the casino. You need to get into a position were you can run 1 year over and still survive i.e. have other income while working on your startup.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jonny_eh on Thursday October 04, 2012 @05:50PM (#4614574)
But the odds of the thing you release actually getting used are low. So make it fast, and if it's a hit, then deal with that.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by markmm on Thursday October 04, 2012 @07:06PM (#4614885)
Wow!! your comment encapsulates the thinking of every wannabe startup loser that ends up smoking crack on some beach in San Francisco"

Will making it faster increase the chances of more people using it? Also this attitude of building shit products (Yes software is a product) because..well the chances are it will fail.. is precisely why so many startups fail. This is why you get one crapola startup after another........

"Show HN: Crap.ly -- we built this in 3 weeks using Ruby, it will scale up to 20 users before craping out, its a twitter scraper that connects to app.net and diaspora showing how much Money your Kick-starter project has made and includes quotes from Paul Graham about how to build a successful startup, because he has built so many"

Imagine Linus had built Linux using fucking node.js

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by drstewart on Thursday October 04, 2012 @08:17PM (#4615114)
Imagine your shock when you build your craptastic app in C++ and wonder why it's not any faster than a scripted app. I'll give you a hint ahead of time: most bottlenecks aren't processing time, they're DB or IO limited.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by jrabone on Friday October 05, 2012 @05:32AM (#4616210)
Not strictly true. In the bigger companies, everyone knows that DBs (which is really just a special case of I/O) and I/O are slow (we tend not to hire them if they don't - one of my favoured systems & arch. interview questions[1] is on memory/storage hierarchies). The more interesting problem is what ELSE you've traded off to eliminate I/O on the common path - and in many languages it turns out to be memory fragmentation and/or garbage collection time. In Java, stop-the-world GC pauses of multiple seconds are not unheard of, and it's no fun being Oracle's test bed for undocumented GC features. It's also no fun when you find out you can't restart your multi-gigabyte heap JVM because the underlying OS has fragmented RAM so badly it can't alloc that heap in a single contiguous chunk.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by markmm on Friday October 05, 2012 @05:37AM (#4616219)
This is something newbies repeat to justify their choice of a piss poor implementation. Sure with 10 users hitting your Rails app it might perform the same as Nginx with a custom C handler talking to a database written in C, but increase the load and soon your handing Amazon thousands a month on ec2 nodes while I am still on a small Linode. The funny thing is because of code gen and experience I can probably write my app faster than you dicking around with framework after framework
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by wpietri on Thursday October 04, 2012 @11:22PM (#4615541)
App speed matters some. But not nearly as much as a lot of other things. And when speed is the biggest problem, your users can tell you and the fixes are pretty straightforward.

The hard things to solve require a lot of user-facing iteration. Basically, the faster you can try new things, the more likely you'll get product-market fit before you run out of money.

My feelings on Rails are decidedly mixed, but fast prototyping is one of the things they got right.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by bgilroy26 on Thursday October 04, 2012 @07:23PM (#4614944)
You're not yourself when you're hungry.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by yxhuvud on Friday October 05, 2012 @02:02AM (#4615845)
What makes you think you know the problem space enough to make a C implementation that you won't have to rewrite 10 times? Writing in C certainly doesn't stop any rewrites at least where I work.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by flyinglizard on Friday October 05, 2012 @09:23AM (#4616741)
This. I'm as hardcore C programmer as they come and I still find it better to start with Python and reimplement in C when the application becomes familiar and finite. It's faster, easier and cheaper.

The basic notion is that every bit of code is better the second time its written, and C development is just too slow for the first iteration.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by andybak on Thursday October 04, 2012 @06:25PM (#4614722)
I look forward to seeing C as the go-to web-development language.

Really? C for a problem that is largely string manipulation and database access?

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by markmm on Thursday October 04, 2012 @06:58PM (#4614862)
Why are they moving from Ruby if it's just "string manipulation and database access"?

The problem is folks, as soon as you get a large number of users every compromise you made by using a toy language or database is magnified 1000 times. Google didn't implement in some scripting language to get to the market a few months early.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by JL2010 on Thursday October 04, 2012 @07:38PM (#4614981)
An excerpt from Google history:

----------------------------

Some Rough Statistics (from August 29th, 1996)

BackRub is written in Java and Python and runs on several Sun Ultras and Intel Pentiums running Linux. The primary database is kept on an Sun Ultra II with 28GB of disk. Scott Hassan and Alan Steremberg have provided a great deal of very talented implementation help. Sergey Brin has also been very involved and deserves many thanks.

-Larry Page pagecs.stanford.edu

----------------------------

There's something to be said about rapid prototyping and evaluation.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by adgar2 on Thursday October 04, 2012 @10:17PM (#4615381)
And now the real heavy lifting for Google web search is C++, as everybody with a clue knows. What's your point?
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by SoftwareMaven on Friday October 05, 2012 @12:06AM (#4615640)
The point is that most companies don't get to the point that the difference between C++ and Python matters. Worrying more about the business and less about the technology will be more likely to see you succeed than worrying more about the technology and less about the business.

I don't believe all companies can survive with a python or ruby solution. I do think that, as technologists, we worry too much about the "optimal" solution to technical problems when, in most cases, businesses are made or lost in people problems. People problems are really hard because there are few "right" answers. Instead, it is an optimization game, and optimization games require agility.

If you are that amazing at C or C++ that you can iterate amazingly quickly with them, then use them! That will give you a leg up later. I've been developing software for 15 years and have use everything from C and C++ to Java to Python to Objective C; and I've seen a massive difference in my ability to iterate with each of them.

Optimize for what works best for you, but don't be surprised if you choose C++ and a competitor who doesn't care about the "perfect" solution runs circles around you in the market because they chose something different (even if they re-write in C++ in 10 years, after they've stolen all of your customers).

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by markmm on Friday October 05, 2012 @05:41AM (#4616224)
How about worrying about both equally, if you still don't get it see Diaspora, great idea and lots of buzz, but implementation was shit and it was DOA.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by munificent on Thursday October 04, 2012 @07:42PM (#4614993)
That's because Google's initial product was CPU bound. Most web products aren't. Most of Youtube was and is written in Python.
Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by statictype on Friday October 05, 2012 @03:33AM (#4615998)
Google didn't implement in some scripting language to get to the market a few months early.

That's actually exactly what they did.

Re:LinkedIn Mobile Moved from Rails to Node: 27 Servers Cut ... by burke on Friday October 05, 2012 @09:03AM (#4616671)
I really need to quit reading HN comments. This entire thread is enraging. Both sides. Especially yours.