47

This guy's calculator program in python has 20000 + lines of code

Link: https://github.com/AceLewis/...

Comments
  • 4
    I'm actually scared now.

    Just why would someone do this
  • 6
    Until you realise that repo has over 1500 stars 🤔
  • 0
    So much pain in 1 repo.
  • 5
    He created a generator for it.
    So, chill.
  • 8
    TODO on the top shows determination. I would hire him.
  • 6
    He's just precaching the results for faster execution. 🤷‍♂️
  • 5
    Worse, it's all ifs. So everything runs every time.
  • 0
    Interesting point is that it has 1.6K star and 40 issues has reported .
  • 0
    throw exception? for operations not supported
  • 0
    That's not even funny. That's just sad
  • 1
    But he forgot to create for -ve number , so sad it would have increased 20000+ line more 😎
  • 1
    poor thing
  • 0
    I don't know why but I really want to write a code generate the code.
  • 3
    My browser crashed when I opened the link 😂
  • 0
    Give me an Excel Sheet and automate writing that code for 16777216 lines in Seconds.
  • 1
    Hahahahahaha pathetic! I can do this in 10k lines or less by putting "if" and "print" on the same line! Developers these days
  • 2
    @LrdShaper I challenge you to do it with the ternary operator :D
    System.out.println(num1 == 0 ? (sign == '+' ? (num2 == 0 ? 0 : num2 == 1 ? 1 : num2 == 2 ? 2 : ....);
Add Comment