13 ms·
The Fedex handheld terminal was re-written in Forth... twice. :) First time all the features wouldn't fit. Forth re-write fit with room to spare. (factoring i
by lebuffon 6y ago
The Fedex handheld terminal was re-written in Forth...
twice. :)
First time all the features wouldn't fit. Forth re-write fit with room to spare. (factoring is easy in Forth)
New Hardware! Everything fit but batteries didn't last a full shift. :(
Forth with a proprietary tasker put the device to sleep at every opportunity. Problem solved.
- Jtsummers 6y ago> factoring is easy in Forth Even more than working in functional languages like SML, Forth (and RPL, my first stack language) taught me how to factor out code and remove/minimize duplication. It's just so obvious when using it where the duplication is, the hard part is coming up with decent names. But if a sequence of words can be given a good name, give it that name and define it.