927 karma · joined Mar 14, 2017 (9y ago) · 307 submissions
comment 9y ago · link · parent
Not to mention that you cannot test for uppercase or lowercase like the ASCII `ch >= 'A' && ch <= 'Z'` because they are not contiguous in EBCDIC. A good reason to use the C RTL.
comment 9y ago · link · parent
I recall seeing how files were allocated on disk (remember that mainframes have many different OSes, like OS\390, and even OSes on top of OSes like VM/CMS, and I don't remember what this was running on).
In this particular case, a file was preallocated in JCL to use N extents starting on a specific cylinder. Fixed size. None of this fancy ext3 or NTFS ;)
JCL (Job Control Language) was a language to control batch jobs, and many have called it the worst language ever designed, although not as bad as brainfk.
On the other hand, I had a chance to interface C++ with CICS (a transaction processing subsystem) using WebSphere MQ, and I must say, I was really impressed with its sophistication. It was a kind of SOA long before the term was invented.
A lot of what I saw in the mainframe world predated things - by decades - that some may think are new(er) concepts, such as clusters (sysplex), front-end processors, hypervisors, HA, and so on.
Those of us who had to fiddle with implied file formats with fixed-length fields and records won't find this stuff quite as alien, but equally as painful to deal with. I recall using some sort of ETL program to get around this. On the plus side, these primitive formats certainly were efficient in terms of processing speed, and a great match for COBOL.
Speaking of COBOL, as part of this project, I had to write a parser in C++ to parse COBOL copybooks (kind of a COBOL data structure definition) and generate C code to read the data.
It is a very different world, but I don't think it's all bad. After all, the technology has been working very well for a long time. Kudos to the COBOL Cowboys. I hope they charge a lot more than $100/hr!
comment 9y ago · link · parent
comment 9y ago · link · parent
Yes, and in a free speech society, whomever has the most power and/or money at the time will be able to take advantage of free speech to conduct widespread and targeted disinformation and harassment campaigns - under a false flag of "angry citizens" - that can change (and have changed) the course of history.
It cuts both ways, sadly.
comment 9y ago · link · parent
You know Sturgeon's Law? Something along the lines of "90% of science fiction is crap, because 90% of everything is crap?"
Well, if you more or less agree with that, there is just so much more of everything that there is so much more crap.
Another commenter expressed this as a signal-to-noise ratio problem. It is that, but it is also that O(N) is bad news for very large values of N.
comment 9y ago · link · parent
It may also happen that the one person who you felt was not "worth the trouble" turns out to be someone who will be very important to you one day, like a potential business partner or investor, and who interprets your misuse of language as ignorance.
There's a difference between obsessing over unimportant detail and being thorough, IMHO.
comment 9y ago · link · parent
I think you are making an unwarranted assumption about me. I have indeed spent a great deal of time thinking about language; I just have different thoughts, or points of view, about it. I have been very interested in etymology for a long time.
I neither claimed that natural language was capable of being entirely unambiguous, nor that people cannot communicate in the face of ambiguity. In fact, ambiguity in language allows for great artistic expression: humor, poetry, and other word play. So I agree with you on that point.
But holy crap, do we have to make it harder than necessary to communicate, when we aren't deliberately playing with words?
Surely you agree that much of the misery, pain, and suffering in this world of ours is due to avoidable language-related misunderstandings?
comment 9y ago · link · parent
I don't think it's terribly user hostile to express sizes as powers of two when you work with these kinds of numbers for a living, especially when it's near the bare metal (Erlang binary data type FTW!)
But I do think it's user hostile to have two different units depending on what you're looking at. If it were all decimal or all binary, it would be much easier.
comment 9y ago · link · parent
So a 1 megabyte file (as reported by the file system) is actually 1048576 bytes, which technically - sorry, I mean pedantically - speaking, is 1 mebibyte.
To make matters worse, disk manufacturers use the decimal prefixes, so our nice 1 terabyte drive is 931 mebibytes, but is reported by the file system as 931 megabytes (not MiB).
Finally, memory manufacturers use the binary prefix, so 1 megabyte of RAM is actually 1 mebibyte (1048576 bytes).
A bit of a mess, no?
All the above is, IMHO, a consequence of imprecision. If we get used to being loose with our terminology, we risk carrying that attitude over into our work product, with sometimes regrettable results.
So I'll continue to strive to be pedantic (translation: precise).
comment 9y ago · link · parent
Apple pie:
- Pie found in apple(s)? Nope.
- Apple that is used to do something to pie! Hmm, no.
- Pie that is modified by an apple. No...
- Pie that is made with apple the primary ingredient? Yes
Ice algae:
- Algae found in ice? Bingo.
- Algae that is used to do something to ice? No.
- Algae that is modified by ice? Nope.
- Algae that is made with ice the primary ingredient? No again.
Ice axe:
- Axe found in ice? No.
- Axe that is used to do something to ice! Yes.
- Axe that is modified by ice? Definitely not.
- Axe that is made with ice the primary ingredient? No.
Finally...
Ice tea:
- Tea found in ice? No.
- Tea that is used to do something to ice? Not that I've heard of.
- Tea that is modified by ice? Mmm... it's not modified. It's still tea, only cold, not hot. Its temperature, a non-essential property of tea, has been modified. So wouldn't that be "iced tea", as in, "tea that is normally served hot but has been cooled down, namely, iced"?
- Tea that is made with ice the primary ingredient? No.
Bottom line: "ice tea" is ambiguous. "Iced tea" is not.
I regret I have honestly never heard of bubble tea (but I have heard of bubble gum), so I have no clue what it is, other than it has something to do with tea and bubble(s).
Is it tea with which one makes/blows bubbles?
Carbonated tea?
Tea served in a bubble?
Tea made from bubbles?
comment 9y ago · link · parent
What I'm railing against is more that there appears to be little interest, in general, even to try to get things right. I see this not just in human language, but in business, software development, publishing, pretty much everywhere.
I'm really tired, so I'm not expressing myself as well as I should, so perhaps I should just wrap this up and get some sleep. An iPad is also not the best UI for writing on HN.
Thanks for your thoughtful and thought-provoking response.
comment 9y ago · link · parent
By that argument, we should all just be able to say and write whatever we want however we want to, even if it's technically or factually incorrect, like Humpty Dumpty or Donald Trump.
Why bother hewing to "elitist" rules of grammar and accepted spellings, being that it's just prescriptivism?
How does one decide objectively if something is just plain wrong, or merely prescriptive?
Case in point: "premises". So many people treat this singular noun as a plural and use horrors like "on-premise", which is so utterly wrong that it is painful for me to look at. What's worse is that "premise" is a real word and an entirely different thing and is most definitely not the singular of "premises".
This word came about (as many English words do) as a corruption of the Latin "praemissus", meaning something like "the aforementioned", and was used often in legal agreements for properties, and so became a word in itself that meant "the property".
Now we are corrupting it yet again, this time without the excuse of it being a different language, on the basis that "I'll say it however I please." People I have mentioned this to have told me that it is so difficult to get people to use the right word that they've just gone with "on-prem".
Now readers can take this comment as the rant of a "grammar nazi" or a pedant, but it wasn't meant that way, and I'll respond in advance with this: why is it not ok to identify something that is wrong? Because it's mere nitpicking?
Maybe so - but that's how matters devolve, over the decades, back to widespread ignorance and intolerance: one little oversight at a time.
Sorry, I didn't mean to get on the soapbox - sometimes it's just frustrating for those of us who are perhaps overly detail-oriented. But the world needs "pedantic" people like us more than it likes to admit.