• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle
  • Canadian here. It really depends on if it’s a cultural use or something the government might have an influence on through legislation. They can force industries to label packages in metric, but they can’t force grandma to change her manually-transcribed recipes. The other big influence is obviously our neighbours to the south. A lot of industries haven’t switched over there, and we get their products. Main culprit here would be the construction industry, lumber and hardware is all in US customary units and I hate it.



  • It’s true that you can easily fall into analysis paralysis when you start learning JS, but honestly things have somewhat stabilized in recent years. 10 years ago everybody was switching frameworks every 6 months, but these days we’re going on 8+ years of absolute React dominance. So I guess that’s it for the view layer.

    The data layer has seen some movement in more recent years with Flux then GraphQL / Relay, but I think most people have settled on either Apollo or react-query now (depending on your backend).

    On the backend there was basically only express.js, and I think it’s still the king if you only want to write a backend.

    Static websites came back in fashion with Jekyll and Github Pages so Gatsby solved that problem in js-land for a while, but nowadays Next also fulfills that niche, along with the more fullstack-oriented apps.

    Svelte, Vue, Aurelia and Mithril are mostly niche frameworks. They have a dedicated, vocal fanbase (see the Svelte guy as sibling to your comment) but most of the industry has settled along the lines I’ve mentioned.


  • ebc@lemmy.catoProgrammer Humor@lemmy.mlJust getting into JS
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    4 months ago

    Honestly I think the main thing that the JS ecosystem does well is dependency / package management (npm). The standard library is very small so everything has to be added as a dependency in package.json, but it mostly works without any of the issues you often see in other languages.

    Yeah, it’s not perfect, but it’s better than anything else I’ve tried:

    • Python’s approach is pretty terrible (pip, easy_install, etc.) and global vs local packages
    • Ruby has its own hell with bundler and where stuff goes
    • PHP has had a few phases like python (composer and whatnot) and left everyone confused
    • Java needs things somewhere in its $PATH but it’s never clear where (altough it’s better with Gradle and Maven)
    • C needs root access because the only form of dependency management is apt-get

    In contrast, NPM is pretty simple: it creates a node_modules and puts everything there. No conflicts because project A uses left-pad 1.5 and project B uses left-pad 2.1. They can both have their own versions, thank you very much.

    The only people who managed to mess this up are Linux distributions, who insist on putting things in folders owned by root.



  • ebc@lemmy.catoProgrammer Humor@lemmy.mlJust getting into JS
    link
    fedilink
    arrow-up
    39
    arrow-down
    2
    ·
    4 months ago

    To any non-js dev taking this too seriously: A good half of the technologies mentioned in this meme are redundant, you only need to learn one of them (in addition to the language). It’s like complaining that there are too many Linux distributions to learn: you don’t, you just pick one and go with it.




  • ebc@lemmy.catoADHD memes@lemmy.dbzer0.comNothing but truth
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    4 months ago

    When somebody doesn’t want to give me a price, I’ve started asking them for an order of magnitude. Sometimes they still don’t want to say a number, but when I ask “is it 2$, 20$, 200$, 2k$, 20k$?” they will usually give me a ballpark, along with the factors that’ll make the price vary.



  • By that same logic, can Russia ask Japan to extradite a US citizen because they advocated for LGBTQ+ rights while they were in South Korea? Because that’s basically what’s happening here, I just swapped the offence and the countries involved.

    Dude isn’t a US person, wasn’t in the US when he committed the alleged crime, and said alleged crime isn’t a crime where he allegedly committed it. US law isn’t world law.

    EVEN IF the guy might’ve been rapist asshole (allegations were fishy as heck), this extradition proceeding is a gross overreach by the US, and the UK should have laughed it out of court. If a country has any leg to stand on regarding extradition, it’s Sweden (I think that’s where he was when he committed all the alleged crimes, both the sexual ones and the wikileaks ones).




  • ebc@lemmy.catoProgrammer Humor@lemmy.mlMy poor RAM...
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    As a freelance fronted dev, I really love Docker. I don’t need to mess up my system installing ancient Java versions or whatever Python wants to easy_install, pip or whatever, I can just run the backend Docker image and go on with my life. Especially when project A’s backend has incompatible Java/Ruby/Python dependencies with project B.

    You can shit on npm all you want (yes, I was there for left_pad), but at least they got the dependency issues between projects solved.



  • I never said they got revenue from a link. They make their revenue by showing you ads, and they use various strategies to make you stay longer on their website so they can show you more ads. One of these strategies is to include news articles in your feed, either shared by your friends, shared by the news organizations themselves (in a desperate bid to get you to visit their website), or just as suggested stuff.

    They captured a huge chunk of the advertising market, and it’s happening at the expense of other businesses who provide a useful service to the people. I won’t pretend that they aren’t useful themselves, but I think they reached a point where they’ve stopped seeing that as a goal, and are instead focused on antisocial objectives (showing you more ads).


  • That’s obviously something we need to decide as a society, I just took it as a given since that’s what our government is trying to do.

    As to why, well I think the issue is that the social media companies inserted themselves as middlemen through monopolistic behaviours and captured all the ad revenue the news organizations used to get. The fair market isn’t always fair, and monopolies are one of its failure modes. Market failure is one good example of situations where government intervention is warranted.



  • Lexical (rich text editor by Facebook) recently “migrated” their Github discussions to Discord… I have a question that I can see was asked on the discussion, as it appears in my search results on DDG, but I get a 404 when I try to open it. The fuckers deleted the discussions!

    Of course, Discord only has poor-quality answers to that questions as it gets asked every week and maybe gets answered in a different way every time. Quality of discussion is much lower.