News for hackers. Stuff that matters.
Re:Today's Email Incident by bhauer on Tuesday March 19, 2013 @08:32PM (#5404719)
Recognizing that it is not politically correct in these parts to pose this question, I sometimes wonder if the Github team (which seems like a highly-skilled, competent team) regrets building on Rails.

It seems they have been able to use their high skill and competence to laboriously steer a bulky and (dare I say it?) heavily-engineered framework to serve Github as the modestly fast and fairly reliable site that it is.

But would not they be happier had the efforts exhausted on scale, reliability, and repair been available to spend building features had a faster, less confusing platform and framework been selected?

I know, it's antithetical or heretical to imply that Rails is anything but a model of efficiency.

Re:Today's Email Incident by tptacek on Tuesday March 19, 2013 @09:13PM (#5404906)
When Github started, they didn't just use Rails: they used Rails and shelled out to command line programs to integrate with git. If you have misgivings about engineering at Github now (I don't; I have the opposite of misgivings about they way they handle software), imagine a site built in the equivalent of shell scripts.

I think the short answer is probably, nobody at Github has a lot of macro-level regrets at this point.

I think the real issue is that the Rails community should be supremely grateful that they have a team like Github's building on the framework they've chosen. They all get to draft off the deployment/security/development/reliability work Github sinks into the platform.

And, painful though it will surely be for HN to hear this, snags like the one today are how frameworks eventually get to be solid. Spent much time looking at Java Spring's track record?

Re:Today's Email Incident by phillmv on Tuesday March 19, 2013 @09:48PM (#5405057)
I think people forget how transformative Rails was. When it came out it blew people away. We all make fun of the 15 min blog today, but at the time it was really impressive. Nowadays it's not so amazing by comparison because everyone's caught up.

Honestly, I think it's great that this all gets aired out in the open. The amount of transparency behind all of this is a breath of fresh air.

Rails has had its share of growing pains; it really sucks that a security patch had a regression and I think this gave people a lot of flash backs to the pre Rails 3 days. By the end of this, however, we'll end up having a solid security infrastructure.

I'm willing to wager that 90% of the time these kinds of issues just get swept under the rug and silently patched.

Re:Today's Email Incident by pjmlp on Wednesday March 20, 2013 @04:45AM (#5406180)
> I think people forget how transformative Rails was. When it came out it blew people away. We all make fun of the 15 min blog today, but at the time it was really impressive. Nowadays it's not so amazing by comparison because everyone's caught up.

This was true for young developers or people without the right experience developing web sites at the time.

Already in 1999 our company was using TCL framework built as Apache module that was quite similar to Rails. Following some designs similar to AOL Server.

We just happened to be in Portugal and never had the press coverage that Rails did.

By the time Rails appeared we had already moved into .NET/C++ to improve the scalability of our product.

The same scalability issues that Twitter, LinkedIn and other American companies found out with Rails while deciding to move to JVM based alternatives.

Re:Today's Email Incident by Argorak on Wednesday March 20, 2013 @09:36AM (#5407127)
Thats why he says transformative. Most of the stuff in Rails was "nothing new", but they got it all together in a package, relased it and _advertised why you should do stuff like that_.

The technology behind Rails is was nothing new, it was just very well applied in a fresh language.

Re:Today's Email Incident by rtwtlkj on Wednesday March 20, 2013 @08:10AM (#5406718)
>>This was true for young developers or people without the right experience developing web sites at the time.

Very true. Transformative my ass. I was already pretty efficient at building websites without rails.

Re:Today's Email Incident by nicholassmith on Wednesday March 20, 2013 @09:23AM (#5407042)
It was transformative, it just wasn't for you. It made me enjoy building websites significantly more than doing them with PHP and HTML did, and whilst there's always been other options none of them were as simple to get running as Rails.

I'm probably not the only one who found it transformative, you're probably not the only one who didn't, and that's fine. A piece of technology doesn't have to be useful to everyone to be transformative.

Re:Today's Email Incident by Martijn on Wednesday March 20, 2013 @08:20AM (#5406753)
What company in Portugal do you work for?
Re:Today's Email Incident by pjmlp on Wednesday March 20, 2013 @08:39AM (#5406825)
That company was called Intervento, before they were acquired by EasyPhone and together became what is known nowadays as Altitude Software.

