Random thought of the day
-
-
A thing I've had to do on many different occasions throughout my career is figure out the least crazy person to ask any particular question from.
-
If you express mileage in kilometers, is it then still a mileage?
-
@JBert No.
-
@JBert said in Random thought of the day:
If you express mileage in kilometers, is it then still a mileage?
In dutch we use "actieradius", which translates literally to "action radius".
-
@PleegWat said in Random thought of the day:
@JBert said in Random thought of the day:
If you express mileage in kilometers, is it then still a mileage?
In dutch we use "actieradius", which translates literally to "action radius".
Random thought: Dutch is English as spoken by a German who is drunk. Or maybe vice versa?
-
@Benjamin-Hall Maybe. English has more French in it than Dutch does.
-
@PleegWat said in Random thought of the day:
English has more French in it than Dutch does.
I just spilled my jus d'orange reading that
-
@PleegWat said in Random thought of the day:
English has more French in it than Dutch does.
English has borrowed a lot of words from French, but they're typically less common words. English remains correctly classified as a (low) Germanic language.
-
@dkf said in Random thought of the day:
English has borrowed a lot of words from French
I'm not sure I'd call that borrowing. The English didn't exactly ask the Normans to conquer them and inflict Norman French on them
-
@Zecc said in Random thought of the day:
@JBert No.
We don't say kilometrage in Poland, but we do say metrage for dimensions of something.
And the word for car mileage is "przebieg", which literally means "the distance run".
-
By my calculations it costs less than 20€ to literally fill an entire bathtub with (cheap) instant coffee.
You know, in case you ever need that option.
-
@anonymous234 said in Random thought of the day:
By my calculations it costs less than 20€ to literally fill an entire bathtub with (cheap) instant coffee.
You know, in case you ever need that option.
You mean to fill it with the powdered instant, or with prepared drinkable liquid coffee? Because I figure in terms of cost a teaspoon of the former equates to a cup of the latter. A ratio of 48 to one.
-
@da-Doctah Drinkable liquid, yes. The ratio is 2g to 250ml (1 cup).
-
@anonymous234 said in Random thought of the day:
fill an entire bathtub with (cheap) instant coffee.
I have no idea why you'd want to do that, but it's certainly better than drinking it.
-
-
@anonymous234 said in Random thought of the day:
By my calculations it costs less than 20€ to literally fill an entire bathtub with (cheap) instant coffee.
You know, in case you ever need that option.
Better use a hot tub instead, to keep the coffee hot until you drink it all.
-
Last night I was looking at a woman who was also there to pick up a food delivery order and wearing a face mask. Thought from what I could see that she was kind of cute. Then I started thinking about Christina Ricci in that movie "Penelope" and how right now would be her time to shine,
-
I saw this on the front page and thought it was sufficiently pedantic that it deserved to be mentioned in the forums for the sake of those who are not aware we have a front page. https://thedailywtf.com/articles/is-we-equal
-
isEqual should rightly be called areEqual, since we’re testing if two objects “are equal” to each other
But each one of those objects is equal to the other.
Most programmers would probably readisEqual(x, y)
as "is equal X to Y".
-
@anonymous234 said in Random thought of the day:
isEqual should rightly be called areEqual, since we’re testing if two objects “are equal” to each other
For the record, it was the article that said that, not me. However,
But each one of those objects is equal to the other.
Most programmers would probably readisEqual(x, y)
as "is equal X to Y".I would probably just read it as "is Equal, x, y". If I were going to add anything to it, such as the word "to", it would mean that I had abandoned faithful quoting. I then might go all the way and say, "Is x equal to y?", or even "Are x and y equal?".
-
@jinpa speaking of - I hate this recent(ish) trend in testing frameworks to provide APIs that read like English sentences.
expect(x).not.toBe(1);
What's wrong with just:
expect(x != 1);
-
@Gąska said in Random thought of the day:
@jinpa speaking of - I hate this recent(ish) trend in testing frameworks to provide APIs that read like English sentences.
I'm going to go out on a limb and guess that you're not a big fan of VB.Net.
-
@jinpa "Let's make programming languages more like English" is an idea that has been tried many times, and has never worked.
Unless you have some grand new insight into the topic, you should probably stick to what works. And random framework developers probably aren't the best people to have grand new insights on this kind of thing.
-
@anonymous234 said in Random thought of the day:
@jinpa "Let's make programming languages more like English" is an idea that has been tried many times, and has never worked.
Unless you have some grand new insight into the topic, you should probably stick to what works. And random framework developers probably aren't the best people to have grand new insights on this kind of thing.
I've used both VB type syntax and C style syntax (and its descendants), and had no problem with VB.Net syntax. It worked just fine.
-
@Gąska said in Random thought of the day:
@jinpa speaking of - I hate this recent(ish) trend in testing frameworks to provide APIs that read like English sentences.
expect(x).not.toBe(1);
What's wrong with just:
expect(x != 1);
In fairness, if instead of
toBe(1)
you hadtoThrowAnException()
it would make sense.
-
@Zecc well, expecting to not throw anything is kinda the default, so this line would be kinda useless. And for expecting a throw, I like
expect_throw(x)
better.
-
@Gąska said in Random thought of the day:
@jinpa speaking of - I hate this recent(ish) trend in testing frameworks to provide APIs that read like English sentences.
expect(x).not.toBe(1);
What's wrong with just:
expect(x != 1);
Potentially, the former syntax allows the framework to print both the actual and the expected value of x in the test output if it fails.
-
@PleegWat GTest has
expect_not_equal(x, y)
. I find that much more readable, and the error message is nice too.
-
@Gąska Our homegrown framework just does a
diff -U10
between a 3kb dump file and a 3kb reference file.
-
@jinpa said in Random thought of the day:
@anonymous234 said in Random thought of the day:
Most programmers would probably read
isEqual(x, y)
as "is equal X to Y".I would probably just read it as "is Equal, x, y". If I were going to add anything to it, such as the word "to", it would mean that I had abandoned faithful quoting. I then might go all the way and say, "Is x equal to y?", or even "Are x and y equal?".
If you've spent enough time in LISP where arguments and operators are interchangeable, it's probably occurred to you that the function should be is_X_equal_to(y). Which will then lead you to think it should really be is_X(equal_to, y).
-
@anonymous234 said in Random thought of the day:
@jinpa "Let's make programming languages more like English" is an idea that has been tried many times, and has never worked.
I feel like I need to mention that English-like interactive fiction programming language again.
I seem to remember we had a thread about it somewhere...
-
@PleegWat said in Random thought of the day:
@Gąska Our homegrown framework just does a
diff -U10
between a 3kb dump file and a 3kb reference file.I don't remember writing your framework.
Oh wait, I just dodiff -qs
.
-
@JBert said in Random thought of the day:
@anonymous234 said in Random thought of the day:
@jinpa "Let's make programming languages more like English" is an idea that has been tried many times, and has never worked.
I feel like I need to mention that English-like interactive fiction programming language again.
I seem to remember we had a
threadgąskarant about it somewhere...
-
@topspin said in Random thought of the day:
@PleegWat said in Random thought of the day:
@Gąska Our homegrown framework just does a
diff -U10
between a 3kb dump file and a 3kb reference file.I don't remember writing your framework.
Oh wait, I just dodiff -qs
.That's not very informative.
-
@PleegWat said in Random thought of the day:
@topspin said in Random thought of the day:
@PleegWat said in Random thought of the day:
@Gąska Our homegrown framework just does a
diff -U10
between a 3kb dump file and a 3kb reference file.I don't remember writing your framework.
Oh wait, I just dodiff -qs
.That's not very informative.
Yup. Since the files are binary, "you done goof'd" is good enough.
-
@JBert said in Random thought of the day:
@anonymous234 said in Random thought of the day:
@jinpa "Let's make programming languages more like English" is an idea that has been tried many times, and has never worked.
I feel like I need to mention that English-like interactive fiction programming language again.
Now without @levicki to confuse us all!
-
Though seriously. That you can add decent support for German language by just writing a code library is quite cool.
-
The human mind didn't evolve to accurately process threat levels from large amounts of data, but rather from relatively small samples. Thus, when we hear something on the news that happened to one person out of a hundred million a thousand miles away, our brains interpret it as if it were a regular occurrence rather than a rare one, and the collective fight or flight response is triggered.
-
@Gąska said in Random thought of the day:
@JBert said in Random thought of the day:
@anonymous234 said in Random thought of the day:
@jinpa "Let's make programming languages more like English" is an idea that has been tried many times, and has never worked.
I feel like I need to mention that English-like interactive fiction programming language again.
Now without @levicki to confuse us all!
I just realized the original discussion is now also without @levicki.
-
I wonder if anyone ever accidentally wrote MILF when they meant MIL.
-
@PleegWat said in Random thought of the day:
Potentially, the former syntax allows the framework to print both the actual and the expected value of x in the test output if it fails.
I like just using:
assert x != 1
in Python since that prints the details out of what went wrong while not having weird pseudo-English contortions to achieve it.
-
@Gąska said in Random thought of the day:
I wonder if anyone ever accidentally wrote MILF when they meant MIL.
I'm sure they have. There's even a name for it, Freudian Slip.
-
@Gąska said in Random thought of the day:
I wonder if anyone ever accidentally wrote MILF when they meant MIL.
What if .milf were a valid TLD. Somebody might typo, say army.mil as army.milf and get NSFW surprise.
-
@dkf said in Random thought of the day:
@PleegWat said in Random thought of the day:
Potentially, the former syntax allows the framework to print both the actual and the expected value of x in the test output if it fails.
I like just using:
assert x != 1
in Python since that prints the details out of what went wrong while not having weird pseudo-English contortions to achieve it.
ScalaTest has something similar. There's
assert()
method that takes any boolean expression, but it's actually a macro that can inspect the semantics of the expression and provides pretty printing of variables in most common cases.
-
-
@HardwareGeek said in Random thought of the day:
What if .milf were a valid TLD.
I'd be surprised if it weren't, what with all the new gTLDs.
-
@Zecc I just checked - it's not.
-
@Gąska said in Random thought of the day:
I just checked
You're a braver (or more foolhardy) man than I am.
-