Hello fellow campers,
Please review my calculator project.
I am totally lost regarding how I might refactor my event handlers.
Thank you.
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.