okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 1 month ago

This is a glass

programming.dev

message-square
62
link
fedilink
493

This is a glass

programming.dev

CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 1 month ago
message-square
62
link
fedilink
  • Shalien@piefed.projetretro.io
    link
    fedilink
    Français
    arrow-up
    5
    ·
    1 month ago

    //This a glass // To get the quantity and type of content use
    // glass->qty : float
    // glass->content : glass_content

    • LeFrog@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      1 month ago
      if glass.empty?
        make_sad_noise
      else
        homi.hydrate(glass.qty)
      end
      
      • rbn@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        You should check against homi.healthyCapacity first unless you want to drown them.

    • red_tomato@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      How can you be so sure other readers will understand floating point numbers? Better include the entire IEEE 754 standard just in case.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 949 users / day
  • 3.14K users / week
  • 7.59K users / month
  • 16.7K users / 6 months
  • 1 local subscriber
  • 33K subscribers
  • 2.31K Posts
  • 81.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org