Lemmy.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
qaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago

-Wall ain't all

lemmy.world

message-square
24
link
fedilink
328

-Wall ain't all

lemmy.world

qaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
24
link
fedilink
  • Limitless_screaming@kbin.social
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    2 years ago

    Function is changing a global variable, the global variable is checked after every call to the function. That’s your return value.

    • qaz@lemmy.worldOP
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      edit-2
      2 years ago

      I spent 3 hours debugging the serialization code to find out it the crash was because the function didn’t have a return statement.

      • Limitless_screaming@kbin.social
        link
        fedilink
        arrow-up
        10
        ·
        2 years ago

        Sorry, cannot relate; Everything is a boolean when you’re using JavaScript.

    • ekky43@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      That’s… Terrible. Truly the stuff of nightmares!

    • zea@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      OOP methods?

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.

  • 88 users / day
  • 1.92K users / week
  • 3.19K users / month
  • 9.73K users / 6 months
  • 653 local subscribers
  • 36K subscribers
  • 1.83K Posts
  • 37.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: 0.19.11
  • BE: 0.19.11-n.1
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org