News for hackers. Stuff that matters.
Re:C++: A language for next generation web apps by icefox on Tuesday January 26, 2010 @09:54PM (#1079624)
RubyOnRails is very test gunghu, but to run a hello world test takes seconds, anyone know why? This seems very odd. Is this one of those do what I preach, not what I do things?
Re:C++: A language for next generation web apps by techiferous on Tuesday January 26, 2010 @10:40PM (#1079690)
I doubt it takes seconds to test a hello world program in Ruby. However, to test a hello world Rails application is a different story, as you have to start up the web server, which takes seconds (even though it eventually just serves a simple page).
Re:C++: A language for next generation web apps by maurycy on Wednesday January 27, 2010 @03:31AM (#1080137)
Not necessarily the web server.

Standard `rake test:units` (or even `ruby test/units/model_test.rb`) takes the whole Rails stack so it adds up.

Re:C++: A language for next generation web apps by techiferous on Wednesday January 27, 2010 @10:58AM (#1080736)
You're right and I agree. But let's be careful not to equate Rails with Ruby. Rails tests may have a slow startup time, but Ruby tests do not and other Ruby web framework tests may not.
Re:C++: A language for next generation web apps by fauigerzigerk on Wednesday January 27, 2010 @04:53AM (#1080222)
Because if "performance doesn't matter" is repeated often enough people actually start to believe it, and if enough people believe it, it becomes false. Is there a name for this logic? :-)
Re:C++: A language for next generation web apps by Luyt on Wednesday January 27, 2010 @06:28AM (#1080294)
Confirmational Bias followed by a Self-fulfilling Prophecy. But you knew that and I think your question was purely rhetorical ;-)