15
kurtr
7y

This.

Not the worst but almost all of us (including me) handle strings like fucking morons.

If the input doesn't need to be an exact match we use a explicit comparison operator, when the input should explicitly match we do a loose comparison operator.

I'll format the crap out of a number, convert it, validate decimal places, check for float rounding hell, give it a absolute value and return it correctly formatted for the users locale but half the time I forget to trim their input. 🤦‍♂

Like I said - just a tad fucking moronic isn't it?

Comments
  • 4
    @fun2code I responded yes - it just pinned my lowercase response as little under enthusiastic and non-committal so it chose to abort mission.
  • 0
    Had that too, but only when connected via SSH.

    Edit: Also just the first time, when !!ing, it worked fine.
  • 1
    I have it sometimes too. Don't know why might be because an extra space or so. But kinda annoying.
Add Comment