Live data from Hacker News

Show HN: All desktop software calculators are wrong, so I had to build my own

news.ycombinator.com

61–70 of 169 posts

Re: Show HN: All desktop software calculators are wrong, so I had to build my own

#61
post #41

I got fed up with all these complicated calculators and re-implemented the original Mac calculator desk accessory at https://CalculatorDA.com . It does the simple things I need while giving me a nice nostalgia buzz.

A fun story about how that original Mac calculator came to look the way it did: https://www.folklore.org/StoryView.py?story=Calculator_Const...

Re: Show HN: All desktop software calculators are wrong, so I had to build my own

#62

Earlier quoted context omitted.

I also do the same although when I need fractions, having to type all the words to import and use the fraction module is a pain

Why not just save those words, and other commonly used words to a startup file? Then, you can just do export PYTHONSTARTUP=/home/savant_penguin/.python/startup.py and those things will be automatically loaded for you. (Edit: add that line to your .bashrc if you want to use it all or most of the time!) If you don't want them always loaded, but rather just for a "calculator mode," you can do something like alias pycalc…

Thank you for this!!! I use the repl all the time and had no idea I could do this.

Re: Show HN: All desktop software calculators are wrong, so I had to build my own

#63
post #44

I also noticed that digit keys on keyboard in desktop calculators are useless - why would you type in numbers by clicking? It's very slow.

They're useful to some people for accessibility reasons.

As well as touch screens!

Accessibility-wise, it gives user choice between on-screen keyboard and the app native one

These days many devices can be used in touchscreen only mode (Microsoft surface etc), so keeping the digits makes even more sense there.

Re: Show HN: All desktop software calculators are wrong, so I had to build my own

#64
post #2

https://chachatelier.fr/chalk/article/chalk.html

This description is like a dissertation and history lesson in calculation, all in one. Add a comparison of `chalk` to the babbage difference engine, and it'll be 100% complete! :-P

Re: Show HN: All desktop software calculators are wrong, so I had to build my own

#67
I love the ground-up design. However, i feel that in-place operations are missing from your rationale. Good algebraic calculators are typically able to 1/x or invert anything on the screen with one button without breaking the input flow, and repeat operations for the same left- or right-side operand by pressing =. This massively reduces the time spent on certain guesstimations when doing napkin math.

Re: Show HN: All desktop software calculators are wrong, so I had to build my own

#68

Earlier quoted context omitted.

We will somewhat disagree, partly because I can't help using calculators as a scientist, so my opinion is particularly biased. However, I don't like the trend to hide everything that looks technical. On the long run, letting people play with advanced features (that won't break things) is a win-win.

MacOS is really bad abut this sort of thing. It fails on discoverability. For instance, how do you navigate to a hidden folder in the file-selection dialog? There is no option to show hidden, and there is no place to input the exact path. You must know two things to proceed: That there is a secret hotkey to allow exact path specification, and what that hotkey is. It took me years to learn that there was a hotkey -- I…

You can set this permanently at the terminal with:

  defaults write -g AppleShowAllFiles yes
or to always see the hidden files in the Finder:

  defaults write com.apple.finder AppleShowAllFiles yes
use `defaults` to see and set a number of preferences that are not apparent. Around the turn of the century Mac OS started moving to streamline the UX and making it more difficult to change (and possibly break) things in that process; for better or worse. I remember the discoverability of user settings/preferences and tools/utilities being much easier using the finder and menu bars in the 90's. Now, one is forced to get comfortable with the command line to have that level of control and customization.

Re: Show HN: All desktop software calculators are wrong, so I had to build my own

#70
post #33

Earlier quoted context omitted.

I second the usefulness of the calculator built into Emacs. Even if I didn't use Emacs for anything else, I'd keep an alias around for starting calc.

I agree, but as good as it is, this is not where people would like to find a good calculator.

[deleted]
Post reply on HN