• lad@programming.dev
        link
        fedilink
        English
        arrow-up
        18
        ·
        7 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
      ·
      7 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.

    • yogurtwrong@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      6 days ago

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

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    23
    ·
    7 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
      6 days 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?

  • andioop@programming.dev
    link
    fedilink
    English
    arrow-up
    20
    ·
    7 days ago

    OOP boilerplater except for the Windows bit; trying to slowly move off proprietary software and choose open source when I can

  • freohr@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    7 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…

    • passepartout@feddit.orgOP
      link
      fedilink
      arrow-up
      5
      ·
      7 days ago

      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
        6
        arrow-down
        1
        ·
        6 days ago

        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.

  • dreadbeef@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    6 days 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
      6 days 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
        ·
        5 days 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.

  • Phoenixz@lemmy.ca
    link
    fedilink
    arrow-up
    8
    ·
    7 days ago

    Is there a panel for the pragmatist that just goes with what works, with open source strongly preferred?

    • silasmariner@programming.dev
      link
      fedilink
      arrow-up
      14
      ·
      edit-2
      7 days ago

      No, because the whole point of this meme is to be entirely devoid of nuance. Functional programming is fucking awesome if product is changing its mind every 5 mins, Oop is great if you have a huge number of junior Devs, rust isn’t remotely slow so god knows what bottom right is about, top left probably has more functionality defects than you can shake a stick at but he’s lionised here. Don’t think too hard about it – OP didn’t (also ‘never bashes python or JavaScript’? Absolute weaksauce. Perl and PHP are the ones ppl bash because of entry level dev memes. Embarrassed for op)