programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
unlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · 1 year ago

On this deserted island I could use some help()

lemmy.blahaj.zone

message-square
32
link
fedilink
1.17K

On this deserted island I could use some help()

lemmy.blahaj.zone

unlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · 1 year ago
message-square
32
link
fedilink
  • WhiskyTangoFoxtrot@lemmy.world
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    1 year ago

    Guessing at what the programmer wants instead of implementing consistent behaviour is what Javascript does. Do you want Python to become Javascript?

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Just once I want '1' + '2' to equal '3'. Is that so much to ask?

      • Metype @lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        1 year ago

        You want to remove the string concatenation operator? Cause that’ll do it

        • tetris11@lemmy.ml
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          I think every language needs a please operator, which acts to enforce human expectation of a statement:

          '1'  + '1'            ## evaluates to '11'
          please '1' + '1' ## evaluates to '2'
          
          • PlexSheep@feddit.de
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            I kinda like that

      • wewbull@feddit.uk
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        Yes. Yes it is.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 26 users / day
  • 912 users / week
  • 2.4K users / month
  • 9.83K users / 6 months
  • 732 local subscribers
  • 35.8K subscribers
  • 1.75K Posts
  • 38.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org