Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Fast-Nop1900721dOnce the null guard has failed, is it being checked again in the error code path? If so, why?
12bitfloat354721dI call it the stackoverflow syndrome
Because fuck doing actual work if finding meaningless "errors" in someone else's work takes way less effort
pk76133721d@12bitfloat yup, that's the exact kind of toxic bullshit I expect from over there.
I once had to write a script in Ruby, which I know nothing of. Wasn't any longer than 300 SLOC, but it HAD to be in Ruby. Ran into problems with a function that expected an array, and was sometimes being called with a single value, in a situation where in strongly typed languages it would always be passed an array of a single element. Not knowing about the splat operator I asked on SO. Top voted answer: your code isn't working because you're passing it a single value.
No shit, I said that in the question. _why_ is it a single value and _how_ do I deal with it.