|
You took the words out of my mouth.
But the article gives an example of a function that updates multiple arguments. If you don't care about one of its results, you pass a "blank" value to that argument. This is interesting because it documents that the code doesn't care and potentially allows the compiler to generate code that would make the function more efficient in this situation.
|
|
|
|
|
Kent Sharkey wrote: They still look awful, and I suspect I'll never use them, but YMMV No idea what YMMV is but I wonder if you meant YOLO!!!!??
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
YOLO might work, as I have managers who might kill me if I used these too much.
YMMV == "your mileage may vary" (which really only works in three countries at the moment, but whatevs)
TTFN - Kent
|
|
|
|
|
Kent Sharkey wrote: "your mileage may vary" (which really only works in three countries at the moment, but whatevs) A lot of people use "mileage" (or a translation that uses "mile" rather than "kilometre") anyway, because "kilometrage" sounds like a criminal offence.
"I got pretty bad kilometrage, but I was let off with a warning."
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
So do you say "kilometage" instead og "mileage"?
I would guess not, because the browser's spell checker went insane when I typed "kilometage".
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I say mileage (I'm English, we still do roads in miles).
The Dutch is often "kosten per mijl" ("kosten"="costs", and "mijl" is pronounced "mile" -- 'ij' is the ancient root of the letter 'y'), and I've only rarely heard "kosten per kilometer", but Italians say "chilometraggio" ("ch" before 'i' or 'e' is pronounced like a hard 'c', and 'g' or 'gg' before before 'i' or 'e' is a soft 'g').
I don't know what they use in Australia (there's a fair chance that they don't, either)(and the pronunciation is probably wrong) or Canada (but they're too nice to make a fuss about it).
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Canadians say mileage (if English) or kilométrage (if French).
Fuel consumption is quoted in liters per 100 km, which is utterly bizarre to a dinosaur like me.
|
|
|
|
|
Spain = Kilometraje ("j" as in "h" for "hockey" but a bit stronger, "g" and "j" sound similar in many situations, only that rules say words end with "aje" not with "age")
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Have you considered the "philosophical" difference between "liters per 100 (or 10, or 1) km" and "miles per gallon"?
"We've got a task to do; it requires driving 650 km. How much fuel will that require? We multiply 650 km by the liters/km; then we know."
"We've got 17 gallons in the tank. Let's go out driving. How far can we go? Let's multiply the 17 gallons by the miles/gallon; then we know."
If you had at task to do that requires you to drive 400 miles, you can of course divide 400 miles by the miles/gallon to get the fuel required. If you've got 70 liters of fuel, you can see how far you can get by dividing by the liters/km. But division is harder to do than multiplication.
|
|
|
|
|
Looking at the examples, I'm hit with an overwhelming feeling of "why bother?"
i.e. I feel that this will make a huge impression on my lifestyle.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Documenting in code that you don't care about some parts of a function return is useful IMO, but this
Quote: If there are any exceptions however, they will be supressed:
await Task.Run(() => throw new Exception());
_ = Task.Run(() => throw new Exception());
is just terrible. Hidden exception eaters are just as bad today as when they were On Error Resume Next lurking somewhere in a 10k line single file application.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
tbh I'm really wondering whether the cause for this is varible discard instead of just not awaiting your task
|
|
|
|
|
Hewlett Packard Enterprise (HPE) has warned that certain SSD drives could fail catastrophically if buyers don't take action soon. Someone using a 16-bit int for the lifespan again?
OK, that doesn't add up mathematically, but why 40K hours exactly? Is someone a big Warhammer fan?
For the Emperor!
|
|
|
|
|
8! = 40320 rounding to 40k for the headlines
Maybe related?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Live faster, die sooner.
I'm soooo glad I migrated away from HP, a few years ago -- but I'm a bit concerned about HP servers that I've set up for (more than a few) clients.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
That's only about 4.5 years. Who could have been so staggeringly stupid?
|
|
|
|
|
Duh, HP.
They seem to specialize in lately. (Or at least since about the time of the Compaq merger)
TTFN - Kent
|
|
|
|
|
HP must have hired some Boeing engineers. Or the other way around.
|
|
|
|
|
It's presented as a flaw, but smells like planned obsolescence.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
We'll find out. Failure -> lawsuit -> discovery (pre-trial disclosure of any relevant documents).
|
|
|
|
|
A few weeks ago, they had another flaw that occurred after 32768 hours of use. I felt that that was more "right". It isn't right for computer based systems to fail after an arbitrary, non-round number of hours, like 40,000.
|
|
|
|
|
According to a study published last week in the journal Scientific Reports, there’s a minuscule chance that Mercury, our Sun’s closest neighbor, has all it needs to host life. Someone's been sniffing the mercury again
Money quote: "It might be nuts, but it’s not completely nuts"
|
|
|
|
|
Feh. They're just bucking for a research grant.
They want some quick silver.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
If you have a GitHub account and contribute to open source, you can apply to become a sponsored developer. Get your money for merging, your cheques for builds
|
|
|
|
|
Kent Sharkey wrote: Get your money for merging, your cheques for builds Sounds familiar...
Wire Mates, "I want my G I T"?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|