WTF Bites
-
@topspin
Oh come on! It is the reference video for waxing!
-
In case anyone wants to write some eminently maintainable and clear code, here's a quick Javascript test of what works and what doesn't for incrementing:
-
@hungrier But does it really work or only “work”? That is, will the outcome be consistent?
Because according to the results it was clearly desugared to
_t1 = t; t = t + 1; _t2 = t; t = _t1 + _t2
and_t1 = t; _t2 = t; t = t + 1; t = _t1 + _t2
by this interpreter, but that evaluation order may not be actually specified anywhere, in which case another interpreter might do something else.
-
@hungrier But does it really work or only “work”? That is, will the outcome be consistent?
That sounds like a problem for someone else in the future. Maybe to make it more clear, insert this as well:
// t += ++t + t++;
-
In case anyone wants to write some eminently maintainable and clear code, here's a quick Javascript test of what works and what doesn't for incrementing:
++t++
is++(t++)
. Mixing prefix and postfix operators is often confusing.Not that that's the worst thing wrong with this experiment.
-
@hungrier But does it really work or only “work”? That is, will the outcome be consistent?
That sounds like a problem for someone else in the future. Maybe to make it more clear, insert this as well:
// t += ++t + t++;
Ok, so
> t = 6 6 > t += ++t + t++ 20 > t = 6 6 > t += t++ + ++t 20
which makes the order a bit strange, because it is not evaluating the arguments to the
+
sequentially—the pre-side-effect takes effect before evaluating either—but it does evaluate the arguments to+=
in sequence, because the left-hand-side is always the initial value…
And it seems to match between vp8 (node) and spidermonkey (firefox) though that's still no guarantee.
-
In case anyone wants to write some eminently maintainable and clear code, here's a quick Javascript test of what works and what doesn't for incrementing:
++t++
is++(t++)
. Mixing prefix and postfix operators is often confusing.Wait, JS has lvalue/rvalue split too?
-
@Gąska What part of
Invalid left-hand side expression
made you think it didn't?
-
In case anyone wants to write some eminently maintainable and clear code, here's a quick Javascript test of what works and what doesn't for incrementing:
++t++
is++(t++)
. Mixing prefix and postfix operators is often confusing.Wait, JS has lvalue/rvalue split too?
How would it possibly not if it’s got
++
?
-
@topspin just allow temporaries to be incremented?
-
code smell.
I believe I was intending to decrement-if-not-greater-than-zero, but I don't think that's a function and I wasn't thinking (obviously).
-
which is a code smell
Depends on the language. In some it is a bug.
In Java and C#, with their exactly defined evaluation order, it is merely a code smell. In C and C++, where the order of evaluation is much more slippery, it is definitely a bug. For other languages, you'll need to consult the docs/spec to know which.
-
Not that that's the worst thing wrong with this experiment.
It's JavaScript. Then it goes (further) downhill from there.
-
-
-
Can we please not make my eyes bleed?
That would be the perfect response on a code review. Along with
E_REJECT_WITH_PREJUDICE
-
The remedy? Disable Windows
internet access completely, install relevant updates manually.FTFY
Look. Some people want their computers to be able to play sound.
I hear ya. A couple years back, my brother invited me over to his place to hang out and watch a movie. He had quite a nice digital library, but when I got there, he wasn't able to make any of them actually play. No matter what he did, poking around in various configurations, he either couldn't get anything to play at all, or there was sound but no video, or there was video but no sound. He really should have been able to get this to work -- he's a professional programmer just like me -- but he was on a Linux box because "they just work better."
Finally I just said "be right back." I left, drove back to my place (about 4 miles), grabbed my Windows laptop, and drove back. He was still trying and failing to get it to play anything at all. I opened up my computer, connected to the wi-fi, pulled up a movie on Amazon Instant Video, connected the computer to the TV's HDMI, and it worked exactly as expected on the first try.
What was that about just working better?
-
@Mason_Wheeler said in WTF Bites:
just work better
I would never say that about literally almost anything. Dude is an idiot.
-
@Zerosquare said in WTF Bites:
borked
boxenDoes seeing this jargon in a news article bother anyone else or am I just ok boomering myself?
I've seen Raymond Chen use the term "pwned" in serious articles, to refer to compromising a computer. So...
-
@Mason_Wheeler said in WTF Bites:
he was on a Linux box because "they just work better."
Yes.
What was that about just working better?
Truth.
-
@boomzilla Is this an earth-73 thing? Because in the real world, actually working at all is a necessary but not sufficient precondition for "working better."
-
@Mason_Wheeler said in WTF Bites:
@boomzilla Is this an earth-73 thing? Because in the real world, actually working at all is a necessary but not sufficient precondition for "working better."
No no, what he's saying is that the Linux box worked better to encourage doing the Right Thing, which is it get off the TV and do something else!
-
@Mason_Wheeler said in WTF Bites:
@boomzilla Is this an earth-73 thing? Because in the real world, actually working at all is a necessary but not sufficient precondition for "working better."
Possibly. I can only speak for my experience, where Windows often can't even shut itself down. However, if your brother wasn't running KDE, then you might have a point.
-
@Mason_Wheeler said in WTF Bites:
The remedy? Disable Windows
internet access completely, install relevant updates manually.FTFY
Look. Some people want their computers to be able to play sound.
I hear ya. A couple years back, my brother invited me over to his place to hang out and watch a movie. He had quite a nice digital library, but when I got there, he wasn't able to make any of them actually play. No matter what he did, poking around in various configurations, he either couldn't get anything to play at all, or there was sound but no video, or there was video but no sound. He really should have been able to get this to work -- he's a professional programmer just like me -- but he was on a Linux box because "they just work better."
Finally I just said "be right back." I left, drove back to my place (about 4 miles), grabbed my Windows laptop, and drove back. He was still trying and failing to get it to play anything at all. I opened up my computer, connected to the wi-fi, pulled up a movie on Amazon Instant Video, connected the computer to the TV's HDMI, and it worked exactly as expected on the first try.
What was that about just working better?
@error_bot xkcd supported features
-
-
@Mason_Wheeler said in WTF Bites:
Because in the real world, actually working at all is a necessary but not sufficient precondition for "working better."
On a related note, does Windows ship drivers for OpenGL > 1.1 yet?
-
@topspin Why would the OS do that, and not the graphics card manufacturer?
-
@Mason_Wheeler said in WTF Bites:
@topspin Why would the OS do that, and not the graphics card manufacturer?
Because our Windows Terminal Servers are virtual machines without a dedicated graphics card.
BTW, why is it the hardware manufacturer‘s job when complaining about windows, but Linux‘s Job when complaining about your sound problems?
-
Because our Windows Terminal Servers are virtual machines without a dedicated graphics card.
You actually *wish* for software OpenGL rendering?
:head_asplode.pgm:
-
Because our Windows Terminal Servers are virtual machines without a dedicated graphics card.
You actually *wish* for software OpenGL rendering?
:head_asplode.pgm:
Compared to no rendering at all? Yes.
-
@Mason_Wheeler said in WTF Bites:
@topspin Why would the OS do that, and not the graphics card manufacturer?
Because our Windows Terminal Servers are virtual machines without a dedicated graphics card.
BTW, why is it the hardware manufacturer‘s job when complaining about windows, but Linux‘s Job when complaining about your sound problems?
It's the hardware manufacturer's job when discussing specialized 3D acceleration libraries that require purpose-built 3D graphics hardware to work in any efficient way. Sound, by contrast, has been pretty much a standardized, solved problem since the 90s.
-
@Mason_Wheeler said in WTF Bites:
@Mason_Wheeler said in WTF Bites:
@topspin Why would the OS do that, and not the graphics card manufacturer?
Because our Windows Terminal Servers are virtual machines without a dedicated graphics card.
BTW, why is it the hardware manufacturer‘s job when complaining about windows, but Linux‘s Job when complaining about your sound problems?
It's the hardware manufacturer's job when discussing specialized 3D acceleration libraries that require purpose-built 3D graphics hardware to work in any efficient way. Sound, by contrast, has been pretty much a standardized, solved problem since the 90s.
@levicki said in WTF Bites:
Compared to no rendering at all? Yes.
There is this thing called DirectX reference rasterizer you know...
Yeah, they do have the DirectX drivers, so it’s not like it’s impossible for them to provide working graphics. The rest of the "2d" windowing system is built on it anyway.
And no, I’m not going to use DirectX when OpenGL is platform independent. Or, as Mason put it, pretty much standardized.
-
And no, I’m not going to use DirectX when OpenGL is platform independent. Or, as Mason put it, pretty much standardized.
Yeah, that's the really nice thing about OpenGL: it's available everywhere. (At least... everywhere where you have an actual video card.) And screw any iDiot phone manufacturers who want to undermine its universality.
-
@Mason_Wheeler said in WTF Bites:
And no, I’m not going to use DirectX when OpenGL is platform independent. Or, as Mason put it, pretty much standardized.
Yeah, that's the really nice thing about DirectX: it's available everywhere. (At least... everywhere where you have an actual video card.) And screw any iDiot phone manufacturers who want to undermine its universality.
Everywhere as in “on every Windows OS”?
And I assume by iDiot you mean Apple, implying that your Android phone runs DirectX?
-
@topspin Argh. I meant OpenGL. Fixed now.
-
@Mason_Wheeler said in WTF Bites:
Because in the real world, actually working at all is a necessary but not sufficient precondition for "working better."
On a related note, does Windows ship drivers for OpenGL > 1.1 yet?
No. You have to make it yourself.
-
Thanks, IGN.
-
I only look at walkthroughs when there's a branch in the plot and I need to choose one blindly.
-
BTW, why is it the hardware manufacturer‘s job when complaining about windows, but Linux‘s Job when complaining about your sound problems?
Because it's not drivers that are the issue with sound on Linux. It's the absolute fustercluck of several concurrent, incompatible sound subsystems in a perpetual state of race condition, and about 74 hacks developed on the spot that try to make one subsystem see the other subsystem as audio output and vice versa, which was never properly tested outside the original developer's machine (whether it was tested on the dev's machine is unknown).
-
@Gąska I put in speakers and it works.
-
Just got an email from Microsoft about "suspicious activity from a recent sign-in attempt" for my old Skype account. OK, not sure why someone really wants that, but let's look.
Get into the account with its relatively secure password and two factor authentication and the only recent activity listed is my current login and a failed login from half a month ago from, supposedly, Moldova.
OK sure, suspicious that "I" would suddenly attempt to sign in out of the blue from some eastern European country, but is it worthy of notification since it failed (despite other lines in the email suggesting it succeeded) and why wait for 15 days to say something?
-
@Gąska I put in speakers and it works.
Whereas I've recently managed to crash the entire user session and get dropped back to login screen by switching from speakers to headphones.
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
Minor WTF of my day: So, I have this thing which I can repair under warranty. The website offered me three options: Normal repair (I get a shipping label and have to schlepp the package to the nearest post office, then wait for up to 10 days), expedited repairs (same thing but only 4 days of waiting in exchange for 20€) or express (in which case the package is picked up at my location and returned after 2 days for 40€).
The only problem with the last one: They cannot tell me exactly when the pick up is supposed to take place ("some time between 10am and 6pm!"), nor do they actually guarantee that it will happen on the announced date ("might be the next day if we feel like it!")
Yeah, guys, you're really selling it here.
-
Thanks, technology!
-
-
@Mason_Wheeler said in WTF Bites:
@boomzilla Is this an earth-73 thing? Because in the real world, actually working at all is a necessary but not sufficient precondition for "working better."
Hahaha! Guess which OS refuses to acknowledge one of my monitors this morning! Did you guess Windows 10? Because that's the one.