WTF Bites
-
The default setting is (of course -_-) to minimize when the close button is clicked
Obviously. Because it's not like there's another button 20 pixels away that does that
Yes, but why only have one button when you can have two, one of which actually has a different function that everybody expects it to perform? Obviously we just don't understand UX design as well as the people at Spotify...
-
I'm kinda weirded out by all the X-rated options hotels.com offers me when I'm not sure about the date yet.
I did say I'll bring children after all.You should go for that first one, the XXX has been deleted there.
-
Spotify desktop client
It responds to the playback keys on my keyboard and doesn't live in some random tab in the browser. Why would anyone not use it?
-
Microsoft certification names couldn't be more cryptic. Well, "Solutions Developer" still has some meaning, but "Solutions Associate"? So you're associated with them... about solutions?
-
@anonymous234 said in WTF Bites:
"Solutions Associate"? So you're associated with them... about solutions?
I guess it depends on how ideal your solutions are - whether you end up with less than you started with after associating.
-
@anonymous234 said in WTF Bites:
Microsoft certification names
Microsoft names of anything are utterly cryptic. Why would you expect certification names to be any better?
-
Microsoft(R) names(TM) of anything are utterly cryptic(C). Why would you expect certification names to be any better?
FTFY.
-
@anonymous234 said in WTF Bites:
Well, "Solutions Developer" still has some meaning, but "Solutions Associate"?
If you're not part of the solution, you're part of the precipitate.
-
Transcript:
[Alien Swarm General Discussion Forum]
my game
why my games insn t start .
(game Alien Swarm)Can you be more specific?
my game alien swarm
i can t start it
-
@ben_lubar So, don't leave us hanging. What was the problem? Why insn t his games start ?
-
@ben_lubar So, don't leave us hanging. What was the problem? Why insn t his games start ?
his game
(game Alien Swarm)
-
@bulb It wouldn't be that bad if they didn't also insist in always using the initials (MCSA, MCSD), which all start with MC which makes them harder to tell apart, and change all their names every few years for no apparent reason (just like they do with all their other products I guess).
-
@anonymous234 Lincoln does something similar with their model name:
- MKC
- MKS
- MKT
- MKX
- MKZ
This is not confusing at all
-
@timebandit said in WTF Bites:
@anonymous234 Lincoln does something similar with their model name:
- MKC
- MKS
- MKT
- MKX
- MKZ
This is not confusing at all
"It's a Lincoln em-kay[static]ee"
-
@anonymous234 said in WTF Bites:
Microsoft certification names couldn't be more cryptic. Well, "Solutions Developer" still has some meaning, but "Solutions Associate"? So you're associated with them... about solutions?
Used to be Systems Administrator, but on-prem is so passรฉ; that cert is now "how do I Azure?"
-
-
Apparently UE4's cooker now has something that detects something when packaging the game.
00:19:10.048 Project.RunUnrealPak: UnrealPak Done ******* 00:20:03.910 UnrealPak: LogPakFile: Display: 1 small files (2048) totaling 72829469 contiguous bytes found before first 'large' file. Changes to any of these files could cause the whole group to be 'dirty' in a per-file binary diff based patching system. 00:20:04.725 UnrealPak: LogPakFile: Display: 1 small files (2048) totaling 72829469 contiguous bytes found before first 'large' file. Changes to any of these files could cause the whole group to be 'dirty' in a per-file binary diff based patching system. 00:20:05.597 UnrealPak: LogPakFile: Display: 1 small files (2048) totaling 72829469 contiguous bytes found before first 'large' file. Changes to any of these files could cause the whole group to be 'dirty' in a per-file binary diff based patching system. 00:20:06.550 UnrealPak: LogPakFile: Display: 1 small files (2048) totaling 72829469 contiguous bytes found before first 'large' file. Changes to any of these files could cause the whole group to be 'dirty' in a per-file binary diff based patching system. 00:20:07.404 UnrealPak: LogPakFile: Display: 1 small files (2048) totaling 72829577 contiguous bytes found before first 'large' file. Changes to any of these files could cause the whole group to be 'dirty' in a per-file binary diff based patching system. 00:20:08.257 UnrealPak: LogPakFile: Display: 1 small files (2048) totaling 72829495 contiguous bytes found before first 'large' file. Changes to any of these files could cause the whole group to be 'dirty' in a per-file binary diff based patching system.
Sure, those "small" 70mb files will cause the group to be dirty alright.
So.... why the fuck is it complaining again?
-
switch (event.getType()) { case NodeDataChanged: //code break; }
That's it. no default, no other case statements. A simple if statement is not good enough for this developer -.-
-
@homobalkanus said in WTF Bites:
switch (event.getType()) { case NodeDataChanged: //code break; }
That's it. no default, no other case statements. A simple if statement is not good enough for this developer -.-
Have to admit - I've done that before... When I knew additional types would be coming but they weren't ready yet.
-
@dcon I just did something similar, but I included a
default
case to catch the ones that weren't ready yet.It was a switch to figure out what view to display--the
default
ed cases get a generic "This page not ready yet" view. Lets me wire up all the buttons and then just add a case each time I finish a view.But a switch with a single case and no default? That's risky. Or stupid. Or both.
-
@homobalkanus said in WTF Bites:
switch (event.getType()) { case NodeDataChanged: //code break; }
That's it. no default, no other case statements. A simple if statement is not good enough for this developer -.-
It's not quite that bad. As proffered so far, it may be that more were expected, but never needed; alternatively, maybe there were others, they got removed, and when one was left, they forgot to change it to an
if
.
-
@benjamin-hall said in WTF Bites:
I just did something similar, but I included a default case to catch the ones that weren't ready yet.
Depending on a few factors (is the type returned by
getType()
a proper enum? are there values other thanNodeDataChanged
already defined for it? what compiler are you using?), that's not necessarily a good idea. Modern GCC et al. will warn you about unhandled values if you don't have adefault
statement.
-
@cvi It wasn't an event type, it was actually a well-defined enum. That's why I felt confident just doing it piecemeal. No question that the OP's version is a
-
@pjh it was written and unmodified for over 2 years. He never needed to do anything else except execute the code on that specific event. Also, it's from a guy that spreads
if (something) { return true; } else { return false; }
all throughout his code so my tolerance for his shenanigans is already very low.
-
@homobalkanus And "something" is probably a boolean
-
@benjamin-hall said in WTF Bites:
It wasn't an event type, it was actually a well-defined enum.
Eh, yeah, kinda forgot that your example may have been different.
Either way, point is that you can get the compiler to warn you about unhandled enums in a switch if you don't have a
default
statement. Having a default case tends to disable the warning. Whether or not that's applicable to your case ... well, you definitively know that better than I do. :-)
-
@timebandit almost. Sometimes it's
expression == true
-
@homobalkanus said in WTF Bites:
expression == true
Get his address, we'll send someone to burn his house
-
@timebandit No, if it was a boolean the code would read
if (something == true)
-
@cvi When I'm done with all the views I'll remove the
default
case and see if it whines. But yeah, that's something good to remember.
-
@hungrier To be really sure, you should do
if ((something == true) == true)
-
Once had a user reporting that data loaded into the grid weren't complete, some periods are missing. There was a scroll bar on the right hand side of the grid. The data she wanted was outside of the viewport.
That's a software bug.
One bug report regarding this, no one's ever had problems.
Yeah, sometimes the user's the problem.That means it's a low-priority software bug. That does not mean there's no possibility of improving the software.
-
@tsaukpaetra said in WTF Bites:
why the fuck
Being the ever curious soul that I am, I decided to google this message...
(omitting the double-quotes returns results for git for some reason)
-
@timebandit said in WTF Bites:
@hungrier To be really sure, you should do
if ((something == true) == true)
You aren't sanity checking for three-state bools unless you do this:
if ((something != false) == true) { return true; } else { return false; }
-
@timebandit said in WTF Bites:
@hungrier To be really sure, you should do
if ((something == true) == true)
-
@timebandit said in WTF Bites:
@hungrier To be really sure, you should do
if ((something == true) == true)
But how do you know the right side is really what you want? You have to ensure that logic hasn't changed on you:
if ((something == true) == (true == true))
-
But how do you know the right side is really what you want? You have to ensure that logic hasn't changed on you:
if ((something == true) == (true == true))
if ((something == true) == (true == true)) { // do something here } else if ((something == false) == (false == false)) { // do some other thing here } else { throw E_FILE_NOT_FOUND; }
Better safe than sorry
-
@timebandit said in WTF Bites:
@homobalkanus said in WTF Bites:
expression == true
Get his address, we'll send someone to burn his house
He'll have to burn down our whole department. Well, mostly the students. Haven't yet found a concise way to drive home how stupid that is.
For the math-y guys, I've mentioned that
== true
is an identity operation, since that's a language they should understand. Otherwise I've resorted to pointing out yourif ((something == true) == true)
.I'm not sure why it is so common. I've also seen shit like
something ? true : false
.
-
Haven't yet found a concise way to drive home how stupid that is.
This might help
-
@topspin There's also the related
something ? false : true
Filed under: Not operator? I hardly know her!
-
I present some examples I've seen
-
Writing "tamper-proof" on your product is an invitation to hack it
-
@timebandit this "15-year old" seems waayyy more intelligent than me...
-
I've also seen shit like
something ? true : false
.The next-level alternative to that is
!!something
.More seriously. IIRC VisualStudio tends to complain about various conversions to
bool
("performance warning: forcing X to bool"). I don't remember the exact context. Either way,foo ? true : false
is one of the ways to silence it, as is!!foo
. My preferred version would bebool(foo)
, but unfortunately that doesn't avoid the warning, which IMO is a pity. It's also a false lead, the generated code is (obviously) identical for all of these -- you could maybe avoid like one instruction by not mentioningbool
at all, but the optimizer will nuke that instruction if code is inlined (and if not, that instruction is unlikely to be the problem).So, you can chalk that one up not only for cluelessness, but also for VisualStudio being retarded.
-
:garage:
A neo-Nazi and Holocaust denier garnered more than 20,000 votes and won the Republican primary in the 3rd Congressional District of Illinois on Tuesday night after running uncontested.
Art Jones for Congressman | Holocaust?
This idea that "SIX MILLION JEWS," were killed by the National Socialist government in Germany, in World War II, is the biggest, blackest, lie in history. ... there is no proof that such a so-called "HOLOCAUST" ever took place anywhere in Europe, against the Jews. ...
-
****bolded text**what's the difference between a neo-nazi and a nazi?
ur mom
-
-
I've also seen shit like
something ? true : false
.In addition to what @cvi said, keep in mind the Windows API type
BOOL
is astd::uint32_t
.
-
Minor WTF of my day:
Just got an email from Netflix - they're doing a survey and would like my opinion. Okay, why not?
Now, I got this email a mere minute ago.
Click on the link:
Thank you for your interest but this survey is already closed
-
@rhywden they wanted to determine the median email response time of their users