Julia as a CLI Calculator
131–134 of 134 posts
Re: Julia as a CLI Calculator
#132One thing I miss is RPN-string input. Unlike normal RPN where you load the "stack," for RPN string you can enter > 2 3 + 4 * as one line, press enter, and get 20. This lets you take advantage of the no-parens nature of RPN while viewing the expression on one line rather than flipping through the stack. Only Windows PowerToy scientific calculator had this mode, that I know of.
this sounds like "dc" except with dc you'd need to add a "p" at the end to print the top of the stack
Re: Julia as a CLI Calculator
#133Earlier quoted context omitted.
Having built several OO codebases with 1000+ classes I really really really second this view.
OOP has become an antipattern (ok, partially kidding but...)
Re: Julia as a CLI Calculator
#134Earlier quoted context omitted.
OOP has become an antipattern (ok, partially kidding but...)
There are a few scenarios in which I miss simple inheritance when I write Julia code, they are few and far between (in real world problems). What fascinates me is how virtually the whole of the programming world decided that inheritance was the way to go and pursued it for 20 years - on the basis of what now looks like zero evidence.