24

Have no idea what I did yesterday

Comments
  • 3
    That's a complicated nested if else conditioner. If you try to convert to if-else from trinary operator it might help you get the logic
  • 5
    This is a case where I would say optimize for readability...
  • 1
    I hope you were drunk... nothing else would explain that code style and method naming :P
  • 1
    Kids, this is why you should use conditional operators with precautions.

    From what I understand, it seems that you're trying to parse your input based on some preconditions. You could break this in small methods in order to gain readability and maybe find flaws in your current checks. Good luck with your refactoring 😏
Add Comment