4 ms·
it "should score 0 for gutter game" do 20.times { @bowling.hit(0) } @bowling.score.should == 0 end Wow, Ruby/RSpec really sucks. And by sucks I mean
by mannicken 18y ago
it "should score 0 for gutter game" do
20.times { @bowling.hit(0) }
@bowling.score.should == 0
end
Wow, Ruby/RSpec really sucks.
And by sucks I mean "reads like a natural language and rules".
- mtpark 18y agoWithout taking sides, why is this being voted down? Your opinion that this snippet reads like a natural language and is therefore useful is well taken.
- JeremyChase 18y agoI'm guessing it was downvoted because it was written in a snarky way. Personally I don't understand the need for code that looks like natural language. This is probably because I grew up in the world of C/C++, and I find php to be the most relatable. When I look at Ruby I have to think about what the heck they are talking about. Considering how popular Ruby is I have often thought of spending more time with it, but it is so slow I just can't get my head around bothering. PHP using opcode cachers(xcache) and a good webserver (lighttpd) will run very fast... Jeremy