Yes it does bother me a little that the letters in the latter half of my username can’t be written backwards. (Well, some can, and the p can become a q, but then it’s not a p any more.)
Some middle-aged guy on the Internet. Seen a lot of it, occasionally regurgitates it, trying to be amusing and informative.
Lurked Digg until v4. Commented on Reddit (same username) until it went full Musk.
Was on kbin.social but created this profile on kbin.run during the first week-long outage.
Other Adjectives: Neurodivergent; Nerd; Broken; British; Ally; Leftish
Yes it does bother me a little that the letters in the latter half of my username can’t be written backwards. (Well, some can, and the p can become a q, but then it’s not a p any more.)
The last thing I messed around with choked on some wide characters that weren’t in the current locale, so I guess picture the top half of the burger bun, about two thirds of the top part of the patty, a small pile of raw ingredients off to the side and some inexplicable six-inch nails through the raw meat, maybe.
Most of the rest of the stuff I do could be compared to those nouvelle cuisine jokes that have been running since the 1980s. Large plate, inexplicably small serving of something allegedly gourmet but is probably a cube of the cheapest pâté from the closest supermarket that was flash frozen and then stylishly drizzled in jus de menthe or something.
Bon appetit
“Uh, Boss, our customers are sending us the invoices for their RAM purchases.”
“Just a heads up that we’ll be shipping your machine to the client, since it’s the only machine on Earth known to support the software. You’re getting the spare machine out of the basement. Super fast Cyrix processor. Looks like it boots to Windows 11 release 3, but they’ve written it 3.11 for some reason.”
O((2(n2))!) or bust.
YFW you realise Grandpa isn’t wearing a tie.
If Python has anything like Perl’s source code filters, then anything’s up for grabs, but Perl is kind of weird in a way that Python was specifically designed not to be. Or at least Python 1 was. Things may have changed in the intervening couple of decades.
If it’s just plain overloading, then whitespace is probably off the table. Spaces, even required spaces, aren’t so much syntax as they are structure. You could argue that the curly braces of some other languages are more syntactic than Python’s whitespace, because it’s actually Python’s magic colon and the first unindented line (lack of whitespace!) that serve that specific syntactic purpose.
Examples of Perl’s source code filters range from turning a program into binary representation of the syntax tree and still having it be executable, to new syntax, to writing programs entirely in Latin or something that looks almost but not entirely unlike it, anyway.
Was going to say that I don’t have the energy to be passionate about anything these days, but then I realised I’m quite happy - almost passionate, you might say - to turn that dispassion towards large organisations like Microsoft.
Buy our products!
“No.”
It isn’t just JavaScript (or Java which uses the “Hashmap” name).
There are, of course, languages that don’t have an equivalent structure, but for those that are sufficiently popular, it’s almost certain that someone has written a library that emulates associative arrays and then fairly certain that that library, in turn, has been used in production somewhere.
File this under “If it’s stupid but it works…”
“I used to be able to Google like you, but then they changed what Google was and now what I can do doesn’t work, and what you have to do seems weird and scary to me.”
They still don’t like to talk about the fact that it’s Greenwich and not Paris that’s the prime meridian.
But sure, I didn’t explicitly connect the dots.
Stealing from another commenter: Are you OK with referring to days of the week as Tuesday/Wednesday, or do you propose abandoning day names altogether? If you say your local day is Tuesday which doesn’t align with someone else’s Tuesday, you’ve still got the old time-zone problem just at a coarser grain.
As for “secondary time” yes. That’s called local time. Which is what the initial proposal was trying to be rid of.
Now riddle me this: What time do you have your computer’s motherboard set to?
I never said the time zone was GMT, only that the meridian is Greenwich. Subtle, yes, but if the meridian for UTC isn’t the one running through Greenwich, let me know.
I was using a Swatch-like duodecimal system of 12³ = 1728 beats per day. This is actually more accurate than minutes of which there are 1440 and actual Swatch beats which are 1000 per day.
Since I haven’t stated (or decided, for that matter) where the meridian is, we have no idea where this is, but it’s clearly morning. Or is it. It’s probably 10 minutes to some hour or another, or thereabouts, if midnight aligns with old time somewhere. Which it doesn’t have to.
“Mother why do our eyes bleed.”
“What time is it, Mother?” “It is 7XƐ, child. Eat your breakfast.”
Implementing such a change has another problem: Who gets to have the time-zone that’s noon at noon?
Are we going to let the British continue to get away with it? Even the excuse of “that’s the way it has to be to keep things simple” would cause the French to revolt. Again. They still don’t like to talk about the fact that it’s Greenwich and not Paris that’s the prime meridian.
Swatch’s “Internet time” was a decimal system designed to mitigate the problem because no-one would have any idea what the old time was supposed to be, but people are used to the base-60 system. It didn’t and won’t catch on.
And it doesn’t fix the “0 isn’t my midnight” problem, which is pretty close to the original.
It also doesn’t fix the “what time of day is it elsewhere in the world” problem, which still requires knowledge of time differences. You know. Time zones.
Sounds a bit like the S&M methodology. SpaceX & Musk
JavaScript, like some other languages of the time, was designed with the Robustness Principle in mind. Arguably the wrong end of the Robustness Principle, but still.
That is, it was designed to accept anything that wasn’t a syntax error (if not a few other things besides) and not generate run-time errors unless absolutely necessary. The thinking was that the last thing the user of something written in JavaScript wants is for their browser to crash or lock up because something divided by zero or couldn’t find an object property.
Also it was originally written in about five minutes by one guy who hadn’t had enough sleep. (I may have misremembered this part, but I get the feeling I’m not too far off.)
I’d say it’s more like setting up a handler for a callback, signal, interrupt or something along those lines.
Function declarations by themselves don’t usually do that. Something else has to tell the system to run that function whenever the correct state occurs.
That doesn’t account for unconditional come-froms.¸but I expect there’d have to be a label at the end of some code somewhere that would give a hint about shenanigans yet to occur. Frankly that’d be worse than a goto, but then, we knew that already.
⊃))・▽・((⊂