Escape Tool
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 28 days ago

This is a glass

programming.dev

message-square
65
link
fedilink
497

This is a glass

programming.dev

CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 28 days ago
message-square
65
link
fedilink
  • Shalien@piefed.projetretro.io
    link
    fedilink
    Français
    arrow-up
    5
    ·
    28 days 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
      ·
      28 days ago
      if glass.empty?
        make_sad_noise
      else
        homi.hydrate(glass.qty)
      end
      
      • rbn@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        28 days ago

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

    • red_tomato@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      28 days 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.

  • 517 users / day
  • 3.05K users / week
  • 7.41K users / month
  • 9.76K users / 6 months
  • 1 local subscriber
  • 32.9K subscribers
  • 452 Posts
  • 5.69K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org