by seanwoods · 13y ago · 0 comments
Yes, it's a bear to sift through poorly written MUMPS code. Yes, the language gives you more than enough rope to hang yourself. However, it's also possible to write code legibly and take advantage of abstractions that MUMPS provides (chiefly persistent arrays -- which are now ACID).
https://robtweed.wordpress.com/2013/05/24/making-mumps-accep...
https://github.com/dlwicksell/nodem
The Intersystems version: http://docs.intersystems.com/cache20122/csp/docbook/DocBook....
There could be some very interesting things done with this, using M as a NoSQL DB with javascript jquery-style abstractions for interacting with the DB.
I'm pretty sure the answers are "really slim" and "all of it".
There are techniques and strategies for containing legacy code which are pretty well known in the community. At minimum, this would involve wrapping it in a sane interface. You'd want to isolate global variable state too. Alternatively in Caché you can wrap it in classes (whose semantics are close to Java/.NET)
It's on our list to rewrite the legacy code "some day."