230
if statement == false (i.imgflip.com)
you are viewing a single comment's thread
view the rest of the comments
[-] juliebean@lemm.ee 62 points 1 week ago

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 40 points 1 week ago* (last edited 1 week ago)

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 3 points 1 week ago
[-] ptz@dubvee.org 19 points 1 week ago* (last edited 1 week 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)
this post was submitted on 05 Dec 2024
230 points (93.2% liked)

Science Memes

11399 readers
1158 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