Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
GandhiTheDerg ( GandhiTheDerg@pawb.social )  to Programmer Humor@lemmy.ml · 3 years ago

Personally I prefer throw new nullpointerexception

pawb.social

message-square
44
link
fedilink
321

Personally I prefer throw new nullpointerexception

pawb.social

GandhiTheDerg ( GandhiTheDerg@pawb.social )  to Programmer Humor@lemmy.ml · 3 years ago
message-square
44
link
fedilink
alert-triangle
You must log in or register to comment.
  • nothacking ( nothacking@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    26
    ·
    3 years ago

    Linux: kill

    • Chris ( chris_hayes@lemmy.ml ) 
      link
      fedilink
      English
      arrow-up
      20
      ·
      3 years ago

      Also Linux: zombies, orphans

      • ehrenschwan ( ehrenschwan@feddit.de ) 
        link
        fedilink
        English
        arrow-up
        9
        ·
        3 years ago

        Meanwhile docker compose: --remove-orphans

      • Mirodir ( Mirodir@lemmy.fmhy.ml ) 
        link
        fedilink
        English
        arrow-up
        9
        ·
        3 years ago

        Daemons

        • ℛ𝒶𝓋ℯ𝓃 ( name_NULL111653@pawb.social ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 years ago

          Crypt

      • russjr08 ( russjr08@outpost.zeuslink.net ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 years ago

        Don’t forget fork!

      • dmxk ( dmxk@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years ago

        Just make sure you don’t panic()

  • dullbananas ( dullbananas@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    21
    ·
    3 years ago

    explode https://www.php.net/manual/en/function.explode.php

    • curiosityLynx ( curiosityLynx@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      I loved explode back when I frequently used PHP

  • yaniv ( yaniv@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    20
    ·
    3 years ago

    I love die()! but PHP has exit(), too, and it does the same thing

  • GrishAix ( Grishaix@feddit.de ) 
    link
    fedilink
    arrow-up
    17
    ·
    3 years ago

    MS Developers: Kill all children

    • ndguardian ( ndguardian@lemmy.studio ) 
      link
      fedilink
      English
      arrow-up
      7
      ·
      3 years ago

      Well I didn’t wake up today expecting to watch a video about task manager, but here I am.

      • GrishAix ( Grishaix@feddit.de ) 
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 years ago

        Now watching the Pinball video before going to bed.

  • kr0n ( kr0n@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    11
    ·
    3 years ago

    php, the Dark Souls of the programming languages

    • Phoenixz ( phoenixz@lemmy.ca ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      Because?

      • Dandroid ( dandroid@dandroid.app ) 
        link
        fedilink
        English
        arrow-up
        9
        ·
        3 years ago

        Y O U D I E D

        • flashgnash ( flashgnash@lemm.ee ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 years ago

          I heard the sound when I read this

  • JebanuusPisusII ( JebanuusPisusII@szmer.info ) 
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    Libdbus: Trying to remove a child that doesn’t believe we’re it’s parent.

  • lowleveldata ( lowleveldata@programming.dev ) 
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    I have never used System.exit() or sys.exit(). What is a use case where you would call these explicitly?

    • niq ( niq@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      22
      ·
      3 years ago

      For example if you want to set an explicit exit code. Calling python scripts will usually result in an exit code 0 after the script is run. If you want to set a different exit code for example 1 to indicate some error occured you can do that via sys.exit(1).

      Same thing applies to other languages of course.

    • ℛ𝒶𝓋ℯ𝓃 ( name_NULL111653@pawb.social ) 
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      exit()-ing your step-sys already seems pretty explicit…

  • silenium_dev ( silenium_dev@etaorion.org ) 
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Fun fact: there’s a shorter way to throw a NullPointerException:

    throw null;
    

    Because throw throws a NPE if the parameter is null

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: !programmerhumor@lemmy.ml

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.

  • 1 user / day
  • 41 users / week
  • 45 users / month
  • 1.57K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) deleted by creator
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code