Johnnei's World
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
OttoVonNoob@lemmy.ca to Programmer Humor@programming.dev · 2 年前

You seen the jank? I live in it.. molded by it...

lemmy.ca

external-link
message-square
15
link
fedilink
178
external-link

You seen the jank? I live in it.. molded by it...

lemmy.ca

OttoVonNoob@lemmy.ca to Programmer Humor@programming.dev · 2 年前
message-square
15
link
fedilink
  • Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    1
    ·
    2 年前

    Just going to leave this horror here. It’s the post feed logic from Tesseract that determines what posts should be displayed or hidden.

    • Alexstarfire@lemmy.world
      link
      fedilink
      arrow-up
      23
      ·
      2 年前

      If that’s horror to you, you’ve been sheltered. That’s quite readable, though I’d make the long lines into their own subroutines.

    • Sanctus@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      ·
      2 年前

      Delightfully devilish, indeed. You made it as easy to read as possible though.

    • PoolloverNathan@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      2 年前

      Why not factor out the ! via de Morgan’s laws (which would also remove most of the parentheses, as iirc && binds tighter than ||)? Also, does that language have a {#continue} sort of syntax for loops? If so, you could make it a guard clause.

      • setVeryLoud(true);@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        2 年前

        Thank you, I knew the rule but did not know it had a name.

    • Hoimo@ani.social
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      deleted by creator

    • Kaboom@reddthat.comBanned
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 年前

      What is that, Vue?

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
Visibility: Public
globe

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

  • 2.03K users / day
  • 4.79K users / week
  • 8.6K users / month
  • 17.4K users / 6 months
  • 1 local subscriber
  • 31.6K subscribers
  • 2.24K Posts
  • 79.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org