42

!rant
Something that has probably stuck with me the most and has changed how I think about things:

"If you can't think of at least 3 different ways to approach an issue, you do not fully understand it yet."

Comments
  • 0
    @akd5010 OK, a test :)

    What are 3 different ways to solve 1 + 1? And of course, some contraints:
    -base 10 number system
    -using different objects/symbols to represent 1 is still the same way
  • 0
    @allanx2000 requirements not clear, built a string concatenate function instead :)
  • 0
    @deMark ?? how would a string concatenate function help?
  • 1
    @allanx2000 if the input are strings then 1+1=11

    Also https://www.devrant.io/rants/406036

    Edit: it's technically still a solution, not necessarily the right one or what the person wanted...
  • 0
    @deMark true but syntactically, there are no quotes and the base 10 constraint implies it's a number!
  • 3
    @allanx2000 welp....here goes...method #1 - "left to right" addition (adding the numbers up on the left first, then working your way to the right).
  • 1
    @allanx2000 method #2 - "right to left" addition (adding the numbers up on the right first, then working your way to the left).
  • 1
    @allanx2000 method #3 - "rounding to the highest ten" addition (rounding each number up to the highest ten, adding those for simplicity, then subtracting the difference of the numbers you added to get each number to the highest ten).
  • 0
    @allanx2000 there you go, 3 different ways of adding 1 + 1. Now, they may look silly, since you picked such small numbers....but, still was able to do it. It's ok though, you just didn't understand your own question fully (yet), as hypothesized 😉
  • 1
    But in all seriousness, this is just a way to think of issues in general. At our current jobs, our daily problems are typically harder than an addition problem. The concept just makes me make sure I understand what's going on ☺
  • 1
    @akd5010 thanks for responding to the challenge. I had a feeling you'd use transitivity as one of the alternate solutions.

    Usually for me, I understand mostly it and brute force, then send it back to the user for "adjustments". Because the user never knows what they actually want... until they get something they can criticize.
Add Comment