WTF Bites



  • @Tsaukpaetra said in WTF Bites:

    Artificial scarcity?

    Why would they do that??

    If the games were traded, it would rise the price. But they can't and the price won't change. So it makes no sense.

    The vendor might want to increase the price when it's selling better than expected. But Steam can't do this themselves anyway, so it doesn't explain the limit from their side either.



  • So, I was looking at some libraries for easy styling of a React project and stumbled over these guys:

    I'm not sure why they're calling it a "Design Language". Must be some Chinese thing. Anyway, the components looked nice enough, so let's do a simple npm install --save antd aaaaand...

    ... now I have to modify the babel configuration because they think it fun to yell at me for importing the whole library on the client. Okay, did that, on to actually trying it out...

    ... wait, what's this?

    Unable to revolve some modules:
    
     "indexof" in foo/index.js (web.browser)
    
    Consider running "npm install --save indexof" if you're noticing problems.
    

    Before you ask: Yes, there were problems.

    Wait. A module named "indexof"? Yes, there is one. It's at Version 0.0.1 but that's okay because it contains this:

    var indexOf = [].indexOf;
    
    module.exports = function(arr, obj){
      if (indexOf) return arr.indexOf(obj);
      for (var i = 0; i < arr.length; ++i) {
        if (arr[i] === obj) return i;
      }
      return -1;
    };
    

    Jesus Christ. If those antd guys really need a module to implement this function then I'm not touching their stuff with a ten-foot pole. Not to mention that if their code relies on "padLeft mark 2" they really should consider putting it into the dependencies which was kind of the whole point of npm...


  • mod

    @Rhywden said in WTF Bites:

    babel

    0_1487267685229_upload-52808ea8-2640-4046-8d16-ca4f8e6d9484



  • @Yamikuronue Yes, that was the first strike. If I have to touch the babel config you won't win any brownie points right off the bat :)


  • mod

    @Rhywden I'm at the point where if you use babel, you start at -10, you have to convince me you really need it and aren't just jealous of cool toys in newer versions



  • @Rhywden said in WTF Bites:

    Design Language

    To be fair I'm reasonably sure that they meant UI Design not 'Design Language'.

    And to be fair they ask you to do

    npm install antd-init -g

    In 'Getting Started'.

    And apparently this is what you should do

    A new project can be created using CLI tools.
    $ mkdir antd-demo && cd antd-demo
    $ antd-init
    antd-init will run npm install after a project is created. If it fails, you can run npm install by yourself.

    Which is probably worth another WTF Bite.



  • @Yamikuronue said in WTF Bites:

    @Rhywden I'm at the point where if you use babel, you start at -10, you have to convince me you really need it and aren't just jealous of cool toys in newer versions

    I just remembered that I'm actually using TypeScript which makes babel just a tiny bit superfluous. Might also explain why their shit broke if it has a hard dependency on babel.



  • :doing_it_wrong: style in the wild:

    They deliberately removed the "close to system tray" feature that, like, every IM client ever has had because apparently some Linux DMs don't have system trays. There's still an open ticket that could theoretically fix this:



  • @Jarry I'd planned to buy it a couple of days ago and then some of the games became unavailable. But I checked today and they were all back except Subnautica.


  • Winner of the 2016 Presidential Election

    @coldandtired said in WTF Bites:

    @Jarry I'd planned to buy it a couple of days ago and then some of the games became unavailable. But I checked today and they were all back except Subnautica.

    It has Guacamelee twice. In two different editions. :confused:

    (Also, Guacamelee is great. I highly recommend it.)



  • @coldandtired I'll check if they gave me those too.



  • @Rhywden said in WTF Bites:

    Might also explain why their shit broke if it has a hard dependency on babel.

    Why should any library have a dependency on that? By now there is thousand and one tools that transpile ES6 to plain or minified ES5 and you may be using any other—or none if your target can be limited to browsers or devices that have ES6 already.



  • @Dreikin said in WTF Bites:

    (Also, Guacamelee is great. I highly recommend it.)

    Plus, you get to save the Presidente's Daughter.


  • Winner of the 2016 Presidential Election

    @boomzilla said in WTF Bites:

    because apparently some Linux DMs don't have system trays

    What? Which ones and which "regular" user will have one of those and get confused by it not being able to minimize? Alternatively, what's preventing them to check if tray is available and making the action on window close "open a dialog that asks user if they want to close" instead of "minimize to tray"?

    Or are they just too lazy to move from libappindicator to libnotify? It's the latter, isn't it?


  • area_deu

    @Onyx said in WTF Bites:

    Or are they just too lazy to [xyz]?

    I always go for that explanation if possible. It's usually more likely to be true than not...



  • Had to sign up for a new service the other day. After writing my information down and submitting, the page reported a server error and to please try again later. After a few tries, I tried lowering the length of my password from 32 characters to 20. That resolved the server error issue.

    They're not getting my CC info.



  • @Onyx said in WTF Bites:

    Or are they just too lazy to move from libappindicator to libnotify? It's the latter, isn't it?

    Perhaps they're just far more courageous than all the other IM developers.


  • mod

    @Bulb said in WTF Bites:

    By now there is thousand and one tools that transpile ES6 to plain or minified ES5 and you may be using any other

    But they're using Babel. So in order to compile their code, you need Babel. It (should be) listed as a dev dependency.


  • sockdevs

    @Rhywden Only just seen this.

    Is there any JS implementation that doesn't define indexOf? I mean seriously, that shit's literally as old as JavaScript itself! It's so old it's almost coprolite!

    Yes Chrome, 'coprolite' is a perfectly cromulent word.


  • sockdevs

    @RaceProUK said in WTF Bites:

    Is there any JS implementation that doesn't define indexOf?

    Introduced in ES5.1.....

    let's see..... Chrome supported from day one, as did opera and safari. Firefox got support in 1.5, though it wasn't in compliance with the spec until 1.8 due to a bug, IE added it in 9.

    so no, there is literally no reason for that module to exist for nodeJS, and the only reason to use it browser side is if you have to support IE8 or lower, in which case i say: KILL IT WITH FIRE


  • area_can

    Notably, we defined Firefox 57 as the first release where only WebExtensions will be supported. In parallel, the deployment of Multiprocess Firefox (also known as e10s) continues, with many users already benefiting from the performance and stability gains.
    ...
    Complete themes. These add-ons shouldn’t have problems with multiprocess compatibility but will follow the same compatibility milestones as other legacy add-ons. We will provide more details on what’s coming for themes very soon in this blog.

    You mean you're going to disable them all and stop supporting them?

    Firefox 57, November 28th release:

    Firefox will only run WebExtensions.

    Well, poop. I'm just annoyed because this means that my mouse gestures add-on is going to stop working if I update. I'm already pulling a Lorne by running the older unbranded build, but this really confirms it.

    My main annoyance with the new extensions is that they're injected into the page as scripts, so e.g. if the site messes around with key bindings your script won't get key presses. I installed a gestures add-on for chrome and I noticed:

    1. Gestures don't work on Gmail because right-click opens the Gmail right click menu
    2. You can't right-click and drag on links because Chrome's native right-click menu opens instead
    3. On some sites (e.g. Twitter) the UI overlay created by the add-on has fucked up styling because of the site's CSS (?????) Why the fuck would I want my add-ons to be affected in any way by the sites that I visit?

    I'm going to experiment with WebExtensions again and post my results here, the last add-on I wrote used the old thing because I wanted a native popop window but let's see how much 'better' this is. At least this way I'll have 'good' reasons for acting like a crotchety old man


  • Winner of the 2016 Presidential Election

    @bb36e said in WTF Bites:

    Gestures don't work on Gmail because right-click opens the Gmail right click menu
    You can't right-click and drag on links because Chrome's native right-click menu opens instead

    FWIW, both of these work correctly in both Opera in Vivaldi out of the box.

    If any of them have any kind of overlay in current iterations I have them off, so... do you need it? As in, if you can use gestures without the overlay, well, that fixes it.

    Also, for any other needs, Vivaldi supports all Chrome extensions by default, for Opera there's an extension that will let you do it (I think it just spoofs the useragent for the Chrome store, really, all the code is the same except for the fact Opera has a few extra hooks that are Opera-only).


  • area_can

    @Onyx I don't need the overlay but it just indicates to me that there's something really wrong with the way add-ons are designed. In FF the add-on displays info in the 'status bar' so it's never broken



  • @Bulb AFAIK Steam doesn't do this to themselves, but third-party retailers can be "sold out" of Steam game licenses (because they buy them in batches rather than at transaction time -- the latter would make the transaction harder to implement).



  • @Medinoc said in WTF Bites:

    because they buy them in batches

    You don't buy Steam keys. The game publisher can request them for no charge. Nobody makes any money off Steam keys being generated or used.



  • @accalia not to mention it's an ass-backward way to write a polyfill. It should look like...

    if (!Array.prototype.indexOf) Array.prototype.indexOf = function (searchElement, fromIndex) { ...
    


  • @ben_lubar OK. Does the other part of my comment (as in being obtained in batches rather than on-demand) remain valid though?



  • @ben_lubar said in WTF Bites:

    You don't buy Steam keys. The game publisher can request them for no charge. Nobody makes any money off Steam keys being generated or used.

    But we need to avoid wasting keys and guids



  • @fbmac

    @sockbot wasteaguid


  • area_can

    This post is deleted!


  • @bb36e I never know if it's a normal deleted post or if people are fbmacing me because fbmac fbmacs



  • @fbmac How much mac would fb mac if fbmac mac'd fbs?


  • sockdevs

    @boomzilla Seventeen.



  • @Medinoc said in WTF Bites:

    @ben_lubar OK. Does the other part of my comment (as in being obtained in batches rather than on-demand) remain valid though?

    Yes.



  • @fbmac said in WTF Bites:

    @bb36e I never know if it's a normal deleted post or if people are fbmacing me because fbmac fbmacs

    0_1487434697853_upload-c9cbb4c8-2724-49d4-a47d-33e544530c41


  • area_can

    0_1487450969543_Screenshot_20170218-154820~01.png


  • area_can




  • Impossible Mission Players - A


  • Winner of the 2016 Presidential Election

    0_1487465823449_upload-016404e9-cd3c-43d8-a4ba-34f211409393

    :question:


  • :belt_onion:

    @Dreikin TIL you are @aliceif's alt


  • :belt_onion:

    0_1487476760174_Screenshot from 2017-02-18 19-58-45.png

    :question:



  • 0_1487479583230_upload-76ed4ded-bb4b-4ccd-8643-566f7dfc1d83

    ???



  • The YouTube app on my phone has been acting weird with my Chromecast - I can start a video or playlist going but then it remains in a perpetual "connecting" state and I have to use the Home app to be able to pause the video. Or so I thought - if you wait long enough, it will actually start "playing" in the interface, but it makes no attempt to remain in sync with the Chromecast...or reality, for that matter...
    0_1487479728379_upload-eda1f8ac-5cc9-4140-80ea-0da572a51023


  • Impossible Mission Players - A

    @LB_ I noticed that as well. Happens on the webpage version of YouTube too. :wtf:



  • @boomzilla said in WTF Bites:

    @fbmac How much mac would fb mac if fbmac mac'd fbs?

    Can't resist!

    But would a mac fb mac if fbmac mac'd fbs?



  • Um... Wrong "Fish", Google.



  • 0_1487548313335_Screenshot_20170219-022751.png

    Translation of the notification: "there may be new messages"


  • Winner of the 2016 Presidential Election

    @Jarry is this the new clickbait?

    "Hey, hey, there might be something here! Wanna find out?

    HAH! JUST AN AD! GOTCHA!"



  • Today's WTF Bite comes from Facebook (TRWTF?).

    After you comment on a post, you automatically start to receive notifications for that post (i.e. every time someone else comments on it). When you go to turn the notifications off, it indicates that they're already off, because the post's menu lets you turn them on: (when they're already on)

    0_1487697023742_upload-64e4d67e-0a85-4532-9ff4-1105294e404f

    tl;dr: they default to on, and to turn them off, you have to first turn them on, and then you can turn them off (and then they're really off). It's :disco:-tastic.

    (this has been the case for at least a pretty long while.)


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.