Help review my calculator Project

Hello fellow campers,

Please review my calculator project.

I am totally lost regarding how I might refactor my event handlers.

Thank you.

Something I noticed was that you defined operand and expression for every case. Have you thought about defining it once above with switch statement? If that works it will help remove a bunch of redundant lines from the code.

Edit:

Iā€™m referencing the calculator_keys variable above.

1 Like

Thanks @iamknox. The code needs to be refactored. too much repetition