Hard Pass
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
muhyb@programming.dev to Programmer Humor@programming.dev · 13 hours ago

The PHP part never gets old

toggl.com

message-square
43
link
fedilink
614

The PHP part never gets old

toggl.com

muhyb@programming.dev to Programmer Humor@programming.dev · 13 hours ago
message-square
43
link
fedilink
alert-triangle
You must log in or register to comment.
  • tetris11@feddit.uk
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 hours ago

    The Fixed Point Expression / Y Combinator expressed in horses:

        Y = (λ f. (λ x. f(xx))(λ x. f(xx)))
        ;; so then, give Y a horse argument with apple parameters:
        Y🐎️ = (λ f. (λ 🍎.  f(🍎🍎)) (λ 🍎. f(🍎🍎))) 🐎️   ;; [1]
            =       (λ 🍎. 🐎️(🍎🍎)) (λ 🍎. 🐎️(🍎🍎))      ;; [2]
            = 🐎️(   (λ 🍎. 🐎️(🍎🍎)) (λ 🍎. 🐎️(🍎🍎))   )  ;; [3]
            = 🐎️(Y🐎️)                                       ;; [4]
    
    Explanation
    • 1: x is 🍎, but could be anything. It’s just a function parameter nested within another.
    • 2: λf gets executed and vanishes from the left, substituting f internally with 🐎️. This is now a new function, with left group as the function body, and right group as the function argument, despite being identical.
    • 3: λ🍎 gets executed and vanishes from the left, substituting 🍎 with (λ 🍎. 🐎️(🍎🍎))
    • 4: Everything within the main brackets at [3] has been seen before at [1], but with f being 🐎. Thus we have bred a new horse. We can breed infinite horses this way
  • Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    28
    arrow-down
    1
    ·
    5 hours ago

    Python:

    from horses import Horse 
    
    my_horse = Horse(color="brown")
    

    There. Done.

    • surewhynotlem@lemmy.world
      link
      fedilink
      arrow-up
      23
      ·
      4 hours ago

      You built a horse in Python. There’s too much space between you and the horse so it dies.

      • Diplomjodler@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        3 hours ago

        I’ll just instantiate a new one.

  • GardenGeek@europe.pub
    link
    fedilink
    arrow-up
    11
    ·
    4 hours ago

    • MehBlah@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 hour ago

      Looks big enough to me.

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      11
      ·
      4 hours ago

      This might be a client issue, eg: when images are too big, Thunder pixelate 'em

      • Victor@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 hour ago

        Good to know. 🙏

      • GardenGeek@europe.pub
        link
        fedilink
        arrow-up
        3
        ·
        3 hours ago

        It is indeed, thank you!

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      5
      ·
      4 hours ago

      Well, this is the original as it gets, direct from the source.

      • GardenGeek@europe.pub
        link
        fedilink
        arrow-up
        5
        ·
        4 hours ago

        All right. Sorry if that came across the wrong way: I wasn’t actually trying to complain, I just used the meme because I noticed the low resolution. I don’t know if I’m getting too old for this crap, but back in the day, that meme used to pop up all the time as a response to low-resolution images. ^^

        • bitjunkie@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          2 hours ago

        • Bazoogle@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          3 hours ago

          The resolution is great on my end. That might be where the confusion was

        • muhyb@programming.devOP
          link
          fedilink
          arrow-up
          4
          ·
          3 hours ago

          Nah, that’s ok. Though you have to click on the image for full resolution. On Lemmy it shows small for some reason.

          • GardenGeek@europe.pub
            link
            fedilink
            arrow-up
            3
            ·
            3 hours ago

            Oh, didn’t realize that, thank you!

            • muhyb@programming.devOP
              link
              fedilink
              arrow-up
              2
              ·
              3 hours ago

              No problem!

    • SapphironZA@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      4 hours ago

      https://toggl.com/blog/build-horse-programming

      • GardenGeek@europe.pub
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        Thanks!

  • Alavi@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    6 hours ago

    But notice that lisp was the only one where you actually built a horse.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      6
      ·
      5 hours ago

      Also assembly. And the dangling parts.

  • OwOarchist@pawb.social
    link
    fedilink
    English
    arrow-up
    48
    arrow-down
    1
    ·
    10 hours ago

    Needs a python horse in there.

    Probably something about “why build a horse when you can just import horse from field?”

    • fxdave@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      4 hours ago

      But it’s built 10 years ago using conda so the installation process is more complicated than building a new horse.

    • MoffKalast@lemmy.world
      link
      fedilink
      arrow-up
      24
      arrow-down
      1
      ·
      8 hours ago

      “The horse turns out perfectly average, but boy it can’t run”

      • Diplomjodler@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        5 hours ago

        But it still gets there faster than all the other horses on account of how easy it was to implement.

        • Axolotl.cpp@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          7
          ·
          4 hours ago

          Sadly, it gets so long to go from point A from B that you wish you made the horse in something else…

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      13
      ·
      10 hours ago

      horse()

  • Y|yukichigai@kbin.earth
    link
    fedilink
    arrow-up
    86
    ·
    11 hours ago

    When I first saw this comic I was a relatively new COBOL programmer. It felt accurate.

    I am now my employer’s senior COBOL dev. It still feels accurate.

    • Madagaskar_sky@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      4 hours ago

      What’s the biggest hurdle to porting old systems written in COBOL to newer languages? Besides the glaring conflict of interest for you.

      • Fmstrat@lemmy.world
        link
        fedilink
        arrow-up
        19
        ·
        4 hours ago

        Hahaha port. Get a load of this person thinking COBOL is being ported! I bet they like the number 4.

      • Lyrl@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        8
        ·
        3 hours ago

        I think just the size of the projects. My employer has had a team of ten-ish people working full time on porting a piece of our COBOL program (the full thing was deemed not possible to port to a single modern application, so it’s getting split up) for about a year now. I was peripherally involved in four rounds of increasingly integrated testing environments. Go live was yesterday. They rolled it back three hours in.

        It’s hard for a company to invest multiple people’s salaries for many years on reworking software that currently mostly works.

  • DreadPirateShawn@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    52
    ·
    12 hours ago

    The LISP parentheses are not equally balanced. There are more ( than ).

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      32
      ·
      11 hours ago

      Exactly 6 more.

      • Sneezycat@sopuli.xyz
        link
        fedilink
        arrow-up
        38
        ·
        8 hours ago

        )))))) There, the horse is contained now.

        • caseyweederman@lemmy.ca
          link
          fedilink
          arrow-up
          5
          ·
          2 hours ago

          You thought so, but there was a teleporter

          • Sneezycat@sopuli.xyz
            link
            fedilink
            arrow-up
            2
            ·
            2 hours ago

            Shout-outs to enclose.horse!

  • _stranger_@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    9 hours ago

    That’s because it’s already so old, it can’t get older.

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      4
      ·
      9 hours ago

      PHP is a vampire.

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    11 hours ago

    The assembly one isn’t fair.

    https://kolibrios.org/en

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      13
      ·
      5 hours ago

      Why not? KolibriOS is pretty basic for a OS. But boy is it fast.

      • A_norny_mousse@piefed.social
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 hours ago

        And it runs Doom.

        • MonkderVierte@lemmy.zip
          link
          fedilink
          arrow-up
          2
          ·
          2 hours ago

          HTML runs Doom.

  • Kairos@lemmy.today
    link
    fedilink
    arrow-up
    9
    arrow-down
    2
    ·
    11 hours ago

    That’s a little reductive but but… sure.

    • Viking_Hippie@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      10 hours ago

      Sounds like you have a future in network news 😉

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    5 hours 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.

  • 3.18K users / day
  • 4.74K users / week
  • 8.12K users / month
  • 16.5K users / 6 months
  • 1 local subscriber
  • 33.7K subscribers
  • 1.84K Posts
  • 44.9K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org