I live in Germany nowadays.

Re:Today's Email Incident by sc0rb on Wednesday March 20, 2013 @06:36AM (#5406440)
I wasn't blown away. Nobody on my team was blown away. If you had pretty much no real experience then maybe you were blown away....
Re:Today's Email Incident by Jgrubb on Wednesday March 20, 2013 @07:22AM (#5406589)
What blows me away is just how many arrogant programmers there actually are out there..
Re:Today's Email Incident by sc0rb on Wednesday March 20, 2013 @07:39AM (#5406621)
I agree, it's massively arrogant to think your platform of choice was a real game changer because of your ignorance as to what other people were already doing.
Re:Today's Email Incident by mattmanser on Wednesday March 20, 2013 @11:18AM (#5407745)
I'd be interested on which MVC framework you feel in the web community changed the whole conversation on how to develop web applications before Rails became popular. Maybe you could school us on this alternate history?

Personally, I have a different recollection. I seem to remember the PHP MVC frameworks and ASP.Net MVC and and whatever the hell Java people use all came out because Rails and Django became popular. I do remember Django helped but as an outsider to the two frameworks I seemed to get the feeling Rails was clearly the thought leader.

Re:Today's Email Incident by sc0rb on Wednesday March 20, 2013 @12:43PM (#5408400)
The Java ecosystem had MVC a long time before .NET and a long time before rails mvc was even conceived. You seem to be missing a chunk of history.

Rails made MVC popular among lesser developers (bottom feeders, small projects, not much money - this may have changed now). A lot of organisations were using MVC as an enterprise design pattern a long time ago.

I think smalltalk devs were using the MVC pattern in the 80's and it's been in various Java enterprise stacks for a very very long time. It seems that everyone else caught up when being a low paid front end 'developer' became cool in the USA.

"Controller Model View Controller (MVC) is one of the most quoted (and most misquoted) patterns around. It started as a framework developed by Trygve Reenskaug for the Smalltalk platform in the late 1970s. Since then it has played an influential role in most UI frameworks and in the thinking about UI design."

- http://www.martinfowler.com/eaaCatalog/modelViewController.h...

Re:Today's Email Incident by fuzzix on Wednesday March 20, 2013 @04:11AM (#5406101)
"We all make fun of the 15 min blog today, but at the time"

I made fun of it at the time. "Great! Now audit and deploy it."

Re:Today's Email Incident by mickeyp on Wednesday March 20, 2013 @07:21AM (#5406586)
I remember building pseudo-blog-like thing with an ISAPI web application in Delphi with WebSnap back in... 2001? Simply by dragging and dropping components and filling in a few things like table names and columns.

Understand, that doesn't take away from Rails' achievements, but it does underline that people in tech, especially web stuff, have a very short memory.

Re:Today's Email Incident by danenania on Tuesday March 19, 2013 @10:47PM (#5405290)
It's become fashionable to hate on rails, and honestly I understand the motivation--it isn't cool and cutting edge anymore. It's slow. It doesn't do concurrency well. Ruby is nice for what it is, but it lacks the power and stability of functional languages, and lacks the performance of go or javascript on v8.

But rails is just doing what it's always done: trying to optimize developer productivity for front end web dev and routine web tasks. In this it's far ahead of the pack, and for many businesses, both small and large, this is exactly the right thing to optimize. Say what you want about github, but they push a lot of features and push them fast.

Rails is not for crafting algorithms, but when you need to crank out 6 new pages with various complex crud views and forms by Friday, and by the way can it be exportable to cvs and oh can you also do paypal and oauth integration and user avatars with thumbnails, and keep it all reasonably readable and organized... the sad fact is that for all of rails' heft and lack of cs cred, trying the above with any other framework after you know rails will drive you insane, because despite how great the language is or how many connections your server can handle, you are again and again spending days on things that take an hour in rails.

Ultimately, I don't think the way forward from rails is to search for a partial reimplementation of rails in some other language. Rails is the best we've got for rapid front end and shallow back end work. So use it for what it does well. For what it doesn't do well, use something else. Personally, I think it's silly to have an ORM written in ruby. ActiveRecord is for the most part a lovely api, but its guts should be a separate service written in go or something. Building a complex recommendation engine or game AI? Write clojure or haskell services. But when the data comes back and you need to dice it up and lay it out as html, with a hundred little ohs and ifs and buts, it's not a fun time without rails.

