11

Took me an hour and a half to realize why my function wasn’t returning anything that made sense.

Forgot to put a negative sign in front of my negative bound.

Took me an additional hour and a half to solve for all the edge cases.

Relatedly, I should learn to sleep more.

Also, kind of proud of my notes application, but the tables go all funky in mobile and my CSS wizardry is .... not even amateurish.

I am so tired, I literally almost *signed* this.

Comments
  • 0
    A good type system would prevent this (:
  • 0
    @beegC0de Would it, though? I mean, I literally just had a number set to compare against a positive when I meant to compare it against a negative. I don’t even think type checking would have saved me in this instance. I mean, except that it would have just not been able to store the number because the whole point is that it’s too small to store in an int. Ah, I see your point.
  • 0
    @AmyShackles "cannot compare Natural number with Integer"
Add Comment