Spyke

Replies

memes

Comment on

Who cares to touch the grass?

to make things as not confusing as possible, my rule of thumb is:

  • yyyy-mm-dd (yyyy instead of yy ensures that it's not mistaken for dd-mm-yy) (hyphens can be replaced with underscores)
  • dd.mm.yyyy (yyyy same as above) (really dislike using for filenames, sorting doesn't work)
  • mm/dd/yyyy (only if there is no other choice) edit: mm/dd/yyyy vs mm/dd/yy doesn't matter because both make 0 sense already edit2: i forgor to say that yyyy also avoids y2.1k and subsequent issues

Comment on

Lemmy PERFORMANCE CRISIS: popular instances with many remote instances following big communities could stop federating outbound for Votes on comments/posts - code path identified

Reply in thread

more "correct" way would be this:

match activity {
    AnnouncableActivities::UndoVote(_) => warn!("zebratrace310 SKIP UndoVote"),
    AnnouncableActivities::Vote(_) => warn!("zebratrace310A SKIP Vote"),
    _ => {
        warn!("zebratrace311 send");
        AnnounceActivity::send(activity.clone().try_into()?, community, context).await?;
    },
}

here it is in the rust book: https://doc.rust-lang.org/stable/book/ch06-02-match.html

You reached the end