WTF Bites
-
@djls45 OK, but how long does it take to make? Surely it's just mixing some ingredients for 10 seconds.
-
@anonymous234
Once it reaches #1 on the KVM for the person who's responsible for operating the shake machine, it takes about 5 + (# of ounces/2) + 5 seconds to make your shake. So about 18 seconds for a small and 26 seconds for a large, based on the sizes McDonald's used the last time I was there.But depending on the time of day, that probably means it won't get started until all of the orders ahead of yours are bagged/trayed and served, since the typical responsibility for the shake machine is assigned to the runner -- the individual working at the end of the food-prep line that is responsible for assembling orders and placing them in a bag or on a tray as appropriate and then putting them in the delivery zone for the appropriate line (e.g. the Drive Thru or putting them in the area for the front counter person that delivers to-go orders and runs eat-in orders out to tables). And given that the runner is also (almost always) the shift manager, their workload may also get interrupted by bitching customers and phone calls (which aren't necessarily mutually exclusive there...)
Only during very high volume times would they have a dedicated shake machine operator, so you just have to wait in line like the rest of us.
Edit to add: working out of order on the KVM is the #1 way to get written up / fired for excessive product waste. Which is why the prep line people get really pissy with a runner who's constantly calling out "I need X" for their upcoming drive thru orders (and why it's a stupid system design to split the KVM between Drive Thru and Front Counter for the runner, but not for the food prep area)
-
@izzion You seem to know too much about how McDonalds are operating
-
Of course TRWTF is small silver coin being worth twice as much as big silver coin.
That's because the coins used to be made of silver and when the composition was changed for the "half-dime" to be base metals, the size was increased to something that was easier to handle and had an intrinsic value close to the same amount.
Now they're both made of a nickel-copper mix.
-
@TimeBandit said in WTF Bites:
@izzion You seem to know too much about how McDonalds are operating
He graduated with a liberal arts degree?
-
@TimeBandit
Let’s just say I’m glad my career is in desk piloting instead of McDonalds middle management. And that gratitude is well informed by experience.
-
the composition was changed for the "half-dime" to be base metals.
TIL*. * If I ever knew that I had certainly forgotten it. Could you please estimate whether the overall utility of this knowledge has been positive, or negative?
-
@dcon
Finance degree at the height of the mortgage securities boom.Basically the same thing.
-
@ben_lubar said in WTF Bites:
all the people who write if (some_bool_val == true)?
Clearly they should write
if (true == some_bool_val)
to avoid accidentally writing assignments.There is a (fairly) clean way for a language to stop such nonsense: disallow assignment in test-expressions.
Also, what's the point of parentheses around the condition? Just require braces.
Around the condition? What makes braces better than parentheses at doing that?
Wouldn't that confuse the parser as to whether you've written a condition or a code block?
-
runs eat-in orders out to tables
At McDonald's??? You can't even hear them shout "Number 87, number 87!" unless you're waiting by the counter. Table service is far too fancy for any McDonald's I've ever eaten at.
-
@HardwareGeek
Here in flyover country, they all do table service
-
@HardwareGeek said in WTF Bites:
@ixvedeusi said in WTF Bites:
Warnings are useless. Either you set the "treat warnings as errors" option, or in no time you will have so many warnings in the code that you'll ignore all of them anyway.
We do this when compiling C/C++. We still have thousands of warnings from compiling Verilog, assorted scripts, and run-time. Does anybody care?
Edit: Heck, we have one build that produces a bunch of errors. "Yeah, those are expected. You can ignore them."
... Uh. ...
How do you get the build to still output something (usable!?) if an error occurs?
-
@izzion I was going to say something similar. I've worked at both McDonald's and Burger King, and they do things pretty much the same way. (And from what I've seen of other fast food places, I would guess that they all do.)
-
@cartman82 said in WTF Bites:
Yesterday's job candidate brought dog to a technical interview. HR lady says, "they worked together on the task".
They gave up after an hour.
I guess they cancelled work from home for the "on the internet, no one knows you're a dog" dog.
-
@anonymous234 said in WTF Bites:
They put North Korea on the list
"User Experience Survey"
{puts sixty fucking options in a barely-aligned radio button list instead of a dropdown}
There's gonna be some choice words about that experience...
-
Yeah, well, my first name is 6 characters
Okay.
now I get C:\Users*MyFirstNam*
That's more than 6 characters.
-
AWS console's group by alphabetically:
E_NO_REPRO
-
I guess I am TR for visiting Oracle, but...
wat
Do those vendors receive the request by printing out the raw byte stream and filing it by hand?
Whoa, we've got to stop those https submissions. Judy's got her calculator and a copy of the TLS1.2 spec, but she's going to be a while.
-
@HardwareGeek said in WTF Bites:
@ixvedeusi said in WTF Bites:
Warnings are useless. Either you set the "treat warnings as errors" option, or in no time you will have so many warnings in the code that you'll ignore all of them anyway.
We do this when compiling C/C++. We still have thousands of warnings from compiling Verilog, assorted scripts, and run-time. Does anybody care?
Edit: Heck, we have one build that produces a bunch of errors. "Yeah, those are expected. You can ignore them."
... Uh. ...
How do you get the build to still output something (usable!?) if an error occurs?Magic On Error Resume Next in build scripts.
-
It works on my machine (Chrome and Firefox)
-
It works on my machine (Chrome and Firefox)
You must be on a magical AB test that I don't have, or, I can't really tell because you're not including the URL or anythingmore than what I can assume is a mockup screenshot.
-
@Tsaukpaetra oooooh. There's a version in the repo name, and then a fun little trip down into a subdirectory. Then two access denied. Then an operator interaction handled by the script. So probably: you already just have that binary somewhere else OR it was once git but now is not.
-
@Tsaukpaetra oooooh. There's a version in the repo name, and then a fun little trip down into a subdirectory. Then two access denied. Then an operator interaction handled by the script. So probably: you already just have that binary somewhere else OR it was once git but now is not.
Oh, no, it's definitely compiling the source, no binary there (yet). What it's (attempting to) do is set a version string in a header file based on whatever git branch commit whatever you have checked out. This is the batch file that's being run: genversion.bat.
It ends up Access Denied, because the files it's trying to rewrite with the same string are not checked out in the repo and thus are read-only.
Still, since nothing's wrong with the existing ones, it compiles just fine.
-
@Tsaukpaetra so, damage is, the version ends up wrong? that's not so bad. takes effort for that to be harmful.
-
@Tsaukpaetra so, damage is, the version ends up wrong? that's not so bad. takes effort for that to be harmful.
Not if your service denies clients that are using the wrong version. Then it's rather harmful.
-
@Tsaukpaetra yes this was the "effort" part. well good luck.
-
@Tsaukpaetra said in WTF Bites:
@HardwareGeek said in WTF Bites:
@ixvedeusi said in WTF Bites:
Warnings are useless. Either you set the "treat warnings as errors" option, or in no time you will have so many warnings in the code that you'll ignore all of them anyway.
We do this when compiling C/C++. We still have thousands of warnings from compiling Verilog, assorted scripts, and run-time. Does anybody care?
Edit: Heck, we have one build that produces a bunch of errors. "Yeah, those are expected. You can ignore them."
... Uh. ...
How do you get the build to still output something (usable!?) if an error occurs?Magic On Error Resume Next in build scripts.
Sort of. The build manager script thing doesn't stop on a failed step, but continues trying to build everything that doesn't depend on the thing that failed. At the end, it turns out it didn't really need the thing that failed, after all. Or something. I dunno. I don't remember which thing exhibits this behavior, and I can't find any log files with the error summary message I'm looking for; maybe somebody fixed it.
-
@Tsaukpaetra yes this was the "effort" part. well good luck.
Yeah. If the client initiates a connection that doesn't start with that magic number and each cut doesn't continue to have that magic number, it's rudely disconnected with no warning, error, or anything. And in UDP mode, the packet just gets eaten.
Fun times debugging if an issue is with your firewall or the server when there's very little difference (software-wise) to tell if a connection was made or not.
-
@Tsaukpaetra said in WTF Bites:
It works on my machine (Chrome and Firefox)
You must be on a magical AB test that I don't have, or, I can't really tell because you're not including the URL or anythingmore than what I can assume is a mockup screenshot.
You caught me, I made it all up.
-
@theBread Quickly too. Want some exposure as a graphic designer?
-
@HardwareGeek said in WTF Bites:
maybe somebody fixed it.
Oh, before I fixed the script I posted, it was complaining about the path because it had spaces in the name. True facts.
-
@Tsaukpaetra said in WTF Bites:
It works on my machine (Chrome and Firefox)
You must be on a magical AB test that I don't have, or, I can't really tell because you're not including the URL or anythingmore than what I can assume is a mockup screenshot.
You caught me, I made it all up.
Oh, you're looking at the Services Drop-down menu.
Yeah, that's different.
-
@Lorne-Kates said in WTF Bites:
"User Experience Survey"
{puts sixty fucking options in a barely-aligned radio button list instead of a dropdown}
There's gonna be some choice words about that experience...The interview candidate didn't get the job. But they kept the code.
-
@Lorne-Kates said in WTF Bites:
That's more than 6 characters.
Something something illustrative example. Also: yourmo
-
@Lorne-Kates said in WTF Bites:
That's more than 6 characters.
Something something illustrative example. Also: yourmo
fu$me
-
Java is fun.
public abstract class AbstractEntitySingleDataProcessor<E extends Entity, ValueType, ValueClassType extends BaseValue<ValueType>, Manipulator extends DataManipulator<Manipulator, Immutable>, Immutable extends ImmutableDataManipulator<Immutable, Manipulator>> extends AbstractSingleDataSingleTargetProcessor<E, ValueType, ValueClassType, Manipulator, Immutable> {
public abstract class AbstractContextAwareMultiDataSingleTargetProcessor<Container, Context extends DataContext, M extends DataManipulator<M, I>, I extends ImmutableDataManipulator<I, M>> extends AbstractMultiDataSingleTargetProcessor<Container, M, I> implements ContextAwareDataProcessor<M, I> {
-
@pie_flavor So much API surface. I bet this is pure torture to use. Congratulations.
-
@Gribnit Beats me. That's in the internals. The public facing API is more tame.
-
@pie_flavor said in WTF Bites:
Java is fun.
-
@HardwareGeek said in WTF Bites:
@pie_flavor said in WTF Bites:
Java is fun.
I think he means
"Java is FUN in exactly the same way Dwarf Fortress is FUN."
-
And given that the runner is also (almost always) the shift manager
My sibling worked at a Burger King when in high school. Was known as "Super Push" because particularly competent at expediting, said position being called "push".
So not always shift manager.
-
@Benjamin-Hall Yes, that was it.
-
How to delete your tweet history:
Note the instructions.
So the only way to use this program is to clone it from git, install dependencies and then copy/paste access keys directly into the source code.
Gee, if only there was some way for user to supply parameters to a program other than writing them into the source code.
(the WTF is the python program, not the article BTW)
-
Computer Says No
-
@Zerosquare said in WTF Bites:
The copy of the 2nd edition K&R I have is a French translation, but it says this about the bit-shifting operators:
The result is undefined if the right-hand operand is negative, or is larger or equal to the number of bits of the left-hand operand type.
Looks like they tightened that for unsigned integers in C99 and above?
I doubt it. The behaviour of the left shift instruction in the CPU didn't change because of C99 and C never specified things that didn't actually behave consistently on common CPUs. And I've checked the actual behaviour—only the low 5 bits seem to be taken into account, so a
x << 32
behaves asx << 0
(I was writing some bit packing and it would have been easier ifx << 32
behaved consistently and returned0
, but it does not, so I had to add some special cases).Integers (fixed-size 2s-complement integers) are ring math, though, quite fundamentally. They won't stop being that.
They sometimes do stop being that. 2's complement makes it easiest to implement ring math, but some microcontrollers actually implement saturation math instead.
-
@ixvedeusi said in WTF Bites:
Warnings are useless. Either you set the "treat warnings as errors" option, or in no time you will have so many warnings in the code that you'll ignore all of them anyway.
I was thinking that it would be nice to have a tool in for the CI that would compare warnings between builds (adjusting the line numbers according to the diff) to find which warnings are actually new and then annotated the revisions with them for the reviewer to check. Not sure how much it would help, but if proper(ish) reviews are done, it could.
-
Integers (fixed-size 2s-complement integers) are ring math, though, quite fundamentally. They won't stop being that.
They sometimes do stop being that. 2's complement makes it easiest to implement ring math, but some microcontrollers actually implement saturation math instead.
Today I found out...
Filed under: Stuff college didn't teach me about
-
@Tsaukpaetra I haven't actually worked with any, but when you are actually using microcontrollers as controllers, which generally means implementing a buch of PID controllers in code, you need to clamp the accumulated values anyway, so having saturating math helps, while wrapping math would be your worst enemy. So it makes a lot of sense there.
-
decimal hardware architecture
Chrissakes, BCD is even in play here?
Not in practice, and tricky in practice with respect to the Standard because bitwise and shift operations are defined in terms of binary numbers, not decimal ones.
One's complement architectures should be perfectly fine; I think all operations that would give different result in one's complement or two's complement are implementation-defined.
Similarly, of course, certain operations in C programs will act differently depending on whether the architecture is big-endian or little-endian.
-
@ixvedeusi said in WTF Bites:
Warnings are useless. Either you set the "treat warnings as errors" option, or in no time you will have so many warnings in the code that you'll ignore all of them anyway.
I was thinking that it would be nice to have a tool in for the CI that would compare warnings between builds (adjusting the line numbers according to the diff) to find which warnings are actually new and then annotated the revisions with them for the reviewer to check. Not sure how much it would help, but if proper(ish) reviews are done, it could.
We do not fail the build on warnings, but we do fail a test, and tests have to be OK before merge. This sometimes makes development easier, as you can test intermediate versions of your code without having to remove or
__attribute__((unused))
things first.