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

The PHP part never gets old

toggl.com

message-square
76
link
fedilink
1

The PHP part never gets old

toggl.com

muhyb@programming.dev to Programmer Humor@programming.dev · 13 days ago
message-square
76
link
fedilink
alert-triangle
You must log in or register to comment.
  • tetris11@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    13 days 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
  • DreadPirateShawn@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

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

    • FenrirIII@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 days ago

      Oh god, I’m getting PTSD. So many parentheses

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Exactly 6 more.

      • Sneezycat@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

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

        • caseyweederman@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

          You thought so, but there was a teleporter

          • Sneezycat@sopuli.xyz
            link
            fedilink
            arrow-up
            0
            ·
            13 days ago

            Shout-outs to enclose.horse!

  • Alavi@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

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

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Also assembly. And the dangling parts.

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    11 days ago

    ruby: you built a horse that builds a horse to build your horse. your barn is too small. it crashes. everyone is dead.

  • Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    Python:

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

    There. Done.

    • surewhynotlem@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      13 days 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
        0
        ·
        13 days ago

        I’ll just instantiate a new one.

      • StabbingSky@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        Or you accidentally used spaces instead of a tab on one line

        • surewhynotlem@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

          Your horse is now an upside-down zebra

    • Kangae_Hishiryo@scribe.disroot.org
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      In Nim:

      import horses
      
      let my_horse = Horse(color: "brown")   
      
    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      horses was last released in 2024, and can only run on python up to 3.12.

      horses depends on iron-making, that is up to date. That means the current version of iron-making depends on python >= 3.14, and that all the versions prior to 2025 were taken offline due to a CVE where if you run the library as root in a web backend that uses the make_nail function, people can open your barn doors without authorization when inside it.

      • yxc999@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        thanks, I hate it

      • anewfox@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        and also the most recent horses release on pypi includes a crypto miner and credential stealer.

      • The Bard in Green@lemmy.starlightkel.xyz
        link
        fedilink
        English
        arrow-up
        0
        ·
        13 days ago

        I cannot up vote this enough.

  • merc@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    11 days ago

    C: You build a horse. Well, it’s not really a horse, but it can do almost all the essential horse-things. It’s incredibly fast and compact. Oh, and now someone else owns it.

  • Null42x86@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    you could say that it aged well

  • ohshit604@lemmy.halstead.host
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    As a non-programmer, TIL Java and JavaScript are two different languages.

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      Person1: I built a script in Java.

      Person2: So Javascript?

      Person 1: NO!

    • Nowtayneicangetinto@thelemmy.club
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      When JS was being developed, Java was all the rage and it merely was riding it’s coattails. At the time of its creation it was nothing like Java either.

      • GreenKnight23@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        11 days ago

        the only thing they have in common is how insufferable it is to develop with them.

  • GardenGeek@europe.pub
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    • MehBlah@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      13 days ago

      Looks big enough to me.

    • SapphironZA@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

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

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

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

      • GardenGeek@europe.pub
        link
        fedilink
        arrow-up
        0
        ·
        13 days 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. ^^

        • Bazoogle@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

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

        • d41@startrek.website
          link
          fedilink
          English
          arrow-up
          0
          ·
          13 days ago

          On the boost app there’s a tiny HD button you can click that should sharpen things up a bit.

        • muhyb@programming.devOP
          link
          fedilink
          arrow-up
          0
          ·
          13 days 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
            0
            ·
            13 days ago

            Oh, didn’t realize that, thank you!

            • muhyb@programming.devOP
              link
              fedilink
              arrow-up
              0
              ·
              13 days ago

              No problem!

        • bitjunkie@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

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

      • GardenGeek@europe.pub
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        It is indeed, thank you!

      • Victor@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        Good to know. 🙏

  • j_z@feddit.nu
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    Is it a dig against C# only being good when using it from F#, i.e. OCaml for .Net or am I overthinking this?

    • ElDuderino@lemmus.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      12 days ago

      I don’t know. I thought it was a dig with certain C# dev products trying to mimic how other technologies behave, like WebForms.

  • heartSagan5@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    And here I am glad that I try to avoid phpMyAdmin too, whenever possible.

  • gnuplusmatt@reddthat.com
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    Rust builds a unicorn

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      ho-rs

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 days ago

      It is perfect and will run for a million years.
      Dodges all traps and jumps over all ditches whether you see them or not.
      But you are already too old to ride it.

  • Kangae_Hishiryo@scribe.disroot.org
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    In Horse64:

    import horses from horses.horse64.org
    
    func main {
        var my_horse = horses.Horse(color="brown")
    }
    

    And in Horse64 Root:

    import horses from horses.horse64.org
    
    func main -> bool {
        var my_horse <- horses.Horse
        my_horse.init("brown")
        if failed(my_horse.init) {
            return no
        }
    
        defer my_horse.destroy()
    
        my_horse.run()
        if failed(my_horse.run) {
            my_horse.stop()
            return no
        }
    
        my_horse.stop()
        if failed(my_horse.stop) {
            return no
        }
    
        my_horse.eat("hay")
        if failed(my_horse.eat) {
            return no
        }
    
        return yes
    }
    
  • Tja@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    Ctrl-F “rust” - > 0 matches

    I sense a pertubance in the force

    • Afaithfulnihilist@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Well duh, Ctrl f doesn’t work on pictures!

      • heartSagan5@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        …yet. Then again, that’s literally what “alt” on images is for.

  • OwOarchist@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 days ago

    Needs a python horse in there.

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

    • MoffKalast@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

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

      • Diplomjodler@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        13 days 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
          0
          ·
          13 days ago

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

          • Neverclear@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            0
            ·
            11 days ago

            It was so easy to make the first horse that you decide your field is big enough for three more horses, but somehow the second horse says it needs three more pastures to function properly.

    • muhyb@programming.devOP
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      horse()

    • fxdave@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

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

    • ttayh@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      from field import horse*

      • OwOarchist@pawb.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        13 days ago

        Well don’t I look like a grade-A moron now?

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: [email protected]

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.

  • 8 users / day
  • 259 users / week
  • 1.65K users / month
  • 1.77K users / 6 months
  • 0 local subscribers
  • 34K subscribers
  • 265 Posts
  • 4.6K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
    cake
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org