News for hackers. Stuff that matters.
Re:"People writing Rails apps without tests are idiots." by menloparkbum on Friday February 08, 2008 @08:49PM (#112472)
losers like this are why I quit using rails. well, that and the whole ungodly slowness thing.

rails doesn't provide any facility for testing the stuff that is actually hard to test - the frontend javascript/flash/ui layer. it makes it easy to test stuff that shouldn't need testing.

Re:"People writing Rails apps without tests are idiots." by fendale on Friday February 08, 2008 @09:44PM (#112501)
Software that doesn't need testing - that doesn't exist I am afraid.

The UI is a different ball game (and as browsers evolve it will continuously change), and there are tools out there to solve it in some way or another. With the Rails tests, at least you have confidence that your backend is correct which is probably 80% of the battle.

Also, the value of automated tests in general is to give you confidence that the small change you just made didn't break something else!

Re:"People writing Rails apps without tests are idiots." by nostrademons on Friday February 08, 2008 @11:41PM (#112560)
I wouldn't test a pure CRUDscreen put-data-on-the-screen app. How would it break? The app is basically a specification of the data you want moved from database to the web page.

And with the apps I've worked on, about 80% of the battle was the UI. The backend was usually pretty simple data storage. That could be because my career has been largely UI-centric, but there are certainly apps out there where the UI code is more complex than the computation itself.

Re:"People writing Rails apps without tests are idiots." by pius on Friday February 08, 2008 @09:41PM (#112498)
losers like this are why I quit using rails.

Yeah, this blog post was definitely inflammatory . . .

well, that and the whole ungodly slowness thing.

That's pure FUD -- it's nowhere near as slow as you imply.

rails doesn't provide any facility for testing the stuff that is actually hard to test - the frontend javascript/flash/ui layer.

That's not true. Every popular testing library for Rails (stock or third-party) has view testing. I noticed you threw in Flash. Do you really expect your web application framework to test your Flash files? What would that look like?

it makes it easy to test stuff that shouldn't need testing.

Your domain modeling, controllers, and all-around application logic shouldn't need testing?

Re:"People writing Rails apps without tests are idiots." by nostrademons on Friday February 08, 2008 @11:37PM (#112559)
That's what JSUnit/AsUnit/Selenium is for...
Re:"People writing Rails apps without tests are idiots." by kschrader on Monday February 11, 2008 @05:37AM (#113302)
We test our front end using Selenium across multiple browsers every time we do a build.

I guess we'll just have to disagree on whether or not there's software that doesn't "need testing"