WTF Bites
-
Alas, the “sugar in everything!” thread is no more
Because I have a label that would make levicki proud:
-
@Zerosquare said in WTF Bites:
Why barf if anything is in the directory, instead of when there's a conflict?
I guess the logic is "after
clone
, the directory contents match the state of the repo". Which wouldn't be the case if there are already files in the directory, even if if there are no conflicts.That's great, but if I try to clone into non-empty directory, then clearly that's not what I want.
Any program with a slightest semblance of user friendliness would be prepared for this common scenario and ask me if I want to treat existing files as new changes or abort cloning."I have shit in a directory that has nothing whatsoever in common with that other repository (because otherwise there'd be conflicts) but I want to merge that with the repository by using a single command that's supposed to make an identical copy as opposed to making a copy and using a single other command to move my shit in there" is just not sane enough to be part of most people's workflow. Making "clone" interactive in some cases introduces a corner case that I bet would bite more people when scripting git than would be saved the small inconvenience of using two or three commands in your case.
@MrL said
And of course plenty of people will tell you that it's a good thing
It's doing the opposite of "puking complexity". Interactive programs that handle exotic scenarios are necessarily more complex, and programs that are usually not interactive except when they are, particularly so. Not just programmatically, also cognitively.
No.
Yes. Compare
git merge
andsvn merge
.
-
@Zerosquare said in WTF Bites:
Why barf if anything is in the directory, instead of when there's a conflict?
I guess the logic is "after
clone
, the directory contents match the state of the repo". Which wouldn't be the case if there are already files in the directory, even if if there are no conflicts.That's great, but if I try to clone into non-empty directory, then clearly that's not what I want.
Any program with a slightest semblance of user friendliness would be prepared for this common scenario and ask me if I want to treat existing files as new changes or abort cloning."I have shit in a directory that has nothing whatsoever in common with that other repository (because otherwise there'd be conflicts) but I want to merge that with the repository by using a single command that's supposed to make an identical copy as opposed to making a copy and using a single other command to move my shit in there" is just not sane enough to be part of most people's workflow. Making "clone" interactive in some cases introduces a corner case that I bet would bite more people when scripting git than would be saved the small inconvenience of using two or three commands in your case.
@MrL said
And of course plenty of people will tell you that it's a good thing
It's doing the opposite of "puking complexity". Interactive programs that handle exotic scenarios are necessarily more complex, and programs that are usually not interactive except when they are, particularly so. Not just programmatically, also cognitively.
No.
Yes. Compare
git merge
andsvn merge
.I don't think you understand what I mean. And honestly I don't feel like explaining.
-
I don't think you understand what I mean. And honestly I don't feel like explaining.
Nominated for WTDWTF tagline.
-
I don't think you understand what I mean. And honestly I don't feel like explaining.
Nominated for WTDWTF tagline.
I'm honored.
-
@Zerosquare said in WTF Bites:
Why barf if anything is in the directory, instead of when there's a conflict?
I guess the logic is "after
clone
, the directory contents match the state of the repo". Which wouldn't be the case if there are already files in the directory, even if if there are no conflicts.That's great, but if I try to clone into non-empty directory, then clearly that's not what I want.
Any program with a slightest semblance of user friendliness would be prepared for this common scenario and ask me if I want to treat existing files as new changes or abort cloning."I have shit in a directory that has nothing whatsoever in common with that other repository (because otherwise there'd be conflicts) but I want to merge that with the repository by using a single command that's supposed to make an identical copy as opposed to making a copy and using a single other command to move my shit in there" is just not sane enough to be part of most people's workflow. Making "clone" interactive in some cases introduces a corner case that I bet would bite more people when scripting git than would be saved the small inconvenience of using two or three commands in your case.
@MrL said
And of course plenty of people will tell you that it's a good thing
It's doing the opposite of "puking complexity". Interactive programs that handle exotic scenarios are necessarily more complex, and programs that are usually not interactive except when they are, particularly so. Not just programmatically, also cognitively.
No.
Yes. Compare
git merge
andsvn merge
.I don't think you understand what I mean. And honestly I don't feel like explaining.
I don't really care what you mean, if the conclusion is "SVN's command line interface for merges is ever so slightly better than Git's", then you're wrong anyway.
-
I'm so glad we have quality gates that require all public methods to be documented.
-
Alas, the “sugar in everything!” thread is no more
Because I have a label that would make levicki proud:
Wow, 112g of carbs in every 100g?
-
I don't really care what you mean
@topspin you have any of those nominations laying around?
-
Alas, the “sugar in everything!” thread is no more
Because I have a label that would make levicki proud:
Wow, 112g of carbs in every 100g?
That's a lot of sugar in sugar.
Filed under: obscure Polish film references.
-
Wow, 112g of carbs in every 100g?
Each 25g serving has 28g of carbs and 3g of protein. But the trick is, the protein is made of antimatter
-
@Zerosquare said in WTF Bites:
someone who thinks UNIX is the best thing in the world?
It is the best thing in the world
-
I don't really care what you mean
@topspin you have any of those nominations laying around?
Like, not even you care about what you mean (at least not enough to write more than literally just a single word). So why would anyone else?
-
Could be handled automatically with one button press by the user
The is using a GUI for Git
-
I don't really care what you mean
@topspin you have any of those nominations laying around?
Like, not even you care about what you mean (at least not enough to write more than literally just a single word). So why would anyone else?
That's a bizarre interpretation. I like it.
-
@TimeBandit said in WTF Bites:
Could be handled automatically with one button press by the user
The is using a GUI for Git
Furious
-
-
@TimeBandit said in WTF Bites:
@Zerosquare said in WTF Bites:
someone who thinks UNIX is the best thing in the world?
It is the best thing in the world
Eh. Lawns exist.
-
Uh, wtf? Downloading where? Why? It's a freaking network drive - everything else just opens stuff off it directly?
-
@cvi maybe they learned to never trust network drives and preemptively copy it to temporary directory. Which, if true, would be a good thing IMO.
-
maybe they learned to never trust network drives and preemptively copy it to temporary directory. Which, if true, would be a good thing IMO.
I'm normally a follower of the fix-it-in-software approach (because hardware is difficult(tm)). But this case is definitively an exception. If your network drives are that unreliable, maybe fix the infrastructure instead?
-
@cvi it's less of fix-it-in-software and more of fix-it-in-Microsoft's-product-because-people-will-blame-Microsoft-for-all-their-problems-regardless-of-who's-at-fault.
-
@TimeBandit said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@Watson Someone should really port that to Windows someday...
Oooohhhh! I may have to thank you later!
-
fix-it-in-Microsoft's-product-because-people-will-blame-Microsoft-for-all-their-problems-regardless-of-who's-at-fault.
Ok, fair, I can see the rationale behind that argument.
I was just assuming that Powerpoint sucked in one more way, and instead of fixing the underlying problem, they worked around it in a slightly hamfisted way.
-
Uh, wtf? Downloading where? Why? It's a freaking network drive - everything else just opens stuff off it directly?
Just because it is a network drive that behaves as files does not mean it is any faster, right? My guess is someone thought that it's slow implies it's over network (which it is, even if only local one), so Downloading would be the right word to use.
-
Just because it is a network drive that behaves as files does not mean it is any faster, right?
No, but the question is more why you'd go out of your way with a different code path than just the normal loading (after all, you can access the files with the same APIs in either case). It doesn't seem they take the relative speed into account: PPT doesn't do the whole downloading business if you open it off a shitty thumbdrive, which is way slower than the network one:
Same 800 MB file. Also way more "unreliable", since yanking an USB thumb drive isn't exactly an unheard of thing.
-
@TimeBandit said in WTF Bites:
Could be handled automatically with one button press by the user
The is using
a GUI forGitYes
-
So,
Visual Studio is now popping up with a dialog asking me if I'm liking Visual Studio, on start.
I'm almost always having to start Visual Studio because it locked up or crashed.
Yay, good job guys.
-
It doesn't seem they take the relative speed into account: PPT doesn't do the whole downloading business if you open it off a shitty thumbdrive, which is way slower than the network one:
Local drive vs remote drive.
I think this behaviour makes sense considering that's it's probably more likely than not that a local drive is faster than a remote drive.
-
@loopback0 Then why not check for shitty thumbdrives? The rather depressingly common USB2 caps at 500 Mbit/s and most drives don't even reach that.
Despite that (I picked the shittiest drive that I could find, maxing out at maybe 8 MB/s), PPT managed to "open" the file faster off the thumb drive than of the network drive, because it apparently didn't have to wait for the whole file to be downloaded.
-
Then why not check for shitty thumbdrives?
Why not check for slow HDDs too? Or if the logged on user is @Tsaukpaetra?
The assumption that remote is likely slower than local is simple and straight forward rather than wasting even more time figuring out the speed of a drive to determine the subsequent behaviour.
Plus remote drives are, well, remote and speed isn't the only potential problem.
-
Then I got an email about how one appliance (appliance 2) has been dispatched, and will be delivered by delivery company "WARNING". Yes, written like that. In several places in the email.
Plot twist: I found out when they emailed me that it's the actual name of the delivery company, which I'd never heard of. What a weird name, and not really inspiring a lot of confidence! They're probably a subsidiary of the better known company that appeared in e.g. the broken tracking list.
I'm waiting for the call from the delivery company to see what they actually have. All communication from the seller clearly state that the delivery company will contact me to set a delivery date, not to deliver, but I'm fully expecting that they'll call me saying "we're in front of your house, why is there nobody home?"
OK, I was overly negative here. Their email was asking me to pick a delivery date, in an actually working web page, for a change! So it seems I might get my appliances after all.
Well, one of it, said the page. So now I just have to find happened to the other one. And hope that the first one will really get there.
-
@loopback0 said in WTF Bites:
Why not check for slow HDDs too? Or if the logged on user is @Tsaukpaetra?
Yes, that is kinda my point. Why bother checking at all in the first place? Yes, in my case the network drive is slower than the SSD/nvme system one, but it's faster than most arbitrary USB drives.
If you're somewhere with 10 Gbit ethernet + a reasonable file server to back it up, you're above SATA speeds. 10 Gbit ethernet is a bit pricey for individuals still, but it's not exactly out of reach either, and definitively not for a business.
-
If you're somewhere with 10 Gbit ethernet
I'd wager that the majority of enterprise customers are not (because it costs money) and even if they have 1Gbit connections to each machine it'll be lots of users into a shared uplink or a server with a single NIC that's probably also just 1Gbit.
On the unlikely event they all work at some rare company that puts 10Gbit NICs into workstations, the server at the end won't have the capacity to serve even close to that to multiple users simoultaneously.
Even if every user in a typical enterprise company had a USB drive that worked at 20% of the theoretical max USB 2.0 speed, it's still probably faster than if the users tried to access the same network share over their own corporate network.
-
Doing WinAPI again! Didn't take long to find a WTF. Including the time that took me to re-learn Windows Forms, less than an hour.
[!Note]
As of Windows 7, ABS_ALWAYSONTOP is no longer returned because the taskbar is always in that state. Older code should be updated to ignore the absence of this value in not assume that return value to mean that the taskbar is not in the always-on-top state.So because the taskbar is always on top in Windows 7. When a legacy program asks whether it's on top or not, the answer is always no, it isn't. Because that makes sense. Making the function always respond "yes, it is on top" would be too confusing. Or something. I'd really like to hear the thought process of the idiot who implemented this change.
-
As for why I was looking up this stuff. That's quite a WTF too.
Mass Effect: Andromeda has a very peculiar bug. When you set display mode to borderless windowed, the game occupies the entire screen as expected, UNLESS you have the taskbar on the side instead of at the bottom, in which case the game occupies the entire screen except for taskbar. UNLESS the taskbar is set to autohide, in which case the game occupies the entire screen as expected. And when it does, you can disable autohide and the game keeps occupying the entire screen and covers the taskbar too. I can't imagine what the code must look like to exhibit this exact behavior.
So every time I launched the game, I then had to do five mouse clicks to toggle the autohide on and off. This is way too much and I figured I could reduce it to two if only I could control the autohide property programmatically. Which turns out I can! So that's what I was doing for the past 2 hours - a program that's just a tray icon that when clicked, toggles the taskbar autohide on and off. I was shocked to see it working basically first try, and with no delay between the on and the off.
Bonus WTFs:
- WPF doesn't support tray icons at all and I'm a sad panda. WinForms is the only option (in .Net).
- That you have to define all P/Invoke declaration from standard WinAPI headers by yourself is just retarded.
- When a WinForms tray icon has a click event listener, it gets invoked for either left or right click - no way to specify left-only listener. You have to check it yourself. Even when the icon has a context menu, the right-click event still gets sent. But not on click - it gets sent after the context menu disappears. I can't imagine any scenario where this is useful.
- Even though the click event always uses MouseEventArgs object, it's declared as basic EventArgs. So to check which button was clicked in the click event handler, you must typecast.
-
So every time I launched the game, I then had to do five mouse clicks to toggle the autohide on and off. This is way too much and I figured I could reduce it to two if only I could control the autohide property programmatically.
Or none if you had the taskbar at the bottom like it's supposed to be
-
-
The rather depressingly common USB2 caps at 500 Mbit/s
I could have swore it was 150 Mbps....
-
@Tsaukpaetra sworN
-
WPF doesn't support tray icons at all and I'm a sad panda.
Yeah, apparently you're not expected to run presentation programs like that. Silly Microsoft!
Even though the click event always uses MouseEventArgs object, it's declared as basic EventArgs. So to check which button was clicked in the click event handler, you must typecast.
Useful knowledge! I'm sure at one point I would have been greatly thankful for your discovery...
-
@Tsaukpaetra sworN
No, I'm ever in the active act of swearing. But maybe not always, so I swore I sworn the swear words swearing at a distracting pedantication.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra sworN
No, I'm ever in the active act of swearing.
Which is even more reason to write "sworn" and not "swore".
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra sworN
No, I'm ever in the active act of swearing.
Which is even more reason to write "sworn" and not "swore".
Aaaannd I'm bored of this conversation. Let's talk about C++!
-
Yes, that is kinda my point. Why bother checking at all in the first place? Yes, in my case the network drive is slower than the SSD/nvme system one, but it's faster than most arbitrary USB drives.
But can someone else edit the file on the thumbdrive simultaneously?
(remote sessions )
-
So because the taskbar is always on top in Windows 7. When a legacy program asks whether it's on top or not, the answer is always no, it isn't. Because that makes sense. Making the function always respond "yes, it is on top" would be too confusing. Or something. I'd really like to hear the thought process of the idiot who implemented this change.
They should put it back because of Windows 10:
(all I did was open Powershell through File Explorer)
-
@Zecc
ENOREPRO
, which makes it even more glorious.
-
@Gąska I just had Powershell and Explorer windows on top of the taskbar on all 3 displays - then I unlocked the taskbar to see if it made any difference and now even after locking it again Powershell and Explorer will only go over the taskbar on displays 2 and 3
Here's Explorer behind one but not the other.
-
@loopback0 said in WTF Bites:
@Gąska I just had Powershell and Explorer windows on top of the taskbar on all 3 displays - then I unlocked the taskbar to see if it made any difference and now even after locking it again Powershell and Explorer will only go over the taskbar on displays 2 and 3
Here's Explorer behind one but not the other.
Now it's behind them on display 2 and 1:
And behind the taskbar on display 1 but not 3:
edit: now the taskbar is ontop on all 3 displays because Windows
-
@Tsaukpaetra said in WTF Bites:
Let's talk about C++!