this post was submitted on 05 Dec 2024
235 points (93.7% liked)

Science Memes

11431 readers
1340 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] juliebean@lemm.ee 63 points 2 weeks ago (16 children)

what would be the alternative? to always execute if the condition is true, but sometimes execute it even when false, for funsies?

[โ€“] ptz@dubvee.org 41 points 2 weeks ago* (last edited 2 weeks ago) (9 children)

Hey, I like a little chaos in my codebase ๐Ÿ˜†

const funsies = () => (Math.round(Math.random() * 1000) % 2 == 0)
if ( condition || funsies() ) {
    // do the thing
}
[โ€“] modality@lemmy.myserv.one 4 points 2 weeks ago (1 children)
[โ€“] ptz@dubvee.org 19 points 2 weeks ago* (last edited 2 weeks ago)

Nope. I'm staunchly against "AI". If the code sucks, it's because I wrote bad code.

Edit: Oh, or did you mean is that how "AI" works?

load more comments (7 replies)
load more comments (13 replies)