Help review my calculator Project

Help review my calculator Project
0.0 0

#1

Hello fellow campers,

Please review my calculator project.

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

Thank you.


#2

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.


#3

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