• rainwall@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 days ago

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

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    5 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.

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

    • yogurtwrong@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

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

  • potatoguy@lemmy.eco.br
    link
    fedilink
    arrow-up
    0
    ·
    5 days ago

    Hear me out:

    Mixing OOP and functional code to abstract the shit out of everything making 5k loc in around 500 loc in java. You can do magic using this trick.

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

      Functional programming in Java is kind of an afterthought and it shows. That’s one of the reasons why Scala was created!

      • Custodian6718@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        4 days ago

        I mean Yeah it is an afterthought in the Sense of that Java was Originally an oop Language but fp in Java was added on very sensibly imo. I use functional Programming in Java a Lot and try to make Everything immutable where I can and honestly coding like that feels clean and very practical.