this post was submitted on 29 Jan 2024
707 points (98.0% liked)

Memes

45719 readers
1057 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lobelia581@lemmy.dbzer0.com 65 points 9 months ago* (last edited 9 months ago) (3 children)

// TODO: needs improvements but works 99% of the time

return false;

[–] ifGoingToCrashDont@lemmy.world 27 points 9 months ago

This looks good. PR approved.

[–] ApeNo1@lemm.ee 13 points 9 months ago

return (staticCrashCounter++ % 100 == 0 ? true : false);

[–] Scubus@sh.itjust.works 10 points 9 months ago

To improve that, you could get rid of the comment to save space.