NanoCalc Lite

NanoCalc Lite

7 devlogs
12h 34m
•  Ship certified
Created by Shinkensen101

Lightweight and efficient calculator app for your desktop

Timeline

Ship 1

1 payout of shell 122.0 shells

Shinkensen101

10 days ago

Shinkensen101 Covers 7 devlogs and 12h 34m

Bro, making the .exe WAS A TRAINWRECK, but its finnally done! Go check it out at https://github.com/shinkensen/NanoCalcV2.0/releases/tag/v2.0 !

I added in Garbage collection, made a global token_pool variable so i dont need to create like 122934120943810 of them, added more error catches like dividing by -0, and overall made my code more efficient and added in a bunch of error guards.

Update attachment

OH MY GOD BRO, I just spent the last 3 hours of my life tryna integrate this goofy ahh negative function for my calculator :(. Bro istg i was about to crash out cause it was SOOO buggy at first and i had to make so many changes to my parser to get it working. Specifically, the problem was that my parser and system relied on operators like +,-,*,/ to seperate the tokens in the tokenization step, but my dumb ahh couldn't figure out a way for ts to work when python itself uses the - for both negative and minus symbols so i couldnt just use a placeholder initially. But then after a lot of trial and error i somehow got it to work after i created a placeholder -> minus symbol function and integrated it into my main function for parsing specifically after the tokenization step

Added in the error catching stuff, fixed a few bugs, and also I am in the middle of trying to add in negative number inputs

My javascript-electron app was really innefficient as it used chromium which basically just makes it a glorified browser tab, so i switched everything over to python and restarted from scratch T-T. Grinded hard and got the basic buttons to register again and everything like the one with js...untill i remembered that i had to make the string calculator parser :0, then i proceeded to CRASH MY BRAIN OUT tryna make ts work efficiently, the first iterations didnt scale well because i wanted to add more functions so i spent like 3 hours just doin ts and iterating. Now it works rlly well with a modular parser that essentially tokenizes and then processes the expression making future add ons easier to implement. Aiming to add negitive, and decimal input functionallty next along with making it look better and for error handling to work bettter (even though alot of the incorrect input stuff is filtered out alr.). thinking about adding a history of sorts where users can revisit one of the past 3 calculations and also maybe sin and cosin and tan to make this more of a scientific calc. also btw, i implemented BODMAS

Made the buttons actually function now, added a clear button and displa for the numbers. Going to make it look way better soon.

Added in all the stup stuff like node.js and electron (this is my first ever app so i had to read a shi ton of documentation). Overall i feel like i have absolutley no idea what im doing cause i usually code in c++/java not JS or node.js. This is gonna be a first for me on the basis of a Lot of things.

Update attachment