Re:Today's Email Incident by rtwtlkj on Tuesday March 19, 2013 @11:34PM (#5405463)
>>It's become fashionable to hate on rails, and honestly I understand the motivation

Well, they were pretty vocal about calling everybody, in no uncertain terms, for using frameworks other than Rub/Rails, an idiot. There is plenty of bad will that they've been accumulating because of that and this is simply the backlash.

If you really think you are the best there is no need to insult developers who do not use your frameworks. Unfortunately that is exactly what they did. People have long memories.

And in my opinion they deserve every bit of it.

The comment below by user mhartl demonstrates the attitude of pretending everybody else is shit.

>>Ah, so following Greenspun's tenth rule [1], perhaps we

>>have this:

>> Any sufficiently complicated web application contains

>> an ad hoc, informally specified, bug-ridden, slow

>> implementation of half of Ruby on Rails.

>>[1] http://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule

The nerve to call other frameworks bug-ridden as if their shit didn't stink. Specially in light of all the security problems with Ruby/Rails that have come to light recently.

Re:Today's Email Incident by philwelch on Wednesday March 20, 2013 @12:57AM (#5405735)
Who is "they"?
Re:Today's Email Incident by rtwtlkj on Wednesday March 20, 2013 @08:45AM (#5406852)
they=Ruby/Rails community
Re:Today's Email Incident by tomjen3 on Wednesday March 20, 2013 @02:54AM (#5405957)
I don't care about cool or cutting edge or even performance. I hate rails because it is built by people with no understanding of security.

But most of all I hate it because it uses so much magic.

Re:Today's Email Incident by danenania on Wednesday March 20, 2013 @05:48AM (#5406314)
Well, the magic is what enables the big productivity boost. It's a higher risk, higher reward approach. In some domains that added risk is unacceptable, but for many applications it's a very worthwhile tradeoff.

I think often when people say "I hate rails", they are really saying, "I hate building the types of apps that rails excels at". Which is fine, and makes sense, because rails excels at making apps that can be very cool and innovative on the product side, but are usually pretty boring on the engineering side--it doesn't really get interesting for the engineers until it's time to start replacing the lower level tiers of rails with something else. And while secure best practices are certainly stressed (and included as defaults), conservatism isn't seen as a valid reason to hold up progress. So you get both the speed and the occasionally bumpy ride that strategy entails.

Re:Today's Email Incident by entropy_ on Wednesday March 20, 2013 @08:28AM (#5406780)
That has nothing to do with it whatsoever. They specified why they hate about rails, the magic. Personally, I simply cannot stand magic in frameworks I use. That's because I don't become truly productive when using a framework until I fully understand how everything works.

It is not enough that it does work, I have to understand how it does. Otherwise, I'm constantly bogged down when implementing every single feature thinking about possible security and performance issues down the line. The performance thing might be premature optimisation in some cases, but the security definitely is not.

That's why I hate when frameworks or IDEs have so much magic -- I'm looking at you Xcode, I can't count the times I was wondering if a particular statement would cause a memory leak or not before I finally understood most of the related magic Xcode and the toolchain for iOS dev do.

For me at least, magic saps my productivity, it doesn't boost it. It also offers a steeper learning curve to proper mastery to get to that point where I'm actually productive. So yes, I haven't tried ruby on rails but I can definitely see myself hating it if it has too much magic.

Re:Today's Email Incident by manojlds on Wednesday March 20, 2013 @11:50AM (#5407981)
I can somewhat relate to what you say, and that is perhaps why I prefer Django, as it has just the right amount of magic for me.
Re:Today's Email Incident by tomjen3 on Wednesday March 20, 2013 @01:37PM (#5408828)
Have you taken a look at the play framework? Yes it is inspired by rails, nearly as productive and very little magic.

I don't get why you think I must secretly hate what rails is used for -- I don't, at all. And yes when rails was written the productivity was so much better than its competitors, rails was the choice.

Today, not so much. Don't get me wrong if it is an internal wiki or other system then rails makes sense, since if you get hacked you can always find the guilty person.

