top 50 comments

sorted by: hot top controversial new old
[–] 99 points 1 year ago (33 children)

The joke is always Javascript

  • source
  • hideshow 33 child comments
  • [–] 66 points 1 year ago (32 children)

    JavaScript itself is fine. The problem is developers who import a library to add two numbers.

  • source
  • parent
  • hideshow 32 child comments
  • [–] 50 points 1 year ago (2 children)

    Excuse me, but it’s industry practice to always use PlusJs.

    Its just annoying that it has its own dependency on MinusJs.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 34 points 1 year ago (5 children)

    Maybe we wouldn't need external libraries to do basic things if JavaScript had a standard library

  • source
  • parent
  • hideshow 5 child comments
  • [–] 24 points 1 year ago (7 children)

    I don't know about "fine". It has a lot of weird stuff baked in. Hoisting. Unexpected type coercion. Too many ways to loop over something and I always forget which one is which. "There's more than one way to do it" is kind of a recurring problem, come to think of it. Several function declaration syntaxes. Dot notation AND bracket notation for objects.

    Also it will forever bother me that object keys aren't quoted.

    const foo = "hello"; const bar = { foo: "world" }

    That should be, in my mind, { "hello": "world" } . It's not. It's { "foo": "world" }

    But if you want to do that, you need to do const bar = { [foo]: world }. Which looks like your key is an array with one entry, a string with a value of "foo"

    You also end up learning a whole framework, with its syntax and idioms, every couple years. Angular. React. Redux. Whatever.

    There's also a lot of people who have never used anything else, and want to use javascript for everything.

    Javascript is basically D&D. Wildly popular. Full of legacy jank. People try to use it for anything even though there are better or more specialized tools.

  • source
  • parent
  • hideshow 7 child comments
  • load more comments (3 replies)
  • [–] 9 points 1 year ago (4 children)

    Oh Hells no.

    JavaScript is NOT fine, it's .... I'm really trying to think of a word that will convey the shit that it is without triggering half the people on Lemmy into an aneurysm, but I can't find it.

    JavaScript is by far the worst. I've been working with JavaScript for the past 6 days and I want to hang myself, it'd be a better fate than continuing

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 1 year ago

    Yeah, I had some webpages archived and tried to use javascript to clean them up, but I ended up parsing it as xml through Powershell instead. I've done something with Python and BeautifulSoup too, a long time ago. Both much easier than JS, but somehow JS is designed to work with web pages? Make it make sense.

  • source
  • parent
  • [–] 78 points 1 year ago* (10 children)

    > want to compile 50kb C++ console app on windows

    > 6 GB MSVC installation

  • source
  • hideshow 10 child comments
  • [–] 31 points 1 year ago* (8 children)

    "It's so easy to compile C/C++ apps on Linux"

    "Just run make install"

    "If it doesn't work, fuck you, it worked on my machine"

    Anti Commercial-AI license

  • source
  • parent
  • hideshow 8 child comments
  • [–] 39 points 1 year ago (7 children)

    Hm. I've always found it harder to compile stuff on Windows.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 18 points 1 year ago (6 children)

    Oh, my comment was more that compiling C/C++ apps on any platform is shit. Windows may be the worst to compile on, but Linux is only marginally better.

    Rust is amazing though.

    Anti Commercial-AI license

  • source
  • parent
  • hideshow 6 child comments
  • [–] 6 points 1 year ago

    Okay that's fair. I fricked around with some C++ numerics BLAS header library (I think it was Eigen) on Linux before that was complicated and annoying too. The ARM Fast Models simulator was also a pain. Maybe I just don't like C++ development now that I think about it.

    C mostly worked okay for me though.

  • source
  • parent
  • [–] 2 points 1 year ago (2 children)

    Gentoo is the best platform for this.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (1 child)

    NixOS. Gentoo gets into trouble when you need multiple versions of the same library at the same time. Also while the infrastructure supports it it's annoying that gentoo doesn't provide pre-built binaries, like yes some people might want to have reason to build their own bash but I think I'll be fine with a standard build. NixOS? If you install something usually it's going to be pre-built. Change a couple of configuration flags? May or may not be pre-built. You want to apply a custom patch? It's going to seamlessly build from source.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • [–] 34 points 1 year ago (4 children)

    Depending on the design of its memory, a device with a full drive will literally weigh slightly more or slightly less than one with an empty drive. Charging the battery in all cases causes it to weigh more.

  • source
  • hideshow 4 child comments
  • [–] [S] 14 points 1 year ago (3 children)
  • [–] 31 points 1 year ago (2 children)

    Then marketing comes around, asks to add google tag manager, and proceeds to make the client download 10TB of tracking librairies.

    At least node_modules don't directly impact the browser.

  • source
  • hideshow 2 child comments
  • [–] 15 points 1 year ago

    lol at 3/4 of a megabyte of Vue components being ok and thinking node_modules is the issue at hand.

  • source
  • [–] 4 points 1 year ago (1 child)

    A package manager that does hard-linking helps.

  • source
  • hideshow 1 child comment
  • load more comments
    view more: next ›