You are viewing a single thread.
View all comments
23 points

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

permalink
report
reply
13 points

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

permalink
report
parent
reply
23 points

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.

permalink
report
parent
reply
7 points

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.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
1 point

What is that, Vue?

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 2.7K

    Monthly active users

  • 866

    Posts

  • 14K

    Comments