As for conservatism? Dude I write HTML5 games for a living and I am not arguing for JSPs here, just Play or Django or Sinatra (Ruby is great, don't get me wrong) but Magic is going to bite you at some point.

Re:Today's Email Incident by danenania on Wednesday March 20, 2013 @08:41PM (#5411902)
I haven't personally looked at the play framework, though a former colleague who is steeped in both rails and scala did a pretty thorough comparison a few months back. He is definitely not a rails partisan, and much prefers scala to ruby as a language, but his conclusion was that while play has a solid core and does many things right (including some things better than rails), it comes up short on convenience and utility functions, templating, and ecosystem.

I think the ecosystem in particular is an area where rails magic makes it possible for the community to create very powerful gems that just work, and is probably where the most time is saved vs. other frameworks that have more of an explicit bent. I understand the skepticism towards the implicit approach--it has certainly bitten me before, and I try to minimize magic in my own rails code wherever possible--but again, if you're optimizing for productivity, it can be a worthwhile tradeoff.

Take devise as an example. Despite using all kinds of implicit and convoluted magic underneath, it can save huge amounts of time, especially early in a project, and is well tested and proven in the community. I'm not aware of a lib in any other framework that can handle so many boring authentication issues (sessions, roles, encryption, email confirmation, lockouts, remember me, forgot password flow, session expiration, redirect flows, etc. etc.) with such minimal code and configuration.

Sorry if I put words in your mouth. I do think a framework like play has more conservatism in its blood, which is great. It's good that there are other options for when security, stability, and scalability are at more of a premium than developer productivity .

Re:Today's Email Incident by ssmoot on Thursday March 21, 2013 @09:54AM (#5414997)
Favoring Ruby over Scala... Insanity! ;-)

But seriously, maybe your friend just wasn't all that well versed in Scala. I'm no pro (yet), but on the topic of Utility functions, I haven't run across any big holes. The Collections API is very Fluent (in the Martin Fowler terminology describing Ruby's Array), so it's hard to fault that. In fact, it goes quite a bit farther.

You have Option, Try, Either to use FP in a way Ruby-only programmers probably won't ever grasp. I certainly didn't. I've never seen any real Ruby code that comes close to a foldMap (foldLeft(Tuple2[Accumulator, Map])), or a Try pattern match, or (you could go on and on...).

Templating I don't get unless you're wed to HAML maybe. There are similar libraries for Scala, but it's hard for me to imagine someone being able to compare Twirl (Play's templating) to ERb and declaring ERb superior on any metric. Twirl is arguably simpler, definitely far faster, has no identifiable magic, and Scala+Twirl makes it silly easy to avoid a whole class of common problems with branching logic (hello id=4 my old friend!).

Play has First Class Forms. Rails doesn't. I'm sure Rails will some day. Declarative data binding is simply better. Safer, simpler, provable correctness.

I'd give Play a second look. :-)

To be fair, the one gap I've come across is in String manipulation. A few minutes of googling and a little tweaking and I've got a quick slugging function though: https://gist.github.com/sam/5213151

And then there's stuff like writing:

  10 seconds
Which makes me giggle a little inside every time I write it. :-D

