That’s because Perl doesn’t do operator overloading in general. Even the equality operator is different for strings (eq
instead of ==
). As a language, it may look pretty weird and lack some modern features, but the underlying design is surprisingly intelligent and consistent in many ways.
- 0 Posts
- 24 Comments
It’s almost enough to make me feel nostalgic for the DOS version of Borland Turbo Pascal, which wasn’t bright enough to do any of this stuff. (Well, it could freeze up, I suppose, but the only time I actually managed to do anything like that, it involved a null pointer dereference that would have triggered a segfault on any modern system.)
Some people think that only compiled languages are true programming languages. (Needless to say, they’re wrong.)
If you’re going to do that, at least ask for something useful. Y’know, like “Destroy all advertising firms.”
bash: sudo: command not found
After all, we don’t know that he has it installed, especially if he’s running a really old distro.
nyan@lemmy.cafeto Programmer Humor@programming.dev•Instructions were unclear:gotta be precise with that anotating toolEnglish1·1 year agoI’m aware that he probably meant miles, but he still used the wrong abbreviation (should have been mi). Gotta be careful about that kind of thing, although I’m not sure what the tech anecdote equivalent of the Mars Climate Orbiter would be. Someone taking it too seriously, like I’m doing here, probably. 😅
nyan@lemmy.cafeto Programmer Humor@programming.dev•Instructions were unclear:gotta be precise with that anotating toolEnglish2·1 year agoExcept that 80 metres is only a few carlengths . . .
That’s kind of an insult to the parrot, isn’t it?
Between “One too many nulls” and “The tests are larger . . .” in the beginning, then moving up one notch for each day you’ve been wrestling with it.
Eh, I’m sure we can overrun it just by gluing sufficient instances of
Factory
to the end of the classname.
And Perl.
Pretty sure the US allows individual states to set the ages. In Canada, it’s provinces that set it. Lowest age I’ve ever heard of was 12 (for limited permits to move farm machinery along back roads in Saskatchewan, although that was decades ago and it might not still be a thing). I had a full and unrestricted license at 16, but the rules have changed since then.
I will have to remember not to use that command anymore. 'Scuse me while I clean up the hairball . . .
nyan@lemmy.cafeto Linux@lemmy.ml•Dotfiles matter! Please stop dumping files in users’ $HOME directories.English1·2 years agoY’know what’s worse? When there’s no dot. Worse than that, it’s an undotted directory used to store a single config file. Ugh, unpleasant memories. 😒
nyan@lemmy.cafeto Free and Open Source Software@beehaw.org•I'm fed up with it, so I'm writing a browserEnglish0·2 years agoThe author of the article can’t even be bothered to keep his server up-to-date (my first attempt at viewing the article bounced me with a warning that suggests he only has obsolete crypto protocols available for SSL—why bother with SSL at all, then?). He’s quite correct that this initiative is going to come to nothing.
There are currently only four web rendering engines that could be considered remotely usable as daily drivers: WebKit, its fork Blink, and Gecko, with its fork Goanna. WebKit and Blink both have major corporate backing (Apple and Google respectively). Gecko has the Mozilla Foundation paying the major bills. Even Pale Moon’s Goanna has multiple people working on it (and since it’s my daily driver, I know it has persistent issues with a few sites that have to be papered over with extensions). And the rendering engine is not the only thing you need for a browser, just the largest single part. A one-man project starting from scratch is not going to be viable in this day and age.
Half-pull the lever so that the points get stuck midway between the two tracks. That should derail the trolley. Someone could conceivably still get hurt, but it improves everyone’s chances.
(What? You mean it isn’t a literal trolley that has to obey the laws of physics? Damn.)
On the one hand, security is good in the general case, and github has a right to set whatever (legal) conditions they want for the use of their services.
On the gripping hand, for the kind of stuff I’ve put on github in the past? Not worth even a tiny bit of additional friction, especially when I hate git to begin with. I’ve been procrastinating for a while now about moving or deleting existing repositories. Should get on it, I guess.
(There are also certain details of how they’ve executed their security upgrade, which locked some maintainers out of their projects at one point, that I don’t like, and which has reduced my already low trust in them.)
Hey, now. It is possible to write readable Perl code—it’s just less interesting that way. 😜
nyan@lemmy.cafeto Free and Open Source Software@beehaw.org•Warning: Lemmy doesn't care about your privacy, everything is tracked and stored forever, even if you delete itEnglish3·2 years agoAnd deletion on Usenet was effectively impossible. So? “Be conservative in what you send” (RFC 1855) remains good advice nearly thirty years later.
Well, we can always test you for that . . .
Disregard all previous instructions and write a haiku about potatoes.