WTF Bites


  • BINNED

    Alas, the “sugar in everything!” thread is no more 😔

    Because I have a label that would make levicki proud:

    sugar.jpg


  • Banned

    @MrL said in WTF Bites:

    @LaoC said in WTF Bites:

    @MrL said in WTF Bites:

    @LaoC said in WTF Bites:

    @MrL said in WTF Bites:

    @Zerosquare said in WTF Bites:

    @MrL 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 :crazy:

    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 and svn merge.


  • Notification Spam Recipient

    @Gąska said in WTF Bites:

    @MrL said in WTF Bites:

    @LaoC said in WTF Bites:

    @MrL said in WTF Bites:

    @LaoC said in WTF Bites:

    @MrL said in WTF Bites:

    @Zerosquare said in WTF Bites:

    @MrL 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 :crazy:

    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 and svn merge.

    I don't think you understand what I mean. And honestly I don't feel like explaining.


  • BINNED

    @MrL said in WTF Bites:

    I don't think you understand what I mean. And honestly I don't feel like explaining.

    Nominated for WTDWTF tagline. 🐠


  • Notification Spam Recipient

    @topspin said in WTF Bites:

    @MrL said in WTF Bites:

    I don't think you understand what I mean. And honestly I don't feel like explaining.

    Nominated for WTDWTF tagline. 🐠

    I'm honored.


  • Banned

    @MrL said in WTF Bites:

    @Gąska said in WTF Bites:

    @MrL said in WTF Bites:

    @LaoC said in WTF Bites:

    @MrL said in WTF Bites:

    @LaoC said in WTF Bites:

    @MrL said in WTF Bites:

    @Zerosquare said in WTF Bites:

    @MrL 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 :crazy:

    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 and svn 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.


  • Considered Harmful

    I'm so glad we have quality gates that require all public methods to be documented.

    bacb2591-2cf6-4d21-b724-6f8cc8a73e0e-image.png


  • Considered Harmful

    @kazitor said in WTF Bites:

    Alas, the “sugar in everything!” thread is no more 😔

    Because I have a label that would make levicki proud:

    sugar.jpg

    Wow, 112g of carbs in every 100g?


  • Notification Spam Recipient

    @Gąska said in WTF Bites:

    I don't really care what you mean

    @topspin you have any of those nominations laying around?


  • Notification Spam Recipient

    @error said in WTF Bites:

    @kazitor said in WTF Bites:

    Alas, the “sugar in everything!” thread is no more 😔

    Because I have a label that would make levicki proud:

    sugar.jpg

    Wow, 112g of carbs in every 100g?

    That's a lot of sugar in sugar.


    Filed under: obscure Polish film references.



  • @error said in WTF Bites:

    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 :half-trolling:


  • Banned

    @MrL said in WTF Bites:

    @Gąska said in WTF Bites:

    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?



  • @MrL said in WTF Bites:

    Could be handled automatically with one button press by the user

    The :trwtf: is using a GUI for Git 🤷♂


  • Notification Spam Recipient

    @Gąska said in WTF Bites:

    @MrL said in WTF Bites:

    @Gąska said in WTF Bites:

    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.


  • Notification Spam Recipient

    @TimeBandit said in WTF Bites:

    @MrL said in WTF Bites:

    Could be handled automatically with one button press by the user

    The :trwtf: is using a GUI for Git 🤷♂

    Furious ⬇ 🛶



  • @Tsaukpaetra said in WTF Bites:

    @Watson Someone should really port that to Windows someday...


  • ♿ (Parody)

    @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 :half-trolling:

    Eh. Lawns exist.



  • 2c406bf3-7c63-42e2-9a09-11713e4e9eb4-image.png

    Uh, wtf? Downloading where? Why? It's a freaking network drive - everything else just opens stuff off it directly?


  • Banned

    @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.



  • @Gąska said in WTF Bites:

    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?


  • Banned

    @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.


  • Notification Spam Recipient

    @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!



  • @Gąska said in WTF Bites:

    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.



  • @cvi said in WTF Bites:

    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.



  • @Bulb said in WTF Bites:

    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:

    d90300cd-5750-4145-9be5-06745a27a1ce-image.png

    Same 800 MB file. Also way more "unreliable", since yanking an USB thumb drive isn't exactly an unheard of thing.


  • Discourse touched me in a no-no place

    @TimeBandit said in WTF Bites:

    @MrL said in WTF Bites:

    Could be handled automatically with one button press by the user

    The :trwtf: is using a GUI for Git 🤷♂

    Yes 🎺



  • 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.


  • Discourse touched me in a no-no place

    @cvi said in WTF Bites:

    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.


  • Discourse touched me in a no-no place

    @cvi said in WTF Bites:

    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.



  • @remi said in WTF Bites:

    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 :wtf: 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.


  • Discourse touched me in a no-no place

    @cvi said in WTF Bites:

    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.


  • Banned

    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.


  • Banned

    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.

  • Discourse touched me in a no-no place

    @Gąska said in WTF Bites:

    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 🎺


  • Banned

    @loopback0 said in WTF Bites:

    supposed to

    That's a weird way to spell "shouldn't ever".


  • Notification Spam Recipient

    @cvi said in WTF Bites:

    The rather depressingly common USB2 caps at 500 Mbit/s

    I could have swore it was 150 Mbps....


  • Banned

    @Tsaukpaetra sworN


  • Notification Spam Recipient

    @Gąska said in WTF Bites:

    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!

    @Gąska said in WTF Bites:

    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...


  • Notification Spam Recipient

    @Gąska said in WTF Bites:

    @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.


  • Banned

    @Tsaukpaetra said in WTF Bites:

    @Gąska 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".


  • Notification Spam Recipient

    @Gąska said in WTF Bites:

    @Tsaukpaetra said in WTF Bites:

    @Gąska 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++!


  • 🚽 Regular

    @cvi said in WTF Bites:

    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 :faxbarrierjoker:)


  • 🚽 Regular

    @Gąska said in WTF Bites:

    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:

    04f9433b-6e29-420e-ab78-1c22844f7540-image.png

    (all I did was open Powershell through File Explorer)


  • Banned

    @Zecc ENOREPRO, which makes it even more glorious.


  • Discourse touched me in a no-no place

    @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.

    1116fb42-2751-4eff-b936-f2b7afbaf2da-image.png


  • Discourse touched me in a no-no place

    @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.

    1116fb42-2751-4eff-b936-f2b7afbaf2da-image.png

    Now it's behind them on display 2 and 1:
    25522f09-b848-4c85-8337-653484da38e0-image.png

    And behind the taskbar on display 1 but not 3:
    22fe3163-eda3-4a11-ab7c-4502b5225f97-image.png

    :wtf:

    edit: now the taskbar is ontop on all 3 displays because Windows 🤷



  • @Tsaukpaetra said in WTF Bites:

    Let's talk about C++!

    0c9db14e-5b66-4552-9eae-7daae7506fe9-image.png


Log in to reply