• dreadbeef@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 day ago

    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
      1 day ago

      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

      • Crazazy [hey hi! :D]@feddit.nl
        link
        fedilink
        arrow-up
        1
        ·
        13 hours ago

        Depends very much on the language you’re using. Haskell and ocaml do fall into that category, whereas erlang and scheme are also functional languages with fairly weak typing.

        If there is one thing that connects functional programming as a whole, it is that in FP, program flow is managed mostly through function application, instead of if statements and for/while loops.

      • lad@programming.dev
        link
        fedilink
        English
        arrow-up
        17
        ·
        2 days ago

        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
      9
      ·
      2 days ago

      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.

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    22
    ·
    2 days ago

    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
      1 day ago

      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?

    • yogurtwrong@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      2 days ago

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

  • freohr@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    2 days ago

    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…

      • dantel@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        13 hours ago

        The imperative stoneager feels like the most favored one, there are no real negatives listed there. All that’s listed are things they usually pride themselves on.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 day ago

        Yeah, that Mac offended me.
        My imperative programming journey was a few months on a handed down P2 followed by 3 years of pen and paper.