• dreadbeef@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    14 小时前

    ocaml and haskell and erlang power like… a shitton of industry production code. If erlang software disappeared, internet dies for a bit until people replace all the broken routers.

    • Kache@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      10 小时前

      Isn’t functional stuff closely related to type theory & type systems in all langs? In that sense, it’s prevented whole classes of bugs from ever getting to prod in the first place.

      Responsible for 0% of code in production

      Best code is no code at all

    • rainwall@piefed.social
      link
      fedilink
      English
      arrow-up
      101
      ·
      edit-2
      1 天前

      Imperative stonager works there too. You’ve just never seen him because he hasen’t accepted a meeting invite is 14 years.

      • call_me_xale@lemmy.zip
        link
        fedilink
        arrow-up
        7
        ·
        1 天前

        This. I’ve been writing some game mods in it recently and LINQ is… pretty nice. switch expressions, too.

        This is coming from a dude formerly from the “OOP Boilerplater” camp, though, so maybe I just have low standards.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 天前

      I think I’m a little bit of everyone except him. I work as a web dev, love functional programming and/with TypeScript. 😅

  • freohr@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    1 天前

    Uses neovim with gruvbox theme on arch

    Damn, why are you calling me out personally? Though I use it to write python scripts and LaTeX, not rust…

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    17
    ·
    1 天前

    history | grep -E '(sed|grep|awk|perl)' | wc -l 107

    Dang. That’s out of 1000. I need to up my game. Also three of those seds are part of something with a -basedir and don’t count.

    So yeah, about 10% of my commands are iterating shell pipe things for poops and giggles, I guess.

    … and this got me going down the rabbit hole of writing a filter for my history to pull out the first command on the line. This is non-trivial because of potential preceding variable assignments. Most used commands are currently apt and man and ls. I think apt is a Spiders Georg situation because the system is fairly fresh and I keep finding things that I haven’t installed yet. Also I went through a patch of trying to parse its output.

    … oh, er… unga bunga.

    • flying_sheep@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      9 小时前

      I just use nushell’s builtins instead of wrangling with IFS and bash idiosyncrasies. It’s been years since I’ve corrupted data by parsing text wrong.

      But even if someone doesn’t want that: apart from using it in legacy scripts, grep is just a strictly less useful ripgrep these days, no?

      • lad@programming.dev
        link
        fedilink
        English
        arrow-up
        16
        ·
        1 天前

        I think, the point is Haskell is more CS theoretical than practical language and anyone who uses it (or any other FP) has never written a single line of production code (the last statement is even in the meme)

    • Rusty Shackleford@programming.dev
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 天前

      Personally, I love that series. I guess whoever made this meme thinks people who watch the show are trying to implement their code examples in production.

    • yogurtwrong@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      19 小时前

      Imperative stoneagers getting an old MacBook from somewhere and going “huh, I guess its UNIX” is probably true though

    • passepartout@feddit.orgOP
      link
      fedilink
      arrow-up
      5
      ·
      1 天前

      Rust introduces some pretty awesome concepts, but I see why it might be controversial to some. I (sadly) have no use case for it though.

      • flying_sheep@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        9 小时前

        I think the “controversy” is just tribalism. I’ve never once witnessed a case of any of the negative adjectives thrown at the Rust community. They’ve always taken exceedingly fair and good-faith approaches to discussing any critique of the language.

        Their snark is reserved for the weird “anti-woke” crowd that hates Rust for some reason.