in the beginning, in the 70s or so, ram was very tight and the source was interpreted, not compiled; variable names were shortened to save memory. So the oldest core routines have single letter variable names
variables aren't declared; when you use a name, the interpreter just travels up the call stack looking for somewhere that variable is defined. so if you accidentally use the wrong name, especially with the strong bias to very short variable names, in nested enough code you will find that variable. This led to some amazing bugs
the prefix of the command to delete a node in the internal db (really just global sparse arrays) deleted everything. A coworker fat fingered that in a customer's prod systems and took down a hospital chain you've heard of. I just heard him wail, "Oh SHIT" and sprint out of our office; I later found out he ran for the recovery team.
they also had 15mm lines of vb6
oh, and they love h1b slave labor. Bring them over, abuse them, threaten to fire them if they don't work their asses off, and leave them with no transferable job skills. I presume the ceo uses her billions to salve her conscience.
It wasn't until years later that I realized I'd totally dodged a bullet.
I had never applied...
Or not. I'd recommend not.
You could have just said "the variables are dynamically scoped" and be done with it. :-)
The h1b worker knows he's a slave.
http://thedailywtf.com/Articles/A_Case_of_the_MUMPS.aspx and http://thedailywtf.com/Articles/MUMPS-Madness.aspx
What I miss the most from other programming languages are features like public/private variables/methods, objects/classes + inheritance, type-checking, first-class functions, etc. (It does support try-catch and exception handling, however.) Even the above gripes aren't entirely 100%, as Intersystems extended MUMPS to have object-oriented features with Cache Objectscript, however, no one uses these so as not to be locked in to one vendor's non-standard implementation of the lagnguage. When comparing to say, Fortran-77, there's just no contest in my mind- out of everything I've programmed in, including VB, I hate Fortran by far the most.
Yes. There's a reason for that.
The etc. is the killer for me :-)
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."
In a sane society, this would mean that there're lots of business opportunities in Finland to fix this. Alas, the widespread stealthy corruption prevents that.
Ask me anything!
https://news.ycombinator.com/item?id=6312391
Also, this here thing is orders of magnitude worse than anything MUMPS and the comparison is very, very unfair.
It also had only three error messages: "WHAT?" (any syntax-related problem), "HOW?" (any execution error that wasn't syntax-related, like division by zero), and "SORRY" (out of memory).
10 ?"hello whatever..."
which would be expanded to
10 PRINT "hello whatever..."
Line numbers counted too, IIRC, so it was more important when you had 4 and 5 digit line numbers.
But it's been 25 years since I did any commodore basic - my memory might be a bit wrong on this...
/[a-z0-9]+/ means "match one or more characters in the range a-z or 0-9"
The real problem with regexes is that in many languages, they can't have whitespace or comments, so documenting them is a problem.
https://en.wikipedia.org/wiki/MUMPS
Edit: The examples on the wikipedia page make it look less crazy than it is. For example every keyword can be abbreviated to a single letter, and was abbreviated to a single letter in the code I had to read. Also, each variable is connected to a global database which (in 1990) had no ACID properties or staging system, so better hope your undebugged program didn't delete any patient data (or worse, randomly modify it).