Code smells in Ruby: "+= 1" https://github.com/defunkt/resque/blob/master/lib/resque/server/views/failed.erb#L21 …
-
-
@bascule ah, yea, thought you meant general ruby, not just erb -
@capotej I do mean Ruby in general. There's also Enumerator#with_index that covers most of the remaining cases -
@bascule tons of cases where i want to increment things outside of a loop, smell == always bad -
@capotej I don't think of code smells as "always bad", just a sign something is probably wrong and can be done better
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.