Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
passepartout ( passepartout@feddit.org )  to Programmer Humor@programming.dev · 9 months ago

Choose your path!

feddit.org

message-square
40
link
fedilink
284

Choose your path!

feddit.org

passepartout ( passepartout@feddit.org )  to Programmer Humor@programming.dev · 9 months ago
message-square
40
link
fedilink
alert-triangle
You must log in or # to comment.
  • PokerChips ( PokerChips@programming.dev ) 
    link
    fedilink
    arrow-up
    31
    ·
    9 months ago

    I feel like the author is a MacBook user.

  • potatoguy ( potatoguy@lemmy.eco.br ) 
    link
    fedilink
    arrow-up
    24
    ·
    9 months 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 ( passepartout@feddit.org ) OP
      link
      fedilink
      arrow-up
      21
      ·
      9 months ago

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

      • potatoguy ( potatoguy@lemmy.eco.br ) 
        link
        fedilink
        arrow-up
        8
        ·
        9 months ago

        Yeah, Scala is the GOAT, but while I can’t use, why not final everything, use 300 streams and pass Suppliers around?

        (I’m building a lot of libraries at work)

        • silasmariner ( silasmariner@programming.dev ) 
          link
          fedilink
          arrow-up
          4
          ·
          9 months ago

          Do people still use vavr? When I wasn’t allowed to use scala that made up for a fair few shortcomings but it’s probably less relevant than it used to be

          • potatoguy ( potatoguy@lemmy.eco.br ) 
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            9 months ago

            I didn’t know about vavr, I think a lot of things from it were added since Java 17, but this Try<T> seems cool.

            Edit: Either would be nice too. I’m going to test some of those things, thanks for the recommendation!

            • silasmariner ( silasmariner@programming.dev ) 
              link
              fedilink
              arrow-up
              4
              ·
              9 months ago

              Very pleased to have been of help! I love scala but Java really isn’t too bad (streams API is fine except that you need to explicitly move in and out, rather than getting to do the cool scala thing of just using methods in the phenomenal collections library) and I don’t like dunking on it, but it really does need a few helper libs. Tuples, either and try I think vavr has. Java seems to have covered most other stuff now. But been a half decade since I’ve written more than 10 lines at a time so hasn’t come up for a while. Sorry. Reminiscing. Sunday night blues.

      • Custodian6718 ( Custodian6718@programming.dev ) 
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        9 months 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.

    • arendjr ( arendjr@programming.dev ) 
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      I’m gonna wait for backup on this one.

    • termaxima ( termaxima@slrpnk.net ) 
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Yes, you can make money and electricity magically disappear !

  • andioop ( andioop@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    18
    ·
    9 months ago

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

    • passepartout ( passepartout@feddit.org ) OP
      link
      fedilink
      arrow-up
      10
      ·
      9 months ago

      Same honestly, it’s a hustle to convince the Java EE dinosaurs of new paradigms. Never going back to Micro$lop though.

      • Shrouded0603 ( orochi02@feddit.org ) 
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        9 months ago

        Functional streams are a good start

    • Electricd ( Electricd@lemmybefree.net ) 
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Jetbrains though :(

      • andioop ( andioop@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 months ago

        also a JetBrains enjoyer :( one day I’ll teach myself to like VSCode as much as I like JetBrains

  • palordrolap ( palordrolap@fedia.io ) 
    link
    fedilink
    arrow-up
    15
    ·
    9 months 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 ( flying_sheep@lemmy.ml ) 
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      9 months 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?

    • TwilightKiddy ( TwilightKiddy@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago
      $ history | grep -E '(sed|grep|awk|perl)' | wc -l
      50
      $ history | wc -l
      500
      

      Checks out perfectly.

  • Phoenixz ( phoenixz@lemmy.ca ) 
    link
    fedilink
    arrow-up
    8
    ·
    9 months ago

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

    • silasmariner ( silasmariner@programming.dev ) 
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      9 months 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)

      • silasmariner ( silasmariner@programming.dev ) 
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        deleted by creator

  • craftrabbit ( craftrabbit@lemmy.zip ) 
    link
    fedilink
    arrow-up
    8
    ·
    9 months ago

    I’ve been shifting around, but never to the OOP boilerplater. I despise Java.

    • flying_sheep ( flying_sheep@lemmy.ml ) 
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      My people!

  • GenderNeutralBro ( GenderNeutralBro@lemmy.sdf.org ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    9 months ago

    Unga bunga.

  • ArrowMax ( ArrowMax@feddit.org ) 
    link
    fedilink
    arrow-up
    7
    ·
    9 months ago

    Just finished an assignment for uni: Memory safety in Rust: Mechanisms and limits - a comparison to C/C++.

    Fuck.

    Great overview of Rust’s weaknesses and strengths:

    Li et al. 2024 Rust for Linux: Understanding the Security Impact of Rust in the Linux Kernel

    • passepartout ( passepartout@feddit.org ) OP
      link
      fedilink
      arrow-up
      4
      ·
      9 months 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 ( flying_sheep@lemmy.ml ) 
        link
        fedilink
        arrow-up
        5
        ·
        9 months 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.

  • 0xDREADBEEF ( dreadbeef@lemmy.dbzer0.com ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    9 months 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 ( Kache@lemmy.zip ) 
      link
      fedilink
      arrow-up
      2
      ·
      9 months 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] ( Crazazy@feddit.nl ) 
        link
        fedilink
        arrow-up
        1
        ·
        9 months 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.

  • goatinspace ( goatinspace@feddit.org ) 
    link
    fedilink
    arrow-up
    6
    ·
    9 months ago

  • termaxima ( termaxima@slrpnk.net ) 
    link
    fedilink
    arrow-up
    5
    ·
    9 months ago

    Proud imperative stoneager here 🦍

    • Dhar ( Dhar@lemmy.ca ) 
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Cavepeople together strong!

  • Rusty Shackleford ( RustyShackleford@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 months ago

    This meme is ass.

    • Electricd ( Electricd@lemmybefree.net ) 
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Got offended?

      • Rusty Shackleford ( RustyShackleford@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        9 months ago

        Nah. It’s underlying assumptions are wrong.

        • Electricd ( Electricd@lemmybefree.net ) 
          link
          fedilink
          arrow-up
          2
          ·
          9 months ago

          It’s obviously very exaggerated

  • brian ( brian@programming.dev ) 
    link
    fedilink
    arrow-up
    3
    ·
    9 months ago

    Bob Martin himself having moved to a different category

  • tatterdemalion ( tatterdemalion@programming.dev ) 
    link
    fedilink
    arrow-up
    2
    ·
    9 months ago

    Someone explain the Rustacean failing to support MacOS.

  • andioop ( andioop@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    deleted by creator

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 482 users / day
  • 1.62K users / week
  • 3.02K users / month
  • 7.23K users / 6 months
  • 463 local subscribers
  • 33.5K subscribers
  • 1.53K Posts
  • 25K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code