100devs-calculator icon indicating copy to clipboard operation
100devs-calculator copied to clipboard

Calc Project :D

Open Tailsxz opened this issue 1 year ago • 0 comments

I completed the challenge: 5 I feel good about my code: 2 <-- I feel that now, I could come back and redo this assignment and produce a much more readable program that is fully OOP. So I completed the base working calculator which functions as desired, being able to handle errors and decimals a while ago, but then I started the CSS to make it all nice and fancy. In doing this on my test branch, I ran into some bugs that I could not figure out why they were happening. Once I finished my CSS, I found that decimals were no longer being handled correctly. I tried my best at debugging it, and was planning to redo the CSS from scratch but never got to it. I found that with the CSS added, decimals are handled correctly unless you spam click, and by console logging to find out what was happening, it seems the nodelist for all my operators was sometimes being console logged and other times undefined. So I think the issue was a use of a CSS feature that produced bugs in classLists somehow. It hurt my brain a lot trying to debug it to the point I decided to just redo CSS one day, but I never got around to it, so I am just submitting my original working calc with the base CSS :D .

Tailsxz avatar Dec 14 '23 23:12 Tailsxz