On the other end of the spectrum, there's all the things Play gives you Rails doesn't: Futures. Actors. Async. Chunked Responses (which maybe Rails 5 will have?). WebSockets. Awesome XML (it's nice to use a lib that does not suck if you have to deal with it). Better JSON support. Functional Programming. Pattern Matching. Performance. Built in (Memory) Cache Concurrency. Functional Testing with Selenium. A built-in production ready web-server. Continuous Testing. Deployment Packaging. Bootstrap. LESS compilation. SBT: A single tool that provides file system watchers, Tasks, compilation, packaging, dependencies (including Git). All the JARs a Jar Jar could Jar if a Jar Jar could Jar Jars.

The only significant downsides I've run into are:

1. Sharing your code as a package is harder. Much harder. Nexus isn't nearly as low friction as rubygems.org. 2. Binary Compatibility concerns means sometimes your best option is a source dependency.

Git dependencies have been a good solution to #1 for me so far, but I know the day will come when I'll have to figure out hosting on Maven Central.

Re:Today's Email Incident by rimantas on Wednesday March 20, 2013 @04:18AM (#5406116)
What makes you think RoR was built by people with no understanding of security? Rails was one of the first frameworks to do things right (CSRF protection comes to mind).
Re:Today's Email Incident by batiste on Wednesday March 20, 2013 @06:06AM (#5406354)
I was looking for the date when RoR changed their templating so it always output sanitized content and I found this:

http://stackoverflow.com/questions/698700/escaping-html-in-r...

Correct me if I am wrong but it seems to me that RoR still isn't shipped with a safe default?

Edit: RoR added auto-escaping around February 2010, Django had it since November 2007

http://yehudakatz.com/2010/02/01/safebuffers-and-rails-3-0/ https://code.djangoproject.com/wiki/AutoEscaping?x=52&y=...

Re:Today's Email Incident by grey-area on Wednesday March 20, 2013 @06:47AM (#5406476)
You're wrong. It has auto-escaped since Rails 3.

http://yehudakatz.com/2010/02/01/safebuffers-and-rails-3-0/

Re:Today's Email Incident by rscale on Wednesday March 20, 2013 @06:48AM (#5406480)
Rails changed the default to safe output about three years ago. 3.0 escaped output out of the gate, and 2.3 switched the default in the 2.3.6 neighborhood.

Prior before that, the standard way to sanitize html output was to write <%= h foo %> instead of <%= foo %> in your templates.

Re:Today's Email Incident by tomjen3 on Wednesday March 20, 2013 @01:41PM (#5408855)
Their (abuse) of the Yaml parser. It is one thing to use a potentially dangerous parser on a file that you aren't going to let anybody touch either (your database config); it is downright stupid to use a dangerous parser on untrused user input (json) a format it shouldn't even parse to begin with.

And as of late tons of similar bugs have been found. CSRF and database parameterization was well known issues when Rails was written, so yeah props for that. It is just not enough anymore.

Re:Today's Email Incident by eru on Tuesday March 19, 2013 @10:59PM (#5405332)
Intereting. Your arguments sound a lot like the usual arguments in favour of PHP.
Re:Today's Email Incident by sc0rb on Wednesday March 20, 2013 @06:38AM (#5406444)
All that stuff by Friday... I can do that in Java / Spring. It will also be high performance, extendable and maintainable.

Rails brought very little to the table in that respect. Not to people who actually know what they're doing anyway.

Re:Today's Email Incident by jimbokun on Wednesday March 20, 2013 @12:01PM (#5408077)
Are you using the same Java/Spring I'm using?

Would be nice to see some side by side code of Rails and Java/Spring doing roughly the same things, both written by people experienced in those technology stacks. These debates aren't very useful without code to look at.

Re:Today's Email Incident by sc0rb on Wednesday March 20, 2013 @12:38PM (#5408356)
I'm sure Rails would be less code and quicker to production. That's not to say that it can't be done quickly in Spring - Java.

The whole 15 min blog thing is a good example of fast Rails, it's also a good example of non production ready i.e. maintainable and extendable, rails.

Re:Today's Email Incident by sitharus on Tuesday March 19, 2013 @08:36PM (#5404733)
I've stopped building on Rails because of things like this. Point releases shouldn't break functionality. I got tired of regression testing my apps for framework changes.
Re:Today's Email Incident by voidlogic on Tuesday March 19, 2013 @08:45PM (#5404775)
When I read the blog, the first thing I thought was "boy am I glad I don't use rails". I realize all frameworks and toolkits have issues, but Rails seems to be particularly bad.

I think the big take away here is the importance of apparently redundant sanity checks....

Re:Today's Email Incident by sitharus on Tuesday March 19, 2013 @08:53PM (#5404814)
They all have issues - sure - but I've never encountered one so likely to break so spectacularly. Then again, it feels like ActiveRecord is a more complex beast than most others I've used.

I've mostly used Hibernate and NHibernate, and SQLAlchemy a few years ago.

Re:Today's Email Incident by shurcooL on Tuesday March 19, 2013 @08:47PM (#5404783)
What would be some potential alternatives?
Re:Today's Email Incident by voidlogic on Tuesday March 19, 2013 @08:56PM (#5404828)
To rails? Thousands- so much depends on what exactly you need.

  Python? Django, Tornado, Twisted, etc
  Go? "net/http" + Gorilla (http://www.gorillatoolkit.org/)
  Java? JSF 2.0, GWT, Spring, Tapestry, etc etc
  C#? ASP.NET MVC
This list could be almost infinite... or at least could be discussed infinity :)
Re:Today's Email Incident by tptacek on Tuesday March 19, 2013 @09:38PM (#5405004)
Any suggestion that implies Golang + Gorilla is comparable to Rails is poorly informed (and I really like Golang).

"You know what you could do instead of using Rails? Implement your own ad-hoc version of 60% of Rails!"

Re:Today's Email Incident by voidlogic on Tuesday March 19, 2013 @10:50PM (#5405301)
I don't think that is fair; I did say "so much depends on what exactly you need."

Maybe you don't need to whole kitchen sink. Also its not as though there are not other Go libraries to get other functionality from such as DB/ORM functionality.

Re:Today's Email Incident by tptacek on Wednesday March 20, 2013 @04:47PM (#5410167)
What's a good Golang ORM that you could use in a production app?
Re:Today's Email Incident by cmccabe on Tuesday March 19, 2013 @11:24PM (#5405421)
If people want something like Rails in Golang, it probably makes more sense to point them at Revel. Gorilla is more like Sinatra, for better or for worse.
Re:Today's Email Incident by objclxt on Wednesday March 20, 2013 @06:36AM (#5406441)
Yeah, I don't think Gorilla or Revel are quite mature or stable enough at this point to consider as a Rails replacement. And I'm speaking as a (extremely minor) Revel contributor - it's still very young, early adopters only!
Re:Today's Email Incident by cmccabe on Monday March 25, 2013 @12:44AM (#5435536)
Web years are a little bit like dog years. I feel like Revel will grow up fast.

For the record, I have written some Go, but not worked on Revel specifically.

Re:Today's Email Incident by kibibu on Tuesday March 19, 2013 @09:20PM (#5404931)
I've started a side-project using Go + Gorilla. It's actually very nice, but I don't think it's quite as productive for the early-stage as Rails is.

I can certainly recommend Django - I've been working with a large-ish Django codebase for 3 years and have yet to see a security vulnerability as bad as the ones Rails seems to have every month.

Re:Today's Email Incident by sitharus on Tuesday March 19, 2013 @08:54PM (#5404821)
ASP.NET MVC works pretty well these days. It's open-ish source as well, as in you don't need to pay to deploy it on Mono.

I've used it with NHibernate for the ORM and Postgres.

Re:Today's Email Incident by manojlds on Wednesday March 20, 2013 @11:58AM (#5408051)
And don't forget the Web API http://www.asp.net/web-api
Re:Today's Email Incident by gnuvince on Tuesday March 19, 2013 @09:44PM (#5405037)
Re:Today's Email Incident by eranation on Tuesday March 19, 2013 @08:53PM (#5404813)
Play framework, Grails, Node, Django, Revel...
Re:Today's Email Incident by cgh on Tuesday March 19, 2013 @09:14PM (#5404912)
While fully realising that the language itself is pretty terrible, Java + Spring + JavaMail is a pretty good framework and as a bonus involves minimal XML these days.

I'm sure one of the alternative JVM languages would make this setup tolerable to work with, even pleasurable, but I don't know them.

Re:Today's Email Incident by Siecje on Tuesday March 19, 2013 @08:50PM (#5404804)
Django?
Re:Today's Email Incident by Freaky on Wednesday March 20, 2013 @12:06PM (#5408113)
Sinatra and Padrino are some of the more common Ruby alternatives, especially for smaller sites.
Re:Today's Email Incident by ahmadss on Tuesday March 19, 2013 @09:47PM (#5405051)
google app engine (based on python)
Re:Today's Email Incident by draegtun on Wednesday March 20, 2013 @03:35PM (#5409634)
Mojolicious - http://mojolicio.us
Re:Today's Email Incident by throwawayG9 on Tuesday March 19, 2013 @10:17PM (#5405182)
Symfony2
Re:Today's Email Incident by CamperBob2 on Tuesday March 19, 2013 @09:31PM (#5404974)
I got tired of regression testing my apps for framework changes.

I get tired of paying taxes and brushing my teeth, too, but I still do it, because life will get worse in a hurry if I don't.

Re:Today's Email Incident by j_s on Wednesday March 20, 2013 @07:59AM (#5406674)
Trying to understand where you're coming from here... I should write tests for every portion of the .NET Framework my app uses because it might break on a security update?
Re:Today's Email Incident by CamperBob2 on Wednesday March 20, 2013 @03:48PM (#5409712)
If Microsoft had a history of breaking things with .NET framework security patches, then yes, absolutely. That's what people are saying happens with Rails, isn't it?
Re:Today's Email Incident by rtwtlkj on Wednesday March 20, 2013 @07:54PM (#5411599)
What are you, crazy? No, what you do is that you jump ship.
Re:Today's Email Incident by Kudos on Wednesday March 20, 2013 @05:49AM (#5406315)
I think he's probably talking about dealing with the fallout from failed tests rather than the tests themselves.
Re:Today's Email Incident by 33degrees on Tuesday March 19, 2013 @10:18PM (#5405185)
To be honest, I've had a lot more problems with gems external to rails than problems with rails itself; and this particular case seems like an issue that should have gotten caught via testing.
Re:Today's Email Incident by dubcanada on Tuesday March 19, 2013 @10:11PM (#5405162)
Github is not a website in the normal sense. Github is a layer over top of Git. One of the best wrappers for libgit/what ever there is (regardless of Language) is the Ruby rugged library which Github pretty much built. Before that was grit which was also Ruby based. And what Github was built on.

Everything else is just extra they added on. Their core product is a Web based Git.

But I sometimes wonder this as well, I love Ruby a ton. But I wonder how Github would have done had they used another language PHP, Python, Lua what ever.

But then again the same thing can be said about Facebook, would they need less servers if they switched to another language?

Re:Today's Email Incident by niggler on Tuesday March 19, 2013 @08:48PM (#5404789)
"regrets building on Rails."

I'm surprised they haven't tried to build their own framework / programming language (like Facebook with HipHop). It wasn't a bad idea to start with rails, but now they subject themselves to the issues of Ruby and Rails without an alternative

Re:Today's Email Incident by jaggederest on Tuesday March 19, 2013 @10:10PM (#5405155)
Why would bringing a framework in house be better than using open source?

I'm confused by all these people that thing 'Rails is crap, clearly people should roll their own everything since that will be more reliable and better engineered'

If you think Rails is crap, the only answer is to look to 'more mature' platforms, not roll your own. Spring/Hibernate might be a reasonable answer. Django is not, being at a very similar level of maturity. Nothing in PHP even begins to approach the level of maturity.

Software engineering is hard. Really hard.

Re:Today's Email Incident by niggler on Tuesday March 19, 2013 @10:26PM (#5405221)
No software is a panacea. Decisions are made which favor some use cases over others.

When you are as large as google or facebook or github, those decisions which don't naturally mesh with your workflow become more painful over time. And when you have enough in-house resources, the cost to working with the existing solution far exceeds that of extending it on your own or building your own.

Hiphop is a good example where Facebook saw certain things they wanted to optimize in PHP, and it made far more sense for them to work on their own thing (many of those decisions underlying hiphop make sense for facebook but not for most companies deploying PHP)

Re:Today's Email Incident by nonamegiven on Tuesday March 19, 2013 @09:31PM (#5404972)
I sometimes wonder if a good alternative to django/rails is to use the most minimal framework that's reasonable to start with, and then gradually customize it away.
Re:Today's Email Incident by mhartl on Tuesday March 19, 2013 @09:36PM (#5404985)
This actually sounds like a promising idea, though only if you've got insane dev chops on the founding team. In the Ruby world, Sinatra would be the obvious place to start. On the other hand, you might just end up reinventing Rails.
Re:Today's Email Incident by larrywright on Tuesday March 19, 2013 @10:08PM (#5405149)
I love Sinatra, but there's a long-running joke that if you look at the source for any Sinatra application with even a little complexity, you'll find a half-baked re-implementation of Rails inside. I've built apps like that and it's definitely not an exaggeration.
Re:Today's Email Incident by mhartl on Tuesday March 19, 2013 @11:06PM (#5405355)
Ah, so following Greenspun's tenth rule [1], perhaps we have this:

  Any sufficiently complicated web application contains 
  an ad hoc, informally specified, bug-ridden, slow 
  implementation of half of Ruby on Rails.
[1] http://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
Re:Today's Email Incident by jaggederest on Wednesday March 20, 2013 @12:31AM (#5405647)
That was my road to Ruby: Developing in PHP "mvc" frameworks. Even had a PHP active record implementation. Create function was used heavily ...

http://php.net/manual/en/function.create-function.php

Re:Today's Email Incident by larrywright on Wednesday March 20, 2013 @02:11PM (#5409049)
That's probably almost the exact quote I saw :)
Re:Today's Email Incident by Argorak on Wednesday March 20, 2013 @04:24AM (#5406132)
Yep, especially as there are sinatra stacks that already do that for you in a sane fashion, e.g. Padrino.

Also: yes, building from minimal makes you appreciate the work that big frameworks have already done.

Re:Today's Email Incident by nathansobo on Tuesday March 19, 2013 @09:50PM (#5405063)
Tried it. You spend way too much time solving problems that are already easily solved in the existing larger ecosystems.
Re:Today's Email Incident by tlarkworthy on Wednesday March 20, 2013 @08:24AM (#5406768)
Yes indeed, and also leaves everyone in the muck when the lead dev leaves. Your left with a load of code you had wish you had documented as well as the previous frameworks. The value of existing frameworks is the documentation and stack overflow answers.
Re:Today's Email Incident by jrockway on Wednesday March 20, 2013 @01:22AM (#5405799)
Rails isn't the problem. If it wasn't this bug that caused the emails to be exposed, it would have been some other bug. The problem was that there wasn't enough test coverage, and there weren't enough runtime assertions to shut off failing software. (if to_emails > 10: logging.fatal("Sending message to too many emails %s", to_emails))
Re:Today's Email Incident by kaoD on Wednesday March 20, 2013 @06:29AM (#5406422)
So if I'm driving my car and the accelerator pedal gets stuck... it's my fault for using the pedal without proper extensive testing? Even if the pedal got stuck after fixing my door locks because the manufacturer stuck the pedals as a side effect with no previous notice?

There is no excuse: change of behavior shouldn't happen when installing security patches, specially if it's not mentioned anywhere in the patch release notes (which were reviewed by the GitHub team).

Okay, I get your point, they should have tested it, you're right, but saying that Rails is not the problem is kind of being in denial.

Re:Today's Email Incident by jrockway on Wednesday March 20, 2013 @07:05AM (#5406539)
It's more like taking a homebuilt experimental aircraft out for its first test flight. When the engine blows up 30 seconds into your flight and you crash into a house, you'll probably wish you turned the thing on on the ground before actually flying it. Sure, the engine was faulty, but any of the parts could have caused the failure. The root cause was that you didn't even try to see if the thing worked in safe conditions.
Re:Today's Email Incident by kaoD on Wednesday March 20, 2013 @07:21AM (#5406587)
Security updates are not experimental! They're security updates.

If it works fine and it breaks with a security update then it's the framework maintainer's fault.

Re:Today's Email Incident by jrockway on Wednesday March 20, 2013 @07:35AM (#5406613)
Like I said: yes, the engine failed, and the engine shouldn't fail. But it's unreasonable to expect that if only the engine had continued working, the test flight would have gone fine.
Re:Today's Email Incident by entropy_ on Wednesday March 20, 2013 @09:13AM (#5406981)
This is not a product that is marketed as something still in testing. Rails is supposedly mature by now.

A closer analogy would be if you were an airline and a technician from Boeing made some Boeing-recommended safety changes on a plane before it took off and then the engine blew up.

Sure, you should have had proper oversight of what said technician was doing but the bigger part of the blame is on Boeing for a faulty safety change.

Re:Today's Email Incident by jrockway on Thursday March 21, 2013 @08:28AM (#5414542)
I'm not talking about Rails, I'm talking about Github's mail-sending program. Rails is the engine. The email sending script is the experimental aircraft.

Blame Rails, I'm fine with that. But it's not going to prevent a serious problem with the email sending script in the future. To do that, you need to write some tests.

Re:Today's Email Incident by marshray on Wednesday March 20, 2013 @11:59PM (#5412809)
So with Rails, applying security patches is "like taking a homebuilt experimental aircraft out for its first test flight".

Hmm, I don't think I want to start my next commercial airline business on Rails.

Re:Today's Email Incident by tedchs on Thursday March 21, 2013 @11:19AM (#5415619)
FWIW, popular advice for TDD is "don't test the framework, test